* manual/setjmp.texi: Document MTASC-safety properties.
[jlayton/glibc.git] / ChangeLog
1 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
2
3         * manual/setjmp.texi: Document MTASC-safety properties.
4
5 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
6
7         * manual/search.texi: Document MTASC-safety properties.
8
9 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
10
11         * manual/resource.texi: Document MTASC-safety properties.
12
13 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
14
15         * manual/process.texi: Document MTASC-safety properties.
16
17 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
18
19         * manual/platform.texi: Document MTASC-safety properties.
20
21 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
22
23         * manual/pipe.texi: Document MTASC-safety properties.
24
25 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
26
27         * manual/pattern.texi: Document MTASC-safety properties.
28
29 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
30
31         * manual/message.texi: Document MTASC-safety properties.
32
33 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
34
35         [BZ #12751]
36         * manual/memory.texi: Document MTASC-safety properties.
37
38 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
39
40         * manual/math.texi: Document MTASC-safety properties.
41
42 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
43
44         * manual/locale.texi: Document MTASC-safety properties.
45
46 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
47
48         * manual/llio.texi: Document MTASC-safety properties.
49
50 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
51
52         * manual/libdl.texi: New.
53
54 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
55
56         * manual/lang.texi: Document MTASC-safety properties.
57
58 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
59
60         * manual/job.texi: Document MTASC-safety properties.
61
62 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
63
64         * manual/getopt.texi: Document MTASC-safety properties.
65
66 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
67
68         * manual/ctype.texi: Document MTASC-safety properties.
69
70 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
71
72         [BZ #16046]
73         * csu/libc-tls.c (static_map): Remove variable.
74         (__libc_setup_tls): Use main executable's link map for TLS data.
75         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
76         casing for LM_ID_BASE and GL(dl_nns).
77         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
78         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
79         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
80         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
81         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
82         member.
83         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
84         l_phnum members.
85
86 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
87
88         * manual/debug.texi: Document MTASC-safety properties.
89
90 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
91
92         [BZ #16510]
93         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
94         of __x86_64__ when disabling x87 inline functions.
95
96 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
97
98         * manual/charset.texi: Document MTASC-safety properties.
99
100 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
101
102         * manual/crypt.texi: Document MTASC-safety properties.
103
104 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
105
106         * manual/conf.texi: Document MTASC-safety properties.
107
108 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
109
110         * manual/arith.texi: Document MTASC-safety properties.
111
112 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
113
114         * manual/argp.texi: Document MTASC-safety properties.
115
116 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
117
118         * manual/macros.texi: Introduce macros to document multi
119         thread, asynchronous signal and asynchronous cancellation
120         safety properties.
121         * manual/intro.texi: Introduce the properties themselves.
122
123 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
124
125         * sysdeps/sh/sh4/Makefile: New file.
126
127 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
128
129         * math/gen-libm-test.pl ($srcdir): New variable.
130         ($auto_input): Use it.
131
132 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
133
134         [BZ #16506]
135         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
136         access beyond array bounds when parsing netgroups file.
137
138         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
139         the old buffer before realloc.
140
141 2014-01-27  Allan McRae  <allan@archlinux.org>
142
143         * po/fr.po: Update French translation from translation project.
144
145 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
146
147         * sysdeps/sh/libm-test-ulps: Regenerate.
148
149 2014-01-24  David S. Miller  <davem@davemloft.net>
150
151         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
152
153 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
154
155         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
156         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
157
158 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
159
160         [BZ #16474]
161         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
162         string pointers after reallocation.
163
164 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
165
166         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
167         __SH4A__ instead of __SH_FPU_ANY__.
168
169 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
170
171         * sysdeps/sh/fpu_control.h: New file.
172         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
173         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
174         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
175         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
176         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
177         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
178         * sysdeps/sh/sys/ucontext.h: Remove.
179         * sysdeps/sh/sys: Remove directory.
180
181 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
182
183         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
184         s390/sys/ucontext.h.
185         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
186         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
187
188 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
189
190         [BZ #15605]
191         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
192
193 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
194
195         [BZ#16431]
196         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
197         Adjust the vDSO correctly for internal calls.
198         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
199
200 2014-01-20  Allan McRae  <allan@archlinux.org>
201
202         * po/ca.po: Update Catalan translation from translation project.
203
204 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
205
206         * sysdeps/s390/sotruss-lib.c: New file.
207
208 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
209
210         [BZ#16430]
211         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
212         (__GI___gettimeofday): Alias for a different internal symbol to avoid
213         local calls issues by not having a PLT stub required for IFUNC calls.
214         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
215
216 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
217
218         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
219         * math/test-fpucw-static.c: Likewise.
220
221 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
222
223         [BZ #16453]
224         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
225
226 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
227
228         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
229         implementation for powerpc.
230
231 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
232
233         [BZ #14782]
234         * sysdeps/posix/system.c (__libc_system): Do not enable
235         asynchronous cancellation.
236
237 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
238
239         [BZ #16427]
240         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
241         handling only for numbers special also in the IEEE case.
242
243 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
244
245         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
246
247 2014-01-11  Allan McRae  <allan@archlinux.org>
248
249         * po/bg.po: Update Bulgarian translation from translation project.
250
251         * po/de.po: Update German translation from translation project.
252
253 2014-01-10  Roland McGrath  <roland@hack.frob.com>
254
255         * sysdeps/generic/gcc-compat.h: New file.
256
257 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
258
259         * benchtests/asin-inputs: Correct slow inputs.
260         * benchtests/acos-inputs: Likewise.
261
262 2014-01-10  Allan McRae  <allan@archlinux.org>
263
264         * po:sv.po: Update Swedish translation from translation project.
265
266         * po/vi.po: Update Vietnamese translation from translation project.
267
268         * po/eo.po: Update Esperanto translation from translation project.
269
270         * po/cs.po: Update Czech translation from translation project.
271
272         * po/nl.po: Update Dutch translation from translation project.
273
274         * po/pl.po: Update Polish translation from translation project.
275
276         * po/ru.po: Update Russian translation from translation project.
277
278         * po/uk.po: Update Ukrainian translation from translation project.
279
280 2014-01-08  Brooks Moses  <bmoses@google.com>
281
282         * elf/dl-load.c: Fix comment typo.
283
284 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
285
286         * po/header.pot: Rename to...
287         * po/pot.header: ... this.
288         * po/Makefile: Use pot.header.
289
290 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
291             Maxim Kuvyrkov  <maxim@kugelworks.com>
292
293         [BZ #16394]
294         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
295         SRC and DEST against LEN.
296
297 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
298
299         [BZ #16414]
300         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
301         implementation.
302         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
303
304 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
305
306         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
307
308 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
309
310         [BZ #16408]
311         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
312         for large positive arguments.
313
314 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
315
316         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
317
318         * math/auto-libm-test-in: Mark various tests with
319         xfail-rounding:ldbl-128ibm.
320         * math/auto-libm-test-out: Regenerated.
321
322         [BZ #16407]
323         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
324         Increase overflow threshold.
325
326 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
327
328         [BZ #14286]
329         * stdio-common/vfprintf.c: Check for integer overflow.
330
331 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
332
333         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
334         the first argument and return value of __tls_get_addr_internal.
335
336 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
337
338         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
339         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
340
341 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
342
343         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
344         * sysdeps/s390/rtld-global-offsets.sym: New file.
345         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
346         GLIBC_2.19 symbol.
347         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
348         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
349         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
350         ... this.
351         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
352         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
353         ... this.
354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
355         Regenerate.
356         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
357         Regenerate.
358         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
359         halfs of GPRs for high_gprs contexts.
360         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
361         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
362         field.
363         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
364         uc_flags field.
365         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
366         64 bit versions:
367         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
368         for high GPRs (uc_high_gprs) and for future extensions
369         (__reserved).
370         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
371         for future extensions (__reserved).
372         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
373         64 bit versions:
374         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
375         SC_HIGHGPRS offset definition.
376         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
377         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
378
379 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
380
381         * Versions.def: Add GLIBC_2.19 for libpthread.
382         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
383         siglongjmp for libpthread with GLIBC_2.19 symver.
384         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
385         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
386         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
387         * sysdeps/s390/__longjmp.c: New file.
388         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
389         * sysdeps/s390/longjmp.c: New file.
390         * sysdeps/s390/setjmp.S: New file.
391         * sysdeps/s390/sigjmp.S: New file.
392         * sysdeps/s390/v1-longjmp.c: New file.
393         * sysdeps/s390/v1-setjmp.h: New file.
394         * sysdeps/s390/v1-sigjmp.c: New file.
395         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
396         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
397         GLIBC_2.19 version.
398         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
399         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
400         versioned symbols for ____longjmp_chk.
401         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
402         Likewise.
403         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
404         Regenerate.
405         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
406         Regenerate.
407         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
408         Regenerate.
409         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
410         Regenerate.
411         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
412         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
413         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
414         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
415         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
416         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
417         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
418         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
419         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
420         * sysdeps/s390/rtld-__longjmp.c: New file.
421         * sysdeps/s390/rtld-setjmp.S: New file.
422
423 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
424
425         [BZ #16400]
426         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
427         Return -__logl (x) for small positive arguments without evaluating
428         a polynomial.
429
430 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
431
432         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
433         Rename to ...
434         (__ptrace_peeksiginfo_args): ... this.
435         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
436         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
437         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
438
439 2014-01-06  Allan McRae  <allan@archlinux.org>
440
441         * inet/netinet/in.h: Fix typo in comment.
442
443 2014-01-05  Andreas Jaeger  <aj@suse.de>
444
445         * sysdeps/i386/fpu/libm-test-ulps: Update.
446
447 2014-01-05  Allan McRae  <allan@archlinux.org>
448
449         * po/libc.pot: Regenerated.
450
451         * malloc/memusagestat.c: Fix gettext call formatting.
452
453 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
454
455         * nscd/nscd.c: Improve usage() output.
456
457 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
458
459         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
460         * sysdeps/unix/sysv/linux/configure: Regenerated.
461         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
462         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
463
464 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
465
466         [BZ #16390]
467         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
468         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
469
470 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
471
472         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
473         extra tokens at end of #undef directive.
474         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
475         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
476         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
477
478 2014-01-03  Andrew Hunter  <ahh@google.com>
479
480         * elf/dl-open.c (dl_open_worker): New comment.
481         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Use
482         atomic_compare_and_exchange_bool_acq
483         (_dl_allocate_static_tls): Block signals.
484         * elf/dl-tls.c (allocate_and_init): Return void.
485         (_dl_update_slotinfo): Block signals, use atomic update.
486
487 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
488
489         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
490
491         * math/auto-libm-test-in: Mark various tests with
492         xfail-rounding:ldbl-128ibm.
493         * math/auto-libm-test-out: Regenerated.
494
495 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
496
497         [BZ #16386]
498         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
499         numbers with subnormal high part when calculating exponent.
500
501         [BZ #16385]
502         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
503         fabs.
504
505         [BZ #16384]
506         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
507         M_LN2l.
508         (__ieee754_acoshl): Use __log1pl not __log1p.
509
510 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
511
512         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all,
513         ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry,
514         __failing_morecore, ptmalloc_init, dump_heap, new_heap, grow_heap,
515         heap_trim, _int_new_arena, get_free_list, reused_arena, arena_get2):
516         Convert to GNU style.
517         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init,
518         mem2mem_check, mem2chunk_check, top_check, realloc_check,
519         memalign_check, __malloc_set_state): Likewise.
520         * malloc/mallocbug.c (main): Likewise.
521         * malloc/malloc.c (__malloc_assert, malloc_init_state, free_perturb,
522         do_check_malloced_chunk, do_check_malloc_state, sysmalloc, systrim,
523         mremap_chunk, __libc_malloc, __libc_free, __libc_realloc, _mid_memalign,
524         _int_malloc, malloc_consolidate, _int_realloc, _int_memalign, mtrim,
525         musable, __libc_mallopt, __posix_memalign, malloc_info): Likewise.
526         * malloc/malloc.h: Likewise.
527         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook, mallochook,
528         memalignhook, reallochook, mabort): Likewise.
529         * malloc/mcheck.h: Likewise.
530         * malloc/memusage.c (update_data, me, malloc, realloc, calloc, free, mmap,
531         mmap64, mremap, munmap, dest): Likewise.
532         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
533         * malloc/morecore.c (__default_morecore): Likewise.
534         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
535         * malloc/obstack.c (_obstack_begin, _obstack_newchunk,
536         _obstack_allocated_p, obstack_free, _obstack_memory_used,
537         print_and_abort): Likewise.
538         * malloc/obstack.h: Likewise.
539         * malloc/set-freeres.c (__libc_freeres): Likewise.
540         * malloc/tst-mallocstate.c (main): Likewise.
541         * malloc/tst-mtrace.c (main): Likewise.
542         * malloc/tst-realloc.c (do_test): Likewise.
543
544 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
545
546         [BZ #16366]
547         * nscd/netgroupcache.c (do_notfound): New function.
548         (addgetnetgrentX): Use it.
549
550         [BZ # 16365]
551         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
552         NSS_STATUS_NOTFOUND.
553
554 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
555
556         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
558
559 2014-01-01  Allan McRae  <allan@archlinux.org>
560
561         * scripts/update-copyrights: Update configure input file suffix.
562
563         * NEWS: Update copyright year.
564         * catgets/gencat.c: Likewise.
565         * csu/version.c: Likewise.
566         * debug/catchsegv.sh: Likewise.
567         * debug/pcprofiledump.c: Likewise.
568         * debug/xtrace.sh: Likewise.
569         * elf/ldconfig.c: Likewise.
570         * elf/ldd.bash.in: Likewise.
571         * elf/pldd.c: Likewise.
572         * elf/sotruss.ksh: Likewise.
573         * elf/sprof.c: Likewise.
574         * iconv/iconv_prog.c: Likewise.
575         * iconv/iconvconfig.c: Likewise.
576         * locale/programs/locale.c: Likewise.
577         * locale/programs/localedef.c: Likewise.
578         * login/programs/pt_chown.c: Likewise.
579         * malloc/memusage.sh: Likewise.
580         * malloc/memusagestat.c: Likewise.
581         * malloc/mtrace.pl: Likewise.
582         * manual/libc.texinfo: Likewise.
583         * nscd/nscd.c: Likewise.
584         * nss/getent.c: Likewise.
585         * nss/makedb.c: Likewise.
586         * posix/getconf.c: Likewise.
587         * scripts/test-installation.pl: Likewise.
588
589         * All files with FSF copyright notices: Update copyright dates
590         using scripts/update-copyrights.
591         * intl/plural.c: Regenerated.
592         * locale/programs/charmap-kw.h: Likewise.
593         * locale/programs/locfile-kw.h: Likewise.
594
595 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
596
597         * sysdeps/unix/sysv/linux/configure: Regenerated.
598         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
599         the linux/fanotify.h header.
600         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
601         HAVE_LINUX_FANOTIFY_H is defined.
602
603 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
604
605         * benchtests/cos-inputs: New inputs.
606         * benchtests/sin-inputs: Likewise.
607
608         * benchtests/atan-inputs: New inputs. Fix name of multiple
609         precision fallback inputs.
610
611         * benchtests/atanh-inputs: New inputs.
612         * benchtests/tanh-inputs: Likewise.
613
614         * benchtests/acosh-inputs: New inputs.
615         * benchtests/asinh-inputs: Likewise.
616
617         * benchtests/cosh-inputs: New inputs.
618         * benchtests/sinh-inputs: Likewise.
619
620         * benchtests/acos-inputs: Add more inputs.
621         * benchtests/asin-inputs: Likewise.
622
623 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
624
625         [BZ #16375]
626         * manual/arith.texi: Fix spelling.
627         * manual/charset.texi: Likewise.
628         * manual/errno.texi: Likewise.
629         * manual/filesys.texi: Likewise.
630         * manual/lang.texi: Likewise.
631         * manual/llio.texi: Likewise.
632         * manual/locale.texi: Likewise.
633         * manual/message.texi: Likewise.
634         * manual/resource.texi: Likewise.
635         * manual/search.texi: Likewise.
636         * manual/setjmp.texi: Likewise.
637         * manual/stdio.texi: Likewise.
638         * manual/string.texi: Likewise.
639         * manual/sysinfo.texi: Likewise.
640         * manual/time.texi: Likewise.
641
642 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
643
644         * po/sl.po: New file.
645
646 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
647
648         * .gitignore: Add core/.gdbinit/.gdb_history.
649
650 2013-12-27  Allan McRae  <allan@archlinux.org>
651
652         [BZ #16369]
653         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
654         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
655
656 2013-12-24  Brooks Moses  <bmoses@google.com>
657
658         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
659         all compilers that claim C++98 compliance, not just GCC.
660         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
661         Likewise.
662
663 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
664
665         * NEWS: Restore accidentally deleted bug-fix entries.
666
667 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
668             Ondřej Bílka  <neleai@seznam.cz>
669
670         [BZ #15073]
671         * malloc/malloc.c (_int_free): Perform sanity check only if we
672         have_lock.
673
674 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
675
676         [BZ #12986]
677         * manual/stdio.texi (String Input Conversions): Clarify that character
678         classes are not supported.
679
680 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
681
682         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
683
684 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
685
686         [BZ #16337]
687         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
688         Calculate results for small negative arguments directly rather
689         than using reflection formula with special underflow handling.
690
691         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
692         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
693         sysdeps/unix/bsd/bsd4.4/syscalls.list.
694         (fchflags): Likewise.
695         (revoke): Likewise.
696         (setlogin): Likewise.
697         (sigaltstack): Likewise.
698         (wait4): Likewise.
699         (sigblock): Remove.
700         (sigsetmask): Likewise.
701         (wait3): Likewise.
702         (waitpid): Likewise.
703         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
704         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
705         file.
706         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
707         * sysdeps/unix/bsd/Makefile: ... here.
708         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
709         * sysdeps/unix/bsd/Versions: ... here.
710         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
711         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
712         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
713         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
714         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
715         * sysdeps/unix/bsd/sigblock.c: ... here.
716         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
717         * sysdeps/unix/bsd/sigsetmask.c: ... here.
718         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
719         * sysdeps/unix/bsd/sigvec.c: ... here.
720         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
721         * sysdeps/unix/bsd/tcdrain.c: ... here.
722         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
723         * sysdeps/unix/bsd/tcgetattr.c: ... here.
724         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
725         * sysdeps/unix/bsd/tcsetattr.c: ... here.
726         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
727         * sysdeps/unix/bsd/wait.c: ... here.
728         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
729         * sysdeps/unix/bsd/wait3.c: ... here.
730         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
731         * sysdeps/unix/bsd/waitpid.c: ... here.
732
733 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
734
735         [BZ #16356]
736         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
737         round-to-nearest for [!USE_AS_EXPM1L].
738         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
739         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
740         more tests of exp and exp10.  Expect some exp10 tests to miss
741         exceptions or fail in directed rounding modes.
742         * math/auto-libm-test-out: Regenerated.
743         * math/libm-test.inc (exp10_tonearest_test_data): New array.
744         (exp10_test_tonearest): New function.
745         (exp10_towardzero_test_data): New array.
746         (exp10_test_towardzero): New function.
747         (exp10_downward_test_data): New array.
748         (exp10_test_downward): New function.
749         (exp10_upward_test_data): New array.
750         (exp10_test_upward): New function.
751         (main): Call the new functions.
752         * sysdeps/i386/fpu/libm-test-ulps: Update.
753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
754
755 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
756
757         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
758         asinh, atan, atan2, atanh, cbrt, cos and cosh.
759         * math/auto-libm-test-out: Regenerated.
760         * math/libm-test.inc (acosh_test_data): Add more tests.
761         (atanh_test_data): Likewise.
762         (ceil_test_data): Likewise.
763         (copysign_test_data): Likewise.
764         * sysdeps/i386/fpu/libm-test-ulps: Update.
765         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
766
767         * timezone/checktab.awk: Update from tzcode 2013i.
768         * timezone/private.h: Likewise.
769         * timezone/scheck.c: Likewise.
770         * timezone/tzfile.h: Likewise.
771         * timezone/tzselect.ksh: Likewise.
772         * timezone/zdump.c: Likewise.
773         * timezone/zic.c: Likewise.
774
775         * math/auto-libm-test-in: Add tests of cpow.
776         * math/auto-libm-test-out: Regenerated.
777         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
778         * * math/gen-auto-libm-tests.c (func_calc_method): Add value
779         mpc_cc_c.
780         (func_calc_desc): Add mpc_cc_c union field.
781         (test_functions): Add cpow.
782         (special_fill_2pi): New function.
783         (special_real_inputs): Add 2pi.
784         (calc_generic_results): Handle mpc_cc_c.
785         * sysdeps/i386/fpu/libm-test-ulps: Update.
786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
787
788         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
789         csqrt, ctan and ctanh.
790         * math/auto-libm-test-out: Regenerated.
791         * math/libm-test.inc (TEST_COND_x86_64): New macro.
792         (TEST_COND_x86): Likewise.
793         (ccos_test_data): Use AUTO_TESTS_c_c.
794         (ccosh_test_data): Likewise.
795         (cexp_test_data): Likewise.
796         (clog_test_data): Likewise.
797         (csqrt_test_data): Likewise.
798         (ctan_test_data): Likewise.
799         (ctan_tonearest_test_data): Likewise.
800         (ctan_towardzero_test_data): Likewise.
801         (ctan_downward_test_data): Likewise.
802         (ctan_upward_test_data): Likewise.
803         (ctanh_test_data): Likewise.
804         (ctanh_tonearest_test_data): Likewise.
805         (ctanh_towardzero_test_data): Likewise.
806         (ctanh_downward_test_data): Likewise.
807         (ctanh_upward_test_data): Likewise.
808         * math/gen-auto-libm-tests.c (func_calc_method): Add value
809         mpc_c_c.
810         (func_calc_desc): Add mpc_c_c union field.
811         (FUNC_mpc_c_c): New macro.
812         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
813         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
814         ctanh.
815         (special_fill_min_subnorm_p120): New function.
816         (special_real_inputs): Add min_subnorm_p120.
817         (calc_generic_results): Handle mpc_c_c.
818         * sysdeps/i386/fpu/libm-test-ulps: Update.
819         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
820
821 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
822
823         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin,
824         do_sin_slow): New functions.
825         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2,
826         cslow2, csloww1, csloww2): Use the new functions.
827
828         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
829         Use M to change sign of result instead of X.  Assume X is
830         positive.
831         (csloww1): Likewise.
832         (__sin): Adjust.
833         (__cos): Adjust.
834
835         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
836         arguments A and DA.
837         (__sin): Adjust.
838         (__cos): Likewise.
839
840         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
841         (__cos): Likewise.
842         (sloww1): Don't adjust sign of DX.
843         (csloww1): Likewise.
844         (sloww2): Use X directly and don't adjust sign of DX.
845         (csloww2): Likewise.
846
847 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
848
849         * math/auto-libm-test-in: Add tests of cabs and carg.
850         * math/auto-libm-test-out: Regenerated.
851         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
852         (carg_test_data): Likewise.
853         * math/gen-auto-libm-tests.c (func_calc_method): Add value
854         mpc_c_f.
855         (func_calc_desc): Add mpc_c_f union field.
856         (test_functions): Add cabs and carg.
857         (calc_generic_results): Handle mpc_c_f.
858
859         * sysdeps/powerpc/powerpc32/libgcc-compat.S
860         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
861         as a macro and a compat symbol.
862         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
863         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
864         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
865         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
866         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
867         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
868         not use .hidden.
869         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
870         Likewise.
871         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
872         Likewise.
873         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
874         Likewise.
875         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
876         Likewise.
877         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
878         Likewise.
879         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
880         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
881         from GLIBC_2.3.2.
882
883 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
884
885         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
886
887 2013-12-19  Paul Pluzhnikov  <ppluzhnikov@google.com>
888
889         * elf/dl-misc.c (ptr_to_signal_safe_allocator_header): New function.
890         (__signal_safe_memalign, __signal_safe_free): Use it.
891         (__signal_safe_realloc): Likewise.
892
893 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
894
895         * manual/texinfo.tex: Update to version 2013-11-26.10 with
896         trailing whitespace removed.
897         * scripts/config.guess: Update to version 2013-11-29.
898         * scripts/config.sub: Update to version 2013-10-01.
899
900         * math/auto-libm-test-in: Add tests of sincos.
901         * math/auto-libm-test-out: Regenerated.
902         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
903         * math/gen-auto-libm-tests.c (func_calc_method): Add value
904         mpfr_f_11.
905         (func_calc_desc): Add mpfr_f_11 union field.
906         (test_functions): Add sincos.
907         (calc_generic_results): Handle mpfr_f_11.
908         * sysdeps/i386/fpu/libm-test-ulps: Update.
909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
910
911 2013-12-19  Andreas Schwab  <schwab@suse.de>
912
913         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
914         CALL_MCOUNT.
915         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
916         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
917         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
918
919 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
920
921         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
922         * sysdeps/i386/fpu/libm-test-ulps: Update.
923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
924
925         [BZ #16293]
926         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
927         round-to-nearest mode when using frndint.
928         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
929         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
930         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
931         Likewise.
932         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
933         sinh test to fail.
934         * math/auto-libm-test-out: Regenerated.
935         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
936         (TEST_COND_x86): Likewise.
937         (expm1_tonearest_test_data): New array.
938         (expm1_test_tonearest): New function.
939         (expm1_towardzero_test_data): New array.
940         (expm1_test_towardzero): New function.
941         (expm1_downward_test_data): New array.
942         (expm1_test_downward): New function.
943         (expm1_upward_test_data): New array.
944         (expm1_test_upward): New function.
945         (main): Run the new test functions.
946         * sysdeps/i386/fpu/libm-test-ulps: Update.
947         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
948
949         * include/features.h: Update comment documenting feature test
950         macros.  Mention _DEFAULT_SOURCE in comment.
951         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
952         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
953         _BSD_SOURCE and _SVID_SOURCE.
954         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
955         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
956         !_SVID_SOURCE]: Likewise.
957         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
958         (__USE_POSIX_IMPLICITLY): Define.
959         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
960         (_POSIX_SOURCE): Undefine and redefine.
961         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
962         (_POSIX_C_SOURCE): Likewise.
963         * manual/creature.texi (_DEFAULT_SOURCE): Document.
964         (Feature Test Macros): Update documentation of default features.
965
966 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
967
968         * benchtests/Makefile: Add bench-strtok.
969         * benchtests/bench-strtok.c: New file: strtok benchtest.
970
971 2013-12-19  Allan McRae  <allan@archlinux.org>
972
973         * manual/install.texi: Suppress menu for plain text output.
974         * INSTALL: Regenerated.
975
976 2013-12-18  Andrew Hunter  <ahh@google.com>
977
978         * sysdeps/generic/ldsodefs.h (__signal_safe_memalign): New prototype.
979         (__signal_safe_malloc, __signal_safe_free): Likewise.
980         (__signal_safe_realloc, __signal_safe_calloc): Likewise.
981         * elf/dl-misc.c (__signal_safe_allocator_header): New struct.
982         (__signal_safe_memalign, __signal_safe_malloc): New function.
983         (__signal_safe_free, __signal_safe_realloc): Likewise.
984         (__signal_safe_calloc): Likewise.
985         * elf/dl-tls.c (allocate_dtv, _dl_clear_dtv): Call signal-safe
986         functions.
987         (_dl_deallocate_tls, _dl_update_slotinfo): Likewise.
988
989 2013-12-18  Andrew Hunter  <ahh@google.com>
990
991         * elf/Versions (ld): Add _dl_clear_dtv.
992         * sysdeps/generic/ldsodefs.h (_dl_clear_dtv): New prototype.
993         * elf/dl-tls.c (_dl_clear_dtv): New function.
994         * nptl/allocatestack.c (get_cached_stack): Call _dl_clear_dtv.
995
996 2013-12-18  Andrew Hunter  <ahh@google.com>
997
998         * sysdeps/generic/ldsodefs.h (_dl_mask_all_signals): New prototype.
999         (_dl_unmask_signals): Likewise.
1000         * sysdeps/mach/hurd/dl-sysdep.h (_dl_mask_all_signals): New stub.
1001         (_dl_unmask_all_signals): Likewise.
1002         * sysdeps/unix/sysv/linux/dl-sysdep.h (_dl_mask_all_signals): New prototype.
1003         (_dl_unmask_all_signals): Likewise.
1004         * sysdeps/unix/sysv/linux/dl-sysdep.c (_dl_mask_all_signals): New function.
1005         (_dl_unmask_signals): Likewise.
1006
1007 2013-12-18  Brooks Moses  <bmoses@google.com>
1008
1009         [BZ #15846]
1010         * misc/getauxval.c: Include errno.h.
1011         (__getauxval): Set errno to ENOENT if the requested type is not
1012         found.
1013         * misc/sys/auxv.h (getauxval): Document that it may set errno;
1014         don't declare with __attribute_const__.
1015         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
1016         * manual/startup.texi: Document that getauxval sets errno.
1017
1018 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
1019
1020         * math/auto-libm-test-in: Add tests of jn and yn.
1021         * math/auto-libm-test-out: Regenerated.
1022         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
1023         (yn_test_data): Likewise.
1024         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1025         mpfr_if_f.
1026         (func_calc_desc): Add mpfr_if_f union field.
1027         (FUNC_mpfr_if_f): New macro.
1028         (test_functions): Add jn and yn.
1029         (calc_generic_results): Assert type of second input for
1030         mpfr_ff_f.  Handle mpfr_if_f.
1031         (output_for_one_input_case): Disable all checking for arguments
1032         fitting floating-point types in case of an integer argument.
1033         * sysdeps/i386/fpu/libm-test-ulps: Update.
1034         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1035
1036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
1037         Don't expect fegetround reference in libm.so.
1038
1039 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1040
1041         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
1042         $(config-cflags-nofma).
1043
1044 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
1045
1046         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
1047         * math/auto-libm-test-out: Regenerated.
1048
1049         [BZ #16338]
1050         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
1051         to determine exponent and adjust argument to have exponent of -1.
1052         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
1053         log2.
1054         * math/auto-libm-test-out: Regenerated.
1055         * sysdeps/i386/fpu/libm-test-ulps: Update.
1056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1057
1058 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
1059
1060         * manual/probes.texi: Remove cases when per-thread arenas are
1061         disabled.
1062
1063 2013-12-18  Andreas Schwab  <schwab@suse.de>
1064
1065         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
1066         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
1067         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
1068         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
1069         * sysdeps/i386/i686/multiarch/Makefile: Update.
1070         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
1071
1072 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1073
1074         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
1075         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
1076
1077 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1078
1079         Support TZ transition times < 00:00:00.
1080         This is needed for version-3 tz-format files; it supports time
1081         stamps past 2037 for America/Godthab (the only entry in the tz
1082         database for which this change is relevant).
1083         * manual/time.texi (TZ Variable): Document transition times
1084         from -167:59:59 through -00:00:01.
1085         * time/tzset.c (tz_rule): Time of day is now signed.
1086         (__tzset_parse_tz): Parse negative time of day.
1087
1088         Document TZ transition times >= 25:00:00.
1089         * manual/time.texi (TZ Variable): Document transition times from
1090         25:00:00 through 167:59:59.  These are already supported, and this
1091         support will help with version-3 tz-format files.
1092
1093         * manual/time.texi (TZ Variable): Modernize North America example
1094         to reflect current (i.e., 2007-and-later) daylight saving rules.
1095
1096         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
1097
1098 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1099
1100         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
1101         * sysdeps/unix/bsd/bits/stat.h: Likewise.
1102         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
1103         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
1104         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
1105         * sysdeps/unix/bsd/bsdstat.h: Likewise.
1106         * sysdeps/unix/bsd/clock.c: Likewise.
1107         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
1108         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
1109         * sysdeps/unix/bsd/init-posix.c: Likewise.
1110         * sysdeps/unix/bsd/poll.c: Likewise.
1111         * sysdeps/unix/bsd/ptsname.c: Likewise.
1112         * sysdeps/unix/bsd/seekdir.c: Likewise.
1113         * sysdeps/unix/bsd/setegid.c: Likewise.
1114         * sysdeps/unix/bsd/seteuid.c: Likewise.
1115         * sysdeps/unix/bsd/setgid.c: Likewise.
1116         * sysdeps/unix/bsd/setrgid.c: Likewise.
1117         * sysdeps/unix/bsd/setruid.c: Likewise.
1118         * sysdeps/unix/bsd/setsid.c: Likewise.
1119         * sysdeps/unix/bsd/setuid.c: Likewise.
1120         * sysdeps/unix/bsd/sigaction.c: Likewise.
1121         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
1122         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
1123         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
1124         * sysdeps/unix/bsd/telldir.c: Likewise.
1125         * sysdeps/unix/bsd/times.c: Likewise.
1126         * sysdeps/unix/bsd/usleep.c: Likewise.
1127
1128         * misc/Makefile (install-lib): Remove libbsd-compat.a.
1129         ($(objpfx)libbsd-compat.a): Remove rule.
1130
1131         * include/features.h (__FAVOR_BSD): Do not define.
1132         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
1133         features conflicting with POSIX.
1134         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
1135         (_BSD_SOURCE): Remove description of not being a subset of other
1136         feature test macros.
1137         * manual/job.texi (getpgrp): Do not document BSD version.
1138         (getpgid): Do not document by reference to BSD getpgrp.
1139         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
1140         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
1141         * signal/signal.h [__FAVOR_BSD]: Likewise.
1142         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
1143         instead of making contents conditional on [__FAVOR_BSD].
1144         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
1145
1146 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1147
1148         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1149
1150 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1151
1152         [BZ #16314]
1153         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
1154         values below 2**-450, not 2**-500.
1155         * math/auto-libm-test-in: Don't allow spurious underflow from
1156         hypot.
1157         * math/auto-libm-test-out: Regenerated.
1158
1159         [BZ #16316]
1160         [BZ #16330]
1161         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
1162         values of ha and hb and sort them after adjusting subnormal
1163         arguments.
1164         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
1165         Likewise.
1166         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
1167         values of ea and eb and sort them after adjusting subnormal
1168         arguments.
1169         * math/auto-libm-test-in: Do not expect some hypot tests of
1170         subnormals to fail.  Add more hypot tests.
1171         * math/auto-libm-test-out: Regenerated.
1172
1173 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1174
1175         [BZ #13304]
1176         * sysdeps/sh/s_fma.c: New file.
1177         * sysdeps/sh/s_fmaf.c: New file.
1178         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
1179         version.
1180         * sysdeps/sh/Implies: Add sh/soft-fp.
1181
1182 2013-12-16  Roland McGrath  <roland@hack.frob.com>
1183
1184         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
1185         level of indirection to members `objname', `errstring', `malloced'.
1186         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
1187         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
1188         it as the __longjmp argument (just pass 1 instead).
1189         (_dl_catch_error): Initialize C with argument pointers and address of
1190         volatile local ERRCODE rather than copying values out of C at return.
1191
1192 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
1193
1194         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
1195         * math/auto-libm-test-out: Regenerated.
1196         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
1197         (hypot_test_data): Likewise.
1198         (pow_test_data): Likewise.
1199         (pow_tonearest_test_data): Likewise.
1200         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1201         mpfr_ff_f.
1202         (func_calc_desc): Add mpfr_ff_f union field.
1203         (FUNC_mpfr_ff_f): New macro.
1204         (test_functions): Add atan2, hypot and pow.
1205         (special_fill_min): New function.
1206         (special_fill_minus_min): Likewise.
1207         (special_fill_min_subnorm): Likewise.
1208         (special_fill_minus_min_subnorm): Likewise.
1209         (special_real_inputs): Add min, -min, min_subnorm and
1210         -min_subnorm.
1211         (calc_generic_results): Handle mpfr_ff_f.
1212         * sysdeps/i386/fpu/libm-test-ulps: Update.
1213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1214
1215 2013-12-16  Will Newton  <will.newton@linaro.org>
1216
1217         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
1218         (Aligned Memory Blocks): Add documentation for aligned_alloc
1219         and suggest it as an alternative to posix_memalign.
1220         (Hooks for Malloc): Document __memalign_hook is also called
1221         for aligned_alloc.  (Summary of Malloc): Add summary for
1222         aligned alloc.  Document __memalign_hook is also called
1223         for aligned_alloc.
1224
1225 2013-12-16  Will Newton  <will.newton@linaro.org>
1226
1227         * manual/memory.texi (Malloc Examples): Clarify default
1228         alignment documentation.  Suggest posix_memalign rather
1229         than memalign or valloc.
1230         (Aligned Memory Blocks): Remove suggestion to use memalign
1231         or valloc.  Remove obsolete comment about BSD.
1232         Document memalign errno values and mark the function obsolete.
1233         Document posix_memalign returned error codes.  Mark valloc
1234         as obsolete.  (Hooks for Malloc): __memalign_hook is also
1235         called for posix_memalign and valloc.
1236         (Summary of Malloc): Add posix_memalign to function summary.
1237         __memalign_hook is also called for posix_memalign and valloc.
1238
1239 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1240
1241         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
1242         TAYLOR_SIN.
1243         (__sin): Adjust.
1244         (__cos): Likewise.
1245         (sloww): Use mynumber union.  Expand ternary operator into
1246         if-else statements.
1247         (cslow): use mynumber union.
1248
1249 2013-12-16  Allan McRae  <allan@archlinux.org>
1250
1251         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
1252         * configure: Regenerated.
1253
1254         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
1255
1256         [BZ #14120]
1257         * configure.ac: Added --enable-maintainer-mode. Check for
1258         autoconf when enabled.
1259         * configure: Regenerated.
1260
1261         * nscd/nscd.service: New file.
1262         * nscd/nscd.tmpfiles: New file.
1263
1264 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
1265
1266         [BZ #12100]
1267         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
1268         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
1269         * sysdeps/x86_64/multiarch/strstr.c: ... here.
1270         (strstr): Add __strstr_sse2_unaligned ifunc.
1271         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
1272         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
1273         (strcasestr): Remove __strcasestr_sse42 ifunc.
1274         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
1275         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1276         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1277
1278 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1279
1280         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
1281         * sysdeps/sh/bits/fenv.h: ... here.
1282         * sysdeps/sh/sh4/fpu/bits: Remove directory.
1283
1284 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1285
1286         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
1287
1288 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1289
1290         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
1291         hypotf multiarch implementations.
1292         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
1293         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
1294         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
1295         multiarch hypot for PPC64.
1296         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
1297         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
1298         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
1299         multiarch hypotf for PPC64.
1300
1301 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1302
1303         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
1304         modff multiarch implementations.
1305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
1306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
1307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
1308         multiarch modf for PPC64.
1309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
1310         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
1311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
1312         multiarch modff for PPC64.
1313
1314 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1315
1316         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
1317         and logl multiarch implementations.
1318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
1319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
1320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
1321         multiarch logb for PPC64.
1322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
1323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
1324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
1325         multiarch logb for PPC64.
1326         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
1327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
1328         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
1329         multiarch logb for PPC64.
1330
1331 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1332
1333         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
1334         isinff multiarch implementation.
1335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
1336         file.
1337         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
1338         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
1339         multiarch isinf for PPC64.
1340         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
1341         file.
1342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
1343         multiarch isinff for PPC64.
1344
1345 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1346
1347         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
1348         finitef multiarch implementation.
1349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
1350         file.
1351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
1352         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
1353         multiarch finite for PPC64.
1354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
1355         file.
1356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
1357         multiarch finitef for PPC64.
1358
1359 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1360
1361         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
1362         lrint multiarch implementation.
1363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
1364         file.
1365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
1366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
1367         multiarch llrint for PPC64.
1368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
1369         multiarch lrint for PPC64.
1370
1371 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1372
1373         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
1374         copysignf multiarch implementation.
1375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
1376         file.
1377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
1378         file.
1379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
1380         multiarch copysign for PPC64.
1381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
1382         multiarch copysignf for PPC64.
1383
1384 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1385
1386         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
1387         multiarch implementation.
1388         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
1389         file.
1390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
1391         file.
1392         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
1393         file.
1394         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
1395         file.
1396         multiarch llround for PPC64.
1397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
1398         multiarch trunc for PPC64.
1399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
1400         multiarch truncf for PPC64.
1401
1402 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1403
1404         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
1405         multiarch implementation.
1406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
1407         file.
1408         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
1409         file.
1410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
1411         file.
1412         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
1413         file.
1414         multiarch llround for PPC64.
1415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
1416         multiarch round for PPC64.
1417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
1418         multiarch roundf for PPC64.
1419
1420 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1421
1422         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
1423         multiarch implementation.
1424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
1425         file.
1426         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
1427         file.
1428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
1429         file.
1430         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
1431         file.
1432         multiarch llround for PPC64.
1433         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
1434         multiarch floor for PPC64.
1435         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
1436         multiarch floorf for PPC64.
1437
1438 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1439
1440         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
1441         multiarch implementation.
1442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
1443         file.
1444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
1445         file.
1446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
1447         file.
1448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
1449         file.
1450         multiarch llround for PPC64.
1451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
1452         multiarch ceil for PPC64.
1453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
1454         multiarch ceilf for PPC64.
1455
1456 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1457
1458         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
1459         multiarch implementation.
1460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
1461         file.
1462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
1463         file.
1464         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
1465         file.
1466         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
1467         multiarch llround for PPC64.
1468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
1469         multiarch lround for PPC64.
1470
1471 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1472
1473         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
1474         multiarch implementation.
1475         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
1476         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
1477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
1478         file.
1479         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
1480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
1481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
1482         multiarch isnan for PPC64.
1483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
1484         multiarch isnanf for PPC64.
1485
1486 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1487
1488         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
1489         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
1490         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
1491         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
1492         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
1493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
1494
1495 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1496
1497         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
1498         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
1499         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1500         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1501
1502 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1503
1504         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
1505         multiarch implementations.
1506         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1507         (__libc_ifunc_impl_list): Likewise.
1508         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
1509         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
1510         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
1511         multiarch stpcpy for PPC64.
1512
1513 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1514
1515         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
1516         multiarch implementations.
1517         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1518         (__libc_ifunc_impl_list): Likewise.
1519         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
1520         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
1521         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
1522         multiarch strcpy for PPC64.
1523
1524 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1525
1526         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
1527         redefine function name.
1528         (_wordcopy_fwd_dest_aligned): Likewise.
1529         (_wordcopy_bwd_aligned): Likewise.
1530         (_wordcopy_bwd_dest_aligned): Likewise.
1531         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
1532         multiarch implementations.
1533         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1534         (__libc_ifunc_impl_list): Likewise.
1535         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
1536         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
1537         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
1538         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
1539         multiarch wcscpy for PPC64.
1540
1541 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1542
1543         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
1544         multiarch implementations.
1545         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1546         (__libc_ifunc_impl_list): Likewise.
1547         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
1548         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
1549         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
1550         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
1551         multiarch wcscpy for PPC64.
1552
1553 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1554
1555         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
1556         multiarch implementations.
1557         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1558         (__libc_ifunc_impl_list): Likewise.
1559         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
1560         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
1561         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
1562         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
1563         multiarch wcsrchr for PPC64.
1564
1565 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1566
1567         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
1568         multiarch implementations.
1569         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1570         (__libc_ifunc_impl_list): Likewise.
1571         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
1572         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
1573         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
1574         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
1575         multiarch wcschr for PPC64.
1576
1577 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1578
1579         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
1580         multiarch implementations.
1581         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1582         (__libc_ifunc_impl_list): Likewise.
1583         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
1584         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
1585         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
1586         multiarch strchrnul for PPC64.
1587
1588 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1589
1590         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
1591         implementations.
1592         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1593         (__libc_ifunc_impl_list): Likewise.
1594         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
1595         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
1596         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
1597         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
1598         strchr for PPC64.
1599
1600 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1601
1602         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
1603         implementations.
1604         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1605         (__libc_ifunc_impl_list): Likewise.
1606         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
1607         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
1608         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
1609         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
1610         strncmp for PPC64.
1611
1612 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1613
1614         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
1615         multiarch implementations.
1616         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1617         (__libc_ifunc_impl_list): Likewise.
1618         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
1619         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
1620         strncasecmp for PPC64.
1621         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
1622         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
1623         multiarch strncasecmp_l for PPC64.
1624
1625 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1626
1627         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
1628         multiarch implementations.
1629         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1630         (__libc_ifunc_impl_list): Likewise.
1631         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
1632         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
1633         multiarch strcasecmp for PPC64.
1634         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
1635         file.
1636         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
1637         multiarch strcasecmp_l for PPC64.
1638
1639 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1640
1641         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
1642         implementations.
1643         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1644         (__libc_ifunc_impl_list): Likewise.
1645         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
1646         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
1647         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
1648         strnlen for PPC64.
1649
1650 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1651
1652         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
1653         implementations.
1654         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1655         (__libc_ifunc_impl_list): Likewise.
1656         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
1657         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
1658         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
1659         strlen for PPC64.
1660
1661 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1662
1663         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
1664         implementations.
1665         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1666         (__libc_ifunc_impl_list): Likewise.
1667         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
1668         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
1669         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
1670         rawmemrchr for PPC64.
1671
1672 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1673
1674         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
1675         implementation.
1676         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1677         (__libc_ifunc_impl_list): Likewise.
1678         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
1679         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
1680         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
1681         memrchr for PPC64.
1682
1683 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1684
1685         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
1686         implementation.
1687         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1688         (__libc_ifunc_impl_list): Likewise.
1689         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
1690         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
1691         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
1692         memchr for PPC64.
1693
1694 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1695
1696         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
1697         implementation.
1698         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1699         (__libc_ifunc_impl_list): Likewise.
1700         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
1701         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
1702         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
1703         mempcpy for PPC64.
1704
1705 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1706
1707         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
1708         avoid cretion of __bzero symbol.
1709         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
1710         Likewise.
1711         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
1712         Likewise.
1713         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
1714         Likewise.
1715         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
1716         multiarch implementations.
1717         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1718         (__libc_ifunc_impl_list): Likewise.
1719         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
1720         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
1721         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
1722         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
1723         bzero for PPC32.
1724         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
1725         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
1726         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
1727         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
1728         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
1729         memset for PPC64.
1730         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
1731
1732 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1733
1734         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
1735         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
1736         implementations.
1737         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1738         (__libc_ifunc_impl_list): Likewise.
1739         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
1740         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
1741         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
1742         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
1743         memcmp for PPC64.
1744
1745 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1746
1747         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
1748         multiarch for POWER/PPC64.
1749         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1750         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
1751         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
1752         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
1753         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
1754         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
1755         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
1756         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
1757         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
1758         memcpy for PPC64.
1759
1760 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1761
1762         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
1763         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
1764         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
1765         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
1766         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
1767         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
1768         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
1769         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
1770         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
1771         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
1772         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
1773         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
1774         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
1775         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
1776         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
1777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
1778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
1779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
1780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
1781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
1782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
1783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
1784
1785 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1786
1787         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
1788
1789 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1790
1791         * benchtests/Makefile (bench): Add exp2 and log2.
1792         (LDLIBS-bench-exp2): Add -lm.
1793         (LDLIBS-bench-log2): Likewise.
1794         * benchtests/exp2-inputs: New inputs file.
1795         * benchtests/log2-inputs: New inputs file.
1796         * benchtests/log-inputs: Add new inputs.
1797         * benchtests/tan-inputs: Likewise.
1798
1799 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1800
1801         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
1802         definition...
1803         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
1804         csloww1, csloww2): ... from here.
1805
1806         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
1807         instead of structures.
1808         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
1809         (POLYNOMIAL): Likewise.
1810         (TAYLOR_SLOW): Likewise.
1811         (__sin): Likewise.
1812         (__cos): Likewise.
1813         (slow1): Likewise.
1814         (slow2): Likewise.
1815         (sloww): Likewise.
1816         (sloww1); Likewise.
1817         (sloww2): Likewise.
1818         (bsloww1): Likewise.
1819         (bsloww2): Likewise.
1820         (cslow2): Likewise.
1821         (csloww): Likewise.
1822         (csloww1): Likewise.
1823         (csloww2): Likewise.
1824
1825 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1826
1827         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
1828         (__malloc_assert, __libc_realloc, __libc_calloc,
1829         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
1830         memcpy and memset.
1831         * malloc/hooks.c (realloc_check): Likewise.
1832
1833 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1834
1835         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
1836         * malloc/arena.c: Remove PER_THREAD conditional.
1837         [!PER_THREAD]: Remove code.
1838         (ptmalloc_unlock_all2): Likewise.
1839         (ptmalloc_init): Likewise.
1840         (_int_new_arena): Likewise.
1841         (arena_get2): Likewise.
1842         * malloc/hooks.c (__malloc_get_state): Likewise.
1843         (__malloc_set_state): Likewise.
1844         * malloc/malloc.c: Likewise.
1845         (struct malloc_state): Likewise.
1846         (struct malloc_par): Likewise.
1847         (__libc_realloc): Likewise.
1848         (__libc_mallopt): Likewise.
1849
1850 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1851
1852         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
1853
1854 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1855
1856         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
1857         macro to a function.  Check for zero perturb_byte.
1858         (_int_malloc, _int_free): Remove zero perturb_byte checks.
1859
1860 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1861
1862         * malloc/malloc.c: (force_reg): Remove.
1863         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
1864         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
1865         force_reg by atomic_forced_read.
1866         * malloc/arena.c (ptmalloc_init): Likewise.
1867         * malloc/hooks.c (top_check): Likewise.
1868
1869 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1870
1871         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1872
1873 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
1874
1875         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1876
1877 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
1878
1879         * math/auto-libm-test-in: Add tests of lgamma.
1880         * math/auto-libm-test-out: Regenerated.
1881         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
1882         (M_LOG_2_SQRT_PIl): Likewise.
1883         (lgamma_test_data): Use AUTO_TESTS_f_f1.
1884         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1885         mpfr_f_f1.
1886         (func_calc_desc): Add mpfr_f_f1 union field.
1887         (ARGS1): New macro.
1888         (ARGS2): Likewise.
1889         (ARGS3): Likewise.
1890         (ARGS4): Likewise.
1891         (RET1): Likewise.
1892         (RET2): Likewise.
1893         (CALC): Likewise.
1894         (FUNC): Likewise.
1895         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
1896         (test_functions): Add lgamma.
1897         (calc_generic_results): Handle mpfr_f_f1.
1898         * sysdeps/i386/fpu/libm-test-ulps: Update.
1899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1900
1901 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1902
1903         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
1904         __mpn_add_n for PowerPC64/POWER7.
1905         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
1906         __mpn_sub_n for PowerPC64/POWER7.
1907
1908 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1909
1910         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
1911         __mpn_addmul_1 for PowerPC64.
1912         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
1913         __mpn_submul_1 for PowerPC64.
1914         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
1915         for PowerPC64.
1916         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
1917         for PowerPC64.
1918
1919 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
1920
1921         [BZ #15089]
1922         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
1923
1924 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1925
1926         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
1927
1928 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1929
1930         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
1931         add multiarch folders.
1932         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
1933         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
1934         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
1935         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
1936         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
1937         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
1938         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
1939         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
1940         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
1941         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
1942         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
1943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
1944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
1945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
1946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
1947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
1948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
1949
1950 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1951
1952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
1953         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
1954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
1955         New file.
1956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
1957         New file.
1958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
1959         multiarch __ieee754_hypot for PowerPC32.
1960         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
1961         New file.
1962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
1963         New file.
1964         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
1965         multiarch __ieee754_hypotf for PowerPC32.
1966
1967 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1968
1969         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
1970         long_double_symbol only if __logbl is defined.
1971         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
1972         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
1973         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
1974         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
1975         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
1976         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
1977         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
1978         path for implementation.
1979         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
1980         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
1981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
1982         logb, and logbl multiarch implementations for PowerPC32.
1983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
1984         file.
1985         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
1986         file.
1987         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
1988         multiarch logb for PowerPC32.
1989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
1990         file.
1991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
1992         file.
1993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
1994         multiarch logbf for PowerPC32.
1995         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
1996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
1997         file.
1998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
1999         multiarch logbl implementation for PowerPC32.
2000
2001 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2002
2003         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
2004         and modff multiarch implementations.
2005         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2006         New file.
2007         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
2008         New file.
2009         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
2010         multiarch modf for PowerPC32.
2011         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2012         New file.
2013         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
2014         New file.
2015         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
2016         multiarch modff for PowerPC32.
2017
2018 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2019
2020         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
2021         and lrintf multiarch implementations.
2022         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
2023         New file.
2024         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
2025         New file.
2026         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
2027         multiarch lrint for PowerPC32.
2028         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
2029         file: multiarch lrintf for PowerPC32.
2030
2031 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2032
2033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
2034         and lroundf multiarch implementations.
2035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2036         New file.
2037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
2038         New file.
2039         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2040         New file.
2041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
2042         multiarch lround for PowerPC32.
2043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
2044         file: multiarch lroundf for PowerPC32.
2045
2046 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2047
2048         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
2049         copysign and copysignf multiarch implementations.
2050         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
2051         New file.
2052         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
2053         New file.
2054         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
2055         file: multiarch copysign for PowerPC32.
2056         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
2057         file: multiarch copysignf for PowerPC32.
2058
2059 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2060
2061         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
2062         and truncf multiarch implementations.
2063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
2064         New file.
2065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
2066         file.
2067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
2068         multiarch trunc for PowerPC32.
2069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
2070         New file.
2071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
2072         New file.
2073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
2074         multiarch truncf for PowerPC32.
2075
2076 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2077
2078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
2079         and roundf multiarch implementations.
2080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
2081         New file.
2082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
2083         file.
2084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
2085         multiarch round for PowerPC32.
2086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
2087         New file.
2088         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
2089         New file.
2090         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
2091         multiarch roundf for PowerPC32.
2092
2093 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2094
2095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
2096         and floorf multiarch implementations.
2097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
2098         New file.
2099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
2100         file.
2101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
2102         multiarch floor for PowerPC32.
2103         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
2104         New file.
2105         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
2106         New file.
2107         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
2108         multiarch floorf for PowerPC32.
2109
2110 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2111
2112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
2113         and ceilf multiarch implementations.
2114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
2115         New file.
2116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
2117         file.
2118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
2119         multiarch ceil for PowerPC32.
2120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
2121         New file.
2122         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
2123         file.
2124         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
2125         multiarch ceilf for PowerPC32.
2126
2127 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2128
2129         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
2130         is defined.
2131         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
2132         FINITEF is defined.
2133         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
2134         and finitef multiarch implementations.
2135         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2136         New file.
2137         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
2138         file.
2139         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
2140         multiarch finite for PowerPC32.
2141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2142         New file.
2143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
2144         file: multiarch finitef for PowerPC32.
2145
2146 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2147
2148         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
2149         and isinff multiarch implementations.
2150         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
2151         file.
2152         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
2153         file.
2154         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
2155         multiarch isinf for PowerPC32.
2156         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2157         New file.
2158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
2159         multiarch isinff for PowerPC32.
2160
2161 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2162
2163         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
2164         alias when __isnan is defined.
2165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
2166         and isnanf multiarch implementations.
2167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
2168         file.
2169         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
2170         file.
2171         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
2172         file.
2173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
2174         file.
2175         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
2176         multiarch isnan for PowerPC32.
2177         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2178         New file.
2179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
2180         New file.
2181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
2182         multiarch isnanf for PowerPC32.
2183
2184 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2185
2186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
2187         and sqrtf multiarch implementations.
2188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
2189         file.
2190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
2191         file.
2192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
2193         multiarch sqrt for PowerPC32.
2194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
2195         file.
2196         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
2197         file.
2198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
2199         multiarch sqrtf for PowerPC32.
2200
2201 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2202
2203         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
2204         and llroundf multiarch implementations.
2205         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2206         New file.
2207         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2208         New file.
2209         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2210         New file.
2211         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
2212         file: multiarch llround for PowerPC32.
2213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
2214         file: multiarch llroundf for PowerPC32.
2215
2216 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2217
2218         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
2219         multiarch PowerPC32 fpu implementations.
2220         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2221         New file.
2222         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2223         New file.
2224         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
2225         multiarch llrint for PowerPC32.
2226         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2227         New file.
2228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2229         New file.
2230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
2231         file.
2232
2233 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2234
2235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
2236
2237 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2238
2239         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
2240         file.
2241         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
2242         file.
2243         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
2244         file.
2245         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
2246         multiarch wordcopy for PPC32.
2247         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2248         wordcopy objects.
2249         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2250         (__libc_ifunc_impl_list): Likewise.
2251         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
2252         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
2253         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
2254         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
2255         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
2256         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
2257
2258 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2259
2260         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
2261         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
2262         file.
2263         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
2264         file.
2265         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
2266         file.
2267         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
2268         multiarch wcscpy for PPC32.
2269         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2270         multiarch objects.
2271         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2272         (__libc_ifunc_impl_list): Likewise.
2273         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2274         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2275         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
2276         sysdeps/powerpc/power6/wcscpy.c.
2277
2278 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2279
2280         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
2281         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
2282         file.
2283         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
2284         file.
2285         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
2286         file.
2287         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
2288         multiarch wcsrchr for PPC32.
2289         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2290         multiarch objects.
2291         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2292         (__libc_ifunc_impl_list): Likewise.
2293         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2294         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2295         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
2296         sysdeps/powerpc/power6/wcsrchr.c.
2297
2298 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2299
2300         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
2301         file.
2302         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
2303         file.
2304         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
2305         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
2306         multiarch wcschr for PPc32.
2307         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2308         multiarch objects.
2309         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2310         (__libc_ifunc_impl_list): Likewise.
2311         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
2312         * sysdeps/powerpc/power6/wcschr.c: ... to here.
2313         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
2314         sysdeps/powerpc/power6/wcschr.c.
2315
2316 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2317
2318         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
2319         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
2320         file.
2321         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
2322         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
2323         file: multiarch strchr for PPC32.
2324         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
2325         multiarch objects.
2326         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2327         (__libc_ifunc_impl_list): Likewise.
2328
2329 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2330
2331         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
2332         name.
2333         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
2334         file.
2335         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
2336         file.
2337         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
2338         multiarch strchrnul for PPC32.
2339         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
2340         multiarch objects.
2341         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2342         (__libc_ifunc_impl_list): Likewise.
2343
2344 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2345
2346         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
2347         file.
2348         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
2349         multiarch strncasecmp for PPC32.
2350         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
2351         file.
2352         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
2353         multiarch strncasecmp_l for PPC32.
2354         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
2355         strncasecmp multiarch objects.
2356         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2357         (__libc_ifunc_impl_list): Likewise.
2358
2359 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2360
2361         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
2362         file.
2363         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
2364         multiarch strncasecmp for PPC32.
2365         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
2366         New file.
2367         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
2368         multiarch strcasecmp_l for PPC32.
2369         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
2370         multiarch objects.
2371         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2372         (__libc_ifunc_impl_list): Likewise.
2373
2374 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2375
2376         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
2377         file.
2378         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
2379         file.
2380         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
2381         multiarch strncmp for PPC32.
2382         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
2383         multiarch objects.
2384         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2385         (__libc_ifunc_impl_list): Likewise.
2386
2387 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2388
2389         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
2390         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
2391         file.
2392         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
2393         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
2394         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
2395         multiarch objects.
2396         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2397         (__libc_ifunc_impl_list): Likewise.
2398
2399 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2400
2401         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
2402         file.
2403         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
2404         file.
2405         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
2406         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
2407         multiarch objects.
2408         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2409         (__libc_ifunc_impl_list): Likewise.
2410
2411 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2412
2413         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
2414         file.
2415         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
2416         file.
2417         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
2418         multiarch rawmemchr for PPC32.
2419         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
2420         multiarch objects.
2421         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2422         (__libc_ifunc_impl_list): Likewise.
2423
2424 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2425
2426         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
2427         file.
2428         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
2429         file.
2430         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
2431         file: memrchr multiarch for PPC32.
2432         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
2433         multiarch objects.
2434         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2435         (__libc_ifunc_impl_list): Likewise.
2436
2437 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2438
2439         * string/memchr.c (__memchr): Using macro to redefine symbol name.
2440         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
2441         file.
2442         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
2443         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
2444         multiarch memchr for PPC32.
2445         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
2446         multiarch objects.
2447         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2448         (__libc_ifunc_impl_list): Likewise.
2449
2450 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2451
2452         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
2453         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
2454         file.
2455         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
2456         file.
2457         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
2458         file: multiarch mempcpy for PPC32.
2459         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
2460         multiarch objects.
2461         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2462         (__libc_ifunc_impl_list): Likewise.
2463
2464 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2465
2466         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
2467         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
2468         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
2469         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
2470         multiarch bzero for PPC32.
2471         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
2472         file.
2473         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
2474         file.
2475         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
2476         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
2477         file: multiarch memset for PPC32.
2478         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
2479         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
2480         memset multiarch objects.
2481         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2482         (__libc_ifunc_impl_list): Likewise.
2483
2484 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2485
2486         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
2487         file.
2488         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
2489         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
2490         memcmp for PPC32.
2491         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
2492         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
2493         multiarch objects.
2494         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2495         (__libc_ifunc_impl_list): Likewise.
2496
2497 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2498
2499         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
2500         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
2501         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
2502         file.
2503         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
2504         file.
2505         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
2506         file.
2507         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
2508         multiarch memcpy for PPC32.
2509         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
2510         multiarch objects.
2511         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2512         (__libc_ifunc_impl_list): Likewise.
2513
2514 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2515
2516         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
2517         support multiarch for POWER/PPC32.
2518         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2519         Likewise.
2520         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
2521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
2522         Implies file to make multiarch folder appers before the fpu and
2523         default folder for power4 configuration.
2524
2525 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2526
2527         * scripts/bench.pl: Append volatile keyword to type.
2528
2529 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2530
2531         * sysdeps/sh/sotruss-lib.c: New file.
2532         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
2533
2534 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2535
2536         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2537
2538 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
2539
2540         [BZ #6810]
2541         * math/w_tgamma.c: Include <errno.h>.
2542         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
2543         * math/w_tgammaf.c: Include <errno.h>.
2544         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
2545         * math/w_tgammal.c: Include <errno.h>.
2546         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
2547         * math/auto-libm-test-in: Do not allow missing errno on tgamma
2548         underflow.  Add more tgamma tests.
2549         * math/auto-libm-test-out: Regenerated.
2550         * sysdeps/i386/fpu/libm-test-ulps: Update.
2551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2552
2553         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
2554         sin, sinh, tan, tanh, tgamma, y0 and y1.
2555         * math/auto-libm-test-out: Regenerated.
2556         * math/libm-test.inc (TEST_COND_x86_64): New macro.
2557         (TEST_COND_x86): Likewise.
2558         (M_E2l): Remove macro.
2559         (M_E3l): Likewise.
2560         (M_2_SQRT_PIl): Likewise.
2561         (M_SQRT_PIl): Likewise.
2562         (M_1_DIV_El): Likewise.
2563         (log_test_data): Use AUTO_TESTS_f_f.
2564         (log10_test_data): Likewise.
2565         (log1p_test_data): Likewise.
2566         (log2_test_data): Likewise.
2567         (sin_test_data): Likewise.
2568         (sin_tonearest_test_data): Likewise.
2569         (sin_towardzero_test_data): Likewise.
2570         (sin_downward_test_data): Likewise.
2571         (sin_upward_test_data): Likewise.
2572         (sinh_test_data): Likewise.
2573         (sinh_tonearest_test_data): Likewise.
2574         (sinh_towardzero_test_data): Likewise.
2575         (sinh_downward_test_data): Likewise.
2576         (sinh_upward_test_data): Likewise.
2577         (tan_test_data): Likewise.
2578         (tan_tonearest_test_data): Likewise.
2579         (tan_towardzero_test_data): Likewise.
2580         (tan_downward_test_data): Likewise.
2581         (tan_upward_test_data): Likewise.
2582         (tanh_test_data): Likewise.
2583         (tgamma_test_data): Likewise.
2584         (y0_test_data): Likewise.
2585         (y1_test_data): Likewise.
2586         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
2587         (special_real_inputs): Add pi/4.
2588         * sysdeps/i386/fpu/libm-test-ulps: Update.
2589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2590
2591 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2592
2593         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
2594         "longjmp_target" static probes.
2595         (__longjmp): Rename to __longjmp_symbol.
2596         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2597         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
2598         on which longjmp to generate.
2599         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2600         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
2601         probe.
2602         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2603         (__sigjmp_save): Rename to __sigjmp_save_symbol.
2604         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2605         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
2606         and __sigjmp_save_symbol based on which sigsetjmp to generated.
2607         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
2608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
2609         __longjmp_symbol based on which __longjmp to generate.
2610         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
2611         probe.
2612         (setjmp): Rename to setjmp_symbol.
2613         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2614         (_setjmp): Rename to _setjmp_symbol.
2615         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2616         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
2617         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
2618         which setjmp to generate.
2619         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
2620         "longjmp_target" static probes.
2621
2622 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2623
2624         * benchtests/README: Add note about output arguments.
2625         * benchtests/bench-sincos.c: Remove file.
2626         * benchtests/sincos-inputs: New file.
2627         * scripts/bench.pl: Identify output arguments and define
2628         static variables for them.
2629
2630         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
2631
2632         [BZ #15941]
2633         * Makefile (INSTALL): Add install-plain.texi as the primary
2634         dependency.
2635         * manual/install-plain.texi: New file.
2636         * manual/install.texi: Include node directive only for
2637         non-plaintext output.
2638
2639 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2640
2641         * stdlib/longlong.h: Update from GCC.
2642
2643         [BZ #6807]
2644         [BZ #15901]
2645         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
2646         * math/w_j0f.c (y0f): Likewise.
2647         * math/w_j0l.c (__y0l): Likewise.
2648         * math/w_j1.c (y1): Likewise.
2649         * math/w_j1f.c (y1f): Likewise.
2650         * math/w_j1l.c (__y1l): Likewise
2651         * math/w_jn.c (yn): Likewise.
2652         * math/w_jnf.c (ynf): Likewise.
2653         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
2654         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
2655         value for Bessel function domain errors outside _SVID_ mode.
2656         Adjust sign of return value for yn (negative integer, 0).
2657         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
2658         by zero in return for negative x and set sign appropriately for
2659         negative n.
2660         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
2661         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2662         * math/libm-test.inc (y0_test_data): Add more tests and adjust
2663         expectations in error cases.
2664         (y1_test_data): Likewise.
2665         (yn_test_data): Likewise.
2666         * sysdeps/i386/fpu/libm-test-ulps: Update.
2667         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2668
2669 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2670
2671         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
2672         "64" to "64-v1".  Add "64-v2".
2673         (abi-64-options): Rename to ...
2674         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
2675         (abi-64-condition): Rename to ...
2676         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
2677         (abi-64-ld-soname): Rename to ...
2678         (abi-64-v1-ld-soname): ... this.
2679         (abi-64-v2-options): Define.
2680         (abi-64-v2-condition): Likewise.
2681         (abi-64-v2-ld-soname): Likewise.
2682         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
2683         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
2684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
2685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
2686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
2687
2688 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2689             Alan Modra  <amodra@gmail.com>
2690
2691         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
2692         New versions for use with the ELFv2 ABI.
2693         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
2694         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
2695         declaration.
2696         (struct La_ppc64v2_retval): Likewise.
2697         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
2698         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
2699         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
2700         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
2701         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
2702         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
2703         Do not save or restore CR.
2704         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
2705         (_dl_profile_resolve): Do no save or restore CR.  Support extended
2706         return values for ELFv2 ABI.  Fix location of FPR return registers.
2707         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
2708         updated values for _CALL_ELF == 2.
2709         (La_regs, La_retval, int_retval): Likewise.
2710
2711 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2712
2713         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
2714         (FRAME_MIN_SIZE_PARM): Likewise.
2715         (FRAME_BACKCHAIN): Likewise.
2716         (FRAME_CR_SAVE): Likewise.
2717         (FRAME_LR_SAVE): Likewise.
2718         (FRAME_TOC_SAVE): Likewise.
2719         (FRAME_PARM_SAVE): Likewise.
2720         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2721         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2722         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2723         (call_mcount_parm_offset): New macro.
2724         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
2725         (PROF): Use symbolic stack frame offsets.
2726         (TAIL_CALL_SYSCALL_ERROR): Likewise.
2727         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
2728         Redefine in terms of FRAME_MIN_SIZE.
2729         (_dl_runtime_resolve): Use symbolic stack frame offsets.
2730         (_dl_profile_resolve): Likewise.  Update comment.
2731         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
2732         symbols stack frame offsets.
2733         (__sigsetjmp): Likewise.
2734         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2735         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
2736         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
2737         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
2738
2739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
2740         (FRAME_BACKCHAIN): Remove.
2741         (FRAME_CR_SAVE): Likewise.
2742         (FRAME_LR_SAVE): Likewise.
2743         (FRAME_COMPILER_DW): Likewise.
2744         (FRAME_LINKER_DW): Likewise.
2745         (FRAME_TOC_SAVE): Likewise.
2746         (FRAME_PARM_SAVE): Likewise.
2747         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2748         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2749         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
2751         (CHECK_SP): Use symbolic stack frame offsets.
2752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
2753         zone" instead of caller's parameter save area for temp storage.
2754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2755         Likewise.  Also, use symbolic stack frame offsets.
2756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
2757         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
2758         our own stack frame instead of the caller's.
2759         (__socket): Use symbolic stack frame offsets.
2760
2761 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2762             Alan Modra  <amodra@gmail.com>
2763
2764         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
2765         Define.
2766         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
2767         PPC64_LOCAL_ENTRY_OFFSET): Define.
2768         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
2769         New function.
2770         (elf_machine_fixup_plt): Call it.
2771         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
2772         reloc arguments.
2773         (elf_machine_rela): Update call to elf_machine_plt_conflict.
2774         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2775         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
2776         r2 before calling target.
2777
2778 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2779             Alan Modra  <amodra@gmail.com>
2780
2781         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
2782         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
2783         versions of macros to support ELFv2 ABI.
2784         (LOCALENTRY): New macro.
2785         (ENTRY, EALIGN): Use it.
2786         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
2787         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
2788         fall through into ENTRY entry point.
2789         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
2790         Only define if _CALL_ELF != 2.
2791
2792         (elf_machine_matches_host): Verify ABI version matches.
2793         (RTLD_START): Use LOCALENTRY.
2794         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
2795         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
2796         (PLT_ENTRY_WORDS): New macro.
2797         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
2798         (elf_machine_runtime_setup): Support ELFv2 ABI.
2799         (elf_machine_fixup_plt): Likewise.
2800         (elf_machine_plt_conflict): Likewise.
2801         (resolve_ifunc): Likewise.
2802         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
2803         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2804         Likewise.
2805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2806         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
2807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2808         (makecontext): Support ELFv2 ABI.
2809         * elf/elf.h (EF_PPC64_ABI): Define.
2810
2811 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2812
2813         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
2814         New assembler macro.
2815         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
2816         [ASSEMBLER] (ENTRY): ... but instead here ...
2817         [ASSEMBLER] (EALIGN): ... and here.
2818         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
2819         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
2820         [!ASSEMBLER] (ENTRY_2): Use it.
2821         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
2822         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
2823         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2824         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
2825         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
2826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
2827         Use PPC64_LOAD_FUNCPTR.
2828
2829 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2830
2831         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
2832
2833 2013-12-04  Alan Modra  <amodra@gmail.com>
2834
2835         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
2836         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
2837         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
2838         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
2839
2840         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
2841         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
2842         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
2843         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
2844         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
2845         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
2846
2847 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2848
2849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2850         (__makecontext): Fix incorrect CFI when backtracing out of
2851         context created via makecontext.
2852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
2853         (__setcontext): Fix incorrect CFI during switch to new context.
2854         (__novec_setcontext): Likewise.
2855
2856 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2857
2858         [BZ #4772]
2859         * time/strptime_l.c (__strptime_internal): Allow modifiers
2860         in strptime.
2861         * time/tst-strptime.c (day_tests): Add testcase.
2862
2863
2864 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2865
2866         * scripts/bench.pl: Skip over blank lines.
2867
2868 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2869
2870         [BZ #926]
2871         * manual/time.texi (Calendar Time): Clarify what timezone functions
2872         use.
2873
2874 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2875
2876         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2877
2878 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2879
2880         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
2881         implementation.
2882         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
2883         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
2884         * debug/memset_chk.c (__memset_chk): Likewise.
2885         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
2886         * debug/strncpy_chk.c: Likewise.
2887
2888 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2889
2890         [BZ #15268]
2891         [BZ #15425]
2892         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
2893         (__ieee754_exp): For possibly underflowing results, check size of
2894         result and force underflow exception if required.
2895         * math/auto-libm-test-in: Add more tests of exp.
2896         * math/auto-libm-test-out: Regenerated.
2897         * sysdeps/i386/fpu/libm-test-ulps: Update.
2898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2899
2900         [BZ #16283]
2901         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
2902         * math/w_exp2f.c (__exp2f): Likewise.
2903         * math/w_exp2l.c (__exp2l): Likewise.
2904         * math/auto-libm-test-in: Do not allow missing errno on exp2
2905         underflow.
2906         * math/auto-libm-test-out: Regenerated.
2907
2908 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
2909
2910         [BZ #16274]
2911         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
2912         handle filename validation.
2913         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
2914         (do_open): Delete.
2915
2916 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2917
2918         [BZ #6786]
2919         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
2920         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
2921         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
2922         <float.h>.
2923         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
2924         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
2925         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2926         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
2927         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2928         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
2929         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
2930         * math/auto-libm-test-in: Don't allow missing errno from erfc.
2931         Add more erfc tests.
2932         * math/auto-libm-test-out: Regenerated.
2933         * sysdeps/i386/fpu/libm-test-ulps: Update.
2934         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2935
2936         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
2937         exp2, expm1, j0 and j1.
2938         * math/auto-libm-test-out: Regenerated.
2939         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
2940         (erfc_test_data): Likewise.
2941         (exp_test_data): Likewise.
2942         (exp_tonearest_test_data): Likewise.
2943         (exp_towardzero_test_data): Likewise.
2944         (exp_downward_test_data): Likewise.
2945         (exp_upward_test_data): Likewise.
2946         (exp10_test_data): Likewise.
2947         (exp2_test_data): Likewise.
2948         (expm1_test_data): Likewise.
2949         (j0_test_data): Likewise.
2950         (j1_test_data): Likewise.
2951         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
2952         (input_flag_type): Add flag_xfail_rounding.
2953         (input_flags): Add xfail-rounding.
2954         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
2955         (output_for_one_input_case): Handle flag_xfail_rounding.
2956         * sysdeps/i386/fpu/libm-test-ulps: Update.
2957         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2958
2959 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
2960
2961         [BZ #16289]
2962         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
2963         division by 0.
2964
2965 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2966
2967         [BZ #16195]
2968         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2969         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
2970         (STAP_PROBE0): New macro.
2971         (STAP_PROBE1): Likewise.
2972         (STAP_PROBE2): Likewise.
2973         (STAP_PROBE3): Likewise.
2974         (STAP_PROBE4): Likewise.
2975
2976 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
2977
2978         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
2979
2980 2013-12-02  Steve Ellcey  <sellcey@mips.com>
2981
2982         * benchtests/Makefile (bench): Add sqrt.
2983         (LDLIBS-bench-sqrt): New.
2984         * benchtests/sqrt-input: New.
2985
2986 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
2987
2988         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
2989         (GAIH_EAI): Likewise.
2990         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
2991         (gaih_inet): Likewise.
2992         (getaddrinfo): Don't use GAIH_EAI.
2993
2994         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
2995         (struct gaih): Remove definition.
2996
2997 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2998
2999         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
3000         Use HERRNOP directly.
3001
3002 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3003
3004         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3005
3006 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
3007
3008         * math/gen-auto-libm-tests.c (test_functions): Add more
3009         single-argument functions.
3010         (special_fill_pi_2): New function.
3011         (special_fill_minus_pi_2): Likewise.
3012         (special_fill_pi_6): Likewise.
3013         (special_fill_minus_pi_6): Likewise.
3014         (special_fill_pi_3): Likewise.
3015         (special_fill_2pi_3): Likewise.
3016         (special_fill_e): Likewise.
3017         (special_fill_1_e): Likewise.
3018         (special_fill_e_minus_1): Likewise.
3019         (special_real_inputs): Add more special inputs.
3020         (output_for_one_input_case): Do not require ERANGE on underflow to
3021         zero if round-to-nearest result does not underflow to zero, unless
3022         exact results required.
3023         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
3024         atan, atanh, cbrt, cos and cosh.
3025         * math/auto-libm-test-out: Regenerated.
3026         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
3027         (acos_tonearest_test_data): Likewise.
3028         (acos_towardzero_test_data): Likewise.
3029         (acos_downward_test_data): Likewise.
3030         (acos_upward_test_data): Likewise.
3031         (acosh_test_data): Likewise.
3032         (asin_test_data): Likewise.
3033         (asin_tonearest_test_data): Likewise.
3034         (asin_towardzero_test_data): Likewise.
3035         (asin_upward_test_data): Likewise.
3036         (asinh_test_data): Likewise.
3037         (atan_test_data): Likewise.
3038         (atanh_test_data): Likewise.
3039         (cbrt_test_data): Likewise.
3040         (cos_test_data): Likewise.
3041         (cos_tonearest_test_data): Likewise.
3042         (cos_towardzero_test_data): Likewise.
3043         (cos_downward_test_data): Likewise.
3044         (cos_upward_test_data): Likewise.
3045         (cosh_test_data): Likewise.
3046         (cosh_tonearest_test_data): Likewise.
3047         (cosh_towardzero_test_data): Likewise.
3048         (cosh_downward_test_data): Likewise.
3049         (cosh_upward_test_data): Likewise.
3050         * sysdeps/i386/fpu/libm-test-ulps: Update.
3051         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3052
3053 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
3054
3055         [BZ #6787]
3056         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
3057         * math/w_exp10f.c (__exp10f): Likewise.
3058         * math/w_exp10l.c (__exp10l): Likewise.
3059         * math/libm-test.inc (exp10_test_data): Add more tests and expect
3060         errno settings in existing tests.
3061
3062         [BZ #14032]
3063         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
3064         precision control set to double precision.
3065         * sysdeps/i386/fpu/w_sqrt.c: New file.
3066         * math/auto-libm-test-in: Add more tests.
3067         * math/auto-libm-test-out: Update.
3068
3069         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
3070         (sqrt_test_tonearest): New function.
3071         (sqrt_towardzero_test_data): New variable.
3072         (sqrt_test_towardzero): New function.
3073         (sqrt_downward_test_data): New variable.
3074         (sqrt_test_downward): New function.
3075         (sqrt_upward_test_data): New variable.
3076         (sqrt_test_upward): New function.
3077         (main): Call the new functions.
3078
3079         * math/gen-auto-libm-tests.c: New file.
3080         * math/auto-libm-test-in: Likewise.
3081         * math/auto-libm-test-out: New generated file.
3082         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
3083         variables.
3084         (%beautify): Add generated representations of zero.
3085         (top level): Set $auto_input and call parse_auto_input.
3086         (beautify): Remove trailing "f" from hex float constants.
3087         (parse_args): Handle XFAIL_TEST.
3088         (convert_condition): New function.
3089         (or_value): Likewise.
3090         (or_cond_value): Likewise.
3091         (generate_testfile): Handle AUTO_TESTS_* lines.
3092         (parse_auto_input): New function.
3093         * math/libm-test.inc (XFAIL_TEST): New macro.
3094         (ERRNO_UNCHANGED): Update value.
3095         (ERRNO_EDOM): Likewise.
3096         (ERRNO_ERANGE): Likewise.
3097         (IGNORE_RESULT): Likewise.
3098         (TEST_COND_flt_32): New macro.
3099         (TEST_COND_dbl_64): Likewise.
3100         (TEST_COND_ldbl_96_intel): Likewise.
3101         (TEST_COND_ldbl_96_m68k): Likewise.
3102         (TEST_COND_ldbl_128): Likewise.
3103         (TEST_COND_ldbl_128ibm): Likewise.
3104         (TEST_COND_long32): Likewise.
3105         (TEST_COND_long64): Likewise.
3106         (TEST_COND_before_rounding): Likewise.
3107         (TEST_COND_after_rounding): Likewise.
3108         (enable_test): Handle XFAIL_TEST flag.
3109         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
3110         with finite results.
3111         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
3112         auto-libm-test-out.
3113
3114 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3115             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3116
3117         [BZ #16214]
3118         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
3119         __tls_get_addr_internal instead of __tls_get_offset in order to
3120         avoid GOT pointer dependency.  Make rtld export
3121         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
3122         __tls_get_addr since we are a __tls_get_offset platform.
3123         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
3124         GOT pointer being set up before.
3125         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
3126
3127 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
3128
3129         * manual/math.texi (Errors in Math Functions): Document accuracy
3130         goals.
3131
3132         [BZ #15004]
3133         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
3134         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
3135         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3136         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3137         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3138         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3139         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3140         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3141         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3142         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3143         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3144         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3145         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3146         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3147         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3148         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3149
3150         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
3151         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
3152         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
3153         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
3154         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
3155         Likewise.
3156         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
3157         Likewise.
3158         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
3159         Likewise.
3160         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
3161         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
3162         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
3163         atomic-feupdateenv and flt-rounds.
3164         * sysdeps/powerpc/nofpu/Versions (libc): Add
3165         __atomic_feholdexcept, __atomic_feclearexcept,
3166         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
3167         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
3168         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
3169         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
3170         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
3171         here.
3172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
3173         Update.
3174
3175         * manual/arith.texi (FP Exceptions): Document that exceptions may
3176         not be raised when matherr is used.
3177         (Math Error Reporting): Document overflow in directed rounding
3178         modes.  Document that errno may not be set when finite values are
3179         returned on overflow.  Document intent to set errno on underflow
3180         only for underflow to zero.
3181
3182         [BZ #16271]
3183         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
3184         round-to-nearest then adjust result for other rounding modes.
3185         * include/fenv.h (fegetround): Use libm_hidden_proto.
3186         * math/fegetround.c (fegetround): Use libm_hidden_def.
3187         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
3188         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
3189         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3190         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
3191         Likewise.
3192         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
3193         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3194         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
3195         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
3196
3197 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3198
3199         [BZ #16077]
3200         * nss/Versions (libnss_files): Add
3201         _nss_files_gethostbyname3_r.
3202         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
3203         New function.
3204         (HOST_DB_LOOKUP): Remove macro.
3205         (_nss_files_gethostbyname_r): Implement function without the
3206         HOST_DB_LOOKUP macro.
3207         (_nss_files_gethostbyname2_r): Likewise.
3208
3209 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
3210
3211         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
3212
3213 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
3214
3215         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
3216         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
3217         warning.
3218
3219 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3220
3221         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
3222         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
3223         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3224         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
3225         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
3226         __fe_nomask_env_priv and attribute_hidden.
3227         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
3228         (libc_feupdateenv_test_ppc): Likewise.
3229         (libc_feresetround_ppc): Likewise.
3230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3231         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
3232         compat_symbol macro.
3233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3234         (__fe_nomask_env): Likewise.
3235         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
3236
3237 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3238
3239         * string/Makefile: Remove ifunc tests.
3240         * string/test-string.h: Define TEST_IFUNC.
3241         * string/test-bcopy-ifunc.c: Remove.
3242         * string/test-bzero-ifunc.c: Likewise.
3243         * string/test-memccpy-ifunc.c: Likewise.
3244         * string/test-memchr-ifunc.c: Likewise.
3245         * string/test-memcmp-ifunc.c: Likewise.
3246         * string/test-memcpy-ifunc.c: Likewise.
3247         * string/test-memmem-ifunc.c: Likewise.
3248         * string/test-memmove-ifunc.c: Likewise.
3249         * string/test-mempcpy-ifunc.c: Likewise.
3250         * string/test-memrchr-ifunc.c: Likewise.
3251         * string/test-memset-ifunc.c: Likewise.
3252         * string/test-rawmemchr-ifunc.c: Likewise.
3253         * string/test-stpcpy-ifunc.c: Likewise.
3254         * string/test-stpncpy-ifunc.c: Likewise.
3255         * string/test-strcasecmp-ifunc.c: Likewise.
3256         * string/test-strcasestr-ifunc.c: Likewise.
3257         * string/test-strcat-ifunc.c: Likewise.
3258         * string/test-strchr-ifunc.c: Likewise.
3259         * string/test-strchrnul-ifunc.c: Likewise.
3260         * string/test-strcmp-ifunc.c: Likewise.
3261         * string/test-strcpy-ifunc.c: Likewise.
3262         * string/test-strcspn-ifunc.c: Likewise.
3263         * string/test-strlen-ifunc.c: Likewise.
3264         * string/test-strncasecmp-ifunc.c: Likewise.
3265         * string/test-strncat-ifunc.c: Likewise.
3266         * string/test-strncmp-ifunc.c: Likewise.
3267         * string/test-strncpy-ifunc.c: Likewise.
3268         * string/test-strnlen-ifunc.c: Likewise.
3269         * string/test-strpbrk-ifunc.c: Likewise.
3270         * string/test-strrchr-ifunc.c: Likewise.
3271         * string/test-strspn-ifunc.c: Likewise.
3272         * string/test-strstr-ifunc.c: Likewise.
3273
3274 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3275
3276         * benchtests/Makefile: Remove ifunc tests.
3277         * benchtests/bench-string.h: Define TEST_IFUNC.
3278         * benchtests/bench-bcopy-ifunc.c: Remove.
3279         * benchtests/bench-bzero-ifunc.c: Likewise.
3280         * benchtests/bench-memccpy-ifunc.c: Likewise.
3281         * benchtests/bench-memchr-ifunc.c: Likewise.
3282         * benchtests/bench-memcmp-ifunc.c: Likewise.
3283         * benchtests/bench-memcpy-ifunc.c: Likewise.
3284         * benchtests/bench-memmem-ifunc.c: Likewise.
3285         * benchtests/bench-memmove-ifunc.c: Likewise.
3286         * benchtests/bench-mempcpy-ifunc.c: Likewise.
3287         * benchtests/bench-memrchr-ifunc.c: Likewise.
3288         * benchtests/bench-memset-ifunc.c: Likewise.
3289         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
3290         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
3291         * benchtests/bench-stpcpy-ifunc.c: Likewise.
3292         * benchtests/bench-stpncpy-ifunc.c: Likewise.
3293         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
3294         * benchtests/bench-strcasestr-ifunc.c: Likewise.
3295         * benchtests/bench-strcat-ifunc.c: Likewise.
3296         * benchtests/bench-strchr-ifunc.c: Likewise.
3297         * benchtests/bench-strchrnul-ifunc.c: Likewise.
3298         * benchtests/bench-strcmp-ifunc.c: Likewise.
3299         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
3300         * benchtests/bench-strcpy-ifunc.c: Likewise.
3301         * benchtests/bench-strcspn-ifunc.c: Likewise.
3302         * benchtests/bench-strlen-ifunc.c: Likewise.
3303         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
3304         * benchtests/bench-strncat-ifunc.c: Likewise.
3305         * benchtests/bench-strncmp-ifunc.c: Likewise.
3306         * benchtests/bench-strncpy-ifunc.c: Likewise.
3307         * benchtests/bench-strnlen-ifunc.c: Likewise.
3308         * benchtests/bench-strpbrk-ifunc.c: Likewise.
3309         * benchtests/bench-strrchr-ifunc.c: Likewise.
3310         * benchtests/bench-strsep-ifunc.c: Likewise.
3311         * benchtests/bench-strspn-ifunc.c: Likewise.
3312         * benchtests/bench-strstr-ifunc.c: Likewise.
3313
3314 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3315
3316         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
3317
3318 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3319
3320         * resolv/netdb.h: Use __glibc_reserved instead __unused.
3321         * rt/aio.h: Likewise.
3322         * sysdeps/gnu/bits/utmp.h: Likewise.
3323         * sysdeps/gnu/bits/utmpx.h: Likewise.
3324         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
3325         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
3326         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
3327         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
3328         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3329         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3330         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
3331         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
3332         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
3333         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
3334         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
3335         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3336         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
3338         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3339         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
3340         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
3341         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
3342         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3343         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3344         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
3345         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
3346         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
3347         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
3348         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3349         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3350         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
3351         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
3352         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
3353         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3354         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3355         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
3356         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
3357         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
3358         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3359         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
3360         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
3361         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
3362         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
3363         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
3364         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
3365         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
3366
3367 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
3368
3369         [BZ #16245]
3370         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
3371         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
3372
3373 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
3374
3375         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
3376         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
3377         Likewise.
3378
3379 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3380
3381         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3382         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
3383         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
3384         (__fesetround): Remove define.
3385         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
3386         rounding and exceptions handling.
3387         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
3388         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
3389         (__fe_nomask_env): Likewise.
3390         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
3391         __fegetround instead of fegetround.
3392         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
3393         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
3394
3395 2013-11-21  Roland McGrath  <roland@hack.frob.com>
3396
3397         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
3398         it's there.
3399
3400         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
3401
3402 2013-11-21  Meador Inge  <meadori@codesourcery.com>
3403
3404         [BZ #11157]
3405         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
3406         (encrypt_r): Likewise.
3407         * malloc/obstack.h (obstack_free): Likewise.
3408         * posix/unistd.h (encrypt): Likewise.
3409
3410 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
3411
3412         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
3413         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
3414         DL_CALL_DT_FINI() that call the functions directly.
3415         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
3416         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
3417         * elf/dl-fini.c: Likewise.
3418
3419 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
3420
3421         * malloc/hooks.c (memalign_check): Add alignment rounding.
3422         * malloc/malloc.c (_mid_memalign): New function.
3423         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
3424         Implement by calling _mid_memalign.
3425         * manual/probes.texi (Memory Allocation Probes): Remove
3426         memory_valloc_retry and memory_pvalloc_retry.
3427
3428 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3429
3430         * locale/programs/locarchive.c (open_archive): Add const
3431         qualifier to ARCHIVEFNAME and copy default fname to
3432         DEFAULT_FNAME.
3433
3434         [BZ #15601]
3435         * libio/tst-widetext.input: Rename Oriya to Odia.
3436         * locale/iso-639.def: Likewise.
3437
3438         * manual/probes.texi (Mathematical Function Probes): Add
3439         documentation for sin, cos, asin and acos probes.
3440         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
3441         (__sin32): Add slowasin probe.
3442         (__cos32): Add slowacos probe.
3443         (__mpsin): Add slowsin probe.
3444         (__mpcos): Add slowcos probe.
3445
3446 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3447
3448         [BZ #15483]
3449         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
3450         thread-local __sim_exceptions_thread and global
3451         __sim_exceptions_global.
3452         (__sim_disabled_exceptions): Change to thread-local
3453         __sim_disabled_exceptions_thread and global
3454         __sim_disabled_exceptions_global.
3455         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3456         and global __sim_round_mode_global.
3457         (__simulate_exceptions): Use thread-local floating-point state and
3458         set global state from it as needed.
3459         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
3460         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
3461         __sim_round_mode_thread.
3462         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
3463         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
3464         and global __sim_exceptions_global.
3465         (__sim_disabled_exceptions): Change to thread-local
3466         __sim_disabled_exceptions_thread and global
3467         __sim_disabled_exceptions_global.
3468         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3469         and global __sim_round_mode_global.
3470         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
3471         (SIM_SET_GLOBAL): Likewise.
3472         * sysdeps/powerpc/soft-fp/sfp-machine.h
3473         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
3474         __sim_round_mode_thread.
3475         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
3476         __sim_disabled_exceptions_thread.
3477         (__sim_exceptions): Change to __sim_exceptions_thread.
3478         (__sim_disabled_exceptions): Change to
3479         __sim_disabled_exceptions_thread.
3480         (__sim_round_mode): Change to __sim_round_mode_thread.
3481         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
3482         thread-local floating-point state and set global state from it as
3483         needed.
3484         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
3485         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
3486         (__sim_disabled_exceptions): Remove extern declaration.
3487         (feenableexcept): Use thread-local floating-point state and set
3488         global state from it as needed.
3489         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
3490         extern declaration.
3491         (__sim_disabled_exceptions): Likewise.
3492         (__sim_round_mode): Likewise.
3493         (__fegetenv): Use thread-local floating-point state.
3494         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
3495         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3496         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
3497         floating-point state and set global state from it as needed.
3498         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
3499         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
3500         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
3501         Likewise.
3502         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
3503         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
3504         Likewise.
3505         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
3506         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
3507         Use __sim_round_mode_thread.
3508         * math/test-fenv-tls.c: New file.
3509         * math/Makefile (tests): Add test-fenv-tls.
3510         ($(objpfx)test-fenv-tls): Depend on
3511         $(common-objpfx)nptl/libpthread.so.
3512
3513 2013-11-19  Andreas Schwab  <schwab@suse.de>
3514
3515         * locale/programs/locale.c (show_info): Decode wordarray elements.
3516         * locale/categories.def (LC_MONETARY): Add element for
3517         _NL_MONETARY_CRNCYSTR.
3518         * locale/C-monetary.c (conversion_rate): New variable.
3519         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
3520         element.
3521
3522 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
3523
3524         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
3525         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
3526
3527 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3528
3529         * elf/Makefile (tst-auxv): New test.
3530         * elf/tst-auxv.c: New
3531         * elf/rtld.c (dl_main): Adjust AT_EXECFN
3532
3533 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
3534
3535         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
3536         (hidden_proto): Caller changed.
3537         (hidden_tls_proto): New macro.
3538         (libc_hidden_tls_proto): Likewise.
3539         (rtld_hidden_tls_proto): Likewise.
3540         (libm_hidden_tls_proto): Likewise.
3541         (libresolv_hidden_tls_proto): Likewise.
3542         (librt_hidden_tls_proto): Likewise.
3543         (libdl_hidden_tls_proto): Likewise.
3544         (libnss_files_hidden_tls_proto): Likewise.
3545         (libnsl_hidden_tls_proto): Likewise.
3546         (libnss_nisplus_hidden_tls_proto): Likewise.
3547         (libutil_hidden_tls_proto): Likewise.
3548
3549 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
3550
3551         [BZ #10253]
3552         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
3553         (decompose_rpath): Defer expansion to fillin_rpath.
3554         (_dl_init_paths): Pass linkmap to fillin_rpath.
3555
3556 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3557
3558         * benchtests/Makefile: Add strsep.
3559         * benchtests/bench-strsep.c: New file: strsep benchtest.
3560         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
3561
3562 2013-11-18  Andreas Schwab  <schwab@suse.de>
3563
3564         * locale/programs/locale.c (show_info) [case byte]: Check for
3565         '\377' instead of '\177'.
3566         * locale/C-monetary.c (not_available): Always use "\377".
3567         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
3568         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
3569         detect unavailable sign_posn locale elements.
3570         * locale/localeconv.c (__localeconv): For grouping and
3571         mon_grouping handle "\177" and "\377" like no grouping.
3572         (INT_ELEM): New macro.  Use it to set all numeric members.
3573         * locale/programs/ld-monetary.c (monetary_read)
3574         <tok_mon_grouping>: Normalize single -1 to the empty string.
3575         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
3576         Likewise.
3577
3578 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3579
3580         [BZ #16055]
3581         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
3582         when we match (nil).
3583         * stdio-common/tst-sscanf.c (struct test): Add testcase.
3584
3585 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
3586
3587         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
3588         (NO_TEST_INLINE): Update value.
3589         (ERRNO_UNCHANGED): Likewise.
3590         (ERRNO_EDOM): Likewise.
3591         (ERRNO_ERANGE): Likewise.
3592         (IGNORE_RESULT): Likewise.
3593         (check_float_internal): Check signs of NaN results if
3594         TEST_NAN_SIGN used.
3595         (check_complex): Pass TEST_NAN_SIGN flag through to second
3596         check_float_internal call.
3597         (copysign_test_data): Add tests with quiet NaNs as second
3598         argument.  Use TEST_NAN_SIGN.
3599         (fabs_test_data): Add test of negative quiet NaN argument.  Use
3600         TEST_NAN_SIGN.
3601         (signbit_test_data): Add tests of quiet NaN argument.
3602         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
3603
3604         * math/gen-libm-test.pl (show_exceptions): Take extra argument
3605         $ignore_result.
3606         (parse_args): Handle function results specified as IGNORE.
3607         * math/libm-test.inc (IGNORE_RESULT): New macro.
3608         (check_float_internal): Do not check numerical result if flag
3609         IGNORE_RESULT set.
3610         (check_complex): Pass through IGNORE_RESULT to second
3611         check_float_internal call.
3612         (check_int): Do not check numerical result if flag IGNORE_RESULT
3613         set.
3614         (check_long): Likewise.
3615         (check_bool): Likewise.
3616         (check_longlong): Likewise.
3617         (lrint_test_data): Add tests of infinite and NaN arguments.
3618         (lrint_tonearest_test_data): Likewise.
3619         (lrint_towardzero_test_data): Likewise.
3620         (lrint_downward_test_data): Likewise.
3621         (lrint_upward_test_data): Likewise.
3622         (llrint_test_data): Likewise.
3623         (llrint_tonearest_test_data): Likewise.
3624         (llrint_towardzero_test_data): Likewise.
3625         (llrint_downward_test_data): Likewise.
3626         (llrint_upward_test_data): Likewise.
3627         (lround_test_data): Likewise.
3628         (llround_test_data): Likewise.
3629
3630         * math/libm-test.inc (NO_TEST_INLINE): New macro.
3631         (ERRNO_UNCHANGED): Update value.
3632         (ERRNO_EDOM): Likewise.
3633         (ERRNO_ERANGE): Likewise.
3634         (NO_TEST_INLINE_FLOAT): New macro.
3635         (NO_TEST_INLINE_DOUBLE): Likewise.
3636         (enable_test): New function.
3637         (RUN_TEST_f_f): Check enable_test before running test.
3638         (RUN_TEST_2_f): Likewise.
3639         (RUN_TEST_fff_f): Likewise.
3640         (RUN_TEST_c_f): Likewise.
3641         (RUN_TEST_f_f1): Likewise.
3642         (RUN_TEST_fF_f1): Likewise.
3643         (RUN_TEST_fI_f1): Likewise.
3644         (RUN_TEST_ffI_f1): Likewise.
3645         (RUN_TEST_c_c): Likewise.
3646         (RUN_TEST_cc_c): Likewise.
3647         (RUN_TEST_f_i): Likewise.
3648         (RUN_TEST_f_i_tg): Likewise.
3649         (RUN_TEST_ff_i_tg): Likewise.
3650         (RUN_TEST_f_b): Likewise.
3651         (RUN_TEST_f_b_tg): Likewise.
3652         (RUN_TEST_f_l): Likewise.
3653         (RUN_TEST_f_L): Likewise.
3654         (RUN_TEST_fFF_11): Likewise.
3655         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
3656         conditionals.
3657         (cosh_test_data): Likewise.
3658         (exp_test_data): Likewise.
3659         (expm1_test_data): Likewise.
3660         (hypot_test_data): Likewise.
3661         (pow_test_data): Likewise.
3662         (sinh_test_data): Likewise.
3663         (tanh_test_data): Likewise.
3664         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
3665         flags argument.
3666
3667         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
3668         tests with quiet NaN input and output.
3669         (acosh_test_data): Likewise.
3670         (asin_test_data): Likewise.
3671         (asinh_test_data): Likewise.
3672         (atan_test_data): Likewise.
3673         (atanh_test_data): Likewise.
3674         (atan2_test_data): Likewise.
3675         (cbrt_test_data): Likewise.
3676         (cos_test_data): Likewise.
3677         (cosh_test_data): Likewise.
3678         (erf_test_data): Likewise.
3679         (erfc_test_data): Likewise.
3680         (exp_test_data): Likewise.
3681         (exp10_test_data): Likewise.
3682         (exp2_test_data): Likewise.
3683         (expm1_test_data): Likewise.
3684         (hypot_test_data): Likewise.
3685         (j0_test_data): Likewise.
3686         (j1_test_data): Likewise.
3687         (jn_test_data): Likewise.
3688         (lgamma_test_data): Likewise.
3689         (log_test_data): Likewise.
3690         (log10_test_data): Likewise.
3691         (log1p_test_data): Likewise.
3692         (log2_test_data): Likewise.
3693         (pow_test_data): Likewise.
3694         (scalb_test_data): Likewise.
3695         (sin_test_data): Likewise.
3696         (sincos_test_data): Likewise.
3697         (sinh_test_data): Likewise.
3698         (tan_test_data): Likewise.
3699         (tanh_test_data): Likewise.
3700         (tgamma_test_data): Likewise.
3701         (y0_test_data): Likewise.
3702         (y1_test_data): Likewise.
3703         (yn_test_data): Likewise.
3704
3705         [BZ #16167]
3706         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
3707         argument being NaN and avoid computations with second argument in
3708         that case.
3709         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3710         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3711         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3712
3713 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
3714
3715         * locale/iso-639.def: Add Chitwani Tharu (the).
3716
3717 2013-11-14  Andreas Schwab  <schwab@suse.de>
3718
3719         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
3720         word instead of empty string.
3721
3722 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3723
3724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3725         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
3726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3727         (__fe_nomask_env): Likewise.
3728
3729 2013-11-13  Steve Ellcey  <sellcey@mips.com>
3730
3731         * benchtests/bench-timing.h: Include time.h.
3732
3733 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
3734
3735         [BZ #15997]
3736         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
3737         to 3.4.0 for x32.
3738         * sysdeps/unix/sysv/linux/configure: Regenerated.
3739
3740 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3741
3742         [BZ #16151]
3743         * stdlib/strtod_l.c (round_and_return): Do not consider
3744         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
3745         exponent one less than half the least subnormal exponent.
3746         * stdlib/test-strtod-round-data: Add more tests.
3747         * stdlib/tst-strtod-round.c (tests): Regenerated.
3748
3749 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3750
3751         [BZ #14143]
3752         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
3753         (__fe_mask_env): Likewise.
3754         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
3755         libm_hidden_proto and add function prototype.
3756         (__fe_mask_env): Add function prototype.
3757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3758         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
3759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3760         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
3761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3762         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
3763
3764 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3765
3766         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
3767         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
3768
3769 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3770
3771         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
3772         of htab_find_slot().
3773
3774 2013-11-11  David S. Miller  <davem@davemloft.net>
3775
3776         [BZ #16150]
3777         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
3778         symbol in the non-vis3 case in static builds.
3779         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
3780         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
3781         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
3782         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
3783
3784 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3785
3786         [BZ #387]
3787         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
3788         it is empty.
3789
3790 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3791
3792         * benchtests/Makefile: Add bench-strtod.
3793         * benchtests/bench-strtod.c: New file: strtod benchtest
3794
3795 2013-11-11  Andreas Schwab  <schwab@suse.de>
3796
3797         [BZ #16153]
3798         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
3799         terminating NUL in key length.
3800
3801 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3802
3803         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
3804         Add artificial ODP entry for vDSO symbol for PPC64.
3805         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
3806         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
3807
3808 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3809
3810         [BZ #15374]
3811         * nss/getent.c (services_keys): Recognize services starting with digit.
3812
3813 2013-11-06  David S. Miller  <davem@davemloft.net>
3814
3815         [BZ #15985]
3816         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
3817         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
3818
3819 2013-11-06  Will Newton  <will.newton@linaro.org>
3820
3821         * manual/memory.texi (Malloc Examples): Remove register
3822         keyword from examples.
3823
3824 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
3825
3826         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
3827
3828 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
3829
3830         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
3831         depending on [__GCC_IEC_559 > 0].
3832         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
3833         depending on [__GCC_IEC_559_COMPLEX > 0].
3834
3835 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
3836
3837         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
3838         to iso-639.def.
3839
3840 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
3841
3842         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
3843
3844 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
3845
3846         [BZ #16112]
3847         * malloc/malloc (malloc_info): Do not handle first bin as
3848         special case.
3849
3850 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
3851
3852         * locale/iso-639.def: Add Central Nahuatl (nhn).
3853
3854 2013-11-01  Bruno Haible  <bruno@clisp.org>
3855
3856         [BZ #7003]
3857         * manual/math.texi (BSD Random): Specify range upper bound as
3858         in POSIX.
3859
3860 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
3861
3862         * locale/iso-639.def: Add Meadow Mari (mhr).
3863
3864 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
3865
3866         [BZ #14752], [BZ #15763]
3867         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
3868         Validate name.
3869         * rt/tst_shm.c: Add test for escaping directory.
3870
3871 2013-10-31  Andreas Schwab  <schwab@suse.de>
3872
3873         [BZ #15917]
3874         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
3875         followed by 'x' as part of digit sequence.
3876         * stdio-common/tst-sscanf.c (double_tests2): New tests.
3877
3878 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
3879
3880         [BZ #16037]
3881         * configure.ac: allow GNU Make 4.0 and greater.
3882         * configure: Regenerated.
3883
3884 2013-10-30  Will Newton  <will.newton@linaro.org>
3885
3886         [BZ #16038]
3887         * malloc/hooks.c (memalign_check): Limit alignment to the
3888         maximum representable power of two.
3889         * malloc/malloc.c (__libc_memalign): Likewise.
3890         * malloc/tst-memalign.c (do_test): Add test for very
3891         large alignment values.
3892         * malloc/tst-posix_memalign.c (do_test): Likewise.
3893
3894 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3895
3896         [BZ #11087]
3897         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
3898         (munmap_chunk): Likewise.
3899         (mremap_chunk): Likewise.
3900
3901 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3902
3903         [BZ #15799]
3904         * stdlib/div.c (div): Remove obsolete code.
3905         * stdlib/ldiv.c (ldiv): Likewise.
3906         * stdlib/lldiv.c (lldiv): Likewise.
3907
3908 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3909
3910         [BZ #16071]
3911         * nss/nss_files/files-XXX.c (get_contents_ret): New
3912         enumerator.
3913         (get_contents): New function.
3914         (internal_getent): Use it.  Expand size of LINEBUFLEN.
3915
3916 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
3917
3918         * configure.in: Moved to ...
3919         * configure.ac: ... here. Change reference to configure.in
3920         to configure.ac.
3921         * sysdeps/arm/preconfigure.ac: ... here.
3922         configure.in to configure.ac.
3923         * sysdeps/gnu/configure.in: Moved to ...
3924         * sysdeps/gnu/configure.ac: ... here.
3925         * sysdeps/i386/configure.in: Moved to ...
3926         * sysdeps/i386/configure.ac: ... here.
3927         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
3928         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
3929         * sysdeps/mach/configure.in: Moved to ...
3930         * sysdeps/mach/configure.ac: ... here.
3931         * sysdeps/mach/hurd/configure.in: Moved to ...
3932         * sysdeps/mach/hurd/configure.ac: ... here.
3933         * sysdeps/powerpc/configure.in: Moved to ...
3934         * sysdeps/powerpc/configure.ac: ... here.
3935         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
3936         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
3937         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
3938         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
3939         * sysdeps/s390/s390-32/configure.in: Moved to ...
3940         * sysdeps/s390/s390-32/configure.ac: ... here.
3941         * sysdeps/s390/s390-64/configure.in: Moved to ...
3942         * sysdeps/s390/s390-64/configure.ac: ... here.
3943         * sysdeps/sh/configure.in: Moved to ...
3944         * sysdeps/sh/configure.ac: ... here.
3945         * sysdeps/sparc/configure.in: Moved to ...
3946         * sysdeps/sparc/configure.ac: ... here.
3947         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
3948         * sysdeps/unix/sysv/linux/configure.ac: ... here.
3949         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
3950         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
3951         * sysdeps/x86_64/configure.in: Moved to ...
3952         * sysdeps/x86_64/configure.ac: ... here.
3953         * sysdeps/x86_64/preconfigure.in: Moved to ...
3954         * sysdeps/x86_64/preconfigure.ac: ... here.
3955         * aclocal.m4: Change reference to configure.in to configure.ac.
3956         * config.h.in: Likewise.
3957         * manual/install.texi: Likewise.
3958         * manual/maint.texi: Likewise.
3959         * Makefile: Likewise.
3960         * malloc/Makefile: Likewise.
3961         * nscd/Makefile: Likewise.
3962         * Makeconfig: Change reference to configure.in and
3963         preconfigure.in to configure.ac and preconfigure.ac
3964         respectively.
3965         * INSTALL: Regenerated.
3966         * configure: Likewise.
3967         * sysdeps/gnu/configure: Likewise.
3968         * sysdeps/i386/configure: Likewise.
3969         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
3970         * sysdeps/mach/configure: Likewise.
3971         * sysdeps/mach/hurd/configure: Likewise.
3972         * sysdeps/powerpc/configure: Likewise.
3973         * sysdeps/powerpc/powerpc32/configure: Likewise.
3974         * sysdeps/powerpc/powerpc64/configure: Likewise.
3975         * sysdeps/s390/s390-32/configure: Likewise.
3976         * sysdeps/s390/s390-64/configure: Likewise.
3977         * sysdeps/sh/configure: Likewise.
3978         * sysdeps/sparc/configure: Likewise.
3979         * sysdeps/unix/sysv/linux/configure: Likewise.
3980         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
3981         * sysdeps/x86_64/configure: Likewise.
3982         * sysdeps/x86_64/preconfigure: Likewise.
3983
3984 2013-10-29  Andreas Schwab  <schwab@suse.de>
3985
3986         * stdio-common/Makefile (tst-swscanf-ENV): Define.
3987
3988 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3989
3990         * benchtests/pow-inputs: Add new inputs.
3991
3992         * benchtests/exp-inputs: Add new inputs.
3993
3994         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
3995         conditional check for return value.
3996         (__cos32): Likewise.
3997
3998 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3999
4000         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
4001         to provide a boost for large inputs with word alignment.
4002         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
4003         implementation based on optimized PPC64 strcpy.
4004         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
4005         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
4006         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
4007         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
4008
4009 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4010
4011         [BZ #2801]
4012         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
4013
4014 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4015
4016         [BZ #14876]
4017         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
4018         * time/tst-strptime.c (day_tests): Add testcase.
4019
4020 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4021
4022         [BZ #14029]
4023         * manual/pattern.texi: Acknowledge that fnmatch can fail.
4024
4025 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
4026
4027         [BZ #16074]
4028         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
4029         MAP_FAILED on error.
4030
4031 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4032
4033         [BZ #16072]
4034         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
4035         heap for large requests.
4036
4037 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
4038
4039         [BZ #9954]
4040         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
4041         result if the result has no associated interface.
4042         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
4043         interface for all 127.X.Y.Z addresses.
4044
4045 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
4046
4047         * locale/iso-639.def: Add Ligurian (lij)
4048
4049 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
4050
4051         [BZ #15825]
4052         * sunrpc/rpc_main.c: Document rpcgen -5.
4053
4054 2013-10-19  Michael Stahl  <mstahl@redhat.com>
4055
4056         * elf/rtld.c (do_preload): Print the reason why preloading failed.
4057
4058 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4059
4060         [BZ #10278]
4061         * posix/glob.c: Match only directories when trailing slash is present.
4062         * posix/tst-gnuglob.c (my_opendir): Do not open files.
4063         (main): Add testcase.
4064
4065 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4066
4067         [BZ #15670]
4068         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
4069
4070 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
4071
4072         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
4073         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
4074         AUTH_DES and cindex for FIPS 140-2.
4075         (DES Encryption): Add cindex FIPS 46-3.
4076
4077         * locale/locarchive.h (struct locarhandle): Add fname.
4078         * locale/programs/localedef.c (main): Pass ARGV[remaining]
4079         if an optional argument was specified to --list-archive,
4080         otherwise NULL.
4081         * locale/programs/locarchive.c (show_archive_content): Take new
4082         argument fname and pass it via ah.fname to open_archive.
4083         * locale/programs/localedef.h: Update decl.
4084         (open_archive): If AH->fname is non-null, open that file
4085         rather than the default file name, and don't ignore ENOENT.
4086         (create_archive): Set AH.fname to NULL.
4087         (delete_locales_from_archive): Likewise.
4088         (add_locales_to_archive): Likewise.
4089         * locale/programs/locfile.c (write_all_categories): Likewise.
4090
4091 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
4092             Aldy Hernandez  <aldyh@redhat.com>
4093
4094         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
4095         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
4096         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
4097         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
4098         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
4099         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
4100         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
4101         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
4102         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
4103         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
4104         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
4105         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
4106         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
4107         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
4108         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
4109         Likewise.
4110         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
4111         Likewise.
4112         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
4113         Likewise.
4114         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
4115         Likewise.
4116         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
4117         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
4118         Likewise.
4119         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
4120         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
4121         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
4122         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
4123         Likewise.
4124         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
4125         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
4126         * sysdeps/powerpc/preconfigure: Likewise.
4127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
4128         Likewise.
4129         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
4130         Replace contents of file by #include of <fenv_libc.h>.
4131         * sysdeps/powerpc/soft-fp/sfp-machine.h
4132         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
4133         and <sys/prctl.h>.
4134         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
4135         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
4136         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
4137         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
4138         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
4139         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
4140         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
4141         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
4142         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
4143         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
4144         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
4145         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
4146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
4147         Allow copysignl PLT reference to be missing.
4148
4149 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
4150             Joseph Myers  <joseph@codesourcery.com
4151
4152         [BZ #15948]
4153         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
4154         single character.
4155         (add_to_tablewc): Assert sequence of wide characters is nonempty.
4156
4157 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4158
4159         * elf/tst-tls-dlinfo.c: Don't include tls.h.
4160         * elf/tst-tls1.c: Likewise.
4161         * elf/tst-tls10.h: Likewise.
4162         * elf/tst-tls14.c: Likewise.
4163         * elf/tst-tls2.c: Likewise.
4164         * elf/tst-tls3.c: Likewise.
4165         * elf/tst-tls4.c: Likewise.
4166         * elf/tst-tls5.c: Likewise.
4167         * elf/tst-tls6.c: Likewise.
4168         * elf/tst-tls7.c: Likewise.
4169         * elf/tst-tls8.c: Likewise.
4170         * elf/tst-tls9.c: Likewise.
4171         * elf/tst-tlsmod1.c: Likewise.
4172         * elf/tst-tlsmod13.c: Likewise.
4173         * elf/tst-tlsmod13a.c: Likewise.
4174         * elf/tst-tlsmod14a.c: Likewise.
4175         * elf/tst-tlsmod16a.c: Likewise.
4176         * elf/tst-tlsmod16b.c: Likewise.
4177         * elf/tst-tlsmod2.c: Likewise.
4178         * elf/tst-tlsmod3.c: Likewise.
4179         * elf/tst-tlsmod4.c: Likewise.
4180         * elf/tst-tlsmod5.c: Likewise.
4181         * elf/tst-tlsmod6.c: Likewise.
4182
4183 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
4184
4185         [BZ #12486]
4186         * malloc/malloc.c: remove checks for statistics.
4187
4188 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4189
4190         [BZ #15277]
4191         * inet/inet_net.c (inet_network): Detect additional invalid strings.
4192         * inet/tst-network.c: Add testcase.
4193
4194 2013-10-17  Andreas Schwab  <schwab@suse.de>
4195
4196         [BZ #15218]
4197         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
4198         to determine canonical name.
4199
4200 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4201
4202         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
4203         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
4204         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4205         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4206         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4207         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4208         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4209         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4210         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4211         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4212         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4213         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4214         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4215         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4216         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4217         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4218         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4219         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4220         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4221         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4222         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4223         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4224         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4225         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
4226         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
4227         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4228         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4229         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
4230         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4231         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
4232         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4233         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4234         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4235         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4236         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4237         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4238         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4239         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4240         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4241         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4242         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4243         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4244         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
4245         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4246         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4247         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4248         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4249         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4250         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
4251         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4252         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
4253         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4254         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
4255         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
4256         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4257         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4258         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4259         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4260
4261 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
4262
4263         [BZ #16041]
4264         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
4265         make result into a quiet NaN.
4266
4267 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
4268
4269         * soft-fp/adddf3.c: Fix horizontal whitespace.
4270         * soft-fp/addsf3.c: Likewise.
4271         * soft-fp/addtf3.c: Likewise.
4272         * soft-fp/divdf3.c: Likewise.
4273         * soft-fp/divsf3.c: Likewise.
4274         * soft-fp/divtf3.c: Likewise.
4275         * soft-fp/double.h: Likewise.
4276         * soft-fp/eqdf2.c: Likewise.
4277         * soft-fp/eqsf2.c: Likewise.
4278         * soft-fp/eqtf2.c: Likewise.
4279         * soft-fp/extenddftf2.c: Likewise.
4280         * soft-fp/extended.h: Likewise.
4281         * soft-fp/extendsfdf2.c: Likewise.
4282         * soft-fp/extendsftf2.c: Likewise.
4283         * soft-fp/extendxftf2.c: Likewise.
4284         * soft-fp/fixdfdi.c: Likewise.
4285         * soft-fp/fixdfsi.c: Likewise.
4286         * soft-fp/fixdfti.c: Likewise.
4287         * soft-fp/fixsfdi.c: Likewise.
4288         * soft-fp/fixsfsi.c: Likewise.
4289         * soft-fp/fixsfti.c: Likewise.
4290         * soft-fp/fixtfdi.c: Likewise.
4291         * soft-fp/fixtfsi.c: Likewise.
4292         * soft-fp/fixtfti.c: Likewise.
4293         * soft-fp/fixunsdfdi.c: Likewise.
4294         * soft-fp/fixunsdfsi.c: Likewise.
4295         * soft-fp/fixunsdfti.c: Likewise.
4296         * soft-fp/fixunssfdi.c: Likewise.
4297         * soft-fp/fixunssfsi.c: Likewise.
4298         * soft-fp/fixunssfti.c: Likewise.
4299         * soft-fp/fixunstfdi.c: Likewise.
4300         * soft-fp/fixunstfsi.c: Likewise.
4301         * soft-fp/fixunstfti.c: Likewise.
4302         * soft-fp/floatdidf.c: Likewise.
4303         * soft-fp/floatdisf.c: Likewise.
4304         * soft-fp/floatditf.c: Likewise.
4305         * soft-fp/floatsidf.c: Likewise.
4306         * soft-fp/floatsisf.c: Likewise.
4307         * soft-fp/floatsitf.c: Likewise.
4308         * soft-fp/floattidf.c: Likewise.
4309         * soft-fp/floattisf.c: Likewise.
4310         * soft-fp/floattitf.c: Likewise.
4311         * soft-fp/floatundidf.c: Likewise.
4312         * soft-fp/floatundisf.c: Likewise.
4313         * soft-fp/floatunditf.c: Likewise.
4314         * soft-fp/floatunsidf.c: Likewise.
4315         * soft-fp/floatunsisf.c: Likewise.
4316         * soft-fp/floatunsitf.c: Likewise.
4317         * soft-fp/floatuntidf.c: Likewise.
4318         * soft-fp/floatuntisf.c: Likewise.
4319         * soft-fp/floatuntitf.c: Likewise.
4320         * soft-fp/fmadf4.c: Likewise.
4321         * soft-fp/fmasf4.c: Likewise.
4322         * soft-fp/fmatf4.c: Likewise.
4323         * soft-fp/gedf2.c: Likewise.
4324         * soft-fp/gesf2.c: Likewise.
4325         * soft-fp/getf2.c: Likewise.
4326         * soft-fp/ledf2.c: Likewise.
4327         * soft-fp/lesf2.c: Likewise.
4328         * soft-fp/letf2.c: Likewise.
4329         * soft-fp/muldf3.c: Likewise.
4330         * soft-fp/mulsf3.c: Likewise.
4331         * soft-fp/multf3.c: Likewise.
4332         * soft-fp/negdf2.c: Likewise.
4333         * soft-fp/negsf2.c: Likewise.
4334         * soft-fp/negtf2.c: Likewise.
4335         * soft-fp/op-1.h: Likewise.
4336         * soft-fp/op-2.h: Likewise.
4337         * soft-fp/op-4.h: Likewise.
4338         * soft-fp/op-8.h: Likewise.
4339         * soft-fp/op-common.h: Likewise.
4340         * soft-fp/quad.h: Likewise.
4341         * soft-fp/single.h: Likewise.
4342         * soft-fp/soft-fp.h: Likewise.
4343         * soft-fp/sqrtdf2.c: Likewise.
4344         * soft-fp/sqrtsf2.c: Likewise.
4345         * soft-fp/sqrttf2.c: Likewise.
4346         * soft-fp/subdf3.c: Likewise.
4347         * soft-fp/subsf3.c: Likewise.
4348         * soft-fp/subtf3.c: Likewise.
4349         * soft-fp/truncdfsf2.c: Likewise.
4350         * soft-fp/trunctfdf2.c: Likewise.
4351         * soft-fp/trunctfsf2.c: Likewise.
4352         * soft-fp/trunctfxf2.c: Likewise.
4353         * soft-fp/unorddf2.c: Likewise.
4354         * soft-fp/unordsf2.c: Likewise.
4355         * soft-fp/unordtf2.c: Likewise.
4356
4357 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
4358
4359         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
4360         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
4361
4362 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
4363
4364         * elf/dl-libc.c: Clear initfini list after freeing.
4365
4366 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
4367
4368         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
4369         * soft-fp/addsf3.c: Likewise.
4370         * soft-fp/addtf3.c: Likewise.
4371         * soft-fp/divdf3.c: Likewise.
4372         * soft-fp/divsf3.c: Likewise.
4373         * soft-fp/divtf3.c: Likewise.
4374         * soft-fp/double.h: Likewise.
4375         * soft-fp/eqdf2.c: Likewise.
4376         * soft-fp/eqsf2.c: Likewise.
4377         * soft-fp/eqtf2.c: Likewise.
4378         * soft-fp/extenddftf2.c: Likewise.
4379         * soft-fp/extended.h: Likewise.
4380         * soft-fp/extendsfdf2.c: Likewise.
4381         * soft-fp/extendsftf2.c: Likewise.
4382         * soft-fp/extendxftf2.c: Likewise.
4383         * soft-fp/fixdfdi.c: Likewise.
4384         * soft-fp/fixdfsi.c: Likewise.
4385         * soft-fp/fixdfti.c: Likewise.
4386         * soft-fp/fixsfdi.c: Likewise.
4387         * soft-fp/fixsfsi.c: Likewise.
4388         * soft-fp/fixsfti.c: Likewise.
4389         * soft-fp/fixtfdi.c: Likewise.
4390         * soft-fp/fixtfsi.c: Likewise.
4391         * soft-fp/fixtfti.c: Likewise.
4392         * soft-fp/fixunsdfdi.c: Likewise.
4393         * soft-fp/fixunsdfsi.c: Likewise.
4394         * soft-fp/fixunsdfti.c: Likewise.
4395         * soft-fp/fixunssfdi.c: Likewise.
4396         * soft-fp/fixunssfsi.c: Likewise.
4397         * soft-fp/fixunssfti.c: Likewise.
4398         * soft-fp/fixunstfdi.c: Likewise.
4399         * soft-fp/fixunstfsi.c: Likewise.
4400         * soft-fp/fixunstfti.c: Likewise.
4401         * soft-fp/floatdidf.c: Likewise.
4402         * soft-fp/floatdisf.c: Likewise.
4403         * soft-fp/floatditf.c: Likewise.
4404         * soft-fp/floatsidf.c: Likewise.
4405         * soft-fp/floatsisf.c: Likewise.
4406         * soft-fp/floatsitf.c: Likewise.
4407         * soft-fp/floattidf.c: Likewise.
4408         * soft-fp/floattisf.c: Likewise.
4409         * soft-fp/floattitf.c: Likewise.
4410         * soft-fp/floatundidf.c: Likewise.
4411         * soft-fp/floatundisf.c: Likewise.
4412         * soft-fp/floatunsidf.c: Likewise.
4413         * soft-fp/floatunsisf.c: Likewise.
4414         * soft-fp/floatuntidf.c: Likewise.
4415         * soft-fp/floatuntisf.c: Likewise.
4416         * soft-fp/floatuntitf.c: Likewise.
4417         * soft-fp/fmadf4.c: Likewise.
4418         * soft-fp/fmasf4.c: Likewise.
4419         * soft-fp/fmatf4.c: Likewise.
4420         * soft-fp/gedf2.c: Likewise.
4421         * soft-fp/gesf2.c: Likewise.
4422         * soft-fp/getf2.c: Likewise.
4423         * soft-fp/ledf2.c: Likewise.
4424         * soft-fp/lesf2.c: Likewise.
4425         * soft-fp/letf2.c: Likewise.
4426         * soft-fp/muldf3.c: Likewise.
4427         * soft-fp/mulsf3.c: Likewise.
4428         * soft-fp/multf3.c: Likewise.
4429         * soft-fp/negdf2.c: Likewise.
4430         * soft-fp/negsf2.c: Likewise.
4431         * soft-fp/negtf2.c: Likewise.
4432         * soft-fp/op-1.h: Likewise.
4433         * soft-fp/op-2.h: Likewise.
4434         * soft-fp/op-4.h: Likewise.
4435         * soft-fp/op-8.h: Likewise.
4436         * soft-fp/op-common.h: Likewise.
4437         * soft-fp/quad.h: Likewise.
4438         * soft-fp/single.h: Likewise.
4439         * soft-fp/soft-fp.h: Likewise.
4440         * soft-fp/sqrtdf2.c: Likewise.
4441         * soft-fp/sqrtsf2.c: Likewise.
4442         * soft-fp/sqrttf2.c: Likewise.
4443         * soft-fp/subdf3.c: Likewise.
4444         * soft-fp/subsf3.c: Likewise.
4445         * soft-fp/subtf3.c: Likewise.
4446         * soft-fp/truncdfsf2.c: Likewise.
4447         * soft-fp/trunctfdf2.c: Likewise.
4448         * soft-fp/trunctfsf2.c: Likewise.
4449         * soft-fp/trunctfxf2.c: Likewise.
4450         * soft-fp/unorddf2.c: Likewise.
4451         * soft-fp/unordsf2.c: Likewise.
4452         * soft-fp/unordtf2.c: Likewise.
4453
4454 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
4455
4456         [BZ #15672]
4457         * misc/error.c (error_tail): Fix possible buffer overflow.
4458
4459 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
4460
4461         [BZ #13028]
4462         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
4463         address.
4464
4465 2013-10-14  P. J. McDermott  <pj@pehjota.net>
4466
4467         [BZ #832]
4468         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
4469         testing pipefail option.
4470
4471 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4472
4473         * soft-fp/double.h: Indent preprocessor directives inside #if.
4474         * soft-fp/extended.h: Likewise.
4475         * soft-fp/op-2.h: Likewise.
4476         * soft-fp/op-4.h: Likewise.
4477         * soft-fp/op-common.h: Likewise.
4478         * soft-fp/quad.h: Likewise.
4479         * soft-fp/single.h: Likewise.
4480         * soft-fp/soft-fp.h: Likewise.
4481
4482 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
4483
4484         * iconv/iconv_prog.c: Fix typos.
4485         * stdio-common/psiginfo-data.h: Likewise.
4486
4487 2013-10-12   Reuben Thomas <rrt@sc3d.org>
4488
4489         [BZ #15764]
4490         * locale/setlocale.c: Fix typo.
4491
4492 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4493
4494         [BZ #16036]
4495         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
4496         signaling NaN arguments.
4497         * soft-fp/unordsf2.c (__unordsf2): Likewise.
4498         * soft-fp/unordtf2.c (__unordtf2): Likewise.
4499
4500         [BZ #14910]
4501         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
4502         unordered operands.
4503         * soft-fp/gesf2.c (__gesf2): Likewise.
4504         * soft-fp/getf2.c (__getf2): Likewise.
4505         * soft-fp/ledf2.c (__ledf2): Likewise.
4506         * soft-fp/lesf2.c (__lesf2): Likewise.
4507         * soft-fp/letf2.c (__letf2): Likewise.
4508
4509         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
4510         * soft-fp/eqsf2.c (__eqsf2): Likewise.
4511         * soft-fp/eqtf2.c (__eqtf2): Likewise.
4512         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
4513         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
4514         * soft-fp/fixdfti.c (__fixdfti): Likewise.
4515         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
4516         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
4517         * soft-fp/fixsfti.c (__fixsfti): Likewise.
4518         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
4519         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
4520         * soft-fp/fixtfti.c (__fixtfti): Likewise.
4521         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
4522         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
4523         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
4524         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
4525         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
4526         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
4527         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
4528         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
4529         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
4530         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
4531         * soft-fp/floatdisf.c (__floatdisf): Likewise.
4532         * soft-fp/floatsisf.c (__floatsisf): Likewise.
4533         * soft-fp/floattidf.c (__floattidf): Likewise.
4534         * soft-fp/floattisf.c (__floattisf): Likewise.
4535         * soft-fp/floattitf.c (__floattitf): Likewise.
4536         * soft-fp/floatundidf.c (__floatundidf): Likewise.
4537         * soft-fp/floatundisf.c (__floatundisf): Likewise.
4538         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
4539         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
4540         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
4541         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
4542         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
4543         * soft-fp/gesf2.c (__gesf2): Likewise.
4544         * soft-fp/getf2.c (__getf2): Likewise.
4545         * soft-fp/ledf2.c (__ledf2): Likewise.
4546         * soft-fp/lesf2.c (__lesf2): Likewise.
4547         * soft-fp/letf2.c (__letf2): Likewise.
4548
4549         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
4550         Undefine and redefine.
4551         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
4552         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
4553         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
4554         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
4555         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4556         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
4557         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4558         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
4559         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4560         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
4561         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4562         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
4563         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4564         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
4565         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4566
4567         [BZ #16032]
4568         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
4569         without decrementing exponent if mantissa >= that for the
4570         denominator, not >.
4571         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
4572         denominator, not >.  Decrement exponent in < case instead of
4573         incrementing in >= case.
4574         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
4575         without decrementing exponent if mantissa >= that for the
4576         denominator, not >.
4577
4578         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
4579         computing saturated result for unsigned overflow.
4580
4581 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4582             Jeff Law  <law@redhat.com>
4583
4584         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
4585         (atan2Mp): Add systemtap probe marker.
4586         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
4587         (__ieee754_log): Add systemtap probe marker.
4588         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
4589         (atanMp): Add systemtap probe marker.
4590         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
4591         (tanMp): Add systemtap probe marker.
4592         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
4593         (__slowexp): Add systemtap probe marker.
4594         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
4595         (__slowpow): Add systemtap probe marker.
4596         * manual/probes.texi: Document probes.
4597
4598 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
4599
4600         [BZ #15362]
4601         * libio/fileops.c (_IO_new_file_write): Return count of bytes
4602         written.
4603         (_IO_new_file_xsputn): Don't return EOF if nothing has been
4604         written.
4605         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
4606         written to buffer but not flushed.
4607         * libio/iofwrite_u.c:  Likewise.
4608         * libio/iopadn.c:  Return bytes returned even if EOF was
4609         encountered.
4610         * libio/iowpadn.c:  Likewise.
4611         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
4612         if _IO_padn does not write the whole buffer.
4613         [!COMPILE_WPRINTF] (PAD): Likewise.
4614
4615 2013-10-10  David S. Miller  <davem@davemloft.net>
4616
4617         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
4618         directory block.
4619
4620 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4621
4622         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
4623         instead of FSF address.
4624         * soft-fp/fixdfti.c: Likewise.
4625         * soft-fp/fixsfti.c: Likewise.
4626         * soft-fp/fixtfti.c: Likewise.
4627         * soft-fp/fixunsdfti.c: Likewise.
4628         * soft-fp/fixunssfti.c: Likewise.
4629         * soft-fp/fixunstfti.c: Likewise.
4630         * soft-fp/floattidf.c: Likewise.
4631         * soft-fp/floattisf.c: Likewise.
4632         * soft-fp/floattitf.c: Likewise.
4633         * soft-fp/floatuntidf.c: Likewise.
4634         * soft-fp/floatuntisf.c: Likewise.
4635         * soft-fp/floatuntitf.c: Likewise.
4636         * soft-fp/trunctfxf2.c: Likewise.
4637
4638         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
4639         * soft-fp/fixdfti.c: Likewise.
4640         * soft-fp/fixsfti.c: Likewise.
4641         * soft-fp/fixtfti.c: Likewise.
4642         * soft-fp/fixunsdfti.c: Likewise.
4643         * soft-fp/fixunssfti.c: Likewise.
4644         * soft-fp/fixunstfti.c: Likewise.
4645         * soft-fp/floattidf.c: Likewise.
4646         * soft-fp/floattisf.c: Likewise.
4647         * soft-fp/floattitf.c: Likewise.
4648         * soft-fp/floatuntidf.c: Likewise.
4649         * soft-fp/floatuntisf.c: Likewise.
4650         * soft-fp/floatuntitf.c: Likewise.
4651         * soft-fp/trunctfxf2.c: Likewise.
4652
4653 2013-10-10  David S. Miller  <davem@davemloft.net>
4654
4655         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4656
4657 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
4658
4659         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4660         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
4661         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
4662         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
4663         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
4664         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
4665         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
4666
4667         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
4668         for NaNs before doing comparisons on argument.
4669         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
4670         Likewise.
4671
4672 2013-10-10  Will Newton  <will.newton@linaro.org>
4673
4674         * malloc/hooks.c (memalign_check): Ensure the value of bytes
4675         passed to _int_memalign does not overflow.
4676
4677 2013-10-10  Torvald Riegel  <triegel@redhat.com>
4678
4679         * scripts/bench.pl: Add include-sources directive.
4680         * benchtests/README: Update documentation.
4681
4682 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4683
4684         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
4685         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
4686         instead of FP_INIT_ROUNDMODE.
4687         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
4688         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
4689
4690         [BZ #16034]
4691         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
4692         copy class of input value.
4693         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
4694         not handle exceptions.
4695         * soft-fp/negsf2.c (__negsf2): Likewise.
4696         * soft-fp/negtf2.c (__negtf2): Likewise.
4697         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
4698
4699 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
4700
4701         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
4702         semicolon.  From Linux kernel.
4703
4704 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
4705
4706         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
4707
4708 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
4709
4710         [BZ #156]
4711         * manual/socket.texi: Added statement about buffer
4712         for gethostbyname2_r.
4713
4714 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
4715
4716         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
4717         Use .p2align directive instead, throughout.
4718         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4719         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4720         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4721         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4722         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4723         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
4724         * sysdeps/x86_64/strchr.S: Likewise.
4725         * sysdeps/x86_64/strrchr.S: Likewise.
4726
4727 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4728
4729         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
4730
4731         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
4732
4733         * sysdeps/generic/math_private.h (__mpsin1): Remove
4734         declaration.
4735         (__mpcos1): Likewise.
4736         (__mpsin): New argument __range_reduce.
4737         (__mpcos): Likewise.
4738         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4739         (slow): Use __mpsin and __mpcos.
4740         (slow1): Likewise.
4741         (slow2): Likewise.
4742         (sloww): Likewise.
4743         (sloww1): Likewise.
4744         (sloww2): Likewise.
4745         (bsloww): Likewise.
4746         (bsloww1): Likewise.
4747         (bsloww2): Likewise.
4748         (cslow2): Likewise.
4749         (csloww): Likewise.
4750         (csloww1): Likewise.
4751         (csloww2): Likewise.
4752         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
4753         range_reduce.  Merge in __mpsin1.
4754         (__mpcos): Likewise.
4755         (__mpsin1): Remove.
4756         (__mpcos1): Likewise.
4757
4758 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
4759
4760         * locale/loadlocale.c (_nl_intern_locale_data): Use
4761         LOCFILE_ALIGNED_P.
4762         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
4763         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
4764         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
4765         obstack data is appropriately aligned.
4766         (obstack_int32_grow_fast): Likewise.
4767         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
4768         * locale/programs/locfile.c (add_locale_uint32): Likewise.
4769         (add_locale_uint32_array): Likewise.
4770
4771 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4772
4773         * benchtests/Makefile: Remove ARGLIST and RET variables.
4774         ($(objpfx)bench-%.c): Pass only function name to the script.
4775         * benchtests/README: Update documentation.
4776         * benchtests/acos-inputs: Add new directives.
4777         * benchtests/acosh-inputs: Likewise.
4778         * benchtests/asin-inputs: Likewise.
4779         * benchtests/asinh-inputs: Likewise.
4780         * benchtests/atan-inputs: Likewise.
4781         * benchtests/atanh-inputs: Likewise.
4782         * benchtests/cos-inputs: Likewise.
4783         * benchtests/cosh-inputs: Likewise.
4784         * benchtests/exp-inputs: Likewise.
4785         * benchtests/log-inputs: Likewise.
4786         * benchtests/pow-inputs: Likewise.
4787         * benchtests/rint-inputs: Likewise.
4788         * benchtests/sin-inputs: Likewise.
4789         * benchtests/sinh-inputs: Likewise.
4790         * benchtests/tan-inputs: Likewise.
4791         * benchtests/tanh-inputs: Likewise.
4792         * scripts/bench.pl: Add support for new directives.
4793
4794 2013-10-07  Alan Modra  <amodra@gmail.com>
4795
4796         * README: Fix careless merge.
4797
4798 2013-10-05  Alan Modra  <amodra@gmail.com>
4799
4800         * NEWS: Mention powerpc64le support and bugs fixed.
4801         * README: Both big-endian and little-endian powerpc64 supported.
4802
4803 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4804
4805         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
4806         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
4807         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
4808         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
4809
4810 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
4811
4812         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
4813         match prototype.
4814
4815 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
4816
4817         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
4818         Move -mhard-float appending from
4819         ports/sysdeps/powerpc/powerpc32/Makefile.
4820         [$(with-fp) = yes] (ASFLAGS): Likewise.
4821         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
4822         * sysdeps/powerpc/nofpu: Move directory from
4823         ports/sysdeps/powerpc/nofpu.
4824         * sysdeps/powerpc/soft-fp: Move directory from
4825         ports/sysdeps/powerpc/soft-fp.
4826         * sysdeps/powerpc/powerpc32/405: Move directory from
4827         ports/sysdeps/powerpc/powerpc32/405.
4828         * sysdeps/powerpc/powerpc32/440: Move directory from
4829         ports/sysdeps/powerpc/powerpc32/440.
4830         * sysdeps/powerpc/powerpc32/464: Move directory from
4831         ports/sysdeps/powerpc/powerpc32/464.
4832         * sysdeps/powerpc/powerpc32/476: Move directory from
4833         ports/sysdeps/powerpc/powerpc32/476.
4834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
4835         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
4836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
4837         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
4838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
4839         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
4840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
4841         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
4842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
4843         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
4844         * README: Update for powerpc-*-linux-gnu software floating point
4845         support in libc.
4846
4847         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
4848         case to powerpc/powerpc32*.
4849         * sysdeps/unix/sysv/linux/configure: Regenerated.
4850
4851         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
4852         (_FPU_MASK_OM): Define as 0x04.
4853         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
4854         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
4855         0x00c10080.
4856         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
4857         0x0000003c.
4858         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
4859
4860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4861         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4862         getcontext_e500.
4863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4864         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4865         setcontext_e500.
4866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4867         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
4868         and setcontext_e500.
4869
4870 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
4871
4872         * locale/iso-3166.def: Update iso-1366.def and related occurrences
4873
4874 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4875
4876         * manual/threads.texi (Default Thread Attributes): Fix typo.
4877
4878 2013-10-04  Will Newton  <will.newton@linaro.org>
4879
4880         * malloc/Makefile: Add tst-memalign.
4881         * malloc/tst-memalign.c: New file.
4882
4883         * malloc/tst-posix_memalign.c: Add comments.
4884         (do_test): Add comments and call free on all potentially
4885         allocated pointers. Add space after cast.
4886
4887         * malloc/tst-pvalloc.c: Add comments.
4888         (do_test): Add comments and call free on all potentially
4889         allocated pointers. Remove duplicate check for NULL pointer.
4890         Add space after cast.
4891
4892         * malloc/tst-valloc.c: Add comments.
4893         (do_test): Add comments and call free on all potentially
4894         allocated pointers. Remove duplicate check for NULL pointer.
4895         Add space after cast.
4896
4897 2013-10-04  Alan Modra  <amodra@gmail.com>
4898
4899         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4900         Use stdint types in rather than __attribute__((mode())).
4901         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4902
4903 2013-10-04  Alan Modra  <amodra@gmail.com>
4904
4905         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4906         Correct handling of unaligned relocs for little-endian.
4907         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4908
4909 2013-10-04  Alan Modra  <amodra@gmail.com>
4910
4911         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
4912         * configure: Regenerate.
4913         * nptl/shlib-versions: Powerpc*le starts at 2.18.
4914         * shlib-versions: Likewise.
4915
4916 2013-10-04  Alan Modra  <amodra@gmail.com>
4917
4918         * string/tester.c (test_memrchr): Increment reported test cycle.
4919
4920 2013-10-04  Alan Modra  <amodra@gmail.com>
4921
4922         * string/test-memcpy.c (do_one_test): When reporting errors, print
4923         string address and don't overrun end of string.
4924
4925 2013-10-04  Alan Modra  <amodra@gmail.com>
4926
4927         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
4928         insrdi.  Make better use of reg selection to speed exit slightly.
4929         Schedule entry path a little better.  Remove useless "are we done"
4930         checks on entry to main loop.  Handle wrapping around zero address.
4931         Correct main loop count.  Handle single left-over word from main
4932         loop inline rather than by using loop_small.  Remove extra word
4933         case in loop_small caused by wrong loop count.  Add little-endian
4934         support.
4935         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4936         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
4937         cache hint.
4938         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4939         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
4940         support.  Avoid rlwimi.
4941         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
4942
4943 2013-10-04  Alan Modra  <amodra@gmail.com>
4944
4945         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
4946         insrdi.  Formatting.
4947         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
4948         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4949         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
4950         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
4951         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
4952         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
4953
4954 2013-10-04  Alan Modra  <amodra@gmail.com>
4955
4956         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
4957         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4958         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
4959         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
4960         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4961         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4962         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4963         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
4964         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
4965         use of regs.  Use power7 mtocrf.  Tidy function tails.
4966
4967 2013-10-04  Alan Modra  <amodra@gmail.com>
4968
4969         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
4970         Formatting.  Consistently use rXXX register defines or rN defines.
4971         Use early exit labels that avoid restoring unused non-volatile regs.
4972         Make cr field use more consistent with rWORDn compares.  Rename
4973         regs used as shift registers for unaligned loop, using rN defines
4974         for short lifetime/multiple use regs.
4975         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4976         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
4977         addi 1,1,64 to pop stack frame.  Simplify return value code.
4978         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4979
4980 2013-10-04  Alan Modra  <amodra@gmail.com>
4981
4982         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
4983         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
4984         rather than rlwimi.
4985         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
4986         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
4987         little-endian support.  Correct typos.
4988         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
4989         rather than rlwimi.
4990         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
4991         in loop and entry code to keep "and." results.
4992         (strchr): Add little-endian support.  Comment.  Move cntlzd
4993         earlier in tail.
4994         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
4995
4996 2013-10-04  Alan Modra  <amodra@gmail.com>
4997
4998         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
4999         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
5000         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
5001         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
5002
5003 2013-10-04  Alan Modra  <amodra@gmail.com>
5004
5005         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
5006         (rTMP): Define as r11.
5007         (strcmp): Add little-endian support.  Optimise tail.
5008         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
5009         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5010         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5011         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5012         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5013         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5014         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5015
5016 2013-10-04  Alan Modra  <amodra@gmail.com>
5017
5018         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
5019         little-endian support.  Remove unnecessary "are we done" tests.
5020         Handle "s" wrapping around zero and extremely large "size".
5021         Correct main loop count.  Handle single left-over word from main
5022         loop inline rather than by using small_loop.  Correct comments.
5023         Delete "zero" tail, use "end_max" instead.
5024         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
5025
5026 2013-10-04  Alan Modra  <amodra@gmail.com>
5027
5028         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
5029         support.  Don't branch over align.
5030         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
5031         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
5032         support.  Rearrange tmp reg use to suit.  Comment.
5033         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
5034
5035 2013-10-04  Alan Modra  <amodra@gmail.com>
5036
5037         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
5038
5039 2013-10-04  Alan Modra  <amodra@gmail.com>
5040
5041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
5042         conditional form of branch and link when obtaining pc.
5043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
5044
5045 2013-10-04  Alan Modra  <amodra@gmail.com>
5046
5047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
5048         HIWORD/LOWORD.
5049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
5050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
5051
5052 2013-10-04  Alan Modra  <amodra@gmail.com>
5053
5054         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
5055         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
5056         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5057         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
5058         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5059         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5060         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
5061         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5062         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5063         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
5064
5065 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5066             Alistair Popple <alistair@ozlabs.au.ibm.com>
5067             Alan Modra <amodra@gmail.com>
5068
5069         [BZ #15723]
5070         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
5071         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
5072         _dl_hwcap access for little-endian.
5073         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
5074         destroy vmx regs when saving unaligned.
5075         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
5076         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
5077         destroy vmx regs when saving unaligned.
5078
5079 2013-10-04  Alan Modra  <amodra@gmail.com>
5080
5081         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
5082         Don't use a union to pack hi/low value.
5083
5084 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5085
5086         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
5087         for little-endian.
5088         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
5089         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
5090         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
5091         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
5092         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
5093
5094 2013-10-04  Alan Modra  <amodra@gmail.com>
5095
5096         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
5097         constants to usual value for .cst8 section, and remove redundant
5098         high address load.
5099         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
5100         constant for 0x1p52.  Load little-endian words of double from
5101         correct stack offsets.
5102
5103 2013-10-04  Alan Modra  <amodra@gmail.com>
5104
5105         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
5106         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
5107         words of double from correct stack offsets.
5108         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
5109         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
5110         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
5111         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
5112         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
5113         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
5114         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
5115         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
5116         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
5117         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
5118         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
5119         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
5120         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5121         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5122         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5123         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
5124         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
5125
5126 2013-10-04  Alan Modra  <amodra@gmail.com>
5127
5128         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
5129         64-bit int/double union.
5130         (_FPU_SETCW): Likewise.
5131         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5132         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
5133
5134 2013-10-04  Alan Modra  <amodra@gmail.com>
5135
5136         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
5137         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
5138
5139 2013-10-04  Alan Modra  <amodra@gmail.com>
5140
5141         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
5142         use vector int constants.
5143         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
5144
5145 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5146
5147         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
5148         array with long long.
5149         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
5150         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
5151         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
5152         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
5153         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
5154         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
5155         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
5156         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
5157         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
5158         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
5159         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
5160         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
5161         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
5162
5163 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5164
5165         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
5166         (__signbit): Likewise.  Correct for little-endian.
5167         (__signbitl): Call __signbit.
5168         (lrint): Correct for little-endian.
5169         (lrintf): Call lrint.
5170
5171 2013-10-04  Alan Modra  <amodra@gmail.com>
5172
5173         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
5174         union 32-bit int array member with 64-bit int array.
5175         (t515, tm256): Double rather than long double.
5176         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
5177
5178 2013-10-04  Alan Modra  <amodra@gmail.com>
5179
5180         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
5181         Delete.
5182         (IEEE854_LONG_DOUBLE_BIAS): Delete.
5183         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
5184         version of math_ldbl.h.
5185
5186 2013-10-04  Alan Modra  <amodra@gmail.com>
5187
5188         [BZ #15734], [BZ #15735]
5189         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
5190         all uses of ieee875 long double macros and unions.  Simplify test
5191         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
5192         ldbl_extract_mantissa value for ix,iy exponents.  Properly
5193         normalize after ldbl_extract_mantissa, and don't add hidden bit
5194         already handled.  Don't treat low word of ieee854 mantissa like
5195         low word of IBM long double and mask off bit when testing for
5196         zero.
5197         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
5198         all uses of ieee875 long double macros and unions.  Simplify tests
5199         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
5200         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
5201         two1022, instead use their values.  Recognise that tests for large
5202         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
5203         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
5204         Rewrite all uses of ieee875 long double macros and unions.  Simplify
5205         test for 0.0L and nan.  Correct negation.
5206         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
5207         ieee875 long double macros and unions.  Correct output for large
5208         magnitude x.  Correct absolute value calculation.
5209         (__erfcl): Likewise.
5210         * math/libm-test.inc: Add tests for errors discovered in IBM long
5211         double versions of fmodl, remainderl, erfl and erfcl.
5212
5213 2013-10-04  Alan Modra  <amodra@gmail.com>
5214
5215         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
5216         all uses of ieee854 long double macros and unions.  Simplify tests
5217         for long doubles that are fully specified by the high double.
5218         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5219         Likewise.
5220         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
5221         Remove dead code too.
5222         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5223         (__ieee754_ynl): Likewise.
5224         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5225         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
5226         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
5227         Remove dead code too.
5228         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
5229         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
5230         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
5231         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
5232         Simplify.
5233         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
5234         Simplify.
5235         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
5236         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
5237         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
5238         Comment on variable precision.
5239         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
5240         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5241         Likewise.
5242         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5243         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5244         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5245         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
5246         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
5247
5248 2013-10-04  Alan Modra  <amodra@gmail.com>
5249
5250         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
5251         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
5252         all uses of ieee854 long double macros and unions.
5253         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
5254         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5255         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
5256         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
5257         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5258         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5259         Likewise.
5260         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
5261         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5262         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
5263         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5264         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
5265         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
5266         Simplify sign and nan test too.
5267         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
5268         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
5269         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
5270         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
5271         Likewise.
5272         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5273         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
5274         Likewise.
5275         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5276         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
5277         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
5278         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
5279         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
5280         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
5281
5282 2013-10-04  Alan Modra  <amodra@gmail.com>
5283
5284         * stdio-common/printf_size.c (__printf_size): Don't use
5285         union ieee854_long_double in fpnum union.
5286         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
5287         signbit macro to retrieve sign from long double.
5288         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
5289         retrieve sign from long double.
5290         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
5291         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
5292         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
5293         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5294         * math/test-misc.c (main): Don't use union ieee854_long_double.
5295
5296 2013-10-04  Alan Modra  <amodra@gmail.com>
5297
5298         [BZ #15680]
5299         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
5300         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5301         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
5302         calculation.  Remove unnecessary test for denormal exponent.
5303         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
5304         Correct handling of denormals.  Avoid undefined shift behaviour.
5305         Correct normalisation of low mantissa when low double is denormal.
5306         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
5307         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
5308         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
5309         Correct normalisation of low mantissa.  Test for overflow of high
5310         mantissa and normalise.
5311         (ldbl_nearbyint): Use more readable constant for two52.
5312         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5313         (__mpn_construct_long_double): Fix test for overflow of high
5314         mantissa and correct normalisation.  Avoid undefined shift.
5315
5316 2013-10-04  Alan Modra  <amodra@gmail.com>
5317
5318         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5319         (union ibm_extended_long_double): Define as an array of ieee754_double.
5320         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
5321         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
5322         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
5323         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5324         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5325         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
5326         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5327         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5328         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5329         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
5330         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
5331
5332 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
5333
5334         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
5335         page size instead of calling getpagesize.
5336
5337         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
5338         (LOCFILE_ALIGN_MASK): Likewise.
5339         (LOCFILE_ALIGN_UP): Likewise.
5340         (LOCFILE_ALIGNED_P): Likewise.
5341         * locale/programs/ld-collate.c (collate_output): Use the new
5342         macros instead of __alignof__ (int32_t).
5343         * locale/weight.h (findidx): Likewise.
5344
5345 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
5346
5347         [BZ #431]
5348         * manual/string.texi: Fix strncat and wcsncat.
5349
5350 2013-10-03  Brooks Moses  <bmoses@google.com>
5351
5352         [BZ #15915]
5353         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
5354         * Makerules: ...here, and adjust associated comments.
5355
5356 2013-10-02  Will Newton  <will.newton@linaro.org>
5357
5358         * malloc/Makefile: Add tst-pvalloc.
5359         * malloc/tst-pvalloc.c: New file.
5360
5361 2013-10-02  Will Newton  <will.newton@linaro.org>
5362
5363         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
5364         improve test coverage.
5365
5366 2013-10-02  Will Newton  <will.newton@linaro.org>
5367
5368         * malloc/Makefile: Add tst-posix_memalign.
5369         * malloc/tst-posix_memalign.c: New file.
5370
5371 2013-10-01  Eric Blake  <eblake@redhat.com>
5372
5373         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
5374         Use __THROWNL rather than __THROW on static functions.
5375
5376 2013-09-30  Petr Machata  <pmachata@redhat.com>
5377
5378         * elf/elf.h (R_AARCH64_ABS16): New macro.
5379         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
5380         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
5381         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
5382         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
5383         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
5384         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
5385         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
5386         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
5387         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
5388         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
5389         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
5390         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
5391         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
5392         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
5393         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
5394         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
5395         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
5396         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
5397         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
5398         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
5399         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
5400         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
5401         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
5402         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
5403         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
5404         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
5405         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
5406         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
5407         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
5408         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
5409         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
5410         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
5411         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
5412         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
5413         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
5414         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
5415         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
5416         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
5417         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
5418         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
5419         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
5420         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
5421         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
5422         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
5423         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
5424         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
5425         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
5426         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
5427         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
5428         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
5429         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
5430         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
5431         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
5432         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
5433         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
5434         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
5435         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
5436         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
5437         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
5438         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
5439         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
5440         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
5441         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
5442         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
5443         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
5444         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
5445         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
5446         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
5447         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
5448         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
5449         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
5450         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
5451         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
5452         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
5453         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
5454         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
5455         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
5456         (R_AARCH64_TLSDESC_LDR): Likewise.
5457         (R_AARCH64_TLSDESC_ADD): Likewise.
5458         (R_AARCH64_TLSDESC_CALL): Likewise.
5459
5460 2013-09-30  Andreas Schwab  <schwab@suse.de>
5461
5462         [BZ #15048]
5463         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
5464         the nss database lookup.
5465         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5466         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5467
5468 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
5469
5470         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
5471
5472 2013-09-28  P. J. McDermott  <pj@pehjota.net>
5473
5474         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
5475         ${Bash-specific parameter/pattern/string} parameter expansion.
5476         * sysdeps/unix/make-syscalls.sh: Likewise.
5477
5478 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5479
5480         * sysdeps/sh/stackguard-macros.h: New file.
5481
5482 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
5483
5484         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
5485         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
5486         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
5487         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
5488         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5489         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
5490
5491 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5492
5493         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
5494         Fix thread ID register.
5495
5496 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
5497
5498         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
5499         [POSIX || UNIX98]: Require rather than permitting all symbols from
5500         <time.h>.
5501         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
5502         element of struct sched_param.
5503         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
5504         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
5505         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
5506         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
5507         constant.
5508
5509 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
5510
5511         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
5512         argument calculation.
5513
5514 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5515
5516         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
5517         Expect macro.
5518         [POSIX] (pthread_attr_t): Do not require type.
5519         [POSIX] (pthread_cond_t): Likewise.
5520         [POSIX] (pthread_condattr_t): Likewise.
5521         [POSIX] (pthread_key_t): Likewise.
5522         [POSIX] (pthread_mutex_t): Likewise.
5523         [POSIX] (pthread_mutexattr_t): Likewise.
5524         [POSIX] (pthread_once_t): Likewise.
5525         [POSIX] (pthread_t): Likewise.
5526         [POSIX-based standards] (pthread_atfork): Expect function.
5527
5528 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5529             Richard Sandiford  <richard@codesourcery.com>
5530
5531         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
5532         (swap_endianness_p): New extern variable.
5533         (set_big_endian): New inline function.
5534         (maybe_swap_uint32): Likewise.
5535         (maybe_swap_uint32_array): Likewise.
5536         (maybe_swap_uint32_obstack): Likewise.
5537         * locale/programs/locfile.c: Include <stdbool.h>.
5538         (swap_endianness_p): New variable.
5539         (add_locale_uint32): Call maybe_swap_uint32.
5540         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
5541         (write_locale_data): Call maybe_swap_uint32_array.
5542         * locale/programs/ld-collate.c (obstack_int32_grow): Call
5543         maybe_swap_uint32.
5544         (obstack_int32_grow_fast): Likewise.
5545         (output_weightwc): Call maybe_swap_uint32_obstack.
5546         (collate_output): Likewise.
5547         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
5548         (OPT_LITTLE_ENDIAN): Likewise.
5549         (options): Add --little-endian and --big-endian options.
5550         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
5551         * locale/programs/locarchive.c: Include "locfile.h".
5552         (GET): New macro.
5553         (SET): Likewise.
5554         (INC): Likewise.
5555         (create_archive): Use the new macros to access fields of
5556         structures directly mapped from or written to locale archives.
5557         (oldlocrecentcmp): Likewise.
5558         (enlarge_archive): Likewise.
5559         (insert_name): Likewise.
5560         (add_alias): Likewise.
5561         (add_locale): Likewise.
5562         (delete_locales_from_archive): Likewise.
5563         (show_archive_content): Likewise.
5564         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
5565         locale data.
5566
5567 2013-09-24  Roland McGrath  <roland@hack.frob.com>
5568
5569         * manual/freemanuals.texi: Updated from (newly) canonical copy at
5570         http://www.gnu.org/doc/freemanuals.texi.
5571         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
5572
5573 2013-09-24  Will Newton  <will.newton@linaro.org>
5574
5575         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
5576         macro.
5577
5578 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
5579
5580         * locale/hashval.h (compute_hashval): Interpret bytes of key as
5581         unsigned char.
5582
5583 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
5584
5585         * manual/threads.texi (POSIX Threads): Fix a typo.
5586
5587 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5588
5589         [BZ #14547]
5590         * string/tst-strcoll-overflow.c: New test case.
5591         * string/Makefile (xtests): Add tst-strcoll-overflow.
5592         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
5593         cache if string sizes may cause integer overflow.
5594
5595         [BZ #14547]
5596         * string/strcoll_l.c (coll_seq): New members rule, idx,
5597         save_idx and back_us.
5598         (get_next_seq_nocache): New function.
5599         (do_compare_nocache): New function.
5600         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
5601         when malloc fails.
5602
5603 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
5604
5605         [BZ #15754]
5606         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
5607         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
5608         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
5609
5610         [BZ #15754]
5611         * elf/Makefile (tests): Add tst-ptrguard1.
5612         (tests-static): Add tst-ptrguard1-static.
5613         (tst-ptrguard1-ARGS): Define.
5614         (tst-ptrguard1-static-ARGS): Define.
5615         * elf/tst-ptrguard1.c: New file.
5616         * elf/tst-ptrguard1-static.c: New file.
5617         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
5618         * sysdeps/i386/stackguard-macros.h: Likewise.
5619         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5620         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5621         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5622         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5623         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5624         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5625
5626 2013-09-23  Hector Marco  <hecmargi@upv.es>
5627             Ismael Ripoll  <iripoll@disca.upv.es>
5628             Carlos O'Donell  <carlos@redhat.com>
5629
5630         [BZ #15754]
5631         * sysdeps/generic/stackguard-macros.h: Define
5632         __pointer_chk_guard_local and POINTER_CHK_GUARD.
5633         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
5634         Define __pointer_chk_guard_local.
5635         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
5636         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
5637
5638 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
5639
5640         [BZ #15859]
5641         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
5642
5643 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
5644
5645         * include/string.h (__ffs): Declare as hidden.
5646         * string/ffs.c (__ffs): Define as hidden.
5647         * sysdeps/i386/ffs.c (__ffs): Likewise.
5648         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
5649         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
5650         * sysdeps/s390/ffs.c (__ffs): Likewise.
5651         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
5652
5653 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
5654
5655         * NEWS: Mention malloc probes.
5656
5657         * malloc/arena.c (new_heap): New memory_heap_new probe.
5658         (grow_heap): New memory_heap_more probe.
5659         (shrink_heap): New memory_heap_less probe.
5660         (heap_trim): New memory_heap_free probe.
5661         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
5662         (systrim): New memory_sbrk_less probe.
5663         * manual/probes.texi: Document them.
5664
5665         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
5666         * manual/probes.texi: Document it.
5667
5668         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
5669         (__libc_realloc): Add memory_realloc_retry probe.
5670         (__libc_memalign): Add memory_memalign_retry probe.
5671         (__libc_valloc): Add memory_valloc_retry probe.
5672         (__libc_pvalloc): Add memory_pvalloc_retry probe.
5673         (__libc_calloc): Add memory_calloc_retry probe.
5674         * manual/probes.texi: Document them.
5675
5676         * malloc/arena.c (get_free_list): Add probe
5677         memory_arena_reuse_free_list.
5678         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
5679         and memory_arena_reuse.
5680         (arena_get2) [!PER_THREAD]: Likewise.
5681         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
5682         memory_arena_reuse_realloc.
5683         * manual/probes.texi: Document them.
5684
5685         * malloc/malloc.c (__libc_free): Add
5686         memory_mallopt_free_dyn_thresholds probe.
5687         (__libc_mallopt): Add multiple memory_mallopt probes.
5688         * manual/probes.texi: Document them.
5689
5690         * malloc/malloc.c: Include stap-probe.h.
5691         (__libc_mallopt): Add memory_mallopt probe.
5692         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
5693         * manual/probes.texi: New.
5694         * manual/Makefile (chapters): Add probes.
5695         * manual/threads.texi: Set next node.
5696
5697 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
5698
5699         [BZ #15963, #13985]
5700         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
5701         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
5702         Add `Chinese' to `nan' entry name.
5703
5704 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5705
5706         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
5707         (POLYNOMIAL): Likewise.
5708         (TAYLOR_SINCOS): Likewise.
5709         (TAYLOR_SLOW): Likewise.
5710         (__sin): Use TAYLOR_SINCOS.
5711         (__cos): Likewise.
5712         (slow): Use TAYLOR_SLOW.
5713         (sloww): Likewise.
5714         (bsloww): Likewise.
5715         (csloww): Likewise.
5716
5717 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5718
5719         * stdlib/strtod_l.c: Fix buffer overrun.
5720
5721 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5722
5723         * benchtests/Makefile (bench): Add sincos.
5724         * benchtests/bench-sincos.c: New file.
5725
5726         * math/libm-test.inc (cos_test_data): New test inputs.
5727         (sin_test_data): Likewise.
5728
5729         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
5730         macro.
5731         (__sin): Use it.
5732         (__cos): Likewise.
5733         (slow1): Likewise.
5734         (slow2): Likewise.
5735         (sloww1): Likewise.
5736         (sloww2): Likewise.
5737         (bsloww1): Likewise.
5738         (bsloww2): Likewise.
5739         (cslow2): Likewise.
5740         (csloww1): Likewise.
5741         (csloww2): Likewise.
5742
5743         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
5744         function.
5745         (__sin): Use it.
5746         (__cos): Likewise.
5747
5748         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
5749         gotos.
5750         (__cos): Likewise.
5751
5752 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
5753
5754         * config.h.in (HAVE_MIPS_NAN2008): New macro.
5755         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
5756         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
5757         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
5758         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
5759         * elf/cache.c (print_entry): Handle the new cache flags.
5760
5761 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5762             Aldy Hernandez  <aldyh@redhat.com>
5763
5764         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
5765         Change condition to [_SOFT_FLOAT].
5766         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
5767         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
5768         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
5769         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
5770         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
5771         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
5772         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
5773         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
5774         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
5775         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
5776         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
5777         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
5778         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
5779         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
5780         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
5781         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
5782         declaration.
5783
5784 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5785
5786         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
5787         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5788         (__longjmp): Use LOAD_GP to load saved GPRs.
5789         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
5790         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5791         (__sigsetjmp): Use SAVE_GP to save GPRs.
5792
5793         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
5794         Do not append -msoft-float.
5795         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
5796
5797 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5798
5799         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
5800
5801 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
5802
5803         [BZ #15966]
5804         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
5805         (_FPU_GETCW): Use initial "__" on variable and field names but not
5806         on macro parameter name.
5807         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
5808         parentheses around reference to macro parameter.
5809
5810 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
5811
5812         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
5813         prototype.
5814         (ctype_startup): Use uint32_t in cast and sizeof for
5815         ctype->charnames.
5816
5817 2013-09-11  Jia Liu  <proljc@gmail.com>
5818
5819         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
5820         __daddr_t_defined.
5821         [__FreeBSD__]: Likewise.
5822
5823 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
5824
5825         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
5826         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
5827         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
5828         (strchr): Remove __strchr_sse42 ifunc selection.
5829         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
5830         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
5831
5832 2013-09-11  Will Newton  <will.newton@linaro.org>
5833
5834         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
5835         parameter to RES. Remove hardcoded 1000 value.
5836         * benchtests/bench-skeleton.c (main): Pass RES parameter
5837         to TIMING_INIT and multiply result by 1000.
5838
5839 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5840
5841         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5842
5843 2013-09-11  Andreas Schwab  <schwab@suse.de>
5844
5845         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
5846         if not defined.
5847         (O_TMPFILE) [__USE_GNU]: Define.
5848         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
5849         Define.
5850
5851 2013-09-11  Will Newton  <will.newton@linaro.org>
5852
5853         [BZ #15857]
5854         * malloc/malloc.c (__libc_memalign): Check the value of bytes
5855         does not overflow.
5856
5857 2013-09-11  Will Newton  <will.newton@linaro.org>
5858
5859         [BZ #15856]
5860         * malloc/malloc.c (__libc_valloc): Check the value of bytes
5861         does not overflow.
5862
5863 2013-09-11  Will Newton  <will.newton@linaro.org>
5864
5865         [BZ #15855]
5866         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
5867         does not overflow.
5868
5869 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
5870
5871         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
5872         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5873         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5874         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5875         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5876
5877 2013-09-10  Allan McRae  <allan@archlinux.org>
5878
5879         [BZ #15748]
5880         * manual/arith.texi (Parsing of Floats): Clarify
5881         cross-reference.
5882
5883         [BZ #15849]
5884         * manual/install.texi (Running make install): Mention
5885         --enable-pt-chown.
5886         * INSTALL: Regenerated.
5887
5888 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
5889
5890         * csu/init-first.c (_init): Remove the !SHARED condition around
5891         FPU control word initialization.
5892         * elf/dl-support.c (_dl_fpu_control): New variable.
5893         (_dl_aux_init) <AT_FPUCW>: Initialize it.
5894         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
5895         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
5896         * math/test-fpucw-static.c: New file.
5897         * math/test-fpucw-ieee.c: New file.
5898         * math/test-fpucw-ieee-static.c: New file.
5899         * math/Makefile (tests): Add `test-fpucw-ieee' and
5900         `$(tests-static)'.
5901         (tests-static): New variable.
5902         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
5903         dependency to...
5904         [($(build-shared),yes)]
5905         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
5906         ... this.
5907         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
5908         New dependency.
5909
5910 2013-09-09  Allan McRae  <allan@archlinux.org>
5911
5912         [BZ #15939]
5913         * manual/string.texi (Collation Functions): Fix typo in
5914         strcoll example.
5915         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
5916
5917         [BZ #15893]
5918         * stdlib/isomac.c (get_null_defines): Fix memory leak.
5919
5920         [BZ #15892]
5921         * libio/memstream.c (open_memstream): Fix memory leak.
5922         * libio/wmemstream.c (open_wmemstream): Likewise.
5923
5924         [BZ #15895]
5925         * nscd/netgroupcache.c: Fix nesting of ifdefs.
5926
5927 2013-09-09  Will Newton  <will.newton@linaro.org>
5928
5929         * malloc/Makefile: Add tst-realloc to tests.
5930         * malloc/tst-realloc.c: New file.
5931
5932 2013-09-09  Allan McRae  <allan@archlinux.org>
5933
5934         [BZ #15844]
5935         * COPYING: Update from GNU website to fix FSF address.
5936         * COPYING.LIB: Likewise.
5937
5938 2013-09-06  David S. Miller  <davem@davemloft.net>
5939
5940         * po/zh_TW.po: Update Chinese (traditional) translation from
5941         translation project.
5942
5943 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
5944             Joseph Myers  <joseph@codesourcery.com>
5945
5946         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
5947         "localeinfo.h".
5948         (obstack_chunk_alloc): New macro.
5949         (obstack_chunk_free): Likewise.
5950         (record_offset): New function.
5951         (init_locale_data): Likewise.
5952         (align_locale_data): Likewise.
5953         (add_locale_empty): Likewise.
5954         (add_locale_raw_data): Likewise.
5955         (add_locale_raw_obstack): Likewise.
5956         (add_locale_string): Likewise.
5957         (add_locale_wstring): Likewise.
5958         (add_locale_uint32): Likewise.
5959         (add_locale_uint32_array): Likewise.
5960         (add_locale_char): Likewise.
5961         (start_locale_structure): Likewise.
5962         (end_locale_structure): Likewise.
5963         (start_locale_prelude): Likewise.
5964         (end_locale_prelude): Likewise.
5965         (write_locale_data): Take locale_file structure rather than an
5966         iovec.
5967         * locale/programs/locfile.h: Include "obstack.h".
5968         (struct locale_file): Change to store locale file contents instead
5969         of header.
5970         (init_locale_data): New prototype.
5971         (align_locale_data): Likewise.
5972         (add_locale_empty): Likewise.
5973         (add_locale_raw_data): Likewise.
5974         (add_locale_raw_obstack): Likewise.
5975         (add_locale_string): Likewise.
5976         (add_locale_wstring): Likewise.
5977         (add_locale_uint32): Likewise.
5978         (add_locale_uint32_array): Likewise.
5979         (add_locale_char): Likewise.
5980         (start_locale_structure): Likewise.
5981         (end_locale_structure): Likewise.
5982         (start_locale_prelude): Likewise.
5983         (end_locale_prelude): Likewise.
5984         (write_locale_data): Update prototype.
5985         * locale/programs/3level.h (struct TABLE): Remove result field.
5986         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
5987         Use new locale_file interface.
5988         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
5989         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
5990         * locale/programs/ld-address.c (address_output): Use new
5991         locale_file interface.
5992         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
5993         NO_ADD_LOCALE.
5994         (collate_finish): Don't call collseq_table_finalize.
5995         (collate_output): Use new locale_file interface.
5996         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
5997         in file.
5998         (NO_FINALIZE): Change to NO_ADD_LOCALE.
5999         (TABLE): Move defines earlier in file.
6000         (ELEMENT): Likewise.
6001         (DEFAULT): Likewise.
6002         (wctrans_table_add): Move macro and inline function earlier in
6003         file.
6004         (struct wctype_table): Move type earlier in file.
6005         (add_locale_wctype_table): New static prototype.
6006         (struct locale_ctype_t): Use logical types instead of struct iovec
6007         pointers for members.
6008         (ctype_output): Use new locale_file interface.
6009         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
6010         new locale_file interface.
6011         (allocate_arrays): Update for use of new locale_file interface.
6012         * locale/programs/ld-identification.c (identification_output): Use
6013         new locale_file interface.
6014         * locale/programs/ld-measurement.c (measurement_output): Likewise.
6015         * locale/programs/ld-messages.c (messages_output): Likewise.
6016         * locale/programs/ld-monetary.c (monetary_output): Likewise.
6017         * locale/programs/ld-name.c (name_output): Likewise.
6018         * locale/programs/ld-numeric.c (numeric_output): Likewise.
6019         * locale/programs/ld-paper.c (paper_output): Likewise.
6020         * locale/programs/ld-telephone.c (telephone_output): Likewise.
6021         * locale/programs/ld-time.c (time_output): Likewise.
6022
6023 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6024
6025         * benchtests/Makefile: Add memrchr benchmark.
6026         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
6027         benchmark as memrchr.
6028         * benchtests/bench-memrchr-ifunc.c: New file.
6029         * benchtests/bench-memrchr.c: New file.
6030
6031 2013-09-06   Will Newton  <will.newton@linaro.org>
6032
6033         * benchtests/Makefile (string-bench): Add memcpy.
6034
6035 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
6036             Cong Wang  <amwang@redhat.com>
6037
6038         [BZ #15850]
6039         * sysdeps/unix/sysv/linux/bits/in.h
6040         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
6041         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
6042         before __USE_KERNEL_IPV6_DEFS uses.
6043         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
6044         IPPROTO_BEETPH.
6045         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
6046         sockaddr_in6, or ipv6_mreq.
6047
6048 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6049
6050         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
6051         memory access for final bytes in some large inputs.
6052         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
6053
6054 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6055
6056         * string/test-memrchr.c: New file.
6057         * string/test-memrchr-ifunc.c: New file.
6058         * string/Makefile: Add new memrchr testcase.
6059
6060 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
6061
6062         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
6063         fanotify_init returns EPERM.
6064
6065 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6066
6067         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
6068         errors.
6069         (top level): Treat second token from macro or constant entries for
6070         allowed headers as allowed.
6071         * include/complex.h: Condition internal declarations on
6072         [!_ISOMAC].
6073         * include/fenv.h: Condition include of <stdbool.h> and internal
6074         declarations on [!_ISOMAC].
6075
6076 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
6077
6078         [BZ #15923]
6079         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
6080
6081 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6082
6083         * configure.in (--enable-versioning): Remove configure option.
6084         (libc_cv_asm_symver_directive): Remove configure test.
6085         (libc_cv_ld_version_script_option): Likewise.
6086         (VERSIONING): Remove variable and AC_SUBST.
6087         (DO_VERSIONING): Remove AC_DEFINE.
6088         * configure: Regenerated.
6089         * config.h.in (DO_VERSIONING): Remove macro.
6090         * Makerules [$(versioning) = yes]: Change conditionals to
6091         [$(build-shared) = yes].
6092         * config.make.in (versioning): Remove variable.
6093         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
6094         [$(build-shared) = yes].
6095         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
6096         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
6097         * elf/Makefile [$(versioning) = yes]: Change conditionals to
6098         [$(build-shared) = yes].
6099         * extra-lib.mk [$(versioning) = yes]: Likewise.
6100         * hurd/Makefile [$(versioning) = yes]: Likewise.
6101         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
6102         [SHARED].
6103         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
6104         [SHARED].
6105         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6106         [SHARED && !NO_HIDDEN].
6107         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
6108         [SHARED].
6109         [SHARED && DO_VERSIONING]: Likewise..
6110         * libio/Makefile [$(versioning) = yes]: Change conditionals to
6111         [$(build-shared) = yes].
6112         * manual/install.texi (--disable-versioning): Remove
6113         documentation.
6114         * INSTALL: Regenerated.
6115         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
6116         to [SHARED].
6117         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
6118         [$(build-shared) = yes].
6119         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
6120         * sysdeps/i386/i686/multiarch/strstr-c.c
6121         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6122         [SHARED && !NO_HIDDEN].
6123         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
6124         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
6125         * sysdeps/powerpc/powerpc32/dl-machine.c
6126         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
6127         * sysdeps/powerpc/powerpc32/sysdep.h
6128         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
6129         to [SHARED && PIC && !NO_HIDDEN].
6130         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
6131         conditional to [SHARED].
6132
6133 2013-09-04   Will Newton  <will.newton@linaro.org>
6134
6135         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
6136         * benchtests/bench-string.h: Include bench-timing.h instead
6137         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
6138         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
6139         call to HP_TIMING_DIFF_INIT.
6140         * benchtests/bench-memccpy.c: Use bench-timing.h macros
6141         instead of hp-timing.h macros.
6142         * benchtests/bench-memchr.c: Likewise.
6143         * benchtests/bench-memcmp.c: Likewise.
6144         * benchtests/bench-memcpy.c: Likewise.
6145         * benchtests/bench-memmem.c: Likewise.
6146         * benchtests/bench-memmove.c: Likewise.
6147         * benchtests/bench-memset.c: Likewise.
6148         * benchtests/bench-rawmemchr.c: Likewise.
6149         * benchtests/bench-strcasecmp.c: Likewise.
6150         * benchtests/bench-strcasestr.c: Likewise.
6151         * benchtests/bench-strcat.c: Likewise.
6152         * benchtests/bench-strchr.c: Likewise.
6153         * benchtests/bench-strcmp.c: Likewise.
6154         * benchtests/bench-strcpy.c: Likewise.
6155         * benchtests/bench-strcpy_chk.c: Likewise.
6156         * benchtests/bench-strlen.c: Likewise.
6157         * benchtests/bench-strncasecmp.c: Likewise.
6158         * benchtests/bench-strncat.c: Likewise.
6159         * benchtests/bench-strncmp.c: Likewise.
6160         * benchtests/bench-strncpy.c: Likewise.
6161         * benchtests/bench-strnlen.c: Likewise.
6162         * benchtests/bench-strpbrk.c: Likewise.
6163         * benchtests/bench-strrchr.c: Likewise.
6164         * benchtests/bench-strspn.c: Likewise.
6165         * benchtests/bench-strstr.c: Likewise.
6166
6167 2013-09-04  Will Newton  <will.newton@linaro.org>
6168
6169         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
6170
6171 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
6172
6173         [BZ #15427]
6174         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
6175         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
6176         * math/libm-test.inc (lgamma_test_data): Add more tests.
6177         * sysdeps/i386/fpu/libm-test-ulps: Update.
6178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6179
6180 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
6181
6182         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
6183         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
6184         Add ifunc.
6185         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
6186         Add strcmp-sse2-unaligned
6187         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
6188
6189 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6190
6191         * Versions.def (libc): Add GLIBC_2.19.
6192
6193 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6194
6195         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
6196         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
6197
6198 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
6199
6200         [BZ #14155]
6201         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
6202         intermediate calculations in recurrence.
6203         (__ieee754_ynf): Likewise.
6204         * math/libm-test.inc (jn_test_data): Do not allow spurious
6205         underflow exception.  Add more tests.
6206         (yn_test_data): Add more tests.
6207         * sysdeps/i386/fpu/libm-test-ulps: Update.
6208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6209
6210 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
6211
6212         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
6213
6214 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6215
6216         * csu/init-first.c: Fix then/than typos.
6217         * locale/programs/ld-collate.c: Likewise.
6218         * locale/programs/linereader.h: Likewise.
6219         * manual/charset.texi: Likewise.
6220         * manual/filesys.texi: Likewise.
6221         * manual/stdio.texi: Likewise.
6222         * manual/string.texi: Likewise.
6223         * stdlib/fmtmsg.c: Likewise.
6224         * sysdeps/i386/stpncpy.S: Likewise.
6225         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6226         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
6227         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6228         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6229
6230 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6231
6232         * elf/dl-open.c: Fix typos.
6233         * iconvdata/gbbig5.c: Likewise.
6234         * iconvdata/iso-2022-jp.c: Likewise.
6235         * iconv/gconv_int.h: Likewise.
6236         * iconv/loop.c: Likewise.
6237         * nis/rpcsvc/nis.h: Likewise.
6238         * resolv/ns_name.c: Likewise.
6239         * stdio-common/vfscanf.c: Likewise.
6240         * streams/stropts.h: Likewise.
6241         * sunrpc/rpc_thread.c: Likewise.
6242         * sysdeps/i386/strpbrk.S: Likewise.
6243         * sysdeps/ieee754/k_standard.c: Likewise.
6244         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6245         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6246         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6247         * sysdeps/mach/hurd/profil.c: Likewise.
6248         * sysdeps/s390/dl-procinfo.h: Likewise.
6249         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6250         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6251         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6252         * sysdeps/x86_64/dl-trampoline.S: Likewise.
6253         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6254
6255 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
6256
6257         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
6258         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
6259
6260 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
6261
6262         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
6263         aix specific files.
6264         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
6265         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
6266         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
6267         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
6268         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
6269         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
6270         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
6271         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
6272
6273 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6274             Roland McGrath  <roland@hack.frob.com>
6275
6276         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
6277         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6278
6279 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6280
6281         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
6282         __executable_start symbol instead of _start.
6283
6284 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6285
6286         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
6287         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
6288         Move macros to...
6289         * sysdeps/gnu/ldsodefs.h: ... this new file.
6290
6291         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
6292         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
6293         instead of ELFOSABI_LINUX.
6294
6295         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
6296         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
6297         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
6298         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
6299         Likewise.
6300         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
6301         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
6302         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
6303         Likewise.
6304         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
6305         (ibm_extended_long_double): Add ieee_nan member.
6306         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
6307         (do_test): New function.
6308
6309         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
6310         TEST_TRUNC.
6311         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
6312         functions, renamed from truncdfsf_test, trunctfsf_test,
6313         trunctfdf_test.
6314         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
6315         functions.
6316         (do_test): Run all these.
6317
6318 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
6319
6320         * argp/argp-help.c: Fix typos.
6321         * argp/argp-parse.c: Likewise.
6322         * debug/backtracesyms.c: Likewise.
6323         * elf/elf.h: Likewise.
6324         * malloc/malloc.c: Likewise.
6325         * nis/nis_print.c: Likewise.
6326         * resolv/res_comp.c: Likewise.
6327         * stdlib/stdlib.h: Likewise.
6328         * sunrpc/clnt_tcp.c: Likewise.
6329         * sunrpc/clnt_udp.c: Likewise.
6330         * sunrpc/clnt_unix.c: Likewise.
6331         * sysdeps/unix/bsd/ptsname.c: Likewise.
6332         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6333         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
6334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
6335         Likewise.
6336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
6337         Likewise.
6338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
6339         Likewise.
6340         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6341
6342 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6343
6344         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
6345         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
6346
6347 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
6348
6349         [BZ #15897]
6350         * dlfcn/Makefile (tests): Add bug-dl-leaf.
6351         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
6352         ($(objpfx)bug-dl-leaf): New rule.
6353         ($(objpfx)bug-dl-leaf.so): Likewise.
6354         ($(objpfx)bug-dl-leaf.out): Likewise.
6355         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
6356         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
6357         * dlfcn/bug-dl-leaf.c: New test.
6358         * dlfcn/bug-dl-leaf-lib.c: Likewise.
6359         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
6360         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
6361         (dlclose): Likewise.
6362         (dlmopen): Likewise.
6363
6364 2013-08-27  Roland McGrath  <roland@hack.frob.com>
6365
6366         * include/netdb.h [!_ISOMAC]:
6367         Don't include <tls.h>.
6368         (h_errno, __libc_h_errno): Move declaration and macros out of
6369         [_LIBC_REENTRANT].
6370
6371         * include/resolv.h [_RESOLV_H_]:
6372         Don't include <tls.h>.
6373         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
6374         * resolv/res_libc.c: Don't include <tls.h>.
6375         (_res): Use __attribute__ ((nocommon)) in place of
6376         __attribute__ ((section (".bss"))).
6377
6378         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
6379         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
6380
6381         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
6382
6383         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
6384         only under [SIOCGIFCONF && SIOCGIFNETMASK].
6385
6386         * resolv/res_mkquery.c: Include <sys/time.h>.
6387
6388         * inet/ifreq.c: Moved to ...
6389         * sysdeps/unix/ifreq.c: ... here.
6390         * inet/ifreq.c: New file, true stub version.
6391
6392         * socket/sa_len.c: New file.
6393         * socket/Makefile (aux): Add it.
6394         * sysdeps/unix/sysv/linux/Makefile
6395         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
6396         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
6397         and #include <socket/sa_len.c>.
6398         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
6399         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
6400
6401         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
6402         * bits/socket.h: ... here.
6403
6404         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
6405         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
6406         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
6407
6408 2013-08-27  Andreas Schwab  <schwab@suse.de>
6409
6410         [BZ #15736]
6411         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
6412         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
6413         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
6414         * string/test-strcasecmp.c (test_main): Run tests in several
6415         locales.
6416         * string/test-strncasecmp.c (test_main): Likewise.
6417
6418         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
6419         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
6420         to __strcasecmp_nonascii and __strncasecmp_nonascii.
6421         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
6422         (__strncasecmp_ssse3) [PIC]: Likewise.
6423
6424 2013-08-26  Roland McGrath  <roland@hack.frob.com>
6425
6426         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
6427
6428         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
6429         instead of explicitly declaring xdecrypt.
6430         * nis/nss_nis/nis-publickey.c: Likewise.
6431
6432 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6433
6434         [BZ #15890]
6435         * nscd/aicache.c: Include res_hconf.h.
6436         (addhstaiX): Initialize res_hconf.
6437
6438 2013-08-26  Andreas Schwab  <schwab@suse.de>
6439
6440         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
6441         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
6442
6443 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6444
6445         * nscd/aicache.c (addhstaiX): Fix indentation.
6446
6447 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
6448
6449         * configure.ac: Quote $build_pt_chown test.
6450         * configure: Regenerated.
6451
6452 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
6453
6454         [BZ #15532]
6455         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
6456         * math/s_cexpf.c (__cexpf): Likewise.
6457         * math/s_cexpl.c (__cexpl): Likewise.
6458         * math/libm-test.inc (cexp_test_data): Correct expected return
6459         value for NaN + i0.  Add another test.
6460
6461 2013-08-22  David S. Miller  <davem@davemloft.net>
6462
6463         * po/ca.po: Update Catalan translation from translation project.
6464         * po/uk.po: Add Ukrainian translations from translation project.
6465
6466 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
6467
6468         [BZ #15797]
6469         * math/s_fdim.c (__fdim): Check for infinite arguments if result
6470         is infinite, not alongside NaN test.
6471         * math/s_fdimf.c (__fdimf): Likewise.
6472         * math/s_fdiml.c (__fdiml): Likewise.
6473         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
6474         errno is unchanged.
6475
6476 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
6477
6478         * argp/argp-help.c: Fix typos.
6479         * crypt/speeds.c: Likewise.
6480         * csu/check_fds.c: Likewise.
6481         * elf/dl-load.c: Likewise.
6482         * elf/dl-open.c: Likewise.
6483         * elf/reldep3.c: Likewise.
6484         * elf/reldep.c: Likewise.
6485         * elf/sprof.c: Likewise.
6486         * iconv/iconv_charmap.c: Likewise.
6487         * iconv/skeleton.c: Likewise.
6488         * iconv/strtab.c: Likewise.
6489         * io/lockf64.c: Likewise.
6490         * libio/libioP.h: Likewise.
6491         * resolv/gai_notify.c: Likewise.
6492         * resolv/ns_name.c: Likewise.
6493         * resolv/ns_samedomain.c: Likewise.
6494         * resolv/res_send.c: Likewise.
6495         * stdlib/random.c: Likewise.
6496         * sunrpc/rpc/xdr.h: Likewise.
6497         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
6498         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6499         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6500         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6501         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6502         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6503         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6504         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6505         * sysdeps/mach/hurd/check_fds.c: Likewise.
6506         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6507         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6508         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6509         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6510         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6511         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6512         * sysdeps/pthread/aio_notify.c: Likewise.
6513         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6514         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
6515         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
6516         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6517         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
6518
6519 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6520
6521         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
6522         version if bit_Slow_SSE4_2 is set.
6523         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6524         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6525
6526 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6527
6528         [BZ #15867]
6529         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
6530         trampoline stack frame information.
6531         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
6532         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
6533         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
6534         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
6535         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
6536         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6537         (_libc_vdso_platform_setup): Initialize the signal trampolines.
6538         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
6539         sa_flags value.
6540         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
6541         interrupting a syscall and set with option SA_SIGINFO.
6542
6543 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6544
6545         [BZ #15531]
6546         * math/s_cproj.c (__cproj): Only return an infinity if one part of
6547         argument is infinite.
6548         * math/s_cprojf.c (__cprojf): Likewise.
6549         * math/s_cprojl.c (__cprojl): Likewise.
6550         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
6551         * math/libm-test.inc (cproj_test_data): Add more tests.
6552
6553         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
6554
6555         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
6556         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
6557         size.  Use __ffs to determine corresponding shift.
6558
6559 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6560             Roland McGrath  <roland@hack.frob.com>
6561
6562         * Makefile (INSTALL): Remove trailing blank lines from output of
6563         makeinfo.
6564
6565 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6566
6567         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
6568         Align 32 bit compat elf_greg to 8 bytes.
6569
6570 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6571
6572         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
6573
6574 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6575
6576         * string/strcoll_l.c (coll_seq): New structure.
6577         (get_next_seq_cached): New function.
6578         (get_next_seq): New function.
6579         (do_compare): New function.
6580         (STRCOLL): Use GNU style definition.  Simplify implementation
6581         by using get_next_seq, get_next_seq_cached and do_compare.
6582
6583 2013-08-16  Florian Weimer  <fweimer@redhat.com>
6584
6585         [BZ #14699]
6586         CVE-2013-4237
6587         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
6588         member.
6589         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
6590         member.
6591         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
6592         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
6593         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
6594         conditional.
6595         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
6596         GETDENTS_64BIT_ALIGNED.
6597         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6598         * manual/filesys.texi (Reading/Closing Directory): Document
6599         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
6600         strongly.
6601         * manual/conf.texi (Limits for Files): Add portability note to
6602         NAME_MAX, PATH_MAX.
6603         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
6604
6605 2013-08-13  Andreas Schwab  <schwab@suse.de>
6606
6607         [BZ #15749]
6608         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
6609         of fabs.
6610         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
6611         LDBL_MAX_EXP >= 16384]: Add tests for it.
6612
6613 2013-08-12  David S. Miller  <davem@davemloft.net>
6614
6615         * version.h (RELEASE): Set to "development".
6616         (VERSION): Set to "2.18.90".
6617         * NEWS: Add 2.19 section.
6618
6619 2013-08-03  David S. Miller  <davem@davemloft.net>
6620
6621         * po/ko.po: Update Korean translation from translation project.
6622
6623 2013-08-01  David S. Miller  <davem@davemloft.net>
6624
6625         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
6626         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
6627         Bilka.
6628
6629 2013-07-30  David S. Miller  <davem@davemloft.net>
6630
6631         * po/fr.po: Update French translation from translation project.
6632
6633 2013-07-28  David S. Miller  <davem@davemloft.net>
6634
6635         * po/cs.po: Update Czech translation from translation project.
6636
6637         * po/sv.po: Update Swedish translation from translation project.
6638
6639 2013-07-27  David S. Miller  <davem@davemloft.net>
6640
6641         * po/eo.po: Update Esperanto translation from translation project.
6642
6643         * po/vi.po: Update Vietnamese translation from translation project.
6644
6645         * po/de.po: Update German translation from translation project.
6646
6647 2013-07-26  David S. Miller  <davem@davemloft.net>
6648
6649         * po/bg.po: Update Bulgarian translation from translation project.
6650
6651         * po/nl.po: Update Dutch translation from translation project.
6652         * po/pl.po: Update Polish translation from translation project.
6653         * po/ru.po: Update Russian translation from translation project.
6654
6655 2013-07-24  David S. Miller  <davem@davemloft.net>
6656
6657         * po/libc.pot: Update.
6658
6659 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6660
6661         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
6662         variable page size.
6663         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
6664         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
6665         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
6666
6667 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6668
6669         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
6670
6671 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6672             Andreas Schwab  <schwab@suse.de>
6673             Roland McGrath  <roland@hack.frob.com>
6674             Joseph Myers  <joseph@codesourcery.com>
6675             Carlos O'Donell  <carlos@redhat.com>
6676
6677         [BZ #15755]
6678         * config.h.in: Define HAVE_PT_CHOWN.
6679         * config.make.in (build-pt-chown): New variable.
6680         * configure.in (--enable-pt_chown): New configure option.
6681         * configure: Regenerate.
6682         * login/Makefile: Include Makeconfig.  Build pt_chown only if
6683         build-pt-chown is enabled.
6684         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
6685         pt_chown to fix pty ownership.
6686         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
6687         CLOSE_ALL_FDS.
6688         * manual/install.texi (Configuring and compiling): Mention
6689         --enable-pt_chown. Add @findex for grantpt.
6690         * INSTALL: Regenerate.
6691
6692 2013-07-20  David S. Miller  <davem@davemloft.net>
6693
6694         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
6695         difference between 32-bit and 64-bit.
6696
6697 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
6698
6699         [BZ #15711]
6700         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
6701         Avoid system header dependency with -ffreestanding.
6702         ($(objpfx)bits/syscall%d): Likewise.
6703
6704 2013-07-13  David S. Miller  <davem@davemloft.net>
6705
6706         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
6707         underflows from atanl/atan2l due to bug 15319.
6708         (casinh_test_data): Likewise.
6709
6710 2013-07-07  David S. Miller  <davem@davemloft.net>
6711
6712         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
6713
6714 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
6715
6716         * sysdeps/i386/fpu/libm-test-ulps: Update.
6717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6718
6719 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6720
6721         * configure.in (--enable-lock-elision): Fix message text.
6722         * INSTALL: Regenerate.
6723         * configure: Regenerate.
6724
6725 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6726
6727         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6728
6729 2013-07-03  Andreas Jaeger  <aj@suse.de>
6730
6731         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
6732         define.
6733         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
6734         (ptrace_peeksiginfo_args): Add.
6735         (__ptrace_peeksiginfo_flags): Add.
6736         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6737         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6738         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6739
6740 2013-07-03  Allan McRae  <allan@archlinux.org>
6741
6742         * sysdeps/i386/fpu/libm-test-ulps: Update.
6743
6744 2013-07-02  David S. Miller  <davem@davemloft.net>
6745
6746         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6747
6748 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
6749
6750         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6751
6752 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6753
6754         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6756
6757 2013-07-02  Andi Kleen <ak@linux.intel.com>
6758
6759         * config.h.in (ENABLE_LOCK_ELISION): Add.
6760         * configure.in (--enable-lock-elision): Add option.
6761         * manual/install.texi: Document --enable lock elision.
6762         * configure: Regenerate
6763         * INSTALL: Regenerate.
6764
6765 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
6766
6767         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
6768         SSE4.2 strcasecmp for libc.a.
6769         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
6770
6771 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6772
6773         [BZ #13304]
6774         * soft-fp/op-common.h (_FP_FMA): New macro.
6775         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
6776         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
6777         (_FP_MUL_MEAT_1_imm): ... here.
6778         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
6779         (_FP_MUL_MEAT_1_wide): ... here.
6780         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
6781         (_FP_MUL_MEAT_1_hard): ... here.
6782         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
6783         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
6784         (_FP_MUL_MEAT_2_wide): ... here.
6785         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
6786         (_FP_MUL_MEAT_2_wide_3mul): ... here.
6787         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
6788         (_FP_MUL_MEAT_2_gmp): ... here.
6789         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
6790         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
6791         (_FP_MUL_MEAT_4_wide): ... here.
6792         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
6793         (_FP_MUL_MEAT_4_gmp): ... here.
6794         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
6795         (_FP_WFRACBITS_DW_S): Likewise.
6796         (_FP_WFRACXBITS_DW_S): Likewise.
6797         (_FP_HIGHBIT_DW_S): Likewise.
6798         (FP_FMA_S): Likewise.
6799         (_FP_FRAC_HIGH_DW_S): Likewise.
6800         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
6801         (_FP_WFRACBITS_DW_D): Likewise.
6802         (_FP_WFRACXBITS_DW_D): Likewise.
6803         (_FP_HIGHBIT_DW_D): Likewise.
6804         (FP_FMA_D): Likewise.
6805         (_FP_FRAC_HIGH_DW_D): Likewise.
6806         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
6807         (_FP_WFRACBITS_DW_E): Likewise.
6808         (_FP_WFRACXBITS_DW_E): Likewise.
6809         (_FP_HIGHBIT_DW_E): Likewise.
6810         (FP_FMA_E): Likewise.
6811         (_FP_FRAC_HIGH_DW_E): Likewise.
6812         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
6813         (_FP_WFRACBITS_DW_Q): Likewise.
6814         (_FP_WFRACXBITS_DW_Q): Likewise.
6815         (_FP_HIGHBIT_DW_Q): Likewise.
6816         (FP_FMA_Q): Likewise.
6817         (_FP_FRAC_HIGH_DW_Q): Likewise.
6818         * soft-fp/fmasf4.c: New file.
6819         * soft-fp/fmadf4.c: Likewise.
6820         * soft-fp/fmatf4.c: Likewise.
6821
6822 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6823
6824         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
6825         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
6826         Silvermont.
6827         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
6828         macro.
6829         (index_Slow_SSE4_2): Likewise.
6830         (index_Prefer_PMINUB_for_stringop): Likewise.
6831         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
6832         bit_Slow_SSE4_2 is set.
6833         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6834         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6835
6836 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6837
6838         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
6839         rtld_global._dl_hwcap2.
6840         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
6841         POWER8.
6842         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
6843         POWER8 feature descriptions defined in _dl_hwcap2.
6844         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
6845         string handling for POWER8 feature bits.
6846         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
6847         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
6848         _dl_powerpc_cap_flags.
6849         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
6850         * sysdeps/powerpc/rtld-global-offsets.sym
6851         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
6852         _dl_hwcap2 in the rtld_global_ro structure.
6853
6854 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6855
6856         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
6857         hardware capabilities in support of AT_HWCAP2.
6858         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
6859         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
6860         GLRO(dl_hwcap2).
6861         (_dl_show_auxv): Add support for calling _dl_procinfo to display
6862         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
6863         explicitly the unknown a_type display mechanism is used.
6864         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
6865         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
6866         struct member.
6867         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
6868         to macro prototype for AT_HWCAP2 support.
6869         * sysdeps/i386/dl-procinfo.h: Likewise.
6870         * sysdeps/s390/dl-procinfo.h: Likewise.
6871         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
6872         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
6873         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
6874         return -1 for unknown a_type display fallback.
6875         * sysdeps/sparc/dl-procinfo.h: Likewise.
6876         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6877         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
6878
6879 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
6880
6881         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
6882         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
6883
6884 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
6885
6886         [BZ #12492]
6887         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
6888         mprotect making __stack_prot writable.
6889
6890 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6891             Joseph Myers  <joseph@codesourcery.com>
6892
6893         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
6894         as being properly aligned.
6895
6896 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
6897
6898         * dlfcn/modstatic5.c: New file.
6899         * dlfcn/tststatic5.c: New file.
6900         * dlfcn/Makefile (tests): Add tststatic5.
6901         (tests-static): Likewise.
6902         (modules-names): Add modstatic5.
6903         (tststatic5-ENV): New variable.
6904         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
6905
6906         [BZ #15022]
6907         * elf/dl-support.c (_dl_main_map): New variable.
6908         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
6909         (_dl_nns, _dl_load_adds): Set to 1.
6910         (_dl_initial_searchlist): Refer to _dl_main_map.
6911         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
6912         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
6913         call to _dl_get_origin.
6914         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
6915         around call_map.
6916         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
6917         * dlfcn/modstatic3.c: New file.
6918         * dlfcn/tststatic3.c: New file.
6919         * dlfcn/tststatic4.c: New file.
6920         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
6921         (tests-static): Likewise.
6922         (modules-names): Add modstatic3.
6923         (tststatic3-ENV, tststatic4-ENV): New variables.
6924         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
6925         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
6926
6927 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
6928
6929         * configure.in (CC): Require GCC version 4.4 or later.
6930         * configure: Regenerated.
6931         * manual/install.texi (Tools for Compilation): Update GCC version
6932         requirement.
6933         * INSTALL: Regenerated.
6934
6935 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6936
6937         [BZ #15674]
6938         * string/test-memcmp.c (check2): New.
6939         (main): Call check2.
6940
6941         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
6942
6943 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
6944
6945         [BZ #15022]
6946         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
6947         over to...
6948         (dl_open_worker) [!SHARED]: ... here.
6949
6950 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6951
6952         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
6953
6954 2013-06-25  Richard Henderson  <rth@redhat.com>
6955
6956         * locale/programs/locarchive.c: Include <libc-internal.h>
6957
6958 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
6959
6960         * manual/texinfo.tex: Update to version 2013-06-21.17, with
6961         trailing whitespace removed.
6962
6963 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6964
6965         [BZ #10283]
6966         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
6967         * locale/programs/locarchive.c: Include libc-mmap.h.
6968         (prepare_address_space): Take two new outputs (the mmap base and len).
6969         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
6970         values.
6971         (create_archive): Declare new mmap base and len values for
6972         prepare_address_space, and store the result in ah.
6973         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
6974         (enlarge_archive): If ah->mmap_base is not NULL, use that and
6975         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6976         Declare new mmap base and len values for
6977         prepare_address_space, and store the result in new_ah.
6978         (open_archive): Declare new mmap base and len values for
6979         prepare_address_space, and store the result in ah.
6980         (close_archive): If ah->mmap_base is not NULL, use that and
6981         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
6982         * sysdeps/generic/libc-mmap.h: New file.
6983
6984 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
6985
6986         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
6987         (ALIGN_UP): Likewise.
6988         (PTR_ALIGN_DOWN): Likewise.
6989         (PTR_ALIGN_UP): Likewise.
6990
6991 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6992
6993         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
6994         entry mapped to PPC_PLATFORM_POWER8.
6995         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
6996         POWER8.
6997         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
6998         (_dl_string_platform): Add case for exporting platform position for
6999         POWER8.
7000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
7001         search path to sysdeps/powerpc/powerpc32/power8 directory.
7002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
7003         search path to sysdeps/powerpc/powerpc64/power8 directory.
7004         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
7005         power7 directories.
7006         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
7007         power7 directories.
7008
7009 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7010
7011         * INSTALL: Regenerate.
7012
7013         * nscd/connections.c (nscd_init): Fix comment.
7014
7015 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
7016
7017         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
7018
7019         [BZ #15667]
7020         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
7021         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
7022
7023 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
7024
7025         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
7026         DL_DST_REQ_STATIC.
7027         (DL_DST_REQ_STATIC): Remove macro.
7028
7029 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
7030
7031         [BZ #7006]
7032         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
7033         with a shift of 0 bits.
7034
7035 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
7036
7037         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
7038         $(tststatic-ENV).
7039
7040 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7041
7042         [BZ #15655]
7043         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
7044
7045 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7046
7047         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
7048         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
7049         accepts -fno-tree-loop-distribute-patterns.
7050         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
7051         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
7052         recursive call.
7053         * string/memset.c (memset): Likewise.
7054         * string/test-memmove.c (simple_memmove): Disable loop transformation
7055         to library calls.
7056         * string/test-memset.c (simple_memset): Likewise.
7057         * benchtests/bench-memmove.c (simple_memmove): Likewise.
7058         * benchtests/bench-memset.c (simple_memset): Likewise.
7059         * configure: Regenerated.
7060
7061 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
7062
7063         * math/test-misc.c (main): Ignore fesetround failure when failures
7064         of subsequent rounding tests would be ignored.
7065
7066         [BZ #15654]
7067         * math/fedisblxcpt.c (fedisableexcept): Return 0.
7068         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
7069         * math/fegetenv.c (__fegetenv): Return 0.
7070         * math/fegetexcept.c (fegetexcept): Return 0.
7071         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
7072         FE_TONEAREST.
7073         * math/feholdexcpt.c (feholdexcept): Return 0.
7074         * math/fesetenv.c (__fesetenv): Return 0.
7075         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
7076         argument FE_TONEAREST.
7077         * math/feupdateenv.c (__feupdateenv): Return 0.
7078         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
7079
7080 2013-06-18  Roland McGrath  <roland@hack.frob.com>
7081
7082         * elf/rtld-Rules (rtld-compile-command.S): New variable.
7083         (rtld-compile-command.s, rtld-compile-command.c): New variables.
7084         ($(objpfx)rtld-%.os rules): Use them.
7085
7086 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7087
7088         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
7089         fields.
7090
7091 2013-06-17  Roland McGrath  <roland@hack.frob.com>
7092
7093         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
7094         length of target pattern, then descending length of dependency pattern.
7095         * configure.in (AWK): Require gawk 3.1.2 or newer.
7096         * manual/install.texi (Tools for Compilation): Say that we do.
7097         * configure: Regenerated.
7098
7099         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
7100         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
7101         * scripts/sysd-rules.awk: ... this new script.
7102         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
7103         than a glob-style pattern.
7104
7105 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
7106
7107         * math/test-misc.c (main): Do not treat incorrectly rounded
7108         conversions as failure unless ROUNDING_TESTS passes.
7109
7110 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
7111
7112         [BZ #15631]
7113         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
7114         restore exception state around main square root computation, then
7115         check for inexactness explicitly.
7116
7117         * math/libm-test.inc (fma_test_data): Add another test.
7118
7119 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7120
7121         * manual/threads.texi (Non-POSIX Extensions): New document
7122         node.  Document pthread_getattr_default_np and
7123         pthread_setattr_default_np.
7124
7125         * Versions.def (libpthread): Add GLIBC_2.18.
7126         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
7127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7128         Likewise.
7129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7130         Likewise.
7131         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7132         Likewise.
7133         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7134         Likewise.
7135         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
7136         Likewise.
7137         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7138         Likewise.
7139         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7140         Likewise.
7141         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7142         Likewise.
7143         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7144         Likewise.
7145
7146 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7147
7148         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7149         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
7150
7151 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7152             H.J. Lu  <hjl.tools@gmail.com>
7153
7154         [BZ #15627]
7155         * sysdeps/x86_64/rtld-memset.c: Remove file.
7156         * sysdeps/x86_64/rtld-memset.S: New file.
7157
7158 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
7159
7160         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
7161         (test_in_one_mode): Take arguments for whether the rounding mode
7162         is supported for each floating-point type.
7163         (do_test): Pass new arguments to test_in_one_mode using
7164         ROUNDING_TESTS.
7165
7166 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7167
7168         * posix/tst-waitid.c (do_test): Distinguish different instances of
7169         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
7170         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
7171         before entering the kernel for waitpid.
7172
7173 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7174
7175         * NEWS: Fix note on clock function precision.  Text by Roland
7176         McGrath.
7177
7178 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7179
7180         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
7181         it into place only when and if the sanity check passes.
7182
7183 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
7184
7185         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
7186         output for whether conversion result is exact.  Take argument
7187         indicating whether type is IBM long double.
7188         (round_for_all): Change need_exact field to ibm_ld.
7189         * stdlib/tst-strtod-round.c (struct exactness): New type.
7190         (struct test): Change bool ld_ok field to struct exactness exact.
7191         (TEST): Update all definitions for change to field.
7192         (tests): Regenerate array contents.
7193         (test_in_one_mode): Take pointer to new field instead of old ld_ok
7194         field value.  Check for IBM long double here.
7195         (do_test): Update calls to test_in_one_mode.
7196
7197 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7198
7199         [BZ #12515]
7200         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
7201         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
7202
7203 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7204
7205         [BZ #15605]
7206         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
7207         generated by the compiler on loop optimizations.
7208         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
7209         general definitions.
7210
7211 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
7212
7213         * math/bug-nextafter.c: Include <math-tests.h>.
7214         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7215         the relevant type.
7216         * math/bug-nexttoward.c: Include <math-tests.h>.
7217         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7218         the relevant type.
7219         * math/test-misc.c: Include <math-tests.h>.
7220         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7221         the relevant type.
7222
7223 2013-06-12  Andreas Jaeger  <aj@suse.de>
7224
7225         * po/ia.po: Update Interlingua translation from translation
7226         project.
7227
7228 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7229
7230         * include/fenv.h: Include stdbool.h.
7231         (struct rm_ctx): New structure.
7232         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
7233         Define macro.
7234         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
7235         (SET_RESTORE_ROUNDF): Likewise.
7236         (SET_RESTORE_ROUNDL): Likewise.
7237         (SET_RESTORE_ROUND_NOEX): Likewise.
7238         (SET_RESTORE_ROUND_NOEXF): Likewise.
7239         (SET_RESTORE_ROUND_NOEXL): Likewise.
7240         (SET_RESTORE_ROUND_53BIT): Likewise.
7241         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
7242         (libc_feresetround_noexf_ctx): Likewise.
7243         (libc_feresetround_noexl_ctx): Likewise.
7244         (libc_feholdsetround_53bit_ctx): Likewise.
7245         (libc_feresetround_53bit_ctx): Likewise.
7246         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
7247         (libc_feholdexcept_setround_sse_ctx): New function.
7248         (libc_fesetenv_sse_ctx): Likewise.
7249         (libc_feupdateenv_sse_ctx): Likewise.
7250         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
7251         (libc_feholdexcept_setround_387_ctx): Likewise.
7252         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
7253         (libc_feholdsetround_387_prec_ctx): Likewise.
7254         (libc_feholdsetround_387_ctx): Likewise.
7255         (libc_feholdsetround_387_53bit_ctx): Likewise.
7256         (libc_feholdsetround_sse_ctx): Likewise.
7257         (libc_feresetround_sse_ctx): Likewise.
7258         (libc_feresetround_387_ctx): Likewise.
7259         (libc_feupdateenv_387_ctx): Likewise.
7260         (libc_feholdexcept_setroundf_ctx): Define macro.
7261         (libc_fesetenvf_ctx): Likewise.
7262         (libc_feupdateenvf_ctx): Likewise.
7263         (libc_feholdsetroundf_ctx): Likewise.
7264         (libc_feresetroundf_ctx): Likewise.
7265         (libc_feholdexcept_setround_ctx): Likewise.
7266         (libc_fesetenv_ctx): Likewise.
7267         (libc_feupdateenv_ctx): Likewise.
7268         (libc_feholdsetround_ctx): Likewise.
7269         (libc_feresetround_ctx): Likewise.
7270         (libc_feholdexcept_setroundl_ctx): Likewise.
7271         (libc_feupdateenvl_ctx): Likewise.
7272         (libc_feholdsetroundl_ctx): Likewise.
7273         (libc_feresetroundl_ctx): Likewise.
7274         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
7275         (libc_feresetround_53bit_ctx): Likewise.
7276
7277 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7278
7279         * locale/iso-639.def: Convert to UTF-8.
7280
7281 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
7282
7283         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
7284         (EXCEPTION_TESTS_double): Likewise.
7285         (EXCEPTION_TESTS_long_double): Likewise.
7286         (EXCEPTION_TESTS): Likewise.
7287         * math/libm-test.inc (test_exceptions): Only test exceptions if
7288         EXCEPTION_TESTS (FLOAT).
7289
7290 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7291
7292         * benchtests/Makefile (string-bench): Add strcpy_chk and
7293         stpcpy_chk.
7294         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
7295         * benchtests/bench-stpcpy_chk.c: New file.
7296         * benchtests/bench-strcpy_chk-ifunc.c: New file.
7297         * benchtests/bench-strcpy_chk.c: New file.
7298         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
7299         code.
7300         (do_test): Likewise.
7301
7302 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7303
7304         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
7305         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
7306         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
7307         with tabs where appropriate.
7308         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
7309         dl-procinfo.h.
7310         [PPC_PLATFORM_PPC440]: Likewise.
7311         [PPC_PLATFORM_PPC464]: Likewise.
7312         [PPC_PLATFORM_PPC476]: Likewise.
7313         (_dl_string_platform): Add support for detecting ppc405, ppc440,
7314         ppc464, and ppc476 platform strings merging from ports/
7315         dl-procinfo.h.
7316
7317 2013-06-11  Andreas Schwab  <schwab@suse.de>
7318
7319         [BZ #14991]
7320         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
7321         (from_ucs4_idx): Regenerate.
7322         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
7323         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
7324         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
7325         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
7326         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
7327         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
7328         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
7329         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
7330         from FROM_LOOP and TO_LOOP specific macros.
7331         (BODY): Handle combining characters.
7332         * iconvdata/BIG5HKSCS.irreversible: Update.
7333         * iconvdata/BIG5HKSCS.precomposed: New file.
7334         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
7335         characters.
7336         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
7337
7338 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7339
7340         * include/sys/time.h: Fix indentation and add copyright header.
7341
7342         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
7343         (do_test): Likewise.
7344         * string/test-memchr.c (do_one_test): Likewise.
7345         (do_test): Likewise.
7346         * string/test-memcmp.c (do_one_test): Likewise.
7347         (do_test): Likewise.
7348         * string/test-memcpy.c (do_one_test): Likewise.
7349         (do_test): Likewise.
7350         * string/test-memmem.c (do_one_test): Likewise.
7351         (do_test): Likewise.
7352         (do_random_tests): Likewise.
7353         * string/test-memmove.c (do_one_test): Likewise.
7354         (do_test): Likewise.
7355         * string/test-memset.c (do_one_test): Likewise.
7356         (do_test): Likewise.
7357         * string/test-rawmemchr.c (do_one_test): Likewise.
7358         (do_test): Likewise.
7359         * string/test-strcasecmp.c (do_one_test): Likewise.
7360         (do_test): Likewise.
7361         * string/test-strcasestr.c (do_one_test): Likewise.
7362         (do_test): Likewise.
7363         * string/test-strcat.c (do_one_test): Likewise.
7364         (do_test): Likewise.
7365         * string/test-strchr.c (do_one_test): Likewise.
7366         (do_test): Likewise.
7367         * string/test-strcmp.c (do_one_test): Likewise.
7368         (do_test): Likewise.
7369         * string/test-strcpy.c (do_one_test): Likewise.
7370         (do_test): Likewise.
7371         * string/test-string.h: Likewise.
7372         (test_init): Likewise.
7373         * string/test-strlen.c (do_one_test): Likewise.
7374         (do_test): Likewise.
7375         * string/test-strncasecmp.c (do_one_test): Likewise.
7376         (do_test): Likewise.
7377         * string/test-strncat.c (do_one_test): Likewise.
7378         (do_test): Likewise.
7379         * string/test-strncmp.c (do_one_test): Likewise.
7380         (do_test_limit): Likewise.
7381         (do_test): Likewise.
7382         * string/test-strncpy.c (do_one_test): Likewise.
7383         (do_test): Likewise.
7384         * string/test-strnlen.c (do_one_test): Likewise.
7385         (do_test): Likewise.
7386         * string/test-strpbrk.c (do_one_test): Likewise.
7387         (do_test): Likewise.
7388         * string/test-strrchr.c (do_one_test): Likewise.
7389         (do_test): Likewise.
7390         * string/test-strspn.c (do_one_test): Likewise.
7391         (do_test): Likewise.
7392         * string/test-strstr.c (do_one_test): Likewise.
7393         (do_test): Likewise.
7394
7395         * benchtests/Makefile (string-bench): Add string benchmarks.
7396         * benchtests/bench-bcopy-ifunc.c: New file.
7397         * benchtests/bench-bcopy.c: New file.
7398         * benchtests/bench-bzero-ifunc.c: New file.
7399         * benchtests/bench-bzero.c: New file.
7400         * benchtests/bench-memccpy-ifunc.c: New file.
7401         * benchtests/bench-memccpy.c: New file.
7402         * benchtests/bench-memchr-ifunc.c: New file.
7403         * benchtests/bench-memchr.c: New file.
7404         * benchtests/bench-memcmp-ifunc.c: New file.
7405         * benchtests/bench-memcmp.c: New file.
7406         * benchtests/bench-memmem-ifunc.c: New file.
7407         * benchtests/bench-memmem.c: New file.
7408         * benchtests/bench-memmove-ifunc.c: New file.
7409         * benchtests/bench-memmove.c: New file.
7410         * benchtests/bench-mempcpy-ifunc.c: New file.
7411         * benchtests/bench-mempcpy.c: New file.
7412         * benchtests/bench-memset-ifunc.c: New file.
7413         * benchtests/bench-memset.c: New file.
7414         * benchtests/bench-rawmemchr-ifunc.c: New file.
7415         * benchtests/bench-rawmemchr.c: New file.
7416         * benchtests/bench-stpcpy-ifunc.c: New file.
7417         * benchtests/bench-stpcpy.c: New file.
7418         * benchtests/bench-stpncpy-ifunc.c: New file.
7419         * benchtests/bench-stpncpy.c: New file.
7420         * benchtests/bench-strcasecmp-ifunc.c: New file.
7421         * benchtests/bench-strcasecmp.c: New file.
7422         * benchtests/bench-strcasestr-ifunc.c: New file.
7423         * benchtests/bench-strcasestr.c: New file.
7424         * benchtests/bench-strcat-ifunc.c: New file.
7425         * benchtests/bench-strcat.c: New file.
7426         * benchtests/bench-strchr-ifunc.c: New file.
7427         * benchtests/bench-strchr.c: New file.
7428         * benchtests/bench-strchrnul-ifunc.c: New file.
7429         * benchtests/bench-strchrnul.c: New file.
7430         * benchtests/bench-strcmp-ifunc.c: New file.
7431         * benchtests/bench-strcmp.c: New file.
7432         * benchtests/bench-strcpy-ifunc.c: New file.
7433         * benchtests/bench-strcpy.c: New file.
7434         * benchtests/bench-strcspn-ifunc.c: New file.
7435         * benchtests/bench-strcspn.c: New file.
7436         * benchtests/bench-strlen-ifunc.c: New file.
7437         * benchtests/bench-strlen.c: New file.
7438         * benchtests/bench-strncasecmp-ifunc.c: New file.
7439         * benchtests/bench-strncasecmp.c: New file.
7440         * benchtests/bench-strncat-ifunc.c: New file.
7441         * benchtests/bench-strncat.c: New file.
7442         * benchtests/bench-strncmp-ifunc.c: New file.
7443         * benchtests/bench-strncmp.c: New file.
7444         * benchtests/bench-strncpy-ifunc.c: New file.
7445         * benchtests/bench-strncpy.c: New file.
7446         * benchtests/bench-strnlen-ifunc.c: New file.
7447         * benchtests/bench-strnlen.c: New file.
7448         * benchtests/bench-strpbrk-ifunc.c: New file.
7449         * benchtests/bench-strpbrk.c: New file.
7450         * benchtests/bench-strrchr-ifunc.c: New file.
7451         * benchtests/bench-strrchr.c: New file.
7452         * benchtests/bench-strspn-ifunc.c: New file.
7453         * benchtests/bench-strspn.c: New file.
7454         * benchtests/bench-strstr-ifunc.c: New file.
7455         * benchtests/bench-strstr.c: New file.
7456
7457         * benchtests/Makefile: Disable parallel execution of targets.
7458         (string-bench): Add memcpy.
7459         (benchset): New variable to store a list of benchmark sets.
7460         (bench-func): Renamed from bench.
7461         (bench-set): New target.
7462         (bench): Depend on bench-func and bench-set.
7463         * benchtests/README: Add section on benchmark sets.
7464         * benchtests/bench-memcpy-ifunc.c: New file.
7465         * benchtests/bench-memcpy.c: New file.
7466         * benchtests/bench-string.h: New file.
7467
7468 2013-06-11  Andreas Schwab  <schwab@suse.de>
7469
7470         [BZ #15577]
7471         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
7472         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
7473         values in the triple.
7474         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
7475         terminator in the group key.
7476
7477 2013-06-11  Andreas Jaeger  <aj@suse.de>
7478
7479         * po/zh_TW.po: Update Chinese (traditional) translation from
7480         translation project.
7481
7482 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7483
7484         * include/time.h (__clock_gettime): Add libc_hidden_proto.
7485         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
7486         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
7487         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7488         (clock_getcpuclockid): Likewise.
7489         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
7490         Add weak_alias and libc_hidden_def.
7491         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
7492         * rt/clock_gettime.c (clock_gettime): Rename to
7493         __clock_gettime.  Add weak_alias and libc_hidden_def.
7494         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
7495         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
7496         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
7497         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
7498         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
7499         Likewise.
7500         * rt/clock_settime.c (clock_settime): Rename to
7501         __clock_settime.  Add weak_alias and libc_hidden_def.
7502         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
7503
7504 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
7505
7506         * mach/err_boot.sub: Remove trailing whitespace.
7507         * mach/err_ipc.sub: Likewise.
7508         * mach/err_mach.sub: Likewise.
7509
7510         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
7511         (ROUNDING_TESTS_double): Likewise.
7512         (ROUNDING_TESTS_long_double): Likewise.
7513         (ROUNDING_TESTS): Likewise.
7514         * math/libm-test.inc: Include <math-tests.h>.
7515         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
7516         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
7517         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7518         (IF_ROUND_INIT_FE_UPWARD): Likewise.
7519
7520 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7521
7522         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
7523         of assigning.
7524
7525 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
7526
7527         * sysdeps/gnu/errlist.awk: Do not generate space at end of
7528         otherwise empty TRANS lines.
7529         * sysdeps/gnu/errlist.c: Regenerated.
7530
7531         * catgets/gencat.c (error_print): Use (void) in function
7532         definition.
7533         * crypt/crypt_util.c (__init_des): Likewise.
7534         * crypt/speeds.c (Stop): Likewise.
7535         (main): Likewise.
7536         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
7537         * inet/ruserpass.c (token): Likewise.
7538         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
7539         * intl/localealias.c (extend_alias_table): Likewise.
7540         * intl/plural-exp.c (init_germanic_plural): Likewise.
7541         * libio/fcloseall.c (__fcloseall): Likewise.
7542         * libio/genops.c (_IO_flush_all): Likewise.
7543         (_IO_flush_all_linebuffered): Likewise.
7544         (_IO_cleanup): Likewise.
7545         (_IO_iter_begin): Likewise.
7546         (_IO_iter_end): Likewise.
7547         (_IO_list_lock): Likewise.
7548         (_IO_list_unlock): Likewise.
7549         (_IO_list_resetlock): Likewise.
7550         * libio/getchar.c (getchar): Likewise.
7551         * libio/getchar_u.c (getchar_unlocked): Likewise.
7552         * libio/getwchar.c (getwchar): Likewise.
7553         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7554         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
7555         * login/getpt.c (__getpt): Likewise.
7556         * login/tst-utmp.c (main): Likewise.
7557         * malloc/hooks.c (__malloc_check_init): Likewise.
7558         * malloc/malloc.c (__malloc_stats): Likewise.
7559         * malloc/mtrace.c (tr_break): Likewise.
7560         (mtrace): Likewise.
7561         (muntrace): Likewise.
7562         * misc/fstab.c (endfsent): Likewise.
7563         * misc/getclktck.c (__getclktck): Likewise.
7564         * misc/getdtsz.c (__getdtablesize): Likewise.
7565         * misc/gethostid.c (gethostid): Likewise.
7566         * misc/getpagesize.c (__getpagesize): Likewise.
7567         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
7568         (__get_nprocs): Likewise.
7569         (__get_phys_pages): Likewise.
7570         (__get_avphys_pages): Likewise.
7571         * misc/getttyent.c (getttyent): Likewise.
7572         (setttyent): Likewise.
7573         (endttyent): Likewise.
7574         * misc/getusershell.c (getusershell): Likewise.
7575         (endusershell): Likewise.
7576         (setusershell): Likewise.
7577         (initshells): Likewise.
7578         * misc/hsearch.c (__hdestroy): Likewise.
7579         * misc/sync.c (sync): Likewise.
7580         * misc/syslog.c (closelog_internal): Likewise.
7581         (closelog): Likewise.
7582         * misc/ttyslot.c (ttyslot): Likewise.
7583         * misc/vhangup.c (vhangup): Likewise.
7584         * posix/fork.c (__fork): Likewise.
7585         * posix/getegid.c (__getegid): Likewise.
7586         * posix/geteuid.c (__geteuid): Likewise.
7587         * posix/getgid.c (__getgid): Likewise.
7588         * posix/getpid.c (__getpid): Likewise.
7589         * posix/getppid.c (__getppid): Likewise.
7590         * posix/getuid.c (__getuid): Likewise.
7591         * posix/pause.c (pause): Likewise.
7592         * posix/setpgrp.c (setpgrp): Likewise.
7593         * posix/setsid.c (__setsid): Likewise.
7594         * posix/test-vfork.c (noop): Likewise.
7595         * resolv/gethnamaddr.c (_endhtent): Likewise.
7596         (_gethtent): Likewise.
7597         (ht_endhostent): Likewise.
7598         (gethostent): Likewise.
7599         (dns_service): Likewise.
7600         * stdlib/drand48.c (drand48): Likewise.
7601         * stdlib/lrand48.c (lrand48): Likewise.
7602         * stdlib/mrand48.c (mrand48): Likewise.
7603         * stdlib/rand.c (rand): Likewise.
7604         * stdlib/random.c (__random): Likewise.
7605         * stdlib/setenv.c (clearenv): Likewise.
7606         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
7607         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
7608         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
7609         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
7610         (__get_nprocs): Likewise.
7611         (__get_phys_pages): Likewise.
7612         (__get_avphys_pages): Likewise.
7613         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
7614         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
7615         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
7616         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
7617         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
7618         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
7619         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
7620         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
7621         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
7622         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
7623         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
7624         * sysdeps/mach/hurd/sync.c (sync): Likewise.
7625         * sysdeps/posix/clock.c (clock): Likewise.
7626         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
7627         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
7628         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
7629         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7630         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
7631         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7632         (__get_nprocs_conf): Likewise.
7633         (__get_phys_pages): Likewise.
7634         (__get_avphys_pages): Likewise.
7635         * time/clock.c (clock): Likewise.
7636         * time/tzset.c (__tzname_max): Likewise.
7637
7638 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
7639
7640         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
7641         (__bswap_32): Do not use "register".
7642         * crypt/crypt.c (_ufc_doit_r): Likewise.
7643         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7644         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7645         * gmon/gmon.c (__monstartup): Likewise.
7646         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
7647         * hurd/hurdmalloc.c (more_memory): Likewise.
7648         (malloc): Likewise.
7649         (free): Likewise.
7650         (realloc): Likewise.
7651         (malloc_fork_prepare): Likewise.
7652         (malloc_fork_parent): Likewise.
7653         (malloc_fork_child): Likewise.
7654         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
7655         (_svcauth_des): Likewise.
7656         * inet/inet_lnaof.c (inet_lnaof): Likewise.
7657         * inet/inet_net.c (inet_network): Likewise.
7658         * inet/inet_netof.c (inet_netof): Likewise.
7659         * inet/rcmd.c (__validuser2_sa): Likewise.
7660         * io/fts.c (fts_open): Likewise.
7661         (fts_load): Likewise.
7662         (fts_close): Likewise.
7663         (fts_read): Likewise.
7664         (fts_children): Likewise.
7665         (fts_build): Likewise.
7666         (fts_stat): Likewise.
7667         (fts_sort): Likewise.
7668         (fts_alloc): Likewise.
7669         (fts_lfree): Likewise.
7670         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
7671         (_IO_file_xsgetn): Likewise.
7672         (_IO_file_xsgetn_mmap): Likewise.
7673         * libio/iofopncook.c (_IO_cookie_read): Likewise.
7674         (_IO_cookie_write): Likewise.
7675         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
7676         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
7677         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
7678         * malloc/obstack.c (_obstack_begin): Likewise.
7679         (_obstack_begin_1): Likewise.
7680         (_obstack_newchunk): Likewise.
7681         (_obstack_allocated_p): Likewise.
7682         (obstack_free): Likewise.
7683         (_obstack_memory_used): Likewise.
7684         * misc/getttyent.c (getttynam): Likewise.
7685         (getttyent): Likewise.
7686         (skip): Likewise.
7687         (value): Likewise.
7688         * misc/getusershell.c (initshells): Likewise.
7689         * misc/syslog.c (__vsyslog_chk): Likewise.
7690         * misc/ttyslot.c (ttyslot): Likewise.
7691         * nis/nis_hash.c (__nis_hash): Likewise.
7692         * posix/fnmatch_loop.c (FCT): Likewise.
7693         * posix/getconf.c (print_all): Likewise.
7694         (main): Likewise.
7695         * posix/getopt.c (exchange): Likewise.
7696         * posix/glob.c (globfree): Likewise.
7697         (prefix_array): Likewise.
7698         (__glob_pattern_type): Likewise.
7699         * resolv/arpa/nameser.h (NS_GET16): Likewise.
7700         (NS_GET32): Likewise.
7701         (NS_PUT16): Likewise.
7702         (NS_PUT32): Likewise.
7703         * resolv/gethnamaddr.c (getanswer): Likewise.
7704         (gethostbyname2): Likewise.
7705         (gethostbyaddr): Likewise.
7706         (_gethtent): Likewise.
7707         (_gethtbyname2): Likewise.
7708         (_gethtbyaddr): Likewise.
7709         * resolv/ns_print.c (dst_s_get_int16): Likewise.
7710         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
7711         * resolv/res_init.c (__res_vinit): Likewise.
7712         (net_mask): Likewise.
7713         * resolv/res_mkquery.c (outchar): Likewise.
7714         (PRINT): Likewise.
7715         * stdio-common/printf_fp.c (outchar): Likewise.
7716         (PRINT): Likewise.
7717         * stdio-common/printf_fphex.c (outchar): Likewise.
7718         (PRINT): Likewise.
7719         * stdio-common/printf_size.c (outchar): Likewise.
7720         (PRINT): Likewise.
7721         * stdio-common/test_rdwr.c (main): Likewise.
7722         * stdio-common/tfformat.c (matches): Likewise.
7723         * stdio-common/vfprintf.c (outchar): Likewise.
7724         (printf_unknown): Likewise.
7725         (buffered_vfprintf): Likewise.
7726         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7727         * stdio-common/xbug.c (AppendToBuffer): Likewise.
7728         (ReadFile): Likewise.
7729         * stdlib/qsort.c (SWAP): Likewise.
7730         (_quicksort): Likewise.
7731         * stdlib/setenv.c (__add_to_environ): Likewise.
7732         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7733         * stdlib/strtol_l.c (__strtol_l): Likewise.
7734         * stdlib/tst-strtod.c (main): Likewise.
7735         * stdlib/tst-strtol.c (main): Likewise.
7736         * stdlib/tst-strtoll.c (main): Likewise.
7737         * string/bits/string2.h (__strcmp_cc): Likewise.
7738         (__strcmp_cg): Likewise.
7739         (__strcspn_c1): Likewise.
7740         (__strcspn_c2): Likewise.
7741         (__strcspn_c3): Likewise.
7742         (__strspn_c1): Likewise.
7743         (__strspn_c2): Likewise.
7744         (__strspn_c3): Likewise.
7745         (__strsep_1c): Likewise.
7746         (__strsep_2c): Likewise.
7747         (__strsep_3c): Likewise.
7748         * string/memccpy.c (__memccpy): Likewise.
7749         * string/stpcpy.c (__stpcpy): Likewise.
7750         * string/strcmp.c (strcmp): Likewise.
7751         * string/strrchr.c (strrchr): Likewise.
7752         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
7753         Likewise.
7754         * sysdeps/mach/hurd/getcwd.c
7755         (_hurd_canonicalize_directory_name_internal): Likewise.
7756         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
7757         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
7758         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
7759         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
7760         Likewise, in both definitions.
7761         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
7762         definitions.
7763         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
7764         64] (__bswap_64): Likewise.
7765         * time/test_time.c (main): Likewise.
7766         * time/tzfile.c (__tzfile_read): Likewise.
7767         (__tzfile_compute): Likewise.
7768         * time/tzset.c (__tzset_parse_tz): Likewise.
7769         (tzset_internal): Likewise.
7770         (compute_change): Likewise.
7771         * wcsmbs/wcscat.c (__wcscat): Likewise.
7772         * wcsmbs/wcschr.c (wcschr): Likewise.
7773         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
7774         * wcsmbs/wcscspn.c (wcscspn): Likewise.
7775         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
7776         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
7777         * wcsmbs/wcsspn.c (wcsspn): Likewise.
7778         * wcsmbs/wcsstr.c (wcsstr): Likewise.
7779         * wcsmbs/wmemchr.c (wmemchr): Likewise.
7780         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7781         * wcsmbs/wmemset.c (wmemset): Likewise.
7782
7783 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
7784
7785         * scripts/config.guess: Update to version 2013-05-16.
7786         * scripts/config.sub: Update to version 2013-04-24.
7787         * scripts/install-sh: Update to version 2011-11-20.07.
7788         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
7789         * scripts/move-if-change: Update to version 2012-01-06 07:23.
7790
7791 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
7792
7793         * debug/fgetws_u_chk.c: Fix leading whitespaces.
7794         * elf/sln.c: Likewise.
7795         * hurd/hurd/ioctl.h: Likewise.
7796         * hurd/hurdmalloc.c: Likewise.
7797         * hurd/xattr.c: Likewise.
7798         * include/shlib-compat.h: Likewise.
7799         * inet/ruserpass.c: Likewise.
7800         * libio/iofgets_u.c: Likewise.
7801         * libio/iofgetws_u.c: Likewise.
7802         * locale/programs/ld-identification.c: Likewise.
7803         * locale/programs/ld-time.c: Likewise.
7804         * mach/msg-destroy.c: Likewise.
7805         * nss/nss_files/files-netgrp.c: Likewise.
7806         * resolv/res_data.c: Likewise.
7807         * soft-fp/op-1.h: Likewise.
7808         * soft-fp/op-2.h: Likewise.
7809         * soft-fp/op-4.h: Likewise.
7810         * soft-fp/op-common.h: Likewise.
7811         * stdio-common/printf_fphex.c: Likewise.
7812         * stdlib/strtod_l.c: Likewise.
7813         * sunrpc/rpc/clnt.h: Likewise.
7814         * sysdeps/generic/framestate.c: Likewise.
7815         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7816         * sysdeps/i386/bsd-setjmp.S: Likewise.
7817         * sysdeps/i386/__longjmp.S: Likewise.
7818         * sysdeps/i386/setjmp.S: Likewise.
7819         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7820         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7821         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7822         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7823         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7824         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7825         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7826         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7827         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7828         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
7829         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7830         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7831         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7832         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7833         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7834         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7835         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7836         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
7837         * sysdeps/ieee754/support.c: Likewise.
7838         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7839         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
7840         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
7841         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
7842         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
7843         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
7844         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
7845         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
7846         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
7847         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
7848         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
7849         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
7850         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
7851         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
7852         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
7853         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
7854         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
7856
7857 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
7858
7859         * posix/transbug.c: Remove executable mode.
7860
7861 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
7862
7863         * crypt/speeds.c: Remove trailing whitespace.
7864         * dlfcn/default.c: Likewise.
7865         * elf/ifuncdep2.c: Likewise.
7866         * elf/ifuncmain1.c: Likewise.
7867         * elf/ifuncmain1vis.c: Likewise.
7868         * elf/testobj.h: Likewise.
7869         * elf/tst-stackguard1.c: Likewise.
7870         * gmon/sys/gmon.h: Likewise.
7871         * hurd/hurdmsg.c: Likewise.
7872         * hurd/new-fd.c: Likewise.
7873         * hurd/ports-get.c: Likewise.
7874         * iconvdata/ibm1008_420.c: Likewise.
7875         * inet/tst-getni1.c: Likewise.
7876         * inet/tst-getni2.c: Likewise.
7877         * libio/ioungetc.c: Likewise.
7878         * libio/wfiledoalloc.c: Likewise.
7879         * manual/libm-err-tab.pl: Likewise.
7880         * math/w_dremf.c: Likewise.
7881         * misc/ftruncate.c: Likewise.
7882         * posix/bug-glob2.c: Likewise.
7883         * posix/tst-pcre.c: Likewise.
7884         * posix/wait4.c: Likewise.
7885         * resolv/README: Likewise.
7886         * resolv/res_debug.h: Likewise.
7887         * resolv/tst-inet_ntop.c: Likewise.
7888         * setjmp/bug269-setjmp.c: Likewise.
7889         * soft-fp/extended.h: Likewise.
7890         * soft-fp/op-1.h: Likewise.
7891         * soft-fp/op-2.h: Likewise.
7892         * soft-fp/op-4.h: Likewise.
7893         * soft-fp/op-8.h: Likewise.
7894         * soft-fp/testit.c: Likewise.
7895         * stdio-common/bug16.c: Likewise.
7896         * stdlib/random.c: Likewise.
7897         * sunrpc/rpcsvc/rquota.x: Likewise.
7898         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
7899         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7900         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7901         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7902         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7903         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7904         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7905         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7906         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7907         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7908         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7909         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7910         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7911         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7912         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7913         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7914         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7915         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7916         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7917         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7918         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7919         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7920         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
7921         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7922         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7923         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7924         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
7925         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7926         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7927         * sysdeps/ieee754/s_lib_version.c: Likewise.
7928         * sysdeps/mach/hurd/check_fds.c: Likewise.
7929         * sysdeps/mach/hurd/getsockname.c: Likewise.
7930         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
7931         * sysdeps/mach/hurd/recvfrom.c: Likewise.
7932         * sysdeps/powerpc/bits/link.h: Likewise.
7933         * sysdeps/powerpc/dl-procinfo.c: Likewise.
7934         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
7935         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
7936         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
7937         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
7938         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7939         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
7940         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
7941         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
7942         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
7943         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
7944         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
7945         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
7946         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
7947         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
7948         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
7949         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
7950         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
7951         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
7952         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
7953         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
7954         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
7955         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
7956         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
7957         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7958         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
7959         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
7960         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
7961         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
7962         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
7963         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
7964         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
7965         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7966         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7967         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
7968         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
7969         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
7970         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
7971         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
7972         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
7973         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
7974         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
7975         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
7976         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
7977         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
7978         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
7979         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
7980         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
7981         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
7982         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
7983         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7984         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7985         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7986         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7987         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
7988         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
7989         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
7990         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
7991         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
7992         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
7993         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
7994         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
7995         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
7996         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
7997         * sysdeps/powerpc/sysdep.h: Likewise.
7998         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
7999         * sysdeps/s390/s390-64/sub_n.S: Likewise.
8000         * sysdeps/sh/dl-trampoline.S: Likewise.
8001         * sysdeps/sh/memset.S: Likewise.
8002         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
8003         * sysdeps/sh/strlen.S: Likewise.
8004         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
8005         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
8006         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
8007         * sysdeps/sparc/sparc32/rem.S: Likewise.
8008         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
8009         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
8010         * sysdeps/sparc/sparc32/strchr.S: Likewise.
8011         * sysdeps/sparc/sparc32/udiv.S: Likewise.
8012         * sysdeps/sparc/sparc32/urem.S: Likewise.
8013         * sysdeps/sparc/sparc64/add_n.S: Likewise.
8014         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8015         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
8016         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
8017         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
8018         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
8019         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
8020         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
8021         * sysdeps/unix/bsd/times.c: Likewise.
8022         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
8023         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
8024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
8025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
8026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
8027         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8028         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
8029         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8030         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
8031         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
8032         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
8033         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
8034         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
8035         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8036         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
8037         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8038         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8039         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
8040         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
8041         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
8042         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8043         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
8044         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8045         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
8046         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
8047         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8048         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
8049         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8050         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
8051         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
8052         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
8053         * sysdeps/x86_64/strcspn.S: Likewise.
8054
8055 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8056
8057         * locale/C-translit.h: Revert #include <stdint.h> because this is a
8058         generated file.  Regenerate properly from gen-translit.pl.
8059         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
8060         locale/C-translit.h.
8061
8062 2013-06-05  Andreas Schwab  <schwab@suse.de>
8063
8064         [BZ #15100]
8065         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
8066         week as 6 instead of -1.
8067         * time/tst-strptime.c (day_tests): Add test case.
8068
8069 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8070
8071         * sysdeps/generic/math_private.h
8072         (libc_feholdexcept_setround_53bit): Replace with
8073         libc_feholdsetround_53bit.
8074         (libc_feupdateenv_53bit): Replace with
8075         libc_feresetround_53bit.
8076         (SET_RESTORE_ROUND_53BIT): Adjust.
8077
8078 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
8079
8080         * string/test-strchrnul.c: Add copyright header.
8081
8082         * posix/tst-getaddrinfo4.c: Increase test timeout.
8083
8084 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
8085
8086         [BZ #15536]
8087         * math/libm-test.inc (MAX_EXP): Remove
8088         (MIN_EXP): Define.
8089         (ulp): Use MIN_EXP - MANT_DIG.
8090         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
8091
8092 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
8093
8094         * po/be.po: Revert last change.
8095         * po/zh_CN.po: Likewise.
8096         * po/header.pot: Likewise.
8097
8098 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
8099
8100         * Makefile ($(common-objpfx)linkobj/libc.so): Define
8101         link-libc-deps to empty as target-specific variable.
8102         * Makerules (link-libc-args): New variable.
8103         (libc-for-link): Likewise.
8104         (link-libc-deps): Likewise.
8105         (lib%.so): Depend on $(link-libc-deps).  Link with
8106         $(link-libc-args).
8107         (build-module): Link with $(link-libc-args).
8108         (build-module-asneeded): Likewise.
8109         (build-module-helper-objlist): Filter out $(link-libc-deps) from
8110         list of objects.
8111         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
8112         target-specific variable.
8113         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
8114         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
8115         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
8116         libc.
8117         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
8118         libc and ld.so.
8119         ($(objpfx)libpcprofile.so): Likewise.
8120         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
8121         libc_nonshared.a.
8122         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
8123         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
8124         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
8125         $(link-libc-deps).
8126         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
8127         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
8128         * login/Makefile ($(objpfx)libutil.so): Likewise.
8129         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
8130         * math/Makefile ($(objpfx)libm.so): Likewise.
8131         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
8132         $(objpfx)libnsl.so): Define libc-for-link as target-specific
8133         variable instead of depending directly on libc.
8134         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
8135         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
8136         $(link-libc-deps).
8137         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
8138         libc.
8139         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
8140         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
8141         ($(objpfx)libanl.so): Likewise.
8142         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
8143         ld.so.
8144         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
8145         $(link-libc-deps).
8146         * sysdeps/i386/fpu/Makefile: Remove file.
8147         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
8148         ($(objpfx)libm.so): Remove dependency on ld.so.
8149
8150 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
8151
8152         [BZ # 15553]
8153         * nis/yp_xdr.c (XDRMAXNAME): Define.
8154         (XDRMAXRECORD): Define.
8155         (xdr_domainname): Use XDRMAXNAME.
8156         (xdr_mapname): Likewise.
8157         (xdr_peername): Likewise.
8158         (xdr_keydat): Use XDRMAXRECORD.
8159         (xdr_valdat): Likewise.
8160
8161 2013-05-30  Jeff Law  <law@redhat.com>
8162
8163         [BZ #14256]
8164         * manual/errno.texi (ESTALE): Update to account for more than
8165         just NFS file systems.
8166         * sysdeps/gnu/errlist.c: Regenerated.
8167
8168 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
8169
8170         [BZ #15465]
8171         * elf/Makefile (tests): Add tst-null-argv.
8172         (modules-names):  Add tst-null-argv-lib.
8173         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
8174         (tst-null-argv-ENV): Set environment for tst-null-argv.
8175         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
8176         (RTLD_PROGNAME): New macro.
8177         * elf/tst-null-argv.c: New test case.
8178         * elf/tst-null-argv-lib.c: Library for test case.
8179         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
8180         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8181         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
8182         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
8183         * elf/dl-init.c (call_init): Likewise.
8184         (_dl_init): Likewise.
8185         * elf/dl-load.c (print_search_path): Likewise.
8186         (_dl_map_object): Likewise.
8187         * elf/dl-lookup.c (do_lookup_x): Likewise.
8188         (add_dependency): Likewise.
8189         (_dl_lookup_symbol_x): Likewise.
8190         (_dl_debug_bindings): Likewise.
8191         * elf/dl-open.c (_dl_show_scope): Likewise.
8192         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8193         * elf/dl-version.c (match_symbol): Likewise.
8194         (_dl_check_map_versions): Likewise.
8195         * elf/rtld.c (dl_main): Likewise.
8196         (print_unresolved): Use RTLD_PROGNAME.
8197         (print_missing_version): Likewise.
8198         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8199         (elf_machine_rela): Likewise.
8200         * sysdeps/powerpc/powerpc32/dl-machine.c
8201         (__process_machine_rela): Likewise.
8202         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8203         Likewise.
8204         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8205         Likewise.
8206         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
8207         Likewise.
8208         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8209         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
8210         Likewise.
8211         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8212         Likewise.
8213         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8214
8215 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
8216
8217         * po/be.po: Add descriptive title.
8218         * po/zh_CN.po: Likewise.
8219         * po/header.pot: Likewise.
8220
8221 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
8222
8223         * locale/programs/locarchive.c (create_archive): Inlucde fname in
8224         error message.
8225         (enlarge_archive): Likewise.
8226
8227 2013-05-28  Ben North  <ben@redfrontdoor.org>
8228
8229         * manual/arith.texi (frexp): It is the magnitude of the return
8230         value which lies in [0.5, 1), not the return value itself.
8231
8232 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8233
8234         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8235
8236 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
8237
8238         * stdio-common/bug26.c (main): Correct fscanf template.
8239
8240         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
8241         declare _dl_skip_args.
8242
8243         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
8244         Don't declare.
8245
8246         * manual/platform.texi: Add missing @end deftypefun.
8247
8248 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8249
8250         [BZ #15529]
8251         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
8252         bit of mantissa of 2^16382.
8253         * math/libm-test.inc (hypot_test_data): Add more tests.
8254
8255         * math/libm-test.inc: Add drem and pow10 to list of tested
8256         functions.
8257         (pow10_test): New function.
8258         (drem_test): Likewise.
8259         (drem_test_tonearest): Likewise.
8260         (drem_test_towardzero): Likewise.
8261         (drem_test_downward): Likewise.
8262         (drem_test_upward): Likewise.
8263         (main): Call the new functions.
8264
8265         * math/libm-test.inc (finite_test_data): Remove.
8266         (finite_test): Run tests from isfinite_test_data.
8267         (gamma_test_data): Remove.
8268         (gamma_test): Run tests from lgamma_test_data.
8269         * sysdeps/i386/fpu/libm-test-ulps: Update.
8270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8271
8272 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8273
8274         * manual/platform.texi: Add PowerPC PPR function set documentation.
8275         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
8276         implementation.
8277
8278 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
8279
8280         * math/libm-test.inc (MAX_EXP): Define.
8281         (ULPDIFF): Define.
8282         (ulp): New function.
8283         (check_float_internal): Use ULPDIFF.
8284         (cpow_test): Disable failing test.
8285         (check_ulp): Test ulp() implemetnation.
8286         (main): Call check_ulp before starting tests.
8287
8288 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8289
8290         * math/gen-libm-test.pl (generate_testfile): Do not handle
8291         START_DATA and END_DATA.
8292         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
8293         END_DATA.
8294         (acos_tonearest_test_data): Likewise.
8295         (acos_towardzero_test_data): Likewise.
8296         (acos_downward_test_data): Likewise.
8297         (acos_upward_test_data): Likewise.
8298         (acosh_test_data): Likewise.
8299         (asin_test_data): Likewise.
8300         (asin_tonearest_test_data): Likewise.
8301         (asin_towardzero_test_data): Likewise.
8302         (asin_downward_test_data): Likewise.
8303         (asin_upward_test_data): Likewise.
8304         (asinh_test_data): Likewise.
8305         (atan_test_data): Likewise.
8306         (atanh_test_data): Likewise.
8307         (atan2_test_data): Likewise.
8308         (cabs_test_data): Likewise.
8309         (cacos_test_data): Likewise.
8310         (cacosh_test_data): Likewise.
8311         (carg_test_data): Likewise.
8312         (casin_test_data): Likewise.
8313         (casinh_test_data): Likewise.
8314         (catan_test_data): Likewise.
8315         (catanh_test_data): Likewise.
8316         (cbrt_test_data): Likewise.
8317         (ccos_test_data): Likewise.
8318         (ccosh_test_data): Likewise.
8319         (ceil_test_data): Likewise.
8320         (cexp_test_data): Likewise.
8321         (cimag_test_data): Likewise.
8322         (clog_test_data): Likewise.
8323         (clog10_test_data): Likewise.
8324         (conj_test_data): Likewise.
8325         (copysign_test_data): Likewise.
8326         (cos_test_data): Likewise.
8327         (cos_tonearest_test_data): Likewise.
8328         (cos_towardzero_test_data): Likewise.
8329         (cos_downward_test_data): Likewise.
8330         (cos_upward_test_data): Likewise.
8331         (cosh_test_data): Likewise.
8332         (cosh_tonearest_test_data): Likewise.
8333         (cosh_towardzero_test_data): Likewise.
8334         (cosh_downward_test_data): Likewise.
8335         (cosh_upward_test_data): Likewise.
8336         (cpow_test_data): Likewise.
8337         (cproj_test_data): Likewise.
8338         (creal_test_data): Likewise.
8339         (csin_test_data): Likewise.
8340         (csinh_test_data): Likewise.
8341         (csqrt_test_data): Likewise.
8342         (ctan_test_data): Likewise.
8343         (ctan_tonearest_test_data): Likewise.
8344         (ctan_towardzero_test_data): Likewise.
8345         (ctan_downward_test_data): Likewise.
8346         (ctan_upward_test_data): Likewise.
8347         (ctanh_test_data): Likewise.
8348         (ctanh_tonearest_test_data): Likewise.
8349         (ctanh_towardzero_test_data): Likewise.
8350         (ctanh_downward_test_data): Likewise.
8351         (ctanh_upward_test_data): Likewise.
8352         (erf_test_data): Likewise.
8353         (erfc_test_data): Likewise.
8354         (exp_test_data): Likewise.
8355         (exp_tonearest_test_data): Likewise.
8356         (exp_towardzero_test_data): Likewise.
8357         (exp_downward_test_data): Likewise.
8358         (exp_upward_test_data): Likewise.
8359         (exp10_test_data): Likewise.
8360         (exp2_test_data): Likewise.
8361         (expm1_test_data): Likewise.
8362         (fabs_test_data): Likewise.
8363         (fdim_test_data): Likewise.
8364         (finite_test_data): Likewise.
8365         (floor_test_data): Likewise.
8366         (fma_test_data): Likewise.
8367         (fma_towardzero_test_data): Likewise.
8368         (fma_downward_test_data): Likewise.
8369         (fma_upward_test_data): Likewise.
8370         (fmax_test_data): Likewise.
8371         (fmin_test_data): Likewise.
8372         (fmod_test_data): Likewise.
8373         (fpclassify_test_data): Likewise.
8374         (frexp_test_data): Likewise.
8375         (gamma_test_data): Likewise.
8376         (hypot_test_data): Likewise.
8377         (ilogb_test_data): Likewise.
8378         (isfinite_test_data): Likewise.
8379         (isgreater_test_data): Likewise.
8380         (isgreaterequal_test_data): Likewise.
8381         (isinf_test_data): Likewise.
8382         (isless_test_data): Likewise.
8383         (islessequal_test_data): Likewise.
8384         (islessgreater_test_data): Likewise.
8385         (isnan_test_data): Likewise.
8386         (isnormal_test_data): Likewise.
8387         (issignaling_test_data): Likewise.
8388         (isunordered_test_data): Likewise.
8389         (j0_test_data): Likewise.
8390         (j1_test_data): Likewise.
8391         (jn_test_data): Likewise.
8392         (ldexp_test_data): Likewise.
8393         (lgamma_test_data): Likewise.
8394         (lrint_test_data): Likewise.
8395         (lrint_tonearest_test_data): Likewise.
8396         (lrint_towardzero_test_data): Likewise.
8397         (lrint_downward_test_data): Likewise.
8398         (lrint_upward_test_data): Likewise.
8399         (llrint_test_data): Likewise.
8400         (llrint_tonearest_test_data): Likewise.
8401         (llrint_towardzero_test_data): Likewise.
8402         (llrint_downward_test_data): Likewise.
8403         (llrint_upward_test_data): Likewise.
8404         (log_test_data): Likewise.
8405         (log10_test_data): Likewise.
8406         (log1p_test_data): Likewise.
8407         (log2_test_data): Likewise.
8408         (logb_test_data): Likewise.
8409         (logb_downward_test_data): Likewise.
8410         (lround_test_data): Likewise.
8411         (llround_test_data): Likewise.
8412         (modf_test_data): Likewise.
8413         (nearbyint_test_data): Likewise.
8414         (nextafter_test_data): Likewise.
8415         (nexttoward_test_data): Likewise.
8416         (pow_test_data): Likewise.
8417         (pow_tonearest_test_data): Likewise.
8418         (pow_towardzero_test_data): Likewise.
8419         (pow_downward_test_data): Likewise.
8420         (pow_upward_test_data): Likewise.
8421         (remainder_test_data): Likewise.
8422         (remainder_tonearest_test_data): Likewise.
8423         (remainder_towardzero_test_data): Likewise.
8424         (remainder_downward_test_data): Likewise.
8425         (remainder_upward_test_data): Likewise.
8426         (remquo_test_data): Likewise.
8427         (rint_test_data): Likewise.
8428         (rint_tonearest_test_data): Likewise.
8429         (rint_towardzero_test_data): Likewise.
8430         (rint_downward_test_data): Likewise.
8431         (rint_upward_test_data): Likewise.
8432         (round_test_data): Likewise.
8433         (scalb_test_data): Likewise.
8434         (scalbn_test_data): Likewise.
8435         (scalbln_test_data): Likewise.
8436         (signbit_test_data): Likewise.
8437         (sin_test_data): Likewise.
8438         (sin_tonearest_test_data): Likewise.
8439         (sin_towardzero_test_data): Likewise.
8440         (sin_downward_test_data): Likewise.
8441         (sin_upward_test_data): Likewise.
8442         (sincos_test_data): Likewise.
8443         (sinh_test_data): Likewise.
8444         (sinh_tonearest_test_data): Likewise.
8445         (sinh_towardzero_test_data): Likewise.
8446         (sinh_downward_test_data): Likewise.
8447         (sinh_upward_test_data): Likewise.
8448         (sqrt_test_data): Likewise.
8449         (tan_test_data): Likewise.
8450         (tan_tonearest_test_data): Likewise.
8451         (tan_towardzero_test_data): Likewise.
8452         (tan_downward_test_data): Likewise.
8453         (tan_upward_test_data): Likewise.
8454         (tanh_test_data): Likewise.
8455         (tgamma_test_data): Likewise.
8456         (trunc_test_data): Likewise.
8457         (y0_test_data): Likewise.
8458         (y1_test_data): Likewise.
8459         (yn_test_data): Likewise.
8460         (significand_test_data): Likewise.
8461
8462         * math/gen-libm-test.pl (@functions): Remove variable.
8463         (generate_testfile): Don't handle START and END lines.
8464         * math/libm-test.inc (START): New macro.
8465         (END): Likewise.
8466         (END_COMPLEX): Likewise.
8467         (acos_test): Use END macro without arguments.
8468         (acos_test_tonearest): Likewise.
8469         (acos_test_towardzero): Likewise.
8470         (acos_test_downward): Likewise.
8471         (acos_test_upward): Likewise.
8472         (acosh_test): Likewise.
8473         (asin_test): Likewise.
8474         (asin_test_tonearest): Likewise.
8475         (asin_test_towardzero): Likewise.
8476         (asin_test_downward): Likewise.
8477         (asin_test_upward): Likewise.
8478         (asinh_test): Likewise.
8479         (atan_test): Likewise.
8480         (atanh_test): Likewise.
8481         (atan2_test): Likewise.
8482         (cabs_test): Likewise.
8483         (cacos_test): Use END_COMPLEX macro without arguments.
8484         (cacosh_test): Likewise.
8485         (carg_test): Use END macro without arguments.
8486         (casin_test): Use END_COMPLEX macro without arguments.
8487         (casinh_test): Likewise.
8488         (catan_test): Likewise.
8489         (catanh_test): Likewise.
8490         (cbrt_test): Use END macro without arguments.
8491         (ccos_test): Use END_COMPLEX macro without arguments.
8492         (ccosh_test): Likewise.
8493         (ceil_test): Use END macro without arguments.
8494         (cexp_test): Use END_COMPLEX macro without arguments.
8495         (cimag_test): Use END macro without arguments.
8496         (clog_test): Use END_COMPLEX macro without arguments.
8497         (clog10_test): Likewise.
8498         (conj_test): Likewise.
8499         (copysign_test): Use END macro without arguments.
8500         (cos_test): Likewise.
8501         (cos_test_tonearest): Likewise.
8502         (cos_test_towardzero): Likewise.
8503         (cos_test_downward): Likewise.
8504         (cos_test_upward): Likewise.
8505         (cosh_test): Likewise.
8506         (cosh_test_tonearest): Likewise.
8507         (cosh_test_towardzero): Likewise.
8508         (cosh_test_downward): Likewise.
8509         (cosh_test_upward): Likewise.
8510         (cpow_test): Use END_COMPLEX macro without arguments.
8511         (cproj_test): Likewise.
8512         (creal_test): Use END macro without arguments.
8513         (csin_test): Use END_COMPLEX macro without arguments.
8514         (csinh_test): Likewise.
8515         (csqrt_test): Likewise.
8516         (ctan_test): Likewise.
8517         (ctan_test_tonearest): Likewise.
8518         (ctan_test_towardzero): Likewise.
8519         (ctan_test_downward): Likewise.
8520         (ctan_test_upward): Likewise.
8521         (ctanh_test): Likewise.
8522         (ctanh_test_tonearest): Likewise.
8523         (ctanh_test_towardzero): Likewise.
8524         (ctanh_test_downward): Likewise.
8525         (ctanh_test_upward): Likewise.
8526         (erf_test): Use END macro without arguments.
8527         (erfc_test): Likewise.
8528         (exp_test): Likewise.
8529         (exp_test_tonearest): Likewise.
8530         (exp_test_towardzero): Likewise.
8531         (exp_test_downward): Likewise.
8532         (exp_test_upward): Likewise.
8533         (exp10_test): Likewise.
8534         (exp2_test): Likewise.
8535         (expm1_test): Likewise.
8536         (fabs_test): Likewise.
8537         (fdim_test): Likewise.
8538         (finite_test): Likewise.
8539         (floor_test): Likewise.
8540         (fma_test): Likewise.
8541         (fma_test_towardzero): Likewise.
8542         (fma_test_downward): Likewise.
8543         (fma_test_upward): Likewise.
8544         (fmax_test): Likewise.
8545         (fmin_test): Likewise.
8546         (fmod_test): Likewise.
8547         (fpclassify_test): Likewise.
8548         (frexp_test): Likewise.
8549         (gamma_test): Likewise.
8550         (hypot_test): Likewise.
8551         (ilogb_test): Likewise.
8552         (isfinite_test): Likewise.
8553         (isgreater_test): Likewise.
8554         (isgreaterequal_test): Likewise.
8555         (isinf_test): Likewise.
8556         (isless_test): Likewise.
8557         (islessequal_test): Likewise.
8558         (islessgreater_test): Likewise.
8559         (isnan_test): Likewise.
8560         (isnormal_test): Likewise.
8561         (issignaling_test): Likewise.
8562         (isunordered_test): Likewise.
8563         (j0_test): Likewise.
8564         (j1_test): Likewise.
8565         (jn_test): Likewise.
8566         (ldexp_test): Likewise.
8567         (lgamma_test): Likewise.
8568         (lrint_test): Likewise.
8569         (lrint_test_tonearest): Likewise.
8570         (lrint_test_towardzero): Likewise.
8571         (lrint_test_downward): Likewise.
8572         (lrint_test_upward): Likewise.
8573         (llrint_test): Likewise.
8574         (llrint_test_tonearest): Likewise.
8575         (llrint_test_towardzero): Likewise.
8576         (llrint_test_downward): Likewise.
8577         (llrint_test_upward): Likewise.
8578         (log_test): Likewise.
8579         (log10_test): Likewise.
8580         (log1p_test): Likewise.
8581         (log2_test): Likewise.
8582         (logb_test): Likewise.
8583         (logb_test_downward): Likewise.
8584         (lround_test): Likewise.
8585         (llround_test): Likewise.
8586         (modf_test): Likewise.
8587         (nearbyint_test): Likewise.
8588         (nextafter_test): Likewise.
8589         (nexttoward_test): Likewise.
8590         (pow_test): Likewise.
8591         (pow_test_tonearest): Likewise.
8592         (pow_test_towardzero): Likewise.
8593         (pow_test_downward): Likewise.
8594         (pow_test_upward): Likewise.
8595         (remainder_test): Likewise.
8596         (remainder_test_tonearest): Likewise.
8597         (remainder_test_towardzero): Likewise.
8598         (remainder_test_downward): Likewise.
8599         (remainder_test_upward): Likewise.
8600         (remquo_test): Likewise.
8601         (rint_test): Likewise.
8602         (rint_test_tonearest): Likewise.
8603         (rint_test_towardzero): Likewise.
8604         (rint_test_downward): Likewise.
8605         (rint_test_upward): Likewise.
8606         (round_test): Likewise.
8607         (scalb_test): Likewise.
8608         (scalbn_test): Likewise.
8609         (scalbln_test): Likewise.
8610         (signbit_test): Likewise.
8611         (sin_test): Likewise.
8612         (sin_test_tonearest): Likewise.
8613         (sin_test_towardzero): Likewise.
8614         (sin_test_downward): Likewise.
8615         (sin_test_upward): Likewise.
8616         (sincos_test): Likewise.
8617         (sinh_test): Likewise.
8618         (sinh_test_tonearest): Likewise.
8619         (sinh_test_towardzero): Likewise.
8620         (sinh_test_downward): Likewise.
8621         (sinh_test_upward): Likewise.
8622         (sqrt_test): Likewise.
8623         (tan_test): Likewise.
8624         (tan_test_tonearest): Likewise.
8625         (tan_test_towardzero): Likewise.
8626         (tan_test_downward): Likewise.
8627         (tan_test_upward): Likewise.
8628         (tanh_test): Likewise.
8629         (tgamma_test): Likewise.
8630         (trunc_test): Likewise.
8631         (y0_test): Likewise.
8632         (y1_test): Likewise.
8633         (yn_test): Likewise.
8634         (significand_test): Likewise.
8635
8636 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
8637
8638         [BZ #15381]
8639         * libio/genops.c (_IO_no_init): Initialize wide struct info.
8640
8641 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8642
8643         [BZ #14894]
8644         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
8645         __ppc_mdoio and __ppc_mdoom.
8646         * manual/platform.texi: Document new functions __ppc_yield,
8647         __ppc_mdoio and __ppc_mdoom.
8648
8649 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
8650
8651         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
8652         (main): Mention "tls" pseudo-hwcap is legacy.
8653         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
8654
8655 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8656
8657         * math/gen-libm-test.pl (parse_args): Output only string of
8658         arguments as text for test name, not full call or descriptions of
8659         tests for extra outputs.
8660         (generate_testfile): Do not pass function name to parse_args.
8661         Generate this_func variable from START.
8662         * math/libm-test.inc (struct test_f_f_data): Rename test_name
8663         field to arg_str.
8664         (struct test_ff_f_data): Likewise.
8665         (test_ff_f_data_nexttoward): Likewise.
8666         (struct test_fi_f_data): Likewise.
8667         (struct test_fl_f_data): Likewise.
8668         (struct test_if_f_data): Likewise.
8669         (struct test_fff_f_data): Likewise.
8670         (struct test_c_f_data): Likewise.
8671         (struct test_f_f1_data): Likewise.  Remove field extra_name.
8672         (struct test_fF_f1_data): Likewise.
8673         (struct test_ffI_f1_data): Likewise.
8674         (struct test_c_c_data): Rename test_name field to arg_str.
8675         (struct test_cc_c_data): Likewise.
8676         (struct test_f_i_data): Likewise.
8677         (struct test_ff_i_data): Likewise.
8678         (struct test_f_l_data): Likewise.
8679         (struct test_f_L_data): Likewise.
8680         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
8681         and extra2_name.
8682         (COMMON_TEST_SETUP): New macro.
8683         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
8684         (COMMON_TEST_CLEANUP): Likewise.
8685         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
8686         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
8687         macros.
8688         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
8689         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
8690         macros.
8691         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
8692         (RUN_TEST_fff_f): Take argument string.  Call new setup and
8693         cleanup macros.
8694         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
8695         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
8696         macros.
8697         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
8698         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
8699         macros.
8700         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8701         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
8702         cleanup macros.
8703         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8704         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
8705         cleanup macros.
8706         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8707         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
8708         cleanup macros.
8709         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8710         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
8711         macros.
8712         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
8713         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
8714         macros.
8715         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
8716         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
8717         macros.
8718         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
8719         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
8720         cleanup macros.
8721         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
8722         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
8723         cleanup macros.
8724         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
8725         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
8726         macros.
8727         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
8728         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
8729         cleanup macros.
8730         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
8731         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
8732         macros.
8733         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
8734         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
8735         macros.
8736         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
8737         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
8738         cleanup macros.
8739         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
8740
8741 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
8742
8743         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
8744         to _sifields.sigfault.
8745         (si_addr_lsb): Define new macro.
8746         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8747         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8748         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
8749
8750 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
8751
8752         [BZ #15441]
8753         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
8754         returns -1.
8755         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
8756         null return -1.
8757         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
8758         loading the domain.
8759
8760 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8761
8762         * math/gen-libm-test.pl (parse_args): Do not include expected
8763         result in test name.
8764         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
8765         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8766         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8767         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8768         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8769         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8770
8771 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8772
8773         * benchtests/Makefile: Sort function entries.
8774
8775         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
8776         tanh, asinh, acosh, atanh.
8777         * benchtests/acos-inputs: New file.
8778         * benchtests/acosh-inputs: New file.
8779         * benchtests/asin-inputs: New file.
8780         * benchtests/asinh-inputs: New file.
8781         * benchtests/atanh-inputs: New file.
8782         * benchtests/cosh-inputs: New file.
8783         * benchtests/log-inputs: New file.
8784         * benchtests/sinh-inputs: New file.
8785         * benchtests/tanh-inputs: New file.
8786
8787 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
8788
8789         [BZ #15339]
8790         * posix/tst-getaddrinfo4.c: New test.
8791         * posix/Makefile (tests): Add it.
8792
8793 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8794
8795         [BZ #15339]
8796         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
8797         when no services were used.
8798         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
8799         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
8800
8801 2013-05-21  Andreas Schwab  <schwab@suse.de>
8802
8803         [BZ #15014]
8804         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
8805         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
8806         successful.
8807         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
8808         redundant variable declarations and reallocation of buffer when
8809         parsing as IPv6 address.  Always set NSS status when called from
8810         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
8811         buffer too small.  Correct computation of needed size.
8812         * nss/Makefile (tests): Add test-digits-dots.
8813         * nss/test-digits-dots.c: New test.
8814
8815 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8816
8817         * benchtests/Makefile: Remove instructions for adding
8818         benchmark tests.
8819         * benchtests/README: New file to explain how to execute and
8820         enhance the benchmark tests.
8821
8822 2013-05-21  Andreas Schwab  <schwab@suse.de>
8823
8824         [BZ #15493]
8825         * setjmp/Makefile (tests): Add tst-sigsetjmp.
8826         * setjmp/tst-sigsetjmp.c: New test.
8827
8828 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8829
8830         * sysdeps/x86_64/memset.S (memset): New implementation.
8831         (__bzero): Likewise.
8832         (__memset_tail): New function.
8833
8834 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8835
8836         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
8837         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
8838         __memcpy_sse2_unaligned ifunc selection.
8839         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
8840         Add memcpy-sse2-unaligned.S.
8841         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8842         Add: __memcpy_sse2_unaligned.
8843
8844 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
8845
8846         [BZ #15490]
8847         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8848         math_force_eval before restoring floating-point envrionment.
8849         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
8850         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8851         Likewise.
8852         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
8853         <math_private.h>.
8854         (__nearbyintl): Use math_force_eval before restoring
8855         floating-point environment.
8856         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
8857
8858         * math/gen-libm-test.pl (special_functions): Remove.
8859         (parse_args): Don't handle TEST_extra.  Handle functions with no
8860         return value.
8861         * math/libm-test.inc (struct test_sincos_data): Replace with
8862         struct test_fFF_11_data.
8863         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
8864         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
8865         (sincos_test_data): Change element type to struct
8866         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
8867         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
8868         RUN_TEST_LOOP_sincos.
8869         * math/README.libm-test: Don't mention special handling of
8870         individual functions.
8871         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
8872         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8873         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8874         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8875         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8877
8878         * math/gen-libm-test.pl (get_variable): Remove function.
8879         (parse_args): Don't show pointer parameters to call in test
8880         names.  Use "extra output N" in test names for extra outputs
8881         rather than naming variables.
8882
8883 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
8884
8885         [BZ #15488]
8886         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
8887         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
8888         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
8889         double tests.
8890         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
8891         disable.
8892         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
8893         check_long_double.
8894
8895         * math/gen-libm-test.pl (@tests): Remove variable.
8896         ($count): Likewise.
8897         (new_test): Remove function.
8898         (show_exceptions): New function.
8899         (special_functions): Use show_exceptions instead of new_test.
8900         (parse_args): Likewise.
8901         (generate_testfile): Pass only function name in generated call to
8902         print_max_error or print_complex_max_error.
8903         (get_ulps): Do not handle complex tests specially.
8904         (output_test): Rename to ...
8905         (get_all_ulps_for_test): ... this.  Return a string rather than
8906         printing to a file.  Require ulps to be present.
8907         (output_ulps): Generate arrays rather than #defines.
8908         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
8909         (struct ulp_data): New type.
8910         (BUILD_COMPLEX_ULP): Remove macro.
8911         (compare_ulp_data): New function.
8912         (find_ulps): Likewise.
8913         (find_test_ulps): Likewise.
8914         (find_function_ulps): Likewise.
8915         (find_complex_function_ulps): Likewise.
8916         (print_max_error): Determine allowed ulps using
8917         find_function_ulps.
8918         (print_complex_max_error): Determine allowed ulps using
8919         find_complex_function_ulps.
8920         (check_float_internal): Determine max ulps using find_test_ulps.
8921         (check_float): Do not take max_ulp parameter.  Update call to
8922         check_float_internal.
8923         (check_complex): Likewise.
8924         (check_int): Do not take max_ulp parameter.
8925         (check_long): Likewise.
8926         (check_bool): Likewise.
8927         (check_longlong): Likewise.
8928         (struct test_f_f_data): Remove max_ulp field.
8929         (struct test_ff_f_data): Likewise.
8930         (struct test_ff_f_data_nexttoward): Likewise.
8931         (struct test_fi_f_data): Likewise.
8932         (struct test_fl_f_data): Likewise.
8933         (struct test_if_f_data): Likewise.
8934         (struct test_fff_f_data): Likewise.
8935         (struct test_c_f_data): Likewise.
8936         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
8937         (struct test_fF_f1_data): Likewise.
8938         (struct test_ffI_f1_data): Likewise.
8939         (struct test_c_c_data): Remove max_ulp field.
8940         (struct test_cc_c_data): Likewise.
8941         (struct test_f_i_data): Likewise.
8942         (struct test_ff_i_data): Likewise.
8943         (struct test_f_l_data): Likewise.
8944         (struct test_f_L_data): Likewise.
8945         (struct test_sincos_data): Likewise.
8946         (RUN_TEST_f_f): Do not handle ulps.
8947         (RUN_TEST_LOOP_f_f): Likewise.
8948         (RUN_TEST_2_f): Likewise.
8949         (RUN_TEST_LOOP_2_f): Likewise.
8950         (RUN_TEST_fff_f): Likewise.
8951         (RUN_TEST_LOOP_fff_f): Likewise.
8952         (RUN_TEST_c_f): Likewise.
8953         (RUN_TEST_LOOP_c_f): Likewise.
8954         (RUN_TEST_f_f1): Likewise.
8955         (RUN_TEST_LOOP_f_f1): Likewise.
8956         (RUN_TEST_fF_f1): Likewise.
8957         (RUN_TEST_LOOP_fF_f1): Likewise.
8958         (RUN_TEST_fI_f1): Likewise.
8959         (RUN_TEST_LOOP_fI_f1): Likewise.
8960         (RUN_TEST_ffI_f1): Likewise.
8961         (RUN_TEST_LOOP_ffI_f1): Likewise.
8962         (RUN_TEST_c_c): Likewise.
8963         (RUN_TEST_LOOP_c_c): Likewise.
8964         (RUN_TEST_cc_c): Likewise.
8965         (RUN_TEST_LOOP_cc_c): Likewise.
8966         (RUN_TEST_f_i): Likewise.
8967         (RUN_TEST_LOOP_f_i): Likewise.
8968         (RUN_TEST_f_i_tg): Likewise.
8969         (RUN_TEST_LOOP_f_i_tg): Likewise.
8970         (RUN_TEST_ff_i_tg): Likewise.
8971         (RUN_TEST_LOOP_ff_i_tg): Likewise.
8972         (RUN_TEST_f_b): Likewise.
8973         (RUN_TEST_LOOP_f_b): Likewise.
8974         (RUN_TEST_f_b_tg): Likewise.
8975         (RUN_TEST_LOOP_f_b_tg): Likewise.
8976         (RUN_TEST_f_l): Likewise.
8977         (RUN_TEST_LOOP_f_l): Likewise.
8978         (RUN_TEST_f_L): Likewise.
8979         (RUN_TEST_LOOP_f_L): Likewise.
8980         (RUN_TEST_sincos): Likewise.
8981         (RUN_TEST_LOOP_sincos): Likewise.
8982
8983 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
8984
8985         [BZ #15480]
8986         [BZ #15485]
8987         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
8988         main case of finite arguments, set rounding mode to FE_TONEAREST
8989         and discard exceptions.
8990         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
8991         exceptions.
8992         (remainder_tonearest_test_data): New variable.
8993         (remainder_test_tonearest): New function.
8994         (remainder_towardzero_test_data): New variable.
8995         (remainder_test_towardzero): New function.
8996         (remainder_downward_test_data): New variable.
8997         (remainder_test_downward): New function.
8998         (remainder_upward_test_data): New variable.
8999         (remainder_test_upward): New function.
9000         (main): Call the new test functions.
9001
9002         * math/libm-test.inc (struct test_f_f1_data): Remove field
9003         extra_init.
9004         (struct test_fF_f1_data): Likewise.
9005         (struct test_ffI_f1_data): Likewise.
9006         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
9007         based on value of EXTRA_EXPECTED.
9008         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
9009         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
9010         EXTRA_VAR based on value of EXTRA_EXPECTED.
9011         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
9012         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
9013         EXTRA_VAR based on value of EXTRA_EXPECTED.
9014         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
9015         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
9016         EXTRA_VAR based on value of EXTRA_EXPECTED.
9017         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
9018         * math/gen-libm-test.pl (parse_args): Don't output initializers
9019         for extra output values.
9020
9021         * math/libm-test.inc (check_int): Expect result to be exactly
9022         equal to expected value and do not handle ulps.
9023         (check_long): Likewise.
9024         (check_longlong): Likewise.
9025
9026         * math/libm-test.inc (ceil_test_data): Test for "inexact"
9027         exceptions.
9028         (cimag_test_data): Likewise.
9029         (conj_test_data): Likewise.
9030         (copysign_test_data): Likewise.
9031         (cproj_test_data): Likewise.
9032         (creal_test_data): Likewise.
9033         (fabs_test_data): Likewise.
9034         (fdim_test_data): Likewise.
9035         (finite_test_data): Likewise.
9036         (floor_test_data): Likewise.
9037         (fmax_test_data): Likewise.
9038         (fmin_test_data): Likewise.
9039         (fmod_test_data): Likewise.
9040         (fpclassify_test_data): Likewise.
9041         (frexp_test_data): Likewise.
9042         (ilogb_test_data): Likewise.
9043         (isfinite_test_data): Likewise.
9044         (isgreater_test_data): Likewise.
9045         (isgreaterequal_test_data): Likewise.
9046         (isinf_test_data): Likewise.
9047         (isless_test_data): Likewise.
9048         (islessequal_test_data): Likewise.
9049         (islessgreater_test_data): Likewise.
9050         (isnan_test_data): Likewise.
9051         (isnormal_test_data): Likewise.
9052         (issignaling_test_data): Likewise.
9053         (isunordered_test_data): Likewise.
9054         (ldexp_test_data): Likewise.
9055         (lrint_test_data): Likewise.
9056         (lrint_test_data) [TEST_FLOAT]: Disable one test.
9057         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
9058         (lrint_tonearest_test_data): Test for "inexact" exceptions.
9059         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9060         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
9061         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9062         test input.
9063         (lrint_towardzero_test_data): Test for "inexact" exceptions.
9064         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9065         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
9066         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
9067         that test input.
9068         (lrint_downward_test_data): Test for "inexact" exceptions.
9069         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9070         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
9071         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9072         test input.
9073         (lrint_upward_test_data): Test for "inexact" exceptions.
9074         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
9075         test input.
9076         (llrint_test_data): Test for "inexact" exceptions.
9077         (llrint_test_data) [TEST_FLOAT]: Disable one test.
9078         (llrint_tonearest_test_data): Test for "inexact" exceptions.
9079         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9080         (llrint_towardzero_test_data): Test for "inexact" exceptions.
9081         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9082         (llrint_downward_test_data): Test for "inexact" exceptions.
9083         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9084         (llrint_upward_test_data): Test for "inexact" exceptions.
9085         (logb_test_data): Likewise.
9086         (logb_downward_test_data): Likewise.
9087         (nextafter_test_data): Likewise.
9088         (nexttoward_test_data): Likewise.
9089         (remainder_test_data): Likewise.
9090         (remquo_test_data): Likewise.
9091         (scalbn_test_data): Likewise.
9092         (scalbln_test_data): Likewise.
9093         (signbit_test_data): Likewise.
9094         (sqrt_test_data): Likewise.
9095         (significand_test_data): Likewise.
9096
9097 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9098
9099         [BZ #15424]
9100         * benchtests/bench-modf.c (struct args): Mark arg0 as
9101         volatile.
9102         * scripts/bench.pl: Mark members of struct args as volatile.
9103
9104 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9105
9106         [BZ # 15497]
9107         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
9108         negative infinity on POWER6 or lower.
9109         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
9110
9111 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
9112
9113         [BZ #15442]
9114         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
9115         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
9116         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
9117         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
9118         (_FP_SETQNAN): New macro.
9119         (_FP_SETQNAN_SEMIRAW): Likewise.
9120         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
9121         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
9122         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
9123         (FP_EXTEND): Use _FP_FRAC_SNANP.
9124         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
9125         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
9126         into account.
9127         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9128         New macro.
9129         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9130         Likewise.
9131
9132 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9133
9134         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
9135         with DIVIDE_BY_ZERO_EXCEPTION.
9136         (gamma_test_data): Likewise.
9137         (lgamma_test_data): Likewise.
9138         (log_test_data): Likewise.
9139         (log10_test_data): Likewise.
9140         (log2_test_data): Likewise.
9141         (tgamma_test_data): Likewise.
9142
9143         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
9144         (acos_test_tonearest): Likewise.
9145         (acos_test_towardzero): Likewise.
9146         (acos_test_downward): Likewise.
9147         (acos_test_upward): Likewise.
9148         (acosh_test): Likewise.
9149         (asin_test): Likewise.
9150         (asin_test_tonearest): Likewise.
9151         (asin_test_towardzero): Likewise.
9152         (asin_test_downward): Likewise.
9153         (asin_test_upward): Likewise.
9154         (asinh_test): Likewise.
9155         (atan_test): Likewise.
9156         (atanh_test): Likewise.
9157         (atan2_test): Likewise.
9158         (cabs_test): Likewise.
9159         (cacos_test): Likewise.
9160         (cacosh_test): Likewise.
9161         (casin_test): Likewise.
9162         (casinh_test): Likewise.
9163         (catan_test): Likewise.
9164         (catanh_test): Likewise.
9165         (cbrt_test): Likewise.
9166         (ccos_test): Likewise.
9167         (ccosh_test): Likewise.
9168         (cexp_test): Likewise.
9169         (clog_test): Likewise.
9170         (clog10_test): Likewise.
9171         (cos_test): Likewise.
9172         (cos_test_tonearest): Likewise.
9173         (cos_test_towardzero): Likewise.
9174         (cos_test_downward): Likewise.
9175         (cos_test_upward): Likewise.
9176         (cosh_test): Likewise.
9177         (cosh_test_tonearest): Likewise.
9178         (cosh_test_towardzero): Likewise.
9179         (cosh_test_downward): Likewise.
9180         (cosh_test_upward): Likewise.
9181         (cpow_test): Likewise.
9182         (csin_test): Likewise.
9183         (csinh_test): Likewise.
9184         (csqrt_test): Likewise.
9185         (ctan_test): Likewise.
9186         (ctan_test_tonearest): Likewise.
9187         (ctan_test_towardzero): Likewise.
9188         (ctan_test_downward): Likewise.
9189         (ctan_test_upward): Likewise.
9190         (ctanh_test): Likewise.
9191         (ctanh_test_tonearest): Likewise.
9192         (ctanh_test_towardzero): Likewise.
9193         (ctanh_test_downward): Likewise.
9194         (ctanh_test_upward): Likewise.
9195         (erf_test): Likewise.
9196         (erfc_test): Likewise.
9197         (exp_test): Likewise.
9198         (exp_test_tonearest): Likewise.
9199         (exp_test_towardzero): Likewise.
9200         (exp_test_downward): Likewise.
9201         (exp_test_upward): Likewise.
9202         (exp10_test): Likewise.
9203         (exp2_test): Likewise.
9204         (expm1_test): Likewise.
9205         (fmod_test): Likewise.
9206         (gamma_test): Likewise.
9207         (hypot_test): Likewise.
9208         (j0_test): Likewise.
9209         (j1_test): Likewise.
9210         (jn_test): Likewise.
9211         (lgamma_test): Likewise.
9212         (log_test): Likewise.
9213         (log10_test): Likewise.
9214         (log1p_test): Likewise.
9215         (log2_test): Likewise.
9216         (logb_test_downward): Likewise.
9217         (pow_test): Likewise.
9218         (pow_test_tonearest): Likewise.
9219         (pow_test_towardzero): Likewise.
9220         (pow_test_downward): Likewise.
9221         (pow_test_upward): Likewise.
9222         (remainder_test): Likewise.
9223         (remquo_test): Likewise.
9224         (sin_test): Likewise.
9225         (sin_test_tonearest): Likewise.
9226         (sin_test_towardzero): Likewise.
9227         (sin_test_downward): Likewise.
9228         (sin_test_upward): Likewise.
9229         (sincos_test): Likewise.
9230         (sinh_test): Likewise.
9231         (sinh_test_tonearest): Likewise.
9232         (sinh_test_towardzero): Likewise.
9233         (sinh_test_downward): Likewise.
9234         (sinh_test_upward): Likewise.
9235         (sqrt_test): Likewise.
9236         (tan_test): Likewise.
9237         (tan_test_tonearest): Likewise.
9238         (tan_test_towardzero): Likewise.
9239         (tan_test_downward): Likewise.
9240         (tan_test_upward): Likewise.
9241         (tanh_test): Likewise.
9242         (tgamma_test): Likewise.
9243         (y0_test): Likewise.
9244         (y1_test): Likewise.
9245         (yn_test): Likewise.
9246
9247         * math/gen-libm-test.pl (adjust_arg): Remove function.
9248         (special_function): Remove argument $in_func.  Only handle
9249         generating output for tables of tests, not inside functions.
9250         (parse_args): Likewise.
9251         (generate_testfile): Remove variable $in_func.  Update call to
9252         parse_args.
9253         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
9254         (MINUS_ZERO_INIT): Rename macro to minus_zero.
9255         (PLUS_INFTY_INIT): Rename macro to plus_infty.
9256         (MINUS_INFTY_INIT): Rename macro to minus_infty.
9257         (QNAN_VALUE_INIT): Rename macro to qnan_value.
9258         (MAX_VALUE_INIT): Rename macro to max_value.
9259         (MIN_VALUE_INIT): Rename macro to min_value.
9260         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
9261         (plus_zero): Remove variable.
9262         (minus_zero): Likewise.
9263         (plus_infty): Likewise.
9264         (minus_infty): Likewise.
9265         (qnan_value): Likewise.
9266         (max_value): Likewise.
9267         (min_value): Likewise.
9268         (min_subnorm_value): Likewise.
9269
9270 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9271
9272         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
9273         uint64_t or uint32_t usage.
9274         * crypt/sha256-block.c: Likewise.
9275         * crypt/sha256-crypt.c: Likewise.
9276         * crypt/sha256.c: Likewise.
9277         * crypt/sha512-block.c: Likewise.
9278         * crypt/sha512-crypt.c: Likewise.
9279         * crypt/sha512.c: Likewise.
9280         * debug/backtrace-tst.c: Likewise.
9281         * debug/pcprofiledump.c: Likewise.
9282         * elf/cache.c: Likewise.
9283         * elf/dl-cache.c: Likewise.
9284         * elf/dl-misc.c: Likewise.
9285         * elf/dl-profile.c: Likewise.
9286         * elf/dl-support.c: Likewise.
9287         * elf/ldconfig.c: Likewise.
9288         * elf/sprof.c: Likewise.
9289         * iconv/dummy-repertoire.c: Likewise.
9290         * iconv/iconv_charmap.c: Likewise.
9291         * iconv/skeleton.c: Likewise.
9292         * iconvdata/8bit-generic.c: Likewise.
9293         * iconvdata/cp737.h: Likewise.
9294         * iconvdata/cp775.h: Likewise.
9295         * iconvdata/ibm1008.h: Likewise.
9296         * iconvdata/ibm1025.h: Likewise.
9297         * iconvdata/ibm1046.h: Likewise.
9298         * iconvdata/ibm1097.h: Likewise.
9299         * iconvdata/ibm1112.h: Likewise.
9300         * iconvdata/ibm1122.h: Likewise.
9301         * iconvdata/ibm1123.h: Likewise.
9302         * iconvdata/ibm1124.h: Likewise.
9303         * iconvdata/ibm1129.h: Likewise.
9304         * iconvdata/ibm1130.h: Likewise.
9305         * iconvdata/ibm1132.h: Likewise.
9306         * iconvdata/ibm1133.h: Likewise.
9307         * iconvdata/ibm1137.h: Likewise.
9308         * iconvdata/ibm1140.h: Likewise.
9309         * iconvdata/ibm1141.h: Likewise.
9310         * iconvdata/ibm1142.h: Likewise.
9311         * iconvdata/ibm1143.h: Likewise.
9312         * iconvdata/ibm1144.h: Likewise.
9313         * iconvdata/ibm1145.h: Likewise.
9314         * iconvdata/ibm1146.h: Likewise.
9315         * iconvdata/ibm1147.h: Likewise.
9316         * iconvdata/ibm1148.h: Likewise.
9317         * iconvdata/ibm1149.h: Likewise.
9318         * iconvdata/ibm1153.h: Likewise.
9319         * iconvdata/ibm1154.h: Likewise.
9320         * iconvdata/ibm1155.h: Likewise.
9321         * iconvdata/ibm1156.h: Likewise.
9322         * iconvdata/ibm1157.h: Likewise.
9323         * iconvdata/ibm1158.h: Likewise.
9324         * iconvdata/ibm1160.h: Likewise.
9325         * iconvdata/ibm1161.h: Likewise.
9326         * iconvdata/ibm1162.h: Likewise.
9327         * iconvdata/ibm1163.h: Likewise.
9328         * iconvdata/ibm1164.h: Likewise.
9329         * iconvdata/ibm1166.h: Likewise.
9330         * iconvdata/ibm1167.h: Likewise.
9331         * iconvdata/ibm12712.h: Likewise.
9332         * iconvdata/ibm1390.h: Likewise.
9333         * iconvdata/ibm1399.h: Likewise.
9334         * iconvdata/ibm16804.h: Likewise.
9335         * iconvdata/ibm4517.h: Likewise.
9336         * iconvdata/ibm4899.h: Likewise.
9337         * iconvdata/ibm4909.h: Likewise.
9338         * iconvdata/ibm4971.h: Likewise.
9339         * iconvdata/ibm5347.h: Likewise.
9340         * iconvdata/ibm803.h: Likewise.
9341         * iconvdata/ibm856.h: Likewise.
9342         * iconvdata/ibm901.h: Likewise.
9343         * iconvdata/ibm902.h: Likewise.
9344         * iconvdata/ibm9030.h: Likewise.
9345         * iconvdata/ibm9066.h: Likewise.
9346         * iconvdata/ibm921.h: Likewise.
9347         * iconvdata/ibm922.h: Likewise.
9348         * iconvdata/ibm9448.h: Likewise.
9349         * iconvdata/isiri-3342.h: Likewise.
9350         * iconvdata/jis0201.h: Likewise.
9351         * include/link.h: Likewise.
9352         * include/netdb.h: Likewise.
9353         * inet/check_native.c: Likewise.
9354         * inet/check_pf.c: Likewise.
9355         * inet/getipv4sourcefilter.c: Likewise.
9356         * inet/getnameinfo.c: Likewise.
9357         * inet/getsourcefilter.c: Likewise.
9358         * inet/htonl.c: Likewise.
9359         * inet/setipv4sourcefilter.c: Likewise.
9360         * inet/setsourcefilter.c: Likewise.
9361         * inet/test-inet6_opt.c: Likewise.
9362         * inet/tst-network.c: Likewise.
9363         * locale/C-collate.c: Likewise.
9364         * locale/C-ctype.c: Likewise.
9365         * locale/C-time.c: Likewise.
9366         * locale/C-translit.h: Likewise.
9367         * locale/loadarchive.c: Likewise.
9368         * locale/programs/3level.h: Likewise.
9369         * locale/programs/charmap.c: Likewise.
9370         * locale/programs/charmap.h: Likewise.
9371         * locale/programs/ld-address.c: Likewise.
9372         * locale/programs/ld-collate.c: Likewise.
9373         * locale/programs/ld-ctype.c: Likewise.
9374         * locale/programs/ld-identification.c: Likewise.
9375         * locale/programs/ld-measurement.c: Likewise.
9376         * locale/programs/ld-messages.c: Likewise.
9377         * locale/programs/ld-monetary.c: Likewise.
9378         * locale/programs/ld-name.c: Likewise.
9379         * locale/programs/ld-numeric.c: Likewise.
9380         * locale/programs/ld-paper.c: Likewise.
9381         * locale/programs/ld-telephone.c: Likewise.
9382         * locale/programs/ld-time.c: Likewise.
9383         * locale/programs/linereader.c: Likewise.
9384         * locale/programs/locale.c: Likewise.
9385         * locale/programs/locarchive.c: Likewise.
9386         * locale/programs/locfile.h: Likewise.
9387         * locale/programs/repertoire.c: Likewise.
9388         * locale/programs/simple-hash.c: Likewise.
9389         * locale/programs/simple-hash.h: Likewise.
9390         * malloc/memusage.c: Likewise.
9391         * malloc/memusagestat.c: Likewise.
9392         * nis/nis_defaults.c: Likewise.
9393         * nis/nis_hash.c: Likewise.
9394         * nis/nis_print.c: Likewise.
9395         * nis/nis_xdr.c: Likewise.
9396         * nscd/connections.c: Likewise.
9397         * nscd/hstcache.c: Likewise.
9398         * nscd/nscd_gethst_r.c: Likewise.
9399         * nscd/nscd_getserv_r.c: Likewise.
9400         * nscd/nscd_helper.c: Likewise.
9401         * nscd/servicescache.c: Likewise.
9402         * nss/makedb.c: Likewise.
9403         * nss/nss_db/db-XXX.c: Likewise.
9404         * nss/nss_db/db-initgroups.c: Likewise.
9405         * nss/nss_db/db-netgrp.c: Likewise.
9406         * nss/nss_files/files-network.c: Likewise.
9407         * nss/nss_files/files-parse.c: Likewise.
9408         * posix/bug-regex5.c: Likewise.
9409         * posix/fnmatch_loop.c: Likewise.
9410         * posix/regcomp.c: Likewise.
9411         * posix/regexec.c: Likewise.
9412         * posix/tst-rfc3484-2.c: Likewise.
9413         * posix/tst-rfc3484-3.c: Likewise.
9414         * posix/tst-rfc3484.c: Likewise.
9415         * resolv/nss_dns/dns-canon.c: Likewise.
9416         * resolv/nss_dns/dns-network.c: Likewise.
9417         * resolv/res_init.c: Likewise.
9418         * resolv/res_mkquery.c: Likewise.
9419         * resolv/tst-aton.c: Likewise.
9420         * stdlib/cxa_atexit.c: Likewise.
9421         * stdlib/cxa_finalize.c: Likewise.
9422         * stdlib/gen-fpioconst.c: Likewise.
9423         * stdlib/strtol_l.c: Likewise.
9424         * string/tst-endian.c: Likewise.
9425         * sunrpc/auth_des.c: Likewise.
9426         * sunrpc/clnt_udp.c: Likewise.
9427         * sunrpc/rtime.c: Likewise.
9428         * sunrpc/svcauth_des.c: Likewise.
9429         * sunrpc/xdr.c: Likewise.
9430         * sunrpc/xdr_intXX_t.c: Likewise.
9431         * sunrpc/xdr_rec.c: Likewise.
9432         * sysdeps/generic/ldconfig.h: Likewise.
9433         * sysdeps/generic/ldsodefs.h: Likewise.
9434         * sysdeps/generic/memusage.h: Likewise.
9435         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9436         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
9437         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
9438         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9439         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9440         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9441         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9442         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9443         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9444         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
9445         * sysdeps/posix/getaddrinfo.c: Likewise.
9446         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9447         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9448         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9449         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9450         * sysdeps/powerpc/test-gettimebase.c: Likewise.
9451         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
9452         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
9453         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
9454         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
9455         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
9456         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9457         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9458         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
9459         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
9460         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
9461         * sysdeps/x86_64/dl-tls.h: Likewise.
9462         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
9463         * time/alt_digit.c: Likewise.
9464         * time/era.c: Likewise.
9465         * wcsmbs/tst-c16c32-1.c: Likewise.
9466
9467 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9468
9469         * math/libm-test.inc (struct test_sincos_data): New type.
9470         (RUN_TEST_LOOP_sincos): New macro.
9471         (sincos_test_data): New variable.
9472         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
9473
9474 2013-05-16  Richard Henderson  <rth@redhat.com>
9475
9476         * math/atest-exp2.c (LIMB64): New macro.
9477         (CONSTSZ): New macro.
9478         (mp_exp1, mp_exp_m1, mp_log2): New variables.
9479         (hexdig): Move ...
9480         (print_mpn_fp): ... to function scope.
9481         (read_mpn_hex): Remove.
9482         (get_log2): Remove.
9483         (exp2_mpn): Use mp_log2.
9484         (main): Use mp_exp1.
9485
9486 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9487
9488         * math/libm-test.inc: Remove comment about not testing "inexact"
9489         exceptions.
9490         (INEXACT_EXCEPTION): New macro.
9491         (NO_INEXACT_EXCEPTION): Likewise.
9492         (INVALID_EXCEPTION_OK): Update value.
9493         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9494         (OVERFLOW_EXCEPTION_OK): Likewise.
9495         (UNDERFLOW_EXCEPTION_OK): Likewise.
9496         (IGNORE_ZERO_INF_SIGN): Likewise.
9497         (ERRNO_UNCHANGED): Likewise.
9498         (ERRNO_EDOM): Likewise.
9499         (ERRNO_ERANGE): Likewise.
9500         (test_exceptions): Handle testing "inexact" exceptions.
9501         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
9502         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
9503         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
9504         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
9505         INEXACT_EXCEPTION.
9506         (rint_towardzero_test_data): Likewise.
9507         (rint_downward_test_data): Likewise.
9508         (rint_upward_test_data): Likewise.
9509
9510         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
9511         with OVERFLOW_EXCEPTION.
9512         (exp10_test_data): Likewise.
9513         (exp2_test_data): Likewise.
9514         (expm1_test_data): Likewise.
9515         (lgamma_test_data): Likewise.
9516         (pow_test_data): Likewise.
9517         (tgamma_test_data): Likewise.
9518         (yn_test_data): Remove duplicate test of overflow.
9519
9520         * math/libm-test.inc (struct test_cc_c_data): New type.
9521         (RUN_TEST_LOOP_cc_c): New macro.
9522         (cpow_test_data): New variable.
9523         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
9524
9525         * math/libm-test.inc (struct test_f_L_data): New type.
9526         (RUN_TEST_LOOP_f_L): New macro.
9527         (llrint_test_data): New variable.
9528         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
9529         (llrint_tonearest_test_data): New variable.
9530         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
9531         (llrint_towardzero_test_data): New variable.
9532         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
9533         (llrint_downward_test_data): New variable.
9534         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
9535         (llrint_upward_test_data): New variable.
9536         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
9537         (llround_test_data): New variable.
9538         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
9539
9540 2013-05-13  Peter Collingbourne  <pcc@google.com>
9541
9542         * math/atest-exp2.c (get_log2): Remove const attribute.
9543
9544 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9545
9546         * math/libm-test.inc (struct test_f_l_data): New type.
9547         (RUN_TEST_LOOP_f_l): New macro.
9548         (lrint_test_data): New variable.
9549         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
9550         (lrint_tonearest_test_data): New variable.
9551         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
9552         (lrint_towardzero_test_data): New variable.
9553         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
9554         (lrint_downward_test_data): New variable.
9555         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
9556         (lrint_upward_test_data): New variable.
9557         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
9558         (lround_test_data): New variable.
9559         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
9560
9561 2013-05-15  Peter Collingbourne  <pcc@google.com>
9562
9563         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
9564         (EXTRACT_WORDS64) Use where appropriate.
9565         (INSERT_WORDS64) Likewise.
9566
9567         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
9568         constraints with x constraints.
9569         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
9570
9571         * malloc/obstack.c (_obstack_compat): Add initializer.
9572
9573 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
9574
9575         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
9576         si_trapno and add si_addr_lsb to _sifields.sigfault.
9577         (si_trapno): Remove macro.
9578         (si_addr_lsb): Define new macro.
9579         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
9580
9581 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9582
9583         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
9584         instead of TEST_f_l.
9585         (llrint_test_tonearest): Likewise.
9586         (llrint_test_towardzero): Likewise.
9587         (llrint_test_downward): Likewise.
9588         (llrint_test_upward): Likewise.
9589         (llround_test): Likewise.
9590
9591         * math/libm-test.inc (struct test_f_i_data): Add comment.
9592         (RUN_TEST_LOOP_f_b): New macro.
9593         (RUN_TEST_LOOP_f_b_tg): Likewise.
9594         (finite_test_data): New variable.
9595         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
9596         (isfinite_test_data): New variable.
9597         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9598         (isinf_test_data): New variable.
9599         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9600         (isnan_test_data): New variable.
9601         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9602         (isnormal_test_data): New variable.
9603         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9604         (issignaling_test_data): New variable.
9605         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9606         (signbit_test_data): New variable.
9607         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9608
9609         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
9610         with INVALID_EXCEPTION.
9611         (acosh_test_data): Likewise.
9612         (asin_test_data): Likewise.
9613         (atanh_test_data): Likewise.
9614         (fmod_test_data): Likewise.
9615         (log_test_data): Likewise.
9616         (log10_test_data): Likewise.
9617         (log2_test_data): Likewise.
9618         (pow_test_data): Likewise.
9619         (sqrt_test_data): Likewise.
9620         (y0_test_data): Likewise.
9621         (y1_test_data): Likewise.
9622         (yn_test_data): Likewise.
9623
9624         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
9625         function contents.
9626
9627         * math/libm-test.inc (struct test_ff_i_data): New type.
9628         (RUN_TEST_LOOP_ff_i_tg): New macro.
9629         (isgreater_test_data): New variable.
9630         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9631         (isgreaterequal_test_data): New variable.
9632         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9633         (isless_test_data): New variable.
9634         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9635         (islessequal_test_data): New variable.
9636         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9637         (islessgreater_test_data): New variable.
9638         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9639         (isunordered_test_data): New variable.
9640         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9641
9642 2013-05-14  David S. Miller  <davem@davemloft.net>
9643
9644         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9645
9646 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
9647
9648         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
9649
9650         * math/libm-test.inc (struct test_fF_f1_data): Change type of
9651         extra_test to int.
9652         (struct test_f_i_data): Change type of max_ulp to int.
9653
9654         * math/libm-test.inc (test_ffI_f1_data): New type.
9655         (RUN_TEST_LOOP_ffI_f1): New macro.
9656         (remquo_test_data): New variable.
9657         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
9658
9659         * setjmp/tst-setjmp-fp.c: New file.
9660         * setjmp/Makefile (tests): Add tst-setjmp-fp.
9661         (link-libm): New variable.
9662         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
9663
9664         * math/libm-test.inc (struct test_f_i_data): New type.
9665         (RUN_TEST_LOOP_f_i): New macro.
9666         (RUN_TEST_LOOP_f_i_tg): Likewise.
9667         (fpclassify_test_data): New variable.
9668         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
9669         (ilogb_test_data): New variable.
9670         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
9671
9672         * math/libm-test.inc (scalbln_test): Correct function name in END
9673         call.
9674
9675         * math/libm-test.inc (struct test_f_f1_data): Add comment.
9676         (RUN_TEST_LOOP_fI_f1): New macro.
9677         (frexp_test_data): New variable.
9678         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
9679
9680         * math/libm-test.inc (struct test_fF_f1_data): New type.
9681         (RUN_TEST_LOOP_fF_f1): New macro.
9682         (modf_test_data): New variable.
9683         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
9684
9685         * math/libm-test.inc (struct test_f_f1_data): New type.
9686         (RUN_TEST_LOOP_f_f1): New macro.
9687         (gamma_test_data): New variable.
9688         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9689         (lgamma_test_data): New variable.
9690         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9691
9692 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
9693
9694         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
9695         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
9696         (main): Comment "tls" pseudo-hwcap.
9697
9698 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
9699
9700         * math/libm-test.inc (struct test_fl_f_data): New type.
9701         (RUN_TEST_LOOP_fl_f): New variable.
9702         (scalbln_test_data): New variable.
9703         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
9704
9705         * math/libm-test.inc (struct test_fi_f_data): New type.
9706         (RUN_TEST_LOOP_fi_f): New macro.
9707         (ldexp_test_data): New variable.
9708         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
9709         (scalbn_test_data): New variable.
9710         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
9711
9712         * math/libm-test.inc (struct test_c_f_data): New type.
9713         (RUN_TEST_LOOP_c_f): New macro.
9714         (cabs_test_data): New variable.
9715         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
9716         (carg_test_data): New variable.
9717         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
9718         (cimag_test_data): New variable.
9719         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
9720         (creal_test_data): New variable.
9721         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
9722
9723         * math/libm-test.inc (struct test_if_f_data): New type.
9724         (RUN_TEST_LOOP_if_f): New macro.
9725         (jn_test_data): New variable.
9726         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
9727         (yn_test_data): New variable.
9728         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
9729
9730         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
9731
9732 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9733
9734         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
9735         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
9736
9737 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9738
9739         * benchtests/Makefile (CPPFLAGS-nonlib): Add
9740         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
9741         (bench-deps): Add bench-timing.h.
9742         * benchtests-bench-skeleton.c: Include bench-timing.h.
9743         (main): Use TIMING_* macros instead of clock_gettime.
9744         * benchtests/bench-timing.h: New file.
9745
9746         [BZ #14582]
9747         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
9748         Renamed from _LIB_VERSION.
9749         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
9750
9751 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
9752
9753         * math/libm-test.inc (struct test_fff_f_data): New type.
9754         (RUN_TEST_LOOP_fff_f): New macro.
9755         (fma_test_data): New variable.
9756         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
9757         (fma_towardzero_test_data): New variable.
9758         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
9759         (fma_downward_test_data): New variable.
9760         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
9761         (fma_upward_test_data): New variable.
9762         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
9763
9764         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
9765         (struct test_c_c_data): New type.
9766         (RUN_TEST_LOOP_c_c): New macro.
9767         (cacos_test_data): New variable.
9768         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
9769         (cacosh_test_data): New variable.
9770         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
9771         (casin_test_data): New variable.
9772         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
9773         (casinh_test_data): New variable.
9774         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
9775         (catan_test_data): New variable.
9776         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
9777         (catanh_test_data): New variable.
9778         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
9779         (ccos_test_data): New variable.
9780         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
9781         (ccosh_test_data): New variable.
9782         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
9783         (cexp_test_data): New variable.
9784         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
9785         (clog_test_data): New variable.
9786         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
9787         (clog10_test_data): New variable.
9788         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
9789         (conj_test_data): New variable.
9790         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
9791         (cproj_test_data): New variable.
9792         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
9793         (csin_test_data): New variable.
9794         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
9795         (csinh_test_data): New variable.
9796         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
9797         (csqrt_test_data): New variable.
9798         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
9799         (ctan_test_data): New variable.
9800         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
9801         (ctan_tonearest_test_data): New variable.
9802         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9803         (ctan_towardzero_test_data): New variable.
9804         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9805         (ctan_downward_test_data): New variable.
9806         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9807         (ctan_upward_test_data): New variable.
9808         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9809         (ctanh_test_data): New variable.
9810         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
9811         (ctanh_tonearest_test_data): New variable.
9812         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9813         (ctanh_towardzero_test_data): New variable.
9814         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9815         (ctanh_downward_test_data): New variable.
9816         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9817         (ctanh_upward_test_data): New variable.
9818         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9819         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
9820         of BUILD_COMPLEX.
9821
9822         * math/libm-test.inc (struct test_ff_f_data): New type.
9823         (struct test_ff_f_data_nexttoward): Likewise.
9824         (RUN_TEST_LOOP_2_f): New macro.
9825         (RUN_TEST_LOOP_ff_f): Likewise.
9826         (atan2_test_data): New variable.
9827         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
9828         (copysign_test_data): New variable.
9829         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
9830         (fdim_test_data): New variable.
9831         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
9832         (fmax_test_data): New variable.
9833         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
9834         (fmin_test_data): New variable.
9835         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
9836         (fmod_test_data): New variable.
9837         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
9838         (hypot_test_data): New variable.
9839         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
9840         (nextafter_test_data): New variable.
9841         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
9842         (nexttoward_test_data): New variable.
9843         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
9844         (pow_test_data): New variable.
9845         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
9846         (pow_tonearest_test_data): New variable.
9847         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
9848         (pow_towardzero_test_data): New variable.
9849         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
9850         (pow_downward_test_data): New variable.
9851         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
9852         (pow_upward_test_data): New variable.
9853         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
9854         (remainder_test_data): New variable.
9855         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
9856         (scalb_test_data): New variable.
9857         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
9858         * sysdeps/i386/fpu/libm-test-ulps: Update.
9859
9860 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
9861
9862         * math/libm-test.inc (fma_test): Use max_value instead of local
9863         variable fltmax.
9864         (nextafter_test): Likewise.
9865
9866         * math/libm-test.inc (acos_towardzero_test_data): New variable.
9867         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9868         (acos_downward_test_data): New variable.
9869         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9870         (acos_upward_test_data): New variable.
9871         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9872         (acosh_test_data): New variable.
9873         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
9874         (asin_test_data): New variable.
9875         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
9876         (asin_tonearest_test_data): New variable.
9877         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9878         (asin_towardzero_test_data): New variable.
9879         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9880         (asin_downward_test_data): New variable.
9881         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9882         (asin_upward_test_data): New variable.
9883         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9884         (asinh_test_data): New variable.
9885         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
9886         (atan_test_data): New variable.
9887         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
9888         (atanh_test_data): New variable.
9889         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
9890         (cbrt_test_data): New variable.
9891         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
9892         (ceil_test_data): New variable.
9893         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
9894         (cos_test_data): New variable.
9895         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
9896         (cos_tonearest_test_data): New variable.
9897         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9898         (cos_towardzero_test_data): New variable.
9899         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9900         (cos_downward_test_data): New variable.
9901         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9902         (cos_upward_test_data): New variable.
9903         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9904         (cosh_test_data): New variable.
9905         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
9906         (cosh_tonearest_test_data): New variable.
9907         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9908         (cosh_towardzero_test_data): New variable.
9909         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9910         (cosh_downward_test_data): New variable.
9911         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9912         (cosh_upward_test_data): New variable.
9913         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9914         (erf_test_data): New variable.
9915         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
9916         (erfc_test_data): New variable.
9917         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
9918         (exp_test_data): New variable.
9919         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
9920         (exp_tonearest_test_data): New variable.
9921         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9922         (exp_towardzero_test_data): New variable.
9923         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9924         (exp_downward_test_data): New variable.
9925         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9926         (exp_upward_test_data): New variable.
9927         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9928         (exp10_test_data): New variable.
9929         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
9930         (exp2_test_data): New variable.
9931         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
9932         (expm1_test_data): New variable.
9933         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
9934         (fabs_test_data): New variable.
9935         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
9936         (floor_test_data): New variable.
9937         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
9938         (j0_test_data): New variable.
9939         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
9940         (j1_test_data): New variable.
9941         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
9942         (log_test_data): New variable.
9943         (log_test): Run tests with RUN_TEST_LOOP_f_f.
9944         (log10_test_data): New variable.
9945         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
9946         (log1p_test_data): New variable.
9947         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
9948         (log2_test_data): New variable.
9949         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
9950         (logb_test_data): New variable.
9951         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
9952         (logb_downward_test_data): New variable.
9953         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9954         (nearbyint_test_data): New variable.
9955         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
9956         (rint_test_data): New variable.
9957         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
9958         (rint_tonearest_test_data): New variable.
9959         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9960         (rint_towardzero_test_data): New variable.
9961         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9962         (rint_downward_test_data): New variable.
9963         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9964         (rint_upward_test_data): New variable.
9965         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9966         (round_test_data): New variable.
9967         (round_test): Run tests with RUN_TEST_LOOP_f_f.
9968         (sin_test_data): New variable.
9969         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
9970         (sin_tonearest_test_data): New variable.
9971         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9972         (sin_towardzero_test_data): New variable.
9973         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9974         (sin_downward_test_data): New variable.
9975         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9976         (sin_upward_test_data): New variable.
9977         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9978         (sinh_test_data): New variable.
9979         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
9980         (sinh_tonearest_test_data): New variable.
9981         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9982         (sinh_towardzero_test_data): New variable.
9983         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9984         (sinh_downward_test_data): New variable.
9985         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9986         (sinh_upward_test_data): New variable.
9987         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9988         (sqrt_test_data): New variable.
9989         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
9990         (tan_test_data): New variable.
9991         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
9992         (tan_tonearest_test_data): New variable.
9993         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9994         (tan_towardzero_test_data): New variable.
9995         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9996         (tan_downward_test_data): New variable.
9997         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9998         (tan_upward_test_data): New variable.
9999         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10000         (tanh_test_data): New variable.
10001         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
10002         (tgamma_test_data): New variable.
10003         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
10004         (trunc_test_data): New variable.
10005         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
10006         (y0_test_data): New variable.
10007         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
10008         (y1_test_data): New variable.
10009         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
10010         (significand_test_data): New variable.
10011         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
10012
10013 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
10014
10015         [BZ #12387]
10016         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
10017
10018 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10019
10020         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
10021
10022 2013-05-10  Andreas Jaeger  <aj@suse.de>
10023
10024         [BZ #15448]
10025         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
10026         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
10027
10028 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10029
10030         * math/gen-libm-test.pl (adjust_arg): New function.
10031         (special_functions): Handle generating output in both functions
10032         and arrays.
10033         (parse_args): Likewise.
10034         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
10035         $in_func argument to parse_args.
10036         * math/libm-test.inc (struct test_f_f_data): New type.
10037         (IF_ROUND_INIT_): New macro.
10038         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
10039         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
10040         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10041         (IF_ROUND_INIT_FE_UPWARD): Likewise.
10042         (ROUND_RESTORE_): Likewise.
10043         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
10044         (ROUND_RESTORE_FE_TONEAREST): Likewise.
10045         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
10046         (ROUND_RESTORE_FE_UPWARD): Likewise.
10047         (RUN_TEST_LOOP_f_f): New macro.
10048         (acos_test_data): New variable.
10049         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
10050         (acos_tonearest_test_data): New variable.
10051         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10052
10053 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10054
10055         * benchtests/bench-skeleton.c (startup): Fix coding style.
10056
10057 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10058
10059         [BZ #6809]
10060         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
10061         negative infinity argument.
10062         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
10063         negative infinity argument.
10064         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
10065         negative infinity argument.
10066         * math/libm-test.inc (tgamma_test): Expect errno to be set for
10067         domain errors.
10068
10069 2013-05-10  Florian Weimer  <fweimer@redhat.com>
10070
10071         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
10072         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
10073         * iconv/iconv_prog.c (main): Likewise.
10074         * locale/programs/charmap-dir.c (charmap_readdir)
10075         (fopen_uncompressed): Likewise.
10076         * locale/programs/locfile.c (siblings_uncached)
10077         (write_locale_data): Use lstat64 instead of lstat.
10078         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
10079         stat.
10080
10081 2013-05-10  Andreas Jaeger  <aj@suse.de>
10082
10083         [BZ #15395]
10084         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
10085         localization.
10086         Include <locale.h>.
10087
10088 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
10089
10090         * elf/dl-close.c (_dl_close_worker): Add comments.
10091
10092 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
10093
10094         [BZ #15359]
10095         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
10096         high part of pi/2.
10097         (__ieee754_rem_pio2l): Update comments.
10098
10099         [BZ #15429]
10100         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
10101         high part of pi/2.
10102         (__ieee754_rem_pio2l): Update comments.
10103
10104         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
10105         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
10106
10107         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
10108         M_PI_4l.
10109
10110         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
10111         (M_PI_34_LOG10El): Likewise.
10112         (M_PI2_LOG10El): Likewise.
10113         (M_PI4_LOG10El): Likewise.
10114         (M_PI_LOG10El): Likewise.
10115
10116 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10117
10118         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10119
10120 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
10121
10122         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
10123         (MINUS_ZERO_INIT): Likewise.
10124         (PLUS_INFTY_INIT): Likewise.
10125         (MINUS_INFTY_INIT): Likewise.
10126         (QNAN_VALUE_INIT): Likewise.
10127         (MAX_VALUE_INIT): Likewise.
10128         (MIN_VALUE_INIT): Likewise.
10129         (MIN_SUBNORM_VALUE_INIT): Likewise.
10130         (plus_zero): Initialize with PLUS_ZERO_INIT.
10131         (minus_zero): Initialize with MINUS_ZERO_INIT.
10132         (plus_infty): Initialize with PLUS_INFTY_INIT.
10133         (minus_infty): Initialize with MINUS_INFTY_INIT.
10134         (qnan_value): Initialize with QNAN_VALUE_INIT.
10135         (max_value): Initialize with MAX_VALUE_INIT.
10136         (min_value): Initialize with MIN_VALUE_INIT.
10137         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
10138
10139         * math/libm-test.inc (RUN_TEST_if_f): New macro.
10140         (jn_test): Use TEST_if_f instead of TEST_ff_f.
10141         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
10142         (yn_test): Use TEST_if_f instead of TEST_ff_f.
10143
10144         * math/libm-test.inc (RUN_TEST_f_f): New macro.
10145         (RUN_TEST_2_f): Likewise.
10146         (RUN_TEST_ff_f): Likewise.
10147         (RUN_TEST_fi_f): Likewise.
10148         (RUN_TEST_fl_f): Likewise.
10149         (RUN_TEST_fff_f): Likewise.
10150         (RUN_TEST_c_f): Likewise.
10151         (RUN_TEST_f_f1): Likewise.
10152         (RUN_TEST_fF_f1): Likewise.
10153         (RUN_TEST_fI_f1): Likewise.
10154         (RUN_TEST_ffI_f1): Likewise.
10155         (RUN_TEST_c_c): Likewise.
10156         (RUN_TEST_cc_c): Likewise.
10157         (RUN_TEST_f_i): Likewise.
10158         (RUN_TEST_f_i_tg): Likewise.
10159         (RUN_TEST_ff_i_tg): Likewise.
10160         (RUN_TEST_f_b): Likewise.
10161         (RUN_TEST_f_b_tg): Likewise.
10162         (RUN_TEST_f_l): Likewise.
10163         (RUN_TEST_f_L): Likewise.
10164         (RUN_TEST_sincos): Likewise.
10165         * math/gen-libm-test.pl (new_test): Take new argument to indicate
10166         whether to show exceptions.  Do not include ");\n" in return
10167         value.
10168         (special_functions): Output call to RUN_TEST_sincos instead of
10169         check_float calls.  Update calls to new_test.
10170         (parse_args): Output call to single RUN_TEST_* macro instead of
10171         check_* calls and other assignments.  Update calls to new_test.
10172
10173         [BZ #2546]
10174         [BZ #2560]
10175         [BZ #5159]
10176         [BZ #15426]
10177         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
10178         input to result for tgamma overflow.
10179         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
10180         (gamma_coeff): New variable.
10181         (NCOEFF): New macro.
10182         (gamma_positive): New function.
10183         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
10184         underflow here.  Use gamma_positive instead of exp (lgamma) for
10185         other arguments.
10186         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
10187         (gamma_coeff): New variable.
10188         (NCOEFF): New macro.
10189         (gammaf_positive): New function.
10190         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
10191         underflow here.  Use gamma_positive instead of exp (lgamma) for
10192         other arguments.
10193         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
10194         (gamma_coeff): New variable.
10195         (NCOEFF): New macro.
10196         (gammal_positive): New function.
10197         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
10198         underflow here.  Use gamma_positive instead of exp (lgamma) for
10199         other arguments.
10200         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
10201         (gamma_coeff): New variable.
10202         (NCOEFF): New macro.
10203         (gammal_positive): New function.
10204         (__ieee754_gammal_r): Handle positive infinity, overflow and
10205         underflow here.  Handle NaN the same as positive infinity.  Remove
10206         check x < 0xffffffff for negative integers.  Use gamma_positive
10207         instead of exp (lgamma) for other arguments.
10208         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
10209         (gamma_coeff): New variable.
10210         (NCOEFF): New macro.
10211         (gammal_positive): New function.
10212         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
10213         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
10214         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10215         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
10216         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
10217         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10218         * sysdeps/generic/math_private.h (__gamma_productf): New
10219         prototype.
10220         (__gamma_product): Likewise.
10221         (__gamma_productl): Likewise.
10222         * math/Makefile (libm-calls): Add gamma_product.
10223         * math/libm-test.inc (tgamma_test): Add more tests.
10224         * sysdeps/i386/fpu/libm-test-ulps: Update.
10225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10226
10227 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
10228
10229         * benchtests/bench-skeleton.c (main): Preheat CPU.
10230
10231 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
10232
10233         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
10234
10235 2013-05-07  Roland McGrath  <roland@hack.frob.com>
10236
10237         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
10238         and _dl_skip_args_internal.
10239
10240 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
10241
10242         * manual/message.texi (Message Translation): Talk about users.
10243         Message to key mapping impacts design.
10244
10245 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10246
10247         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
10248
10249         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
10250
10251         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
10252         * sysdeps/wordsize-64/glob64.c: ... here.
10253
10254         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
10255         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
10256         New macros.
10257
10258         * debug/getlogin_r_chk.c: Moved to ...
10259         * login/getlogin_r_chk.c: ... here.
10260         * debug/Makefile (routines): Move getlogin_r_chk to ...
10261         * login/Makefile (routines): ... here.
10262         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
10263         * login/Versions (libc: GLIBC_2.4): ... here.
10264
10265         * io/poll.c (__poll): Renamed from poll.
10266         Add libc_hidden_def.
10267         (poll): Define as weak alias.
10268
10269         * debug/ptsname_r_chk.c: Moved to ...
10270         * login/ptsname_r_chk.c: ... here.
10271         * debug/Makefile (routines): Move ptsname_r_chk to ...
10272         * login/Makefile (routines): ... here.
10273         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
10274         * login/Versions (libc: GLIBC_2.4): ... here.
10275
10276         * posix/getlogin.c: Moved to ...
10277         * login/getlogin.c: ... here.
10278         * posix/getlogin_r.c: Moved to ...
10279         * login/getlogin_r.c: ... here.
10280         * posix/getlogin_r.c: Moved to ...
10281         * login/getlogin_r.c: ... here.
10282         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
10283         * login/Makefile (routines): ... here.
10284         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
10285         * login/Versions (libc: GLIBC_2.0): ... here.
10286
10287         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
10288         (setrlimit): Define as weak alias.
10289
10290         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
10291         Call __ names for open, ftruncate, and close.
10292         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
10293         (truncate): Define as weak alias.
10294
10295 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
10296
10297         * math/gen-libm-test.pl (parse_args): Initialize x before each
10298         test of frexp, modf and remquo.
10299
10300         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
10301         test signgam value.
10302
10303 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10304
10305         [BZ #15418]
10306         [BZ #15419]
10307         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
10308         internal tests.
10309         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10310
10311 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10312
10313         * elf/dl-writev.h: New file.
10314         * elf/dl-misc.c: Include it.
10315         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
10316         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
10317
10318 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
10319
10320         * math/libm-test.inc (noXFails): Remove variable.
10321         (noXPasses): Likewise.
10322         (BUILD_COMPLEX_INT): Remove macro.
10323         (print_screen): Remove xfail argument.
10324         (print_screen_max_error): Likewise.
10325         (update_stats): Likewise.
10326         (print_max_error): Likewise.  Update calls to other affected
10327         functions.
10328         (print_complex_max_error): Likewise.
10329         (test_single_exception): Update calls to print_screen.
10330         (test_single_errno): Likewise.
10331         (check_float_internal): Remove xfail argument.  Update calls to
10332         other affected functions.
10333         (check_float): Likewise.
10334         (check_complex): Likewise.
10335         (check_int): Likewise.
10336         (check_long): Likewise.
10337         (check_bool): Likewise.
10338         (check_longlong): Likewise.
10339         (main): Don't print noXFails and noXPasses.
10340         * math/gen-libm-test.pl (top level): Don't mention expected
10341         failure handling in comment.
10342         (new_test): Don't handle expected failures.
10343         (parse_args): Don't mention expected failure handling in comment.
10344         (generate_testfile): Don't handle expected failures.
10345         (parse_ulps): Likewise.
10346         (print_ulps_file): Likewise.
10347         (get_failure): Remove function.
10348         (output_test): Don't handle expected failures.
10349         * make/README.libm-test: Don't mention expected failure handling.
10350
10351         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
10352         (minus_zero): Likewise.
10353         (plus_infty): Likewise.
10354         (minus_infty): Likewise.
10355         (qnan_value): Likewise.
10356         (max_value): Likewise.
10357         (min_value): Likewise.
10358         (min_subnorm_value): Likewise.
10359         (initialize): Do not initialize those variables dynamically.
10360
10361 2013-05-03  Roland McGrath  <roland@hack.frob.com>
10362
10363         * io/open.c (__open_2): Moved to ...
10364         * io/open_2.c: ... this new file.
10365         * io/open64.c (__open64_2): Moved to ...
10366         * io/open64_2.c: ... this new file.
10367         * io/openat.c (__openat_2): Moved to ...
10368         * io/openat_2.c: ... this new file.
10369         * io/openat64.c (__openat64_2): Moved to ...
10370         * io/openat64_2.c: ... this new file.
10371         * io/Makefile (routines): Add them.
10372         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
10373         * sysdeps/unix/sysv/linux/open_2.c: File removed.
10374         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
10375         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
10376         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
10377         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
10378         (__openat64): Add hidden_ver.
10379         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
10380         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
10381
10382         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10383         Separately conditionalize setting of GLRO(dl_sysinfo) so
10384         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
10385         as well, but the actual setting is only under [NEED_DL_SYSINFO].
10386
10387 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10388
10389         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
10390         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
10391         definition.
10392         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
10393         * sysdeps/unix/sysv/linux/powerpc/init-first.c
10394         (_libc_vdso_platform_setup): Add __vdso_time initialization.
10395         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
10396         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
10397
10398 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
10399
10400         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
10401         test signgam value.
10402
10403         * math/libm-test.inc (hypot_test): Do not use
10404         IGNORE_ZERO_INF_SIGN.
10405
10406 2013-05-03  Andreas Jaeger  <aj@suse.de>
10407
10408         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
10409         Linux 3.9.
10410         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
10411         (PF_MAX): Adjust for VSOCK change.
10412
10413 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10414
10415         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10416
10417 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
10418
10419         [BZ #15264]
10420         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
10421         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
10422         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
10423
10424 2013-05-02  David S. Miller  <davem@davemloft.net>
10425
10426         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10427
10428 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
10429
10430         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
10431
10432 2013-05-01  Roland McGrath  <roland@hack.frob.com>
10433
10434         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
10435
10436 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
10437
10438         [BZ #14952]
10439         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
10440         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10441         Use __attribute__ ((__gnu_inline__)).
10442         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10443         Don't use __attribute__ ((__gnu_inline__)).
10444
10445 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
10446
10447         [BZ #15423]
10448         * math/s_catan.c (__catan): Handle small real or imaginary part of
10449         input specially to avoid spurious underflow.
10450         * math/s_catanf.c (__catanf): Likewise.
10451         * math/s_catanh.c (__catanh): Likewise.
10452         * math/s_catanhf.c (__catanhf): Likewise.
10453         * math/s_catanhl.c (__catanhl): Likewise.
10454         * math/s_catanl.c (__catanl): Likewise.
10455         * math/libm-test.inc (catan_test): Add more tests.
10456         (catanh_test): Likewise.
10457         * sysdeps/i386/fpu/libm-test-ulps: Update.
10458         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10459
10460 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10461
10462         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10463
10464 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
10465
10466         [BZ #15416]
10467         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
10468         accurately for denominator in atan2.
10469         * math/s_catanf.c (__catanf): Likewise.
10470         * math/s_catanh.c (__catanh): Likewise.
10471         * math/s_catanhf.c (__catanhf): Likewise.
10472         * math/s_catanhl.c (__catanhl): Likewise.
10473         * math/s_catanl.c (__catanl): Likewise.
10474         * math/libm-test.inc (catan_test): Add more tests.
10475         (catanh_test): Likewise.
10476         * sysdeps/i386/fpu/libm-test-ulps: Update.
10477         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10478
10479 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10480
10481         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
10482
10483         * benchtests/Makefile (bench): Remove slow benchmarks.
10484         * benchtests/atan-inputs: Add slow benchmark inputs.
10485         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
10486         (BENCH_FUNC): Accept variant offset.
10487         (VARIANT): Define.
10488         * benchtests/bench-skeleton.c (main): Run benchmark for each
10489         variant.
10490         * benchtests/cos-inputs: Add slow benchmark inputs.
10491         * benchtests/exp-inputs: Likewise.
10492         * benchtests/pow-inputs: Likewise.
10493         * benchtests/sin-inputs: Likewise.
10494         * benchtests/slowatan-inputs: Remove.
10495         * benchtests/slowatan.c: Remove.
10496         * benchtests/slowcos-inputs: Remove.
10497         * benchtests/slowcos.c: Remove.
10498         * benchtests/slowexp-inputs: Remove.
10499         * benchtests/slowexp.c: Remove.
10500         * benchtests/slowpow-inputs: Remove.
10501         * benchtests/slowpow.c: Remove.
10502         * benchtests/slowsin-inputs: Remove.
10503         * benchtests/slowsin.c: Remove.
10504         * benchtests/slowtan-inputs: Remove.
10505         * benchtests/slowtan.c: Remove.
10506         * benchtests/tan-inputs: Add slow benchmark inputs.
10507         * scripts/bench.pl: Parse comments and directives.
10508
10509         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
10510         in CPPFLAGS.
10511         ($(objpfx)bench-%.c): Remove *-ITER.
10512         * benchtests/bench-modf.c: Remove definition of ITER.
10513         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
10514         (main): Loop for DURATION seconds instead of fixed number of
10515         iterations.
10516         * scripts/bench.pl: Don't expect iterations in parameters.
10517
10518 2013-04-29  Roland McGrath  <roland@hack.frob.com>
10519
10520         * io/fchdir.c (__fchdir): Renamed from fchdir.
10521         (fchdir): Define as weak alias.
10522
10523 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10524
10525         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
10526         (ERRNO_EDOM): Likewise.
10527         (ERRNO_ERANGE): Likewise.
10528         (noErrnoTests): New variable.
10529         (init_max_error): Set errno to 0.
10530         (test_single_errno): New function.
10531         (test_errno): Likewise.
10532         (check_float_internal): Call test_errno.  Set errno to 0.
10533         (check_complex): Refer to errno tests in comment.
10534         (check_int): Call test_errno.  Set errno to 0.
10535         (check_long): Likewise.
10536         (check_bool): Likewise.
10537         (check_longlong): Likewise.
10538         (cos_test): Use ERRNO_* flags for errno tests instead of
10539         check_int.
10540         (expm1_test): Likewise.
10541         (fmod_test): Likewise.
10542         (ilogb_test): Likewise.
10543         (lgamma_test): Likewise.
10544         (pow_test): Likewise.
10545         (remainder_test): Likewise.
10546         (sin_test): Likewise.
10547         (tan_test): Likewise.
10548         (yn_test): Likewise.
10549         (initialize): Set errno to 0.
10550         (main): Print number of errno tests.
10551         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
10552
10553 2013-04-29  Andreas Jaeger  <aj@suse.de>
10554
10555         [BZ #15084]
10556         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
10557         and RES_USEVC.
10558
10559         [BZ #15085]
10560         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
10561         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
10562         unimplemented.
10563
10564         [BZ #15380]
10565         * stdlib/random.c (__initstate): Return NULL if
10566         __initstate fails.
10567
10568         [BZ #15086]
10569         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
10570         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
10571         RES_SNGLKUPREOP.
10572
10573 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10574
10575         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10576
10577 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10578
10579         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
10580         of individual tests.
10581         (casin_test): Likewise.
10582         (casinh_test): Likewise.
10583
10584 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
10585
10586         [BZ #15409]
10587         * math/s_catan.c (__catan): Handle arguments with large real or
10588         imaginary part separately without squaring.
10589         * math/s_catanf.c (__catanf): Likewise.
10590         * math/s_catanh.c (__catanh): Likewise.
10591         * math/s_catanhf.c (__catanhf): Likewise.
10592         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10593         and redefine.
10594         (__catanhl): Handle arguments with large real or imaginary part
10595         separately without squaring.
10596         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10597         and redefine.
10598         (__catanl): Handle arguments with large real or imaginary part
10599         separately without squaring.
10600         * math/libm-test.inc (catan_test): Add more tests.
10601         (catanh_test): Likewise.
10602         * sysdeps/i386/fpu/libm-test-ulps: Update.
10603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10604
10605 2013-04-27  Andreas Jaeger  <aj@suse.de>
10606
10607         [BZ #15007]
10608         * stdlib/stdlib.h: Update guards for qecvt.
10609         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
10610         <stdlib.h>.
10611
10612 2013-04-27  Allan McRae  <allan@archlinux.org>
10613
10614         * sysdeps/i386/fpu/libm-test-ulps: Update.
10615
10616 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
10617
10618         [BZ #15406]
10619         * math/s_catan.c: Include <float.h>.
10620         (__catan): Ensure underflow exception occurs for underflowed
10621         result.
10622         * math/s_catanf.c: Include <float.h>.
10623         (__catanf): Ensure underflow exception occurs for underflowed
10624         result.
10625         * math/s_catanh.c: Include <float.h>.
10626         (__catanh): Ensure underflow exception occurs for underflowed
10627         result.
10628         * math/s_catanhf.c: Include <float.h>.
10629         (__catanhf): Ensure underflow exception occurs for underflowed
10630         result.
10631         * math/s_catanhl.c: Include <float.h>.
10632         (__catanhl): Ensure underflow exception occurs for underflowed
10633         result.
10634         * math/s_catanl.c: Include <float.h>.
10635         (__catanl): Ensure underflow exception occurs for underflowed
10636         result.
10637         * math/libm-test.inc (catan_test): Add more tests.
10638         (catanh_test): Likewise.
10639
10640         [BZ #15405]
10641         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
10642         underflowed result.
10643         * math/s_ccoshf.c (__ccoshf): Likewise.
10644         * math/s_ccoshl.c (__ccoshl): Likewise.
10645         * math/s_csin.c (__csin): Likewise.
10646         * math/s_csinf.c (__csinf): Likewise.
10647         * math/s_csinh.c (__csinh): Likewise.
10648         * math/s_csinhf.c (__csinhf): Likewise.
10649         * math/s_csinhl.c (__csinhl): Likewise.
10650         * math/s_csinl.c (__csinl): Likewise.
10651         * math/libm-test.inc (ccos_test): Add more tests.
10652         (ccosh_test): Likewise.
10653         (csin_test): Likewise.
10654         (csinh_test): Likewise.
10655
10656 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10657
10658         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
10659         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
10660         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
10661         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
10662         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
10663         powerpc/power5+/fpu folders.
10664         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
10665
10666
10667 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10668
10669         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10670
10671 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
10672
10673         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
10674         additions to variable.
10675         [$(config-machine) = x86_64] (modules-names): Likewise.
10676         ($(objpfx)tst-audit3): Remove dependency.
10677         ($(objpfx)tst-audit3.out): Likewise.
10678         ($(objpfx)tst-audit4): Likewise.
10679         ($(objpfx)tst-audit4.out): Likewise.
10680         ($(objpfx)tst-audit5): Likewise.
10681         ($(objpfx)tst-audit5.out): Likewise.
10682         ($(objpfx)tst-audit6): Likewise.
10683         ($(objpfx)tst-audit6.out): Likewise.
10684         ($(objpfx)tst-audit7): Likewise.
10685         ($(objpfx)tst-audit7.out): Likewise.
10686         (tst-audit3-ENV): Remove variable.
10687         (tst-audit4-ENV): Likewise.
10688         (tst-audit5-ENV): Likewise.
10689         (tst-audit6-ENV): Likewise.
10690         (tst-audit7-ENV): Likewise.
10691         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
10692         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
10693         addition to variable.
10694         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
10695         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
10696         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
10697         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
10698         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
10699         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
10700         tst-audit3, tst-audit4 and tst-audit5.
10701         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
10702         tst-audit6 and tst-audit7.
10703         [$(subdir) = elf] (modules-names): Add audit modules for those
10704         tests.
10705         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
10706         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
10707         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
10708         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
10709         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
10710         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
10711         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
10712         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
10713         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
10714         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
10715         [$(subdir) = elf] (tst-audit3-ENV): New variable.
10716         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
10717         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
10718         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
10719         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
10720         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
10721         Likewise.
10722         [$(subdir) = elf && $(config-cflags-avx) = yes]
10723         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
10724         [$(subdir) = elf && $(config-cflags-avx) = yes]
10725         (CFLAGS-tst-auditmod4a.c): Likewise.
10726         [$(subdir) = elf && $(config-cflags-avx) = yes]
10727         (CFLAGS-tst-auditmod4b.c): Likewise.
10728         [$(subdir) = elf && $(config-cflags-avx) = yes]
10729         (CFLAGS-tst-auditmod6b.c): Likewise.
10730         [$(subdir) = elf && $(config-cflags-avx) = yes]
10731         (CFLAGS-tst-auditmod6c.c): Likewise.
10732         [$(subdir) = elf && $(config-cflags-avx) = yes]
10733         (CFLAGS-tst-auditmod7b.c): Likewise.
10734         * elf/tst-audit3.c: Move to ...
10735         * sysdeps/x86_64/tst-audit3.c: ... here.
10736         * elf/tst-audit4.c: Move to ...
10737         * sysdeps/x86_64/tst-audit4.c: ... here.
10738         * elf/tst-audit5.c: Move to ...
10739         * sysdeps/x86_64/tst-audit5.c: ... here.
10740         * elf/tst-audit6.c: Move to ...
10741         * sysdeps/x86_64/tst-audit6.c: ... here.
10742         * elf/tst-audit7.c: Move to ...
10743         * sysdeps/x86_64/tst-audit7.c: ... here.
10744         * elf/tst-auditmod3a.c: Move to ...
10745         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
10746         * elf/tst-auditmod3b.c: Move to ...
10747         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
10748         * elf/tst-auditmod4a.c: Move to ...
10749         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
10750         * elf/tst-auditmod4b.c: Move to ...
10751         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
10752         * elf/tst-auditmod5a.c: Move to ...
10753         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
10754         * elf/tst-auditmod5b.c: Move to ...
10755         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
10756         * elf/tst-auditmod6a.c: Move to ...
10757         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
10758         * elf/tst-auditmod6b.c: Move to ...
10759         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
10760         * elf/tst-auditmod6c.c: Move to ...
10761         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
10762         * elf/tst-auditmod7a.c: Move to ...
10763         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
10764         * elf/tst-auditmod7b.c: Move to ...
10765         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
10766
10767 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
10768
10769         [BZ #15366]
10770         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
10771         define unconditionally.
10772         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
10773         define unconditionally.
10774         (INT8_C, INT16_C, etc.): Likewise.
10775
10776 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
10777
10778         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
10779         __ehdr_start with hidden visibility.
10780
10781         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
10782
10783 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
10784
10785         * math/libm-test.inc (cos_test): Use accurate hex constants.
10786         (sincost_test): Likewise.
10787
10788 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
10789
10790         * math/libm-test.inc (catan_test): Add more tests.
10791         (catanh_test): Likewise.
10792
10793         * math/s_catanf.c (__catanf): Use suffixed floating-point
10794         constants.
10795         * math/s_catanhf.c (__catanhf): Likewise.
10796         * math/s_catanhl.c (__catanhl): Likewise.
10797         * math/s_catanl.c (__catanl): Likewise.
10798
10799         [BZ #15394]
10800         * math/s_catan.c (__catan): Calculate imaginary part of result
10801         with log1p not log unless computing log of number close to 0.
10802         * math/s_catanf.c (__catanf): Likewise.
10803         * math/s_catanl.c (__catanl): Likewise.
10804         * math/s_catanh.c (__catanh): Calculate real part of result with
10805         log1p not log unless computing log of number close to 0.
10806         * math/s_catanhf.c (__catanhf): Likewise.
10807         * math/s_catanhl.c (__catanhl): Likewise.
10808         * math/libm-test.inc (catan_test): Add more tests.
10809         (catanh_test): Likewise.
10810         * sysdeps/i386/fpu/libm-test-ulps: Update.
10811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10812
10813 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10814
10815         * benchtests/Makefile: Mention files in which fast and slow
10816         paths of math functions are implemented.
10817
10818 2013-04-23  Roland McGrath  <roland@hack.frob.com>
10819
10820         * sysdeps/posix/timespec_get.c: New file.
10821
10822 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10823
10824         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
10825         POWER.
10826         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
10827         for POWER.
10828         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
10829         powerpc/power5/fpu folders.
10830         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
10831         * benchtests/Makefile: Add modf testcase.
10832         * benchtests/bench-modf.c: New file: Benchmark test for mo
10833
10834 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
10835
10836         [BZ #14888]
10837         * time/Makefile (tests): Add tst-strptime-whitespace.
10838         * time/strptime_l.c (get_number): Use ISSPACE.
10839         (__strptime_internal): Likewise.
10840         * time/tst-strptime-whitespace.c: New test case.
10841
10842 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
10843
10844         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
10845         member.
10846         (_nss_files_init): Set it here.
10847
10848 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
10849
10850         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
10851         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
10852         unsigned.
10853
10854 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
10855
10856         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
10857
10858 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10859
10860         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
10861         size just once.
10862
10863 2013-04-21  David S. Miller  <davem@davemloft.net>
10864
10865         * po/ru.po: Update Russion translation from translation project.
10866
10867 2013-04-17  Adam Conrad  <adconrad@0c3.net>
10868
10869         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
10870         and setfsgid.
10871
10872 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
10873
10874         * configure.in: Remove i386 configure warning. Remove i386 case.
10875         * configure: Regenerate.
10876         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
10877         Add example to error message.
10878         * sysdeps/i386/configure: Regenerate.
10879
10880 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
10881
10882         * benchtests/Makefile (bench): Add cos, tan, slowcos and
10883         slowtan.
10884         * benchtests/cos-inputs: New file.
10885         * benchtests/slowcos-inputs: New file.
10886         * benchtests/slowcos.c: New file.
10887         * benchtests/slowtan-inputs: New file.
10888         * benchtests/slowtan.c: New file.
10889         * benchtests/tan-inputs: New file.
10890
10891 2013-04-16  Roland McGrath  <roland@hack.frob.com>
10892
10893         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
10894         considered kosher.
10895
10896 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10897
10898         * benchtests/Makefile: Include cppflags-iterator.mk to add
10899         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
10900
10901         * Makefile.in (bench-clean): New target.
10902         * benchtests/Makefile (bench-clean): Likewise.
10903
10904 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
10905
10906         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
10907
10908 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10909
10910         * stdio-common/tstdiomisc.c: Fix coding-style violation.
10911
10912 2013-04-15  Andreas Schwab  <schwab@suse.de>
10913
10914         * nscd/grpcache.c (cache_addgr): Properly check for short write.
10915         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10916         * nscd/pwdcache.c (cache_addpw): Likewise.
10917         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
10918         more than recsize.
10919
10920 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10921
10922         * benchtests/Makefile (bench): Write all output to
10923         bench-out.tmp together.
10924
10925 2013-04-15  Andreas Schwab  <schwab@suse.de>
10926
10927         * nscd/nscd.c (main): Don't fork again after closing files.
10928
10929 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10930
10931         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
10932
10933         * benchtests/Rules (bench-deps): Collect dependencies into a
10934         single variable.  Add Makefile to dependencies.
10935         ($(objpfx)bench-%.c): Depend on bench-deps.
10936
10937 2013-04-12  Roland McGrath  <roland@hack.frob.com>
10938             Xavier Roche  <roche+kml2@exalead.com>
10939
10940         [BZ #15361]
10941         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
10942         just that it's a file descriptor.
10943         * manual/llio.texi (Synchronizing AIO Operations): Update description
10944         for EBADF error from aio_fsync.
10945
10946 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10947
10948         * Rules (bench): Move target definition...
10949         * benchtests/Makefile: ... here.
10950
10951 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
10952
10953         * math/libm-test.inc (cos_test): Fix PI/2 test.
10954         (sincos_test): Likewise.
10955         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
10956         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
10957
10958 2013-04-11  Andreas Schwab  <schwab@suse.de>
10959
10960         [BZ #13988]
10961         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
10962         accept exponent character only when digits were seen.
10963         * stdio-common/Makefile (tests): Add bug26.
10964         * stdio-common/bug26.c: New file.
10965
10966         [BZ #14293]
10967         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
10968         non-freeable.
10969
10970 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10971
10972         * Makeconfig (rtld-prefix): Define built linker prefix.
10973         * Rules (run-bench): Use it.
10974         * math/Makefile (run-regen-ulps): Likewise.
10975
10976         * Rules (bench): Remove eval.
10977
10978 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10979             Roland McGrath  <roland@hack.frob.com>
10980             Ondrej Bilka  <neleai@seznam.cz>
10981
10982         [BZ #15346]
10983         * time/getdate.c: Include ctype.h and alloca.h.
10984         (__getdate_r): Trim leading and trailing spaces of input.
10985         * time/tst-getdate.c (tests): Add tests with leading and
10986         trailing spaces.
10987
10988 2013-04-08  Roland McGrath  <roland@hack.frob.com>
10989
10990         [BZ #14280]
10991         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
10992         when computing value.
10993
10994 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
10995
10996         * math/README.libm-test (How can I generate "libm-test-ulps"?):
10997         Use testrun.sh to run libm tests.
10998
10999         [BZ #15309]
11000         * elf/dl-open.c (dl_open_worker): memset all of seen array.
11001
11002 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
11003
11004         [BZ #15264]
11005         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
11006
11007 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11008
11009         * Makefile.in (regen-ulps): New target.
11010         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
11011         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
11012         [ifneq (no,$(PERL)] (regen-ulps): New target.
11013         [ifeq (no,$(PERL)] (regen-ulps): New target.
11014         * math/libm-test.inc (ulps_file_name): Define.
11015         (output_dir): New variable.
11016         (options): Add "output-dir" option.
11017         (parse_opt): Handle 'o' case.
11018         (main): If output_dir is non-NULL use it as a prefix
11019         otherwise use "".
11020         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
11021
11022 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11023
11024         [BZ #10060, #10062]
11025         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
11026         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
11027         fail configure if __sync_val_compare_and_swap is not inlined.
11028         * sysdeps/i386/configure: Regenerate.
11029         * configure.in: Build for i686 when configured for i386.
11030         * configure: Regenerate.
11031         * README: Remove i386 reference.
11032
11033 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11034
11035         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
11036         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11037
11038 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11039
11040         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
11041         (lmsnanval): New variables.
11042         (F): Add conversion tests.
11043         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
11044         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
11045
11046         * stdio-common/tstdiomisc.c (F): Properly collect individual
11047         tests' results.
11048
11049         [BZ #14686, #15336]
11050         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
11051         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
11052         Instead, use input NaN values or generate a qNaN by arithmetic
11053         operation.  Also fix bugs to comply with the standard.
11054         * math/libm-test.inc (remainder_test): Add more tests.
11055
11056         [BZ #15335, #15342]
11057         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
11058         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
11059         input NaN values or generate a qNaN by arithmetic operation.
11060
11061         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
11062         unreachable code.
11063
11064         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
11065         definitions.
11066
11067 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
11068
11069         [BZ #14478]
11070         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
11071         underflowed result.
11072         * math/s_cexpf.c (__cexpf): Likewise.
11073         * math/s_cexpl.c (__cexpl): Likewise.
11074         * math/libm-test.inc (cexp_test): Add more tests.
11075
11076 2013-04-03  Andreas Schwab  <schwab@suse.de>
11077
11078         [BZ #15330]
11079         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
11080         order arrays from heap if bigger than alloca cutoff.
11081
11082 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
11083
11084         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
11085         (SNAN_TESTS_double): Refer to GCC PR56831.
11086         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
11087         GCC PR56828.
11088
11089 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11090
11091         * Rules (bench): Move bench.out after the run is complete.
11092
11093         * Rules (bench): Echo currently running benchmark.
11094
11095         * benchtests/Makefile (bench): Add atan and slowatan.
11096         * benchtests/atan-inputs: New file.
11097         * benchtests/slowatan-inputs: New file.
11098         * benchtests/slowatan.c: New file.
11099
11100         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
11101         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
11102         its value.
11103
11104         [BZ #15305]
11105         * sysdeps/unix/sysv/linux/kernel-features.h
11106         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
11107         __ASSUME_XFS_RESTRICTED_CHOWN.
11108         * sysdeps/unix/sysv/linux/pathconf.c
11109         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
11110         Save and restore errno.
11111
11112 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
11113
11114         [BZ #15327]
11115         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
11116         arguments using __kernel_casinh.
11117         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
11118         arguments using __kernel_casinhf.
11119         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
11120         arguments using __kernel_casinhl.
11121         * math/libm-test.inc (cacosh_test): Add more tests.
11122         * sysdeps/i386/fpu/libm-test-ulps: Update.
11123         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11124
11125 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11126
11127         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
11128         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
11129
11130         * bench/Makefile (bench): Add sin and slowsin.
11131         * benchtests/sin-inputs: New file.
11132         * benchtests/slowsin-inputs: New file.
11133         * benchtests/slowsin.c: New file.
11134
11135         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
11136         (bench): Add slowexp and slowpow.
11137         (exp-ITER): Increase iterations.
11138         (pow-ITER): Likewise.
11139         * benchtests/exp-inputs: Change input.
11140         * benchtests/pow-inputs: Likewise.
11141         * benchtests/slowexp-inputs: New file.
11142         * benchtests/slowexp.c: New file.
11143         * benchtests/slowpow-inputs: New file.
11144         * benchtests/slowpow.c: New file.
11145
11146 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11147
11148         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
11149         instructions.
11150         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11151         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
11152         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
11153         * benchtests/Makefile: Add rint benchtest.
11154         * benchtests/rint-inputs: Input for rint benchtest.
11155
11156 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11157
11158         * Versions.def (libm): Add GLIBC_2.18.
11159         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
11160         hidden libm prototypes.
11161         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
11162         * math/Makefile (libm-calls): Add s_issignaling.
11163         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
11164         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
11165         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
11166         declaration.
11167         * math/math.h [__USE_GNU] (issignaling): New macro.
11168         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
11169         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
11170         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
11171         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
11172         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11173         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
11174         * manual/arith.texi (issignaling): New section.
11175         * manual/libm-err-tab.pl (@all_functions): Update comment.
11176         * math/gen-libm-test.pl (parse_args): Apply special handling for
11177         issignaling.
11178         * math/libm-test.inc (print_float, issignaling_test): New
11179         functions.
11180         (check_float_internal): Add issignaling checks.
11181         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
11182         default definition.
11183         * sysdeps/powerpc/math-tests.h: New file.
11184         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
11185         tests.
11186         * math/test-snan.c (TEST_FUNC): Likewise.
11187
11188 2013-03-30  David S. Miller  <davem@davemloft.net>
11189
11190         * po/de.po: Update from translation team.
11191
11192 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
11193
11194         [BZ #10357]
11195         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11196         imaginary part less than 1.0 and real part less than 0.5
11197         specially.
11198         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11199         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11200         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
11201         (cacos_test): Add more tests.
11202         (casin_test): Likewise.
11203         (casinh_test): Likewise.
11204         * sysdeps/i386/fpu/libm-test-ulps: Update.
11205         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11206
11207 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11208
11209         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
11210         ONE with its value.
11211
11212         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
11213         (__pow_mp): Replace ONE and MONE with their values.
11214         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11215         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
11216         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11217         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
11218         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11219         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11220
11221         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
11222
11223         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
11224         (__pow_mp): Replace ZERO and MZERO with their values.
11225         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11226         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11227         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11228         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11229         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11230         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
11231         (__sqr): Likewise.
11232
11233         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
11234
11235         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
11236
11237 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11238
11239         * include/stdlib.h [!SHARED] (__call_tls_dtors):
11240         Declare with __attribute__ ((weak)).
11241         * stdlib/exit.c (__libc_atexit) [!SHARED]:
11242         Call __call_tls_dtors only if it's not NULL.
11243
11244 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11245
11246         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
11247         didn't do it already, then set _dl_phdr and _dl_phnum based on the
11248         magic __ehdr_start linker symbol if it's defined.
11249         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
11250         them up here if it was already done.
11251
11252         * elf/dl-support.c (_dl_phdr): Make pointer to const.
11253         (_dl_aux_init): Use const in cast when setting it.
11254         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
11255         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
11256         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
11257
11258         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
11259         Declare them here.
11260         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
11261         * csu/libc-tls.c: Nor here.
11262         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
11263
11264         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
11265         (__libc_message): Never call vsyslog.
11266
11267 2013-03-28  Alan Modra  <amodra@gmail.com>
11268
11269         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
11270         Define as empty.
11271         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
11272         Likewise.
11273
11274 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11275
11276         [BZ #15214]
11277         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
11278         underflow.
11279         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11280
11281 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11282
11283         [BZ #15304]
11284         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
11285         Don't add gid passed as argument.
11286
11287         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
11288
11289 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
11290
11291         [BZ #15307]
11292         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11293         imaginary part between 1.0 and 1.5 and real part less than 0.5
11294         specially.
11295         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11296         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11297         * math/libm-test.inc (cacos_test): Add more tests.
11298         (casin_test): Likewise.
11299         (casinh_test): Likewise.
11300         * sysdeps/i386/fpu/libm-test-ulps: Update.
11301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11302
11303 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11304
11305         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
11306         constants.
11307         (norm): Likewise.
11308         (denorm): Likewise.
11309         (__dbl_mp): Likewise.
11310         (add_magnitudes): Likewise.
11311         (sub_magnitudes): Likewise.
11312         (__add): Likewise.
11313         (__sub): Likewise.
11314         (__mul): Likewise.
11315         (__sqr): Likewise.
11316         (__inv): Likewise.
11317         (__dvd): Likewise.
11318
11319         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
11320         commented code.
11321         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
11322         (__dubcos): Likewise.
11323         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
11324         (__ieee754_acos): Likewise.
11325         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11326         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
11327         (__exp1): Likewise.
11328         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11329         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11330         (log1): Likewise.
11331         (my_log2): Likewise.
11332         (checkint): Likewise.
11333         * sysdeps/ieee754/dbl-64/e_remainder.c
11334         (__ieee754_remainder): Likewise.
11335         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11336         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11337         (bsloww): Likewise.
11338         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11339
11340         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11341         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
11342         MANTISSA_STORE_T to store computations on mantissa.  Use
11343         macros for rounding and division.
11344         (denorm): Likewise.
11345         (__dbl_mp): Likewise.
11346         (add_magnitudes): Likewise.
11347         (sub_magnitudes): Likewise.
11348         (__mul): Likewise.
11349         (__sqr): Likewise.
11350         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11351         powers of two in terms of TWOPOW macro.
11352         (mp_no): Make type of mantissa as MANTISSA_T.
11353         [!RADIXI]: Define RADIXI.
11354         [!TWO52]: Define TWO52.
11355         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11356
11357 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11358
11359         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
11360         llroundl symbol when building for PPC32.
11361
11362 2013-03-24  Mark H Weaver  <mhw@netris.org>
11363
11364         * manual/arith.texi (Normalization Functions): Fix prototypes for
11365         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
11366
11367 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11368
11369         [BZ #13889]
11370         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
11371         high value to check if expl overflow.
11372         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
11373         to check for underflow and overflow.
11374         * math/libm-test.inc: Add exp test.
11375
11376 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
11377
11378         [BZ #11120]
11379         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
11380         with NOT_IN_libc.
11381
11382 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11383
11384         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
11385         symbol.
11386
11387 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11388
11389         * math/gen-libm-test.pl (parse_args, special_functions): Properly
11390         wrap blocks consisting of several statements.
11391
11392         * sysdeps/generic/math-tests.h: New file.
11393         * sysdeps/i386/fpu/math-tests.h: Likewise.
11394         * math/test-snan.c: Include it.
11395         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
11396
11397 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11398
11399         [BZ #15285]
11400         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
11401         (__ieee754_j0l): Do not improve calculations using cos of twice
11402         input for inputs above LDBL_MAX / 2.0L.
11403         (__ieee754_y0l): Likewise.
11404         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
11405         (__ieee754_j1l): Do not improve calculations using cos of twice
11406         input for inputs above LDBL_MAX / 2.0L.
11407         (__ieee754_y1l): Likewise.
11408         * math/libm-test.inc (j0_test): Add another test.
11409         (j1_test): Likewise.
11410         (y0_test): Likewise.
11411         (y1_test): Likewise.
11412         * sysdeps/i386/fpu/libm-test-ulps: Update.
11413
11414 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11415
11416         * Rules ($(objpfx)bench-%.c): Include code from a C source
11417         file.
11418
11419 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11420
11421         [BZ #15287]
11422         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11423         imaginary part 1.0 and real part less than 0.5 specially.
11424         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11425         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11426         * math/libm-test.inc (cacos_test): Add more tests.
11427         (casin_test): Likewise.
11428         (casinh_test): Likewise.
11429         * sysdeps/i386/fpu/libm-test-ulps: Update.
11430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11431
11432 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11433
11434         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
11435         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
11436
11437 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
11438
11439         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
11440         * config.make.in (config-cflags-sse4): Remove variable.
11441         (config-cflags-avx): Likewise.
11442         (config-cflags-sse2avx): Likewise.
11443         (config-cflags-novzeroupper): Likewise.
11444         (config-asflags-i686): Likewise.
11445         (have-mfma4): Likewise.
11446         (have-as-vis3): Likewise.
11447         (MIG): Likewise.
11448         * configure.in (MIG): Do not AC_SUBST.
11449         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
11450         (libc_cv_cc_sse4): Do not AC_SUBST.
11451         (libc_cv_cc_avx): Likewise.
11452         (libc_cv_cc_sse2avx): Likewise.
11453         (libc_cv_cc_novzeroupper): Likewise.
11454         (libc_cv_cc_fma4): Likewise.
11455         (libc_cv_as_i686): Likewise.
11456         (libc_cv_sparc_as_vis3): Likewise.
11457         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
11458         LIBC_CONFIG_VAR.
11459         (config-asflags-i686): Likewise.
11460         (config-cflags-avx): Likewise.
11461         (config-cflags-sse2avx): Likewise.
11462         (have-mfma4): Likewise.
11463         (config-cflags-novzeroupper): Likewise.
11464         * sysdeps/mach/configure.in (MIG): Likewise.
11465         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
11466         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
11467         LIBC_CONFIG_VAR.
11468         (config-cflags-avx): Likewise.
11469         (config-cflags-sse2avx): Likewise.
11470         (have-mfma4): Likewise.
11471         (config-cflags-novzeroupper): Likewise.
11472         * configure: Regenerated.
11473         * sysdeps/i386/configure: Likewise.
11474         * sysdeps/mach/configure: Likewise.
11475         * sysdeps/sparc/configure: Likewise.
11476         * sysdeps/x86_64/configure: Likewise.
11477
11478 2013-03-20  Roland McGrath  <roland@hack.frob.com>
11479
11480         [BZ #14812]
11481         * locale/programs/localedef.c (options): Put N_ translation marker
11482         on argument names, not just descriptions.
11483
11484 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11485
11486         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
11487
11488 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
11489
11490         [BZ #14176]
11491         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
11492
11493 2013-03-19  Roland McGrath  <roland@hack.frob.com>
11494
11495         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
11496         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
11497         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
11498         [!BEFORE_ABORT] (before_abort): New function.
11499         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
11500         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
11501         (writev_for_fatal): New function.
11502         (WRITEV_FOR_FATAL): New macro; call that.
11503         (backtrace_and_maps): New function.
11504         (BEFORE_ABORT): New macro; call that.
11505         (struct str_list): Type removed.
11506         (__libc_message, __libc_fatal): Functions removed.
11507         Include <sysdeps/posix/libc_fatal.c> instead.
11508
11509 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
11510
11511         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
11512         constants.
11513         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
11514         double constants.
11515
11516 2013-03-19  Andreas Schwab  <schwab@suse.de>
11517
11518         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
11519         * sysdeps/gnu/configure: Regenerate.
11520
11521         * configure.in: Substitute libc_cv_rtlddir.
11522         * configure: Regenerate.
11523         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
11524         * Makeconfig (rtlddir, inst_rtlddir): New variables.
11525         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
11526         * elf/Makefile (install-others, CFLAGS-interp.c)
11527         (ldso_install, common-ldd-rewrite): Likewise.
11528         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
11529         $(inst_slibdir)/$(rtld-installed-name).
11530         * scripts/rellns-sh: Add -p option.
11531         * Makerules (make-shlib-link): Use rellns-sh to get relative name
11532         for source.
11533
11534 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11535
11536         * manual/nptl.texi: Renamed to ...
11537         * manual/threads.texi: ... this.
11538         * manual/Makefile (chapters): Update.
11539
11540 2013-03-18  Roland McGrath  <roland@hack.frob.com>
11541
11542         [BZ #14812]
11543         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
11544         on argument names, not just descriptions.
11545         * malloc/memusagestat.c (options): Likewise.
11546         * nss/getent.c (options): Likewise.
11547
11548 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
11549
11550         [BZ #14812]
11551         * iconv/iconv_prog.c (options): Put N_ translation marker
11552         on argument names, not just descriptions.
11553         * iconv/iconvconfig.c (options): Likewise.
11554
11555 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
11556
11557         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
11558         implementation which is faster on all x86_64 architectures.
11559         Tested on AMD, Intel Nehalem, SNB, IVB.
11560         * sysdeps/x86_64/strnlen.S: Likewise.
11561
11562         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
11563         Remove all multiarch strlen and strnlen versions.
11564         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
11565         Remove strlen and strnlen related parts.
11566
11567         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
11568         Inline strlen part.
11569         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
11570
11571         * sysdeps/x86_64/multiarch/strlen.S: Remove.
11572         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
11573         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
11574         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
11575         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
11576         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
11577
11578 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
11579
11580         * manual/memory.texi (Malloc Tunable Parameters):
11581         Sort parameters alphabetically. Add comments for missing entries.
11582
11583 2013-03-17  David S. Miller  <davem@davemloft.net>
11584
11585         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11586
11587 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
11588
11589         [BZ #15283]
11590         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
11591         for arguments at most half maximum finite value.
11592         * math/libm-test.inc (j0_test): Add more tests.
11593         (j1_test): Likewise.
11594         (y0_test): Likewise.
11595         (y1_test): Likewise.
11596         * sysdeps/i386/fpu/libm-test-ulps: Update.
11597         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11598
11599         [BZ #14155]
11600         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
11601         1 / x and functions P and Q for arguments above 0x1p256L.
11602         (__ieee754_y0l): Likewise.
11603         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
11604         (__ieee754_y1l): Likewise.
11605         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
11606         (j1_test): Likewise.
11607         (y0_test): Likewise.
11608         (y1_test): Likewise.
11609
11610 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
11611
11612         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
11613         variable.
11614
11615 2013-03-15  Roland McGrath  <roland@hack.frob.com>
11616
11617         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
11618         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
11619         zero since it's initialized to EXEC_PAGESIZE.
11620
11621         * sysdeps/unix/sysv/linux/ldsodefs.h
11622         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
11623         * sysdeps/generic/ldsodefs.h: ... here.
11624
11625 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
11626
11627         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
11628
11629         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
11630         math/test-snan.c.
11631         * math/test-snan.c: Renamed from
11632         sysdeps/powerpc/fpu/test-powerpc-snan.c.
11633         * math/Makefile (tests): Add test-snan.
11634         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
11635         test-powerpc-snan.
11636
11637         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
11638         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
11639         functions.
11640         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
11641         __builtin_nan family of functions.
11642         * math/libm-test.inc (initialize): Initialize qnan_value with
11643         __builtin_nan family of functions.
11644         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
11645         Remove variables.
11646         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
11647         Remove functions.
11648         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
11649         storage class.  Initialize qNaN_var and sNaN_var with
11650         __builtin_nan and __builtin_nans families of functions,
11651         respectively.
11652
11653         * math/libm-test.inc (acosh_test): Also test with qNaN input.
11654         (sqrt_test): Remove duplicate test with qNaN input.
11655         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
11656         (round_test, signbit_test, significand_test): Note missing +/-Inf
11657         as well as qNaN tests.
11658
11659         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
11660         qNaN_var.  Fix a few strings, too.
11661         * math/libm-test.inc (nan_value): Rename to qnan_value.
11662         * math/gen-libm-test.pl (%beautify): Adjust to that.
11663         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
11664         * math/test-misc.c (main): Likewise.
11665         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
11666         to __qnan_bytes, and __qnan_union, respectively.
11667         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
11668         Likewise.
11669         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
11670         and lqnanval, respectively.
11671         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
11672         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
11673         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
11674         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
11675
11676         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
11677         * math/test-misc.c (main) [__x86_64__]: Enable test for long
11678         doubles.
11679
11680         * math/test-misc.c (main): Fix copy'n'pastos.
11681         * misc/tst-efgcvt.c (special): Likewise.
11682
11683         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
11684         Remove declarations.
11685
11686 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11687
11688         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
11689         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
11690         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
11691         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
11692
11693 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11694
11695         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
11696         macro to return vdso values correctly in IFUNC implementations.
11697         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
11698         Optimization by using IFUNC.
11699
11700 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11701             Richard Henderson  <rth@redhat.com>
11702             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11703
11704         * Makefile.in (bench): New target.
11705         * NEWS: Mention the benchmark framework.
11706         * Rules (bench): Likewise.
11707         (binaries-bench): Generate binaries for functions to
11708         benchmark.
11709         * benchtests/Makefile: New makefile for benchmark tests.
11710         * benchtests/bench-skeleton.c: New skeleton file for benchmark
11711         programs.
11712         * benchtests/exp-inputs: New input file for EXP function.
11713         * benchtests/pow-inputs: New input file for POW function.
11714         * scripts/bench.pl: New script to generate source files for
11715         benchmark programs.
11716
11717 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11718
11719         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11720         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
11721         computations on mantissa.  Use macros for rounding and
11722         division.
11723         (denorm): Likewise.
11724         (__dbl_mp): Likewise.
11725         (add_magnitudes): Likewise.
11726         (sub_magnitudes): Likewise.
11727         (__mul): Likewise.
11728         (__sqr): Likewise.
11729         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11730         powers of two in terms of TWOPOW macro.
11731         (mp_no): Make type of mantissa as MANTISSA_T.
11732         [!RADIXI]: Define RADIXI.
11733         [!TWO52]: Define TWO52.
11734         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11735
11736         * manual/nptl.texi (cindex): Modify threads to pthreads.
11737
11738 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
11739
11740         * sysdeps/x86_64/preconfigure: Regenerated.
11741
11742 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
11743
11744         [BZ #14155]
11745         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
11746         0x1p28 and above.
11747         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
11748         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
11749         0x1p28 and above.
11750         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
11751         * math/libm-test.inc (j0_test): Do not allow one spurious
11752         underflow exception.
11753         (y1_test): Likewise.
11754
11755 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11756
11757         * manual/Makefile (chapters): Add nptl.
11758         * manual/debug.texi (Debugging Support): Add link to Threads
11759         chapter.
11760         * manual/nptl.texi: New file.
11761
11762         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
11763
11764 2013-03-14  Petr Baudis  <pasky@ucw.cz>
11765
11766         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
11767         for non-NULL pointer before the memory validity test. Pointed
11768         out by Holger Brunck <holger.brunck@keymile.com>.
11769
11770 2013-03-13  Andreas Schwab  <schwab@suse.de>
11771
11772         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
11773         instead of .os.
11774
11775 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
11776
11777         * timezone/zic.c: Update from tzcode 2013b.
11778
11779 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
11780
11781         * manual/install.texi (Configuring and compiling):
11782         Mention i686 and i586.
11783         * INSTALL: Regenerate.
11784
11785 2013-03-12  Roland McGrath  <roland@hack.frob.com>
11786
11787         * sysdeps/init_array/elf-init.c: New file.
11788         * csu/elf-init.c
11789         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
11790         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
11791
11792         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
11793         __gmon_start__ as global, but as static with a .preinit_array pointer.
11794         * sysdeps/init_array/gmon-start.c: New file.  Use that.
11795         * sysdeps/init_array/crti.S: New file, empty except for comments.
11796         * sysdeps/init_array/crtn.S: Likewise.
11797
11798 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
11799
11800         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
11801         definining bcopy.
11802         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11803         Remove Prefer_SSE_for_memop.
11804         * sysdeps/x86_64/multiarch/init-arch.h: Remove
11805         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
11806         HAS_PREFER_SSE_FOR_MEMOP.
11807         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11808         memset-x86-64.
11809         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
11810         Remove bzero, memset ifunc support.
11811         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
11812         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
11813         * sysdeps/x86_64/multiarch/memset.S: Likewise.
11814         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
11815
11816 2013-03-11  Andreas Schwab  <schwab@suse.de>
11817
11818         [BZ #15234]
11819         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
11820         by SHLIB_COMPAT.
11821         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
11822         (GLIBC_2.16): Remove pthread_atfork.
11823
11824 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
11825
11826         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
11827         (ptestcases.h): Likewise.
11828
11829 2013-03-08  Roland McGrath  <roland@hack.frob.com>
11830
11831         * Makeconfig ($(common-objpfx)config.status): Depend on
11832         sysdeps/*/preconfigure{,.in} too.
11833
11834 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
11835
11836         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
11837         (__free_hook): Use void * instead of __malloc_ptr_t.
11838         (__malloc_hook): Likewise.
11839         (__realloc_hook): Likewise.
11840         (__memalign_hook): Likewise.
11841         (__after_morecore_hook): Likewise.
11842         * malloc/arena.c (save_malloc_hook): Likewise.
11843         (save_free_hook): Likewise.
11844         * malloc/hooks.c (malloc_hook_ini): Likewise.
11845         (realloc_hook_ini): Likewise.
11846         (memalign_hook_ini): Likewise.
11847         * malloc/malloc.c (malloc_hook_ini): Likewise.
11848         (realloc_hook_ini): Likewise.
11849         (memalign_hook_ini): Likewise.
11850         (__free_hook): Likewise.
11851         (__malloc_hook): Likewise.
11852         (__realloc_hook): Likewise.
11853         (__memalign_hook): Likewise.
11854         (__libc_malloc): Likewise.
11855         (__libc_free): Likewise.
11856         (__libc_realloc): Likewise.
11857         (__libc_memalign): Likewise.
11858         (__libc_valloc): Likewise.
11859         (__libc_pvalloc): Likewise.
11860         (__libc_calloc): Likewise.
11861         (__posix_memalign): Likewise.
11862         * malloc/morecore.c (__sbrk): Likewise.
11863         (__default_morecore): Likewise.
11864
11865         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
11866
11867         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
11868         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
11869         __malloc_ptrdiff_t.
11870
11871         * malloc/malloc.h (__malloc_size_t): Remove macro.
11872         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
11873         __malloc_size_t.
11874         (old_memalign_hook): Likewise.
11875         (old_realloc_hook): Likewise.
11876         (struct hdr): Likewise.
11877         (flood): Likewise.
11878         (mallochook): Likewise.
11879         (memalignhook): Likewise.
11880         (reallochook): Likewise.
11881         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
11882         (tr_old_realloc_hook): Likewise.
11883         (tr_old_memalign_hook): Likewise.
11884         (tr_mallochook): Likewise.
11885         (tr_reallochook): Likewise.
11886         (tr_memalignhook): Likewise.
11887
11888 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11889
11890         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
11891         default_ldbl_pack and using as default implementation.
11892         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
11893         implementation.
11894         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
11895         redundant definition.
11896         (ldbl_insert_mantissa): Likewise.
11897         (ldbl_canonicalize): Likewise.
11898         (ldbl_nearbyint): Likewise.
11899         (ldbl_pack): Rename to ldbl_pack_ppc.
11900         (ldbl_unpack): Rename to ldbl_unpack_ppc.
11901         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
11902         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
11903
11904 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11905
11906         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
11907         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
11908         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
11909         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
11910         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
11911         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
11912         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
11913         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
11914
11915 2013-03-07  Andreas Jaeger  <aj@suse.de>
11916
11917         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11918         bits/mman-linux.h.
11919
11920 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
11921
11922         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
11923         Include mpa.h and declare __MPEXP.
11924         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
11925         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11926         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11927         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
11928         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11929         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
11930         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
11931
11932         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
11933         (__slowpow): Use long double EXPL and LOGL functions to
11934         compute POW.
11935         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
11936         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11937         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
11938         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
11939         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
11940         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
11941
11942         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
11943         intermediate variable to calculate exponent.
11944         (__sqr): Likewise.
11945         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
11946         Likewise.
11947         (__sqr): Likewise.
11948
11949         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
11950         [!NO__SQR]: Define __sqr.
11951         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
11952         and NO__SQR.  Remove all code except __mul and __sqr.  Include
11953         sysdeps/ieee754/dbl-64/mpa.c.
11954         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11955
11956         [BZ #12723]
11957         * posix/Makefile (tests): Add tst-pathconf.
11958         * posix/tst-pathconf.c: New test case.
11959         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
11960         _PC_PIPE_BUF.
11961         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
11962
11963 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
11964
11965         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
11966
11967 2013-03-06  Andreas Jaeger  <aj@suse.de>
11968
11969         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
11970         definition via __MAP_ANONYMOUS.
11971
11972         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
11973         it's not part of Linux headers.
11974
11975         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
11976         (MAP_HUGE_MASK): Define.
11977
11978         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11979         Define.
11980         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11981         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11982         Define.
11983         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11984         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
11985         Define.
11986         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11987         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
11988         Define.
11989         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
11990
11991         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
11992         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
11993         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
11994         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
11995         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
11996         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
11997
11998         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11999         Handle f2fs.
12000
12001         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12002         Handle f2fs and efivarfs.
12003
12004         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
12005         f2fs.
12006
12007         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
12008         (EFIVARFS_MAGIC): Add.
12009         (F2FS_LINK_MAX): Add.
12010
12011 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12012
12013         * stdio-common/vfprintf.c: Replace __builtin_expect with
12014         __glibc_unlikely.
12015
12016 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
12017
12018         [BZ #13550]
12019         * sysdeps/generic/bp-sym.h: Remove file.
12020         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
12021         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
12022         <bp-sym.h> and <bp-asm.h>.
12023         (__longjmp): Don't use BP_SYM.
12024         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
12025         and <bp-asm.h>.
12026         (memcpy): Don't use BP_SYM.
12027         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
12028         <bp-sym.h> and <bp-asm.h>.
12029         (memcpy): Don't use BP_SYM.
12030         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
12031         <bp-asm.h>.
12032         (memcpy): Don't use BP_SYM.
12033         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
12034         <bp-asm.h>.
12035         (memset): Don't use BP_SYM.
12036         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12037         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12038         (__bzero): Don't use BP_SYM.
12039         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12040         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12041         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
12042         <bp-sym.h> and <bp-asm.h>.
12043         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12044         pointers.
12045         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
12046         <bp-sym.h> and <bp-asm.h>.
12047         (memcpy): Don't use BP_SYM.
12048         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
12049         <bp-sym.h> and <bp-asm.h>.
12050         (memset): Don't use BP_SYM.
12051         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12052         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12053         (__bzero): Don't use BP_SYM.
12054         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12055         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12056         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
12057         <bp-sym.h> and <bp-asm.h>.
12058         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12059         pointers.
12060         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
12061         <bp-sym.h> and <bp-asm.h>.
12062         (memcpy): Don't use BP_SYM.
12063         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
12064         <bp-sym.h> and <bp-asm.h>.
12065         (memset): Don't use BP_SYM.
12066         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12067         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12068         (__bzero): Don't use BP_SYM.
12069         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12070         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12071         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
12072         <bp-sym.h> and <bp-asm.h>.
12073         (__memchr): Don't use BP_SYM.
12074         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
12075         <bp-sym.h> and <bp-asm.h>.
12076         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12077         pointers.
12078         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
12079         <bp-sym.h> and <bp-asm.h>.
12080         (memcpy): Don't use BP_SYM.
12081         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
12082         <bp-sym.h> and <bp-asm.h>.
12083         (__mempcpy): Don't use BP_SYM.
12084         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
12085         <bp-sym.h> and <bp-asm.h>.
12086         (__memrchr): Don't use BP_SYM.
12087         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
12088         <bp-sym.h> and <bp-asm.h>.
12089         (memset): Don't use BP_SYM.
12090         (__bzero): Likewise.
12091         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
12092         <bp-sym.h> and <bp-asm.h>.
12093         (__rawmemchr): Don't use BP_SYM.
12094         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
12095         <bp-sym.h> and <bp-asm.h>.
12096         (__STRCMP): Don't use BP_SYM.
12097         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
12098         <bp-sym.h> and <bp-asm.h>.
12099         (strchr): Don't use BP_SYM.
12100         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
12101         <bp-sym.h> and <bp-asm.h>.
12102         (__strchrnul): Don't use BP_SYM.
12103         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
12104         <bp-sym.h> and <bp-asm.h>.
12105         (strlen): Don't use BP_SYM.
12106         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
12107         <bp-sym.h> and <bp-asm.h>.
12108         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12109         pointers.
12110         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
12111         <bp-sym.h> and <bp-asm.h>.
12112         (__strnlen): Don't use BP_SYM.
12113         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
12114         <bp-sym.h> and <bp-asm.h>.
12115         (__GI__setjmp): Don't use BP_SYM.
12116         (_setjmp): Likewise.
12117         (__sigsetjmp): Likewise.
12118         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
12119         (L(start_addresses)): Don't use BP_SYM.
12120         (_start): Likewise.
12121         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
12122         <bp-asm.h>.
12123         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
12124         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
12125         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12126         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12127         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
12128         <bp-asm.h>.
12129         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
12130         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
12131         about bounded pointers.
12132         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12133         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12134         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
12135         <bp-asm.h>.
12136         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12137         about bounded pointers.  Remove GKM FIXME comments.
12138         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12139         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
12140         <bp-asm.h>.
12141         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
12142         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
12143         Remove GKM FIXME comments.
12144         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12145         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12146         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
12147         <bp-asm.h>.
12148         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12149         about bounded pointers.  Remove GKM FIXME comment.
12150         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
12151         and <bp-asm.h>.
12152         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12153         pointers.
12154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
12155         <bp-sym.h> and <bp-asm.h>.
12156         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
12158         <bp-sym.h> and <bp-asm.h>.
12159         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12160         comment.
12161
12162 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12163
12164         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
12165         call free(NULL).
12166
12167 2013-03-05  David S. Miller  <davem@davemloft.net>
12168
12169         * po/es.po: Update from translation team.
12170
12171 2013-03-05  Andreas Jaeger  <aj@suse.de>
12172
12173         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
12174         <bits/mman-linux.h>.
12175         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12176         is fine.
12177         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
12178         <bits/mman-linux.h> to end of file.
12179         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12180         is fine.
12181         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
12182         <bits/mman-linux.h> to end of file.
12183         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12184         is fine.
12185         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
12186         <bits/mman-linux.h> to end of file.
12187
12188         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
12189         (MCL_CURRENT, MCL_FUTURE): Define here.
12190
12191 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12192
12193         [BZ #15232]
12194         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
12195         attribute_hidden.
12196         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
12197
12198 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12199
12200         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
12201         fourth parameter needed for rt_sigprocmask syscall.
12202         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
12203         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
12204         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
12205         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
12206         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
12207         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
12208
12209 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
12210
12211         [BZ #13550]
12212         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
12213         comment about bounded pointers.
12214         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
12215         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
12216
12217 2013-03-04  Andreas Jaeger  <aj@suse.de>
12218
12219         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
12220         common definitions.
12221
12222         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
12223         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
12224         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
12225         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12226         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
12227         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12228
12229 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12230
12231         [BZ #15055]
12232         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
12233         __ieee754_sqrl instead of __sqrl.
12234
12235 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
12236
12237         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
12238         * sysdeps/powerpc/fpu_control.h: ... here.
12239         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
12240         * sysdeps/powerpc/bits/fenvinline.h: ... here.
12241         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
12242         * sysdeps/powerpc/bits/mathinline.h: ... here.
12243
12244 2013-03-01  Roland McGrath  <roland@hack.frob.com>
12245
12246         * elf/dl-hwcaps.c (_dl_important_hwcaps):
12247         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
12248         to just [NEED_DL_SYSINFO_DSO].
12249         * elf/dl-support.c: Likewise.
12250         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
12251         * elf/rtld.c (dl_main): Likewise.
12252         * elf/setup-vdso.h (setup_vdso): Likewise.
12253         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
12254         * sysdeps/unix/sysv/linux/dl-sysdep.c
12255         (_dl_discover_osversion): Likewise.
12256
12257 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
12258
12259         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
12260         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12261
12262 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12263
12264         * NEWS: Mention libm performance improvements and non-x86 PI
12265         futex support.
12266
12267         * csu/libc-start.c (__pthread_initialize_minimal): Change
12268         function arguments.
12269         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12270
12271 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
12272
12273         [BZ #13550]
12274         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
12275         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
12276         <bp-sym.h> and <bp-asm.h>.
12277         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12278         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
12279         and <bp-asm.h>.
12280         (memcpy): Don't use BP_SYM.
12281         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
12282         <bp-asm.h>.
12283         (__mpn_add_n): Don't use BP_SYM.
12284         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
12285         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
12286         and <bp-asm.h>.
12287         (__mpn_addmul_1): Don't use BP_SYM.
12288         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12289         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
12290         <bp-sym.h>.
12291         (_setjmp): Don't use BP_SYM.
12292         (__novmx_setjmp): Likewise.
12293         (__GI__setjmp): Likewise.
12294         (__vmx_setjmp): Likewise.
12295         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
12296         <bp-sym.h>.
12297         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
12298         (__bzero): Don't use BP_SYM.
12299         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12300         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12301         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
12302         <bp-sym.h> and <bp-asm.h>.
12303         (memcpy): Don't use BP_SYM.
12304         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
12305         <bp-sym.h> and <bp-asm.h>.
12306         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12307         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
12308         <bp-sym.h> and <bp-asm.h>.
12309         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12310         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
12311         <bp-asm.h>.
12312         (__mpn_lshift): Don't use BP_SYM.
12313         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12314         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
12315         <bp-asm.h>.
12316         (memset): Don't use BP_SYM.
12317         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12318         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12319         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
12320         <bp-asm.h>.
12321         (__mpn_mul_1): Don't use BP_SYM.
12322         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12323         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
12324         <bp-sym.h> and <bp-asm.h>.
12325         (memcmp): Don't use BP_SYM.
12326         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
12327         <bp-sym.h> and <bp-asm.h>.
12328         (memcpy): Don't use BP_SYM.
12329         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
12330         <bp-sym.h> and <bp-asm.h>.
12331         (memset): Don't use BP_SYM.
12332         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
12333         <bp-sym.h> and <bp-asm.h>.
12334         (strncmp): Don't use BP_SYM.
12335         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
12336         <bp-sym.h> and <bp-asm.h>.
12337         (memcpy): Don't use BP_SYM.
12338         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
12339         <bp-sym.h> and <bp-asm.h>.
12340         (memset): Don't use BP_SYM.
12341         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
12342         <bp-sym.h> and <bp-asm.h>.
12343         (__memchr): Don't use BP_SYM.
12344         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
12345         <bp-sym.h> and <bp-asm.h>.
12346         (memcmp): Don't use BP_SYM.
12347         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
12348         <bp-sym.h> and <bp-asm.h>.
12349         (memcpy): Don't use BP_SYM.
12350         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
12351         <bp-sym.h> and <bp-asm.h>.
12352         (__mempcpy): Don't use BP_SYM.
12353         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
12354         <bp-sym.h> and <bp-asm.h>.
12355         (__memrchr): Don't use BP_SYM.
12356         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
12357         <bp-sym.h> and <bp-asm.h>.
12358         (memset): Don't use BP_SYM.
12359         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
12360         <bp-sym.h> and <bp-asm.h>.
12361         (__rawmemchr): Don't use BP_SYM.
12362         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
12363         <bp-sym.h> and <bp-asm.h>.
12364         (__STRCMP): Don't use BP_SYM.
12365         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
12366         <bp-sym.h> and <bp-asm.h>.
12367         (strchr): Don't use BP_SYM.
12368         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
12369         <bp-sym.h> and <bp-asm.h>.
12370         (__strchrnul): Don't use BP_SYM.
12371         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
12372         <bp-sym.h> and <bp-asm.h>.
12373         (strlen): Don't use BP_SYM.
12374         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
12375         <bp-sym.h> and <bp-asm.h>.
12376         (strncmp): Don't use BP_SYM.
12377         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
12378         <bp-sym.h> and <bp-asm.h>.
12379         (__strnlen): Don't use BP_SYM.
12380         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
12381         <bp-asm.h>.
12382         (__mpn_rshift): Don't use BP_SYM.
12383         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12384         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
12385         <bp-sym.h> and <bp-asm.h>.
12386         (__sigsetjmp): Don't use BP_SYM.
12387         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
12388         (L(start_addresses)): Don't use BP_SYM.
12389         (_start): Likewise.
12390         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
12391         <bp-asm.h>.
12392         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
12393         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12394         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12395         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
12396         <bp-asm.h>.
12397         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
12398         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12399         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12400         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
12401         <bp-asm.h>.
12402         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12403         comments.
12404         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12405         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
12406         <bp-asm.h>.
12407         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
12408         FIXME comments.
12409         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12410         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12411         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
12412         <bp-asm.h>.
12413         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12414         comment.
12415         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
12416         and <bp-asm.h>.
12417         (strncmp): Don't use BP_SYM,
12418         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
12419         <bp-asm.h>.
12420         (__mpn_sub_n): Don't use BP_SYM.
12421         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12422         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
12423         and <bp-asm.h>.
12424         (__mpn_submul_1): Don't use BP_SYM.
12425         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
12427         <bp-sym.h> and <bp-asm.h>.
12428         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
12430         <bp-sym.h> and <bp-asm.h>.
12431         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12432         comment.
12433
12434 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12435
12436         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
12437         Use ZK to minimize writes to Z.
12438         (sub_magnitudes): Simplify code a bit.
12439         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
12440         Use ZK to minimize writes to Z.
12441         (sub_magnitudes): Simplify code a bit.
12442
12443 2013-02-27  Roland McGrath  <roland@hack.frob.com>
12444
12445         * csu/gmon-start.c: Add special exception to license text.
12446
12447 2013-02-27  Richard Henderson  <rth@redhat.com>
12448
12449         * scripts/config.guess: Update from config.git.
12450         * scripts/config.sub: Likewise.
12451
12452 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
12453
12454         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
12455
12456         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
12457
12458         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
12459
12460         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
12461
12462         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
12463
12464 2013-02-26  Roland McGrath  <roland@hack.frob.com>
12465
12466         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
12467         [$(build-shared = yes].
12468
12469 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12470
12471         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
12472         (__mul): Reduce iterations for calculating mantissa.
12473
12474         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
12475         MPTWO.
12476         (__mpranred): Likewise.
12477
12478         [BZ #15160]
12479         * malloc/memusagestat.c (main): Draw graphs for heap and stack
12480         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
12481
12482 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12483
12484         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
12485         Define __attribute__.
12486
12487 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12488
12489         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
12490         unused.
12491         * posix/regex_internal.h (__attribute): Remove.
12492         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
12493         (re_string_context_at): Likewise.
12494         (bitset_not): Use __attribute__ and mark function as possibly
12495         unused.
12496         (bitset_merge): Likewise.
12497         (bitset_mask): Likewise.
12498         (re_string_char_size_at): Likewise.
12499         (re_string_wchar_at): Likewise.
12500         (re_string_elem_size_at): Likewise.
12501
12502 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12503
12504         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
12505         code.
12506         (cc32): Likewise.
12507
12508         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
12509         (__acr): Likewise.
12510         (__cpy): Likewise.
12511         (norm): Likewise.
12512         (denorm): Likewise.
12513         (__dbl_mp): Likewise.
12514         (add_magnitudes): Likewise.
12515         (sub_magnitudes): Likewise.
12516         (__mul): Likewise.
12517         (__inv): Likewise.
12518
12519         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
12520         style.
12521
12522         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
12523         style.
12524
12525         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
12526         code.
12527
12528         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
12529         up changes with default code.
12530         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
12531         Likewise.
12532
12533 2013-02-24  Allan McRae  <allan@archlinux.org>
12534
12535         * manual/socket.texi (The Internet Namespace): Order menu items
12536         to match that in the file.
12537
12538         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
12539         node listing of the info page menu.
12540
12541 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
12542
12543         [BZ #13550]
12544         * sysdeps/i386/bp-asm.h: Remove file.
12545         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12546         (PARMS): Do not use macros from bp-asm.h.
12547         (S1): Likewise.
12548         (S2): Likewise.
12549         (SIZE): Likewise.
12550         (__mpn_add_n): Do not use BP_SYM
12551         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
12552         "bp-asm.h".
12553         (PARMS): Do not use macros from bp-asm.h.
12554         (S1): Likewise.
12555         (SIZE): Likewise.
12556         (__mpn_addmul_1): Do not use BP_SYM
12557         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
12558         "bp-asm.h".
12559         (PARMS): Do not use macros from bp-asm.h.
12560         (SIGMSK): Likewise.
12561         (_setjmp): Likewise.  Do not use BP_SYM.
12562         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
12563         "bp-asm.h".
12564         (PARMS): Do not use macros from bp-asm.h.
12565         (SIGMSK): Likewise.
12566         (setjmp): Likewise.  Do not use BP_SYM.
12567         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
12568         "bp-asm.h".
12569         (PARMS): Do not use macros from bp-asm.h.
12570         (__frexp): Do not use BP_SYM.
12571         (frexp): Likewise.
12572         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
12573         "bp-asm.h".
12574         (PARMS): Do not use macros from bp-asm.h.
12575         (__frexpf): Do not use BP_SYM.
12576         (frexpf): Likewise.
12577         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
12578         "bp-asm.h".
12579         (PARMS): Do not use macros from bp-asm.h.
12580         (__frexpl): Do not use BP_SYM.
12581         (frexpl): Likewise.
12582         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
12583         "bp-asm.h".
12584         (PARMS): Do not use macros from bp-asm.h.
12585         (__remquo): Do not use BP_SYM.
12586         (remquo): Likewise.
12587         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
12588         "bp-asm.h".
12589         (PARMS): Do not use macros from bp-asm.h.
12590         (__remquof): Do not use BP_SYM.
12591         (remquof): Likewise.
12592         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
12593         "bp-asm.h".
12594         (PARMS): Do not use macros from bp-asm.h.
12595         (__remquol): Do not use BP_SYM.
12596         (remquol): Likewise.
12597         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
12598         "bp-asm.h".
12599         (PARMS): Do not use macros from bp-asm.h.
12600         (DEST): Likewise.
12601         (SRC): Likewise.
12602         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
12603         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
12604         "bp-asm.h".
12605         (PARMS): Do not use macros from bp-asm.h.
12606         (strlen): Do not use BP_SYM.
12607         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
12608         "bp-asm.h".
12609         (PARMS): Do not use macros from bp-asm.h.
12610         (S1): Likewise.
12611         (S2): Likewise.
12612         (SIZE): Likewise.
12613         (__mpn_add_n): Do not use BP_SYM.
12614         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
12615         "bp-asm.h".
12616         (PARMS): Do not use macros from bp-asm.h.
12617         (S1): Likewise.
12618         (SIZE): Likewise.
12619         (__mpn_addmul_1): Do not use BP_SYM.
12620         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
12621         weak_alias.
12622         (bzero): Likewise.
12623         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
12624         "bp-asm.h".
12625         (PARMS): Do not use macros from bp-asm.h.
12626         (S): Likewise.
12627         (SIZE): Likewise.
12628         (__mpn_lshift): Do not use BP_SYM.
12629         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
12630         "bp-asm.h".
12631         (PARMS): Do not use macros from bp-asm.h.
12632         (DEST): Likewise.
12633         (SRC): Likewise.
12634         (LEN): Likewise.
12635         (memcpy): Likewise.  Do not use BP_SYM.
12636         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
12637         libc_hidden_def and weak_alias.
12638         (mempcpy): Do not use BP_SYM in weak_alias.
12639         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
12640         "bp-asm.h".
12641         (PARMS): Do not use macros from bp-asm.h.
12642         (DEST): Likewise.
12643         (LEN): Likewise.
12644         [!BZERO_P] (CHR): Likewise.
12645         (memset): Likewise.  Do not use BP_SYM.
12646         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
12647         "bp-asm.h".
12648         (PARMS): Do not use macros from bp-asm.h.
12649         (S1): Likewise.
12650         (SIZE): Likewise.
12651         (__mpn_mul_1): Do not use BP_SYM.
12652         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
12653         "bp-asm.h".
12654         (PARMS): Do not use macros from bp-asm.h.
12655         (S): Likewise.
12656         (SIZE): Likewise.
12657         (__mpn_rshift): Do not use BP_SYM.
12658         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
12659         "bp-asm.h".
12660         (PARMS): Do not use macros from bp-asm.h.
12661         (STR): Likewise.
12662         (CHR): Likewise.
12663         (strchr): Likewise.  Do not use BP_SYM.
12664         (index): Do not use BP_SYM in weak_alias.
12665         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
12666         "bp-asm.h".
12667         (PARMS): Do not use macros from bp-asm.h.
12668         (DEST): Likewise.
12669         (SRC): Likewise.
12670         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
12671         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
12672         "bp-asm.h".
12673         (PARMS): Do not use macros from bp-asm.h.
12674         (strlen): Do not use BP_SYM.
12675         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
12676         "bp-asm.h".
12677         (PARMS): Do not use macros from bp-asm.h.
12678         (S1): Likewise.
12679         (S2): Likewise.
12680         (SIZE): Likewise.
12681         (__mpn_sub_n): Do not use BP_SYM.
12682         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
12683         "bp-asm.h".
12684         (PARMS): Do not use macros from bp-asm.h.
12685         (S1): Likewise.
12686         (SIZE): Likewise.
12687         (__mpn_submul_1): Do not use BP_SYM.
12688         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
12689         "bp-asm.h".
12690         (PARMS): Do not use macros from bp-asm.h.
12691         (S1): Likewise.
12692         (S2): Likewise.
12693         (SIZE): Likewise.
12694         (__mpn_add_n): Do not use BP_SYM.
12695         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
12696         weak_alias.
12697         (bzero): Likewise.
12698         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
12699         "bp-asm.h".
12700         (PARMS): Do not use macros from bp-asm.h.
12701         (BLK2): Likewise.
12702         (LEN): Likewise.
12703         (memcmp): Do not use BP_SYM.
12704         (bcmp): Do not use BP_SYM in weak_alias.
12705         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
12706         "bp-asm.h".
12707         (PARMS): Do not use macros from bp-asm.h.
12708         (DEST): Likewise.
12709         (SRC): Likewise.
12710         (LEN): Likewise.
12711         (memcpy): Likewise.  Do not use BP_SYM.
12712         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
12713         "bp-asm.h".
12714         (PARMS): Do not use macros from bp-asm.h.
12715         (DEST): Likewise.
12716         (SRC): Likewise.
12717         (LEN): Likewise.
12718         (memmove): Likewise.  Do not use BP_SYM.
12719         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
12720         "bp-asm.h".
12721         (PARMS): Do not use macros from bp-asm.h.
12722         (DEST): Likewise.
12723         (SRC): Likewise.
12724         (LEN): Likewise.
12725         (__mempcpy): Likewise.  Do not use BP_SYM.
12726         (mempcpy): Do not use BP_SYM in weak_alias.
12727         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
12728         "bp-asm.h".
12729         (PARMS): Do not use macros from bp-asm.h.
12730         (DEST): Likewise.
12731         (LEN): Likewise.
12732         [!BZERO_P] (CHR): Likewise.
12733         (memset): Likewise.  Do not use BP_SYM.
12734         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
12735         "bp-asm.h".
12736         (PARMS): Do not use macros from bp-asm.h.
12737         (STR2): Likewise.
12738         (strcmp): Do not use BP_SYM.
12739         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
12740         "bp-asm.h".
12741         (PARMS): Do not use macros from bp-asm.h.
12742         (STR): Likewise.
12743         (DELIM): Likewise.
12744         [USE_AS_STRTOK_R] (SAVE): Likewise.
12745         (FUNCTION): Likewise.  Do not use BP_SYM.
12746         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
12747         aliases.
12748         (strtok_r): Likewise.
12749         (__GI___strtok_r): Likewise.
12750         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12751         (PARMS): Do not use macros from bp-asm.h.
12752         (S): Likewise.
12753         (SIZE): Likewise.
12754         (__mpn_lshift): Do not use BP_SYM.
12755         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12756         (PARMS): Do not use macros from bp-asm.h.
12757         (STR): Likewise.
12758         (CHR): Likewise.
12759         (__memchr): Do not use BP_SYM.
12760         (memchr): Do not use BP_SYM in weak_alias.
12761         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12762         (PARMS): Do not use macros from bp-asm.h.
12763         (BLK2): Likewise.
12764         (LEN): Likewise.
12765         (memcmp): Do not use BP_SYM.
12766         (bcmp): Do not use BP_SYM in weak_alias.
12767         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
12768         (PARMS): Do not use macros from bp-asm.h.
12769         (S1): Likewise.
12770         (SIZE): Likewise.
12771         (__mpn_mul_1): Do not use BP_SYM.
12772         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
12773         "bp-asm.h".
12774         (PARMS): Do not use macros from bp-asm.h.
12775         (STR): Likewise.
12776         (CHR): Likewise.
12777         (__rawmemchr): Do not use BP_SYM.
12778         (rawmemchr): Do not use BP_SYM in weak_alias.
12779         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12780         (PARMS): Do not use macros from bp-asm.h.
12781         (S): Likewise.
12782         (SIZE): Likewise.
12783         (__mpn_rshift): Do not use BP_SYM.
12784         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12785         (PARMS): Do not use macros from bp-asm.h.
12786         (SIGMSK): Likewise.
12787         (__sigsetjmp): Likewise.  Do not use BP_SYM.
12788         * sysdeps/i386/start.S: Do not include "bp-sym.h".
12789         (_start): Do not use BP_SYM.
12790         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
12791         (PARMS): Do not use macros from bp-asm.h.
12792         (DEST): Likewise.
12793         (SRC): Likewise.
12794         (__stpcpy): Likewise.  Do not use BP_SYM.
12795         (stpcpy): Do not use BP_SYM in weak_alias.
12796         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
12797         "bp-asm.h".
12798         (PARMS): Do not use macros from bp-asm.h.
12799         (DEST): Likewise.
12800         (SRC): Likewise.
12801         (LEN): Likewise.
12802         (__stpncpy): Likewise.  Do not use BP_SYM.
12803         (stpncpy): Do not use BP_SYM in weak_alias.
12804         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12805         (PARMS): Do not use macros from bp-asm.h.
12806         (STR): Likewise.
12807         (CHR): Likewise.
12808         (strchr): Likewise.  Do not use BP_SYM.
12809         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
12810         "bp-asm.h".
12811         (PARMS): Do not use macros from bp-asm.h.
12812         (STR): Likewise.
12813         (CHR): Likewise.
12814         (__strchrnul): Likewise.  Do not use BP_SYM.
12815         (strchrnul): Do not use BP_SYM in weak_alias.
12816         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
12817         "bp-asm.h".
12818         (PARMS): Do not use macros from bp-asm.h.
12819         (STOP): Likewise.
12820         (strcspn): Do not use BP_SYM.
12821         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
12822         "bp-asm.h".
12823         (PARMS): Do not use macros from bp-asm.h.
12824         (STR): Likewise.
12825         (STOP): Likewise.
12826         (strpbrk): Likewise.  Do not use BP_SYM.
12827         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
12828         "bp-asm.h".
12829         (PARMS): Do not use macros from bp-asm.h.
12830         (STR): Likewise.
12831         (CHR): Likewise.
12832         (strrchr): Likewise.  Do not use BP_SYM.
12833         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
12834         (PARMS): Do not use macros from bp-asm.h.
12835         (SKIP): Likewise.
12836         (strspn): Do not use BP_SYM.
12837         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
12838         (PARMS): Do not use macros from bp-asm.h.
12839         (STR): Likewise.
12840         (DELIM): Likewise.
12841         (SAVE): Likewise.
12842         (FUNCTION): Likewise.  Do not use BP_SYM.
12843         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
12844         aliases.
12845         (strtok_r): Likewise.
12846         (__GI___strtok_r): Likewise.
12847         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12848         (PARMS): Do not use macros from bp-asm.h.
12849         (S1): Likewise.
12850         (S2): Likewise.
12851         (SIZE): Likewise.
12852         (__mpn_sub_n): Do not use BP_SYM.
12853         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
12854         "bp-asm.h".
12855         (PARMS): Do not use macros from bp-asm.h.
12856         (S1): Likewise.
12857         (SIZE): Likewise.
12858         (__mpn_submul_1): Do not use BP_SYM.
12859         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
12860         <bp-sym.h>.
12861         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
12862         and <bp-asm.h>.
12863         (PARMS): Do not use macros from bp-asm.h.
12864         (FLAGS): Likewise.
12865         (PTID): Likewise.
12866         (TLS): Likewise.
12867         (CTID): Likewise.
12868         (__clone): Do not use BP_SYM.
12869         (clone): Do not use BP_SYM in weak_alias.
12870         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
12871         and <bp-asm.h>.
12872         (PARMS): Do not use macros from bp-asm.h.
12873         (LEN): Likewise.
12874         (__mmap64): Do not use BP_SYM.
12875         (mmap64): Do not use BP_SYM in weak_alias.
12876         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
12877         <bp-sym.h> and <bp-asm.h>.
12878         (PARMS): Do not use macros from bp-asm.h.
12879         (__posix_fadvise64_l64): Do not use BP_SYM.
12880         * sysdeps/unix/sysv/linux/i386/semtimedop.S
12881         (PARMS): Do not use macros from bp-asm.h.
12882         (NSOPS): Likewise.
12883         (semtimedop): Do not use BP_SYM.
12884         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
12885         and <bp-asm.h>.
12886
12887 2013-02-21  Allan McRae  <allan@archlinux.org>
12888
12889         * manual/message.texi (Charset conversion in gettext):
12890         Move @end statement to beginning of line.
12891
12892 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12893
12894         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
12895         static.
12896         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
12897         Likewise.
12898
12899         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
12900         (denorm): Likewise.
12901         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
12902         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
12903
12904 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12905
12906         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
12907         tail-call to the resolved function if pltexit isn't needed.
12908
12909 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12910
12911         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
12912         or Y being zero as being unlikely.
12913         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12914         Likewise.
12915
12916 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
12917
12918         * manual/nss.texi (System Databases and Name Service Switch):
12919         Remove frobnicate @pxref.
12920
12921 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12922
12923         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12924         __attribute__ ((unused)) to __attribute__ ((__unused__)).
12925
12926 2013-02-20  Petr Machata  <pmachata@redhat.com>
12927
12928         * elf/elf.h (R_ARM_TARGET1): New macro.
12929         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
12930         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
12931         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
12932         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
12933         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
12934         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
12935         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
12936         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
12937         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
12938         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
12939         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
12940         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
12941         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
12942         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
12943         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
12944         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
12945         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
12946         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
12947         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
12948         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
12949         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
12950         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
12951         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
12952         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
12953         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
12954         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
12955         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
12956         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
12957         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
12958         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
12959         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
12960         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
12961         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
12962         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
12963         (R_ARM_THM_GOT_BREL12): Likewise.
12964         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
12965         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
12966         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
12967         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
12968         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
12969         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
12970         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
12971         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
12972         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
12973
12974 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
12975
12976         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
12977         __attribute_used__ to __attribute__ ((unused)).
12978
12979 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12980
12981         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
12982         powerpc mpa.c.
12983         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
12984         comment formatting.
12985         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
12986
12987 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
12988
12989         [BZ #13550]
12990         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
12991         Remove macro.
12992         (ENTER): Remove both macro definitions.
12993         (LEAVE): Likewise.
12994         (CHECK_BOUNDS_LOW): Likewise.
12995         (CHECK_BOUNDS_HIGH): Likewise.
12996         (CHECK_BOUNDS_BOTH): Likewise.
12997         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
12998         (RETURN_BOUNDED_POINTER): Likewise.
12999         (RETURN_NULL_BOUNDED_POINTER): Likewise.
13000         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
13001         (POP_ERRNO_LOCATION_RETURN): Likewise.
13002         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
13003         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13004         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
13005         macros.
13006         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13007         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
13008         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
13009         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
13010         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
13011         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
13012         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
13013         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
13014         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
13015         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
13016         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
13017         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
13018         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13019         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
13020         removed macros.
13021         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13022         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
13023         macros.
13024         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13025         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
13026         * sysdeps/i386/i586/memset.S (memset): Likewise.
13027         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
13028         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13029         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
13030         macros.
13031         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13032         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
13033         Change uses of L(2) to L(out).
13034         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
13035         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
13036         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
13037         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13038         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
13039         removed macros.
13040         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13041         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
13042         macros.
13043         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13044         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
13045         (RETURN): Do not use macro LEAVE.
13046         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
13047         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
13048         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
13049         * sysdeps/i386/i686/memset.S (memset): Likewise.
13050         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
13051         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
13052         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
13053         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
13054         Likewise.
13055         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13056         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
13057         L(1_2) and L(1_3) into L(1).
13058         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13059         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
13060         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13061         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
13062         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
13063         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
13064         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
13065         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13066         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
13067         macros.
13068         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
13069         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13070         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
13071         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
13072         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
13073         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
13074         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
13075         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
13076         * sysdeps/i386/strcspn.S (strcspn): Likewise.
13077         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
13078         * sysdeps/i386/strrchr.S (strrchr): Likewise.
13079         * sysdeps/i386/strspn.S (strspn): Likewise.
13080         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
13081         conditional code.
13082         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13083         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
13084         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13085         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
13086         L(1_3) into L(1_1).
13087         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
13088         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13089         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
13090         macros.
13091         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13092
13093 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
13094
13095         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
13096         macro.
13097
13098 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13099
13100         * math/atest-exp.c (exp_mpn): Remove ROUND.
13101         * math/atest-exp2.c (exp_mpn): Likewise.
13102         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
13103
13104         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
13105         * stdlib/tst-tls-atexit-lib.c: Likewise.
13106         * stdlib/tst-tls-atexit.c: Likewise.
13107
13108 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13109
13110         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
13111         and __attribute_alloc_size__.
13112
13113 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13114
13115         * include/programs/xmalloc.h: Change __attribute_alloc_size to
13116         __attribute_alloc_size__.
13117         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
13118         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
13119
13120 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13121
13122         * include/programs/xmalloc.h: New file.
13123         * catgets/gencat.c: Include it.
13124         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
13125         * elf/pldd.c: Likewise.
13126         * iconv/iconv_charmap.c: Likewise.
13127         * iconv/iconvconfig.c: Likewise.
13128         * iconv/strtab.c: Likewise.
13129         * locale/programs/locale.c: Likewise.
13130         * locale/programs/localedef.h: Likewise.
13131         * locale/programs/simple-hash.c: Likewise.
13132         * nscd/nscd.h: Likewise.
13133         * nss/makedb.c: Likewise.
13134         * sysdeps/generic/ldconfig.h: Likewise.
13135
13136 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13137
13138         * Versions.def: Add GLIBC_2.18.
13139         * include/link.h (struct link_map): New member l_tls_dtor_count.
13140         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
13141         (__call_tls_dtors): Likewise.
13142         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
13143         __cxa_thread_atexit_impl.
13144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13145         Likewise.
13146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13147         Likewise.
13148         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
13149         Likewise.
13150         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
13151         Likewise.
13152         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13153         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
13154         Likewise.
13155         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
13156         Likewise.
13157         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13158         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13159         Likewise.
13160         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
13161         (tests): Add test case tst-tls-atexit.
13162         (modules-names): Add shared library for tst-tls-atexit.
13163         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
13164         (GLIBC_PRIVATE): Add __call_tls_dtors.
13165         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
13166         for libstdc++.
13167         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
13168         * stdlib/tst-tls-atexit.c: New test case.
13169         * stdlib/tst-tls-atexit-lib.c: New test case.
13170
13171         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
13172
13173         * elf/Versions (ld): Add _dl_find_dso_for_object.
13174         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
13175         * elf/dl-open.c (_dl_find_dso_for_object): New function.
13176         (dl_open_worker): Use _dl_find_dso_for_object.
13177         * elf/dl-sym.c (do_sym): Likewise.
13178         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
13179
13180 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13181
13182         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
13183         Syntactic changes only.
13184         (_dl_runtime_profile): Do a tail-call to the resolved function.
13185
13186 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
13187
13188         [BZ #13550]
13189         * sysdeps/x86_64/bp-asm.h: Remove file.
13190         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
13191         <bp-sym.h> and <bp-asm.h>.
13192         (__clone): Do not use BP_SYM.
13193         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
13194         <bp-sym.h> and <bp-asm.h>.
13195         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13196         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
13197         "bp-asm.h".
13198         (_setjmp): Do not use BP_SYM.
13199         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
13200         "bp-asm.h".
13201         (setjmp): Do not use BP_SYM.
13202         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
13203         libc_hidden_def.
13204         (mempcpy): Do not use BP_SYM in weak_alias.
13205         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
13206         "bp-asm.h".
13207         (strchr): Do not use BP_SYM.
13208         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
13209         "bp-asm.h".
13210         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
13211         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
13212         (_start): Do not use BP_SYM.
13213         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
13214         "bp-asm.h".
13215         (strcat): Do not use BP_SYM.
13216         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
13217         "bp-asm.h".
13218         (STRCMP): Do not use BP_SYM.
13219         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
13220         "bp-asm.h".
13221         (STRCPY): Do not use BP_SYM.
13222         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
13223         "bp-asm.h".
13224         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
13225         "bp-asm.h".
13226         (FUNCTION): Do not use BP_SYM.
13227         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
13228         weak_alias.
13229         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
13230
13231 2013-02-17  Andreas Jaeger  <aj@suse.de>
13232
13233         * time/Versions: Sort entries.
13234         * string/Versions: Likewise.
13235         * resolv/Versions: Likewise.
13236         * posix/Versions: Likewise.
13237         * iconv/Versions: Likewise.
13238         * elf/Versions: Likewise.
13239         * wcsmbs/Versions: Likewise.
13240
13241 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13242
13243         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
13244         loop termination condition.
13245
13246         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
13247         variable to calculate EZ.
13248         (__sqr): Likewise.
13249
13250         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
13251         the lower precision input.
13252
13253 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
13254
13255         [BZ #13550]
13256         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
13257         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
13258         (run-via-rtld-prefix): Do not handle %-bp tests.
13259         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
13260         (all-object-suffixes): Remove .ob.
13261         (bppfx): Remove variable.
13262         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
13263         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
13264         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
13265         [$(build-bounded) = yes] (libtype.ob): Likewise.
13266         * Makerules (elide-routines.ob): Remove variable.
13267         (do-tests-clean): Do not handle *-bp.out.
13268         (common-mostlyclean): Do not handle *-bp and *-bp.out.
13269         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
13270         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
13271         (tests): Do not include $(tests-bp.out).
13272         (xtests): Do not include $(xtests-bp.out).
13273         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
13274         [$(build-bounded) = yes] ($(addprefix
13275         $(objpfx),$(binaries-bounded))): Remove rule.
13276         ($(objpfx)%-bp.out): Remove rule.
13277         * config.make.in (build-bounded): Remove variable.
13278         * crypt/Makefile [$(build-bounded) = yes]
13279         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
13280         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
13281         append to variable.
13282         [$(build-bounded) = yes] (install-lib): Likewise.
13283         [$(build-bounded) = yes] (generated): Likewise.
13284         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
13285         Remove rule.
13286         * intl/Makefile [$(build-bounded) = yes]
13287         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
13288         * math/Makefile [$(build-bounded) = yes]
13289         ($(tests:%=$(objpfx)%-bp): Likewise.
13290         * misc/Makefile [$(build-bounded) = yes]
13291         ($(objpfx)tst-tsearch-bp): Likewise.
13292         * nptl/Makeconfig (bounded-thread-library): Remove variable.
13293         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
13294         Remove dependency.
13295         * string/Makefile (o-objects.ob): Remove variable.
13296         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
13297         (CFLAGS-.ob): Remove variable.
13298         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
13299         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
13300         both definitions of variable.
13301         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
13302         (ASFLAGS-.ob): Remove variable.
13303
13304 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
13305
13306         [BZ #13550]
13307         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
13308         Remove __BOUNDED_POINTERS__ from condition.
13309         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
13310         * string/bits/string2.h [!__NO_STRING_INLINES &&
13311         !__BOUNDED_POINTERS__]: Likewise.
13312         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
13313         Likewise.
13314         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
13315         Remove conditional code.
13316         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
13317         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
13318         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
13319         condition.
13320
13321         [BZ #13550]
13322         * csu/libc-start.c: Do not include <bp-sym.h>.
13323         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
13324         * elf/dl-open.c: Do not include <bp-sym.h>.
13325         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
13326         * math/fegetenv.c: Do not include <bp-sym.h>.
13327         (fegetenv): Do not use BP_SYM in versioned symbols.
13328         * nptl/sysdeps/pthread/bits/libc-lockP.h
13329         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
13330         <bp-sym.h>.
13331         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13332         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
13333         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13334         (__pthread_mutex_destroy): Likewise.
13335         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13336         (__pthread_mutex_lock): Likewise.
13337         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13338         (__pthread_mutex_trylock): Likewise.
13339         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13340         (__pthread_mutex_unlock): Likewise.
13341         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13342         (__pthread_mutexattr_init): Likewise.
13343         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13344         (__pthread_mutexattr_destroy): Likewise.
13345         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13346         (__pthread_mutexattr_settype): Likewise.
13347         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13348         (__pthread_rwlock_init): Likewise.
13349         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13350         (__pthread_rwlock_destroy): Likewise.
13351         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13352         (__pthread_rwlock_rdlock): Likewise.
13353         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13354         (__pthread_rwlock_tryrdlock): Likewise.
13355         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13356         (__pthread_rwlock_wrlock): Likewise.
13357         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13358         (__pthread_rwlock_trywrlock): Likewise.
13359         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13360         (__pthread_rwlock_unlock): Likewise.
13361         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13362         (__pthread_key_create): Likewise.
13363         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13364         (__pthread_setspecific): Likewise.
13365         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13366         (__pthread_getspecific): Likewise.
13367         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
13368         Likewise.
13369         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13370         (_pthread_cleanup_push_defer): Likewise.
13371         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13372         (_pthread_cleanup_pop_restore): Likewise.
13373         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13374         (pthread_setcancelstate): Likewise.
13375         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
13376         <bp-sym.h>.
13377         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
13378         (memchr): Do not use BP_SYM in weak_alias.
13379         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
13380         (fegetenv): Do not use BP_SYM in versioned symbols.
13381         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
13382         (fesetenv): Do not use BP_SYM in versioned symbols.
13383         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13384         (feupdateenv): Do not use BP_SYM in versioned symbols.
13385         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13386         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13387         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
13388         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
13389         (open64): Do not use BP_SYM in weak_alias.
13390         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
13391         (fegetenv): Do not use BP_SYM in versioned symbols.
13392         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
13393         (fesetenv): Do not use BP_SYM in versioned symbols.
13394         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13395         (feupdateenv): Do not use BP_SYM in versioned symbols.
13396         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
13397         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
13398         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
13399         (feraiseexcept): Do not use BP_SYM in versioned symbols.
13400         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13401         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13402         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
13403         <bp-sym.h>.
13404         (__libc_start_main): Do not use BP_SYM.
13405
13406 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13407
13408         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
13409         redundant return line.
13410         (norm): Likewise.
13411         (denorm): Likewise.
13412         (dbl_mp): Likewise.
13413         (sub_magnitudes): Likewise.
13414         (__add): Likewise.
13415         (__sub): Likewise.
13416         (__mul): Likewise.
13417         (__inv): Likewise.
13418         (__dvd): Likewise.
13419         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
13420         (norm): Likewise.
13421         (denorm): Likewise.
13422         (dbl_mp): Likewise.
13423         (sub_magnitudes): Likewise.
13424         (__add): Likewise.
13425         (__sub): Likewise.
13426         (__mul): Likewise.
13427         (__inv): Likewise.
13428         (__dvd): Likewise.
13429
13430         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
13431         instead of __mul.
13432         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13433         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
13434         (cc32): Likewise.
13435
13436         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
13437         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
13438         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
13439         of __mul for squares.
13440         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
13441         function
13442         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
13443         Likewise.
13444         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
13445         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13446
13447 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
13448
13449         [BZ #13550]
13450         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
13451         code.
13452         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
13453         prototype or function definition.  Rename ubp_* variables and
13454         parameters.  Remove argv definitions conditional on
13455         [__BOUNDED_POINTERS__].
13456         * debug/backtrace.c (__backtrace): Do not use __unbounded.
13457         * elf/dl-runtime.c (_dl_fixup): Likewise.
13458         * include/set-hooks.h (RUN_HOOK): Likewise.
13459         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
13460         definition.
13461         * string/strcpy.c (strcpy): Do not use __unbounded.
13462         * sysdeps/generic/frame.h (struct layout): Likewise.
13463         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
13464         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
13465         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
13466         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
13467         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
13468         (__backtrace): Likewise.
13469         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
13470         use __ptrvalue.
13471         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
13472         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
13473         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
13474         Likewise.
13475         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
13476         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
13477         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
13478         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13479         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
13480         Do not use __unbounded.
13481         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
13482         Rename __unboundedrlimits parameter to rlimits in prototype.
13483         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
13484         Do not use __unbounded.
13485         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
13486         not use __ptrvalue.
13487         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13488         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
13489         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13490         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
13491         __ptrvalue or __unbounded.
13492         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
13493         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
13494         use __unbounded.
13495         (__new_msgctl): Do not use __ptrvalue.
13496         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
13497         __unbounded.
13498         (__libc_msgrcv): Do not use __ptrvalue.
13499         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
13500         startup_info): Do not use __unbounded.
13501         (__libc_start_main): Likewise.  Rename ubp_* variables and
13502         parameters.  Remove argv definitions conditional on
13503         [__BOUNDED_POINTERS__].
13504         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
13505         __ptrvalue.
13506         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
13507         use __unbounded.
13508         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
13509         or __ptrvalue.
13510         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
13511         use __unbounded.
13512         (__new_shmctl): Do not use __ptrvalue.
13513         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
13514         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
13515         Likewise.
13516         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
13517         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
13518         (__libc_sigaction): Likewise.
13519         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
13520         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
13521         Likewise.
13522         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13523
13524 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
13525
13526         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
13527
13528         * string/mempcpy.c: Implement by calling memcpy.
13529
13530 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13531
13532         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
13533
13534         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
13535         evaluation.
13536
13537         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
13538         values in the mantissa.
13539
13540         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
13541         minimize writes to Z.
13542         (sub_magnitudes): Simplify code a bit.
13543
13544 2013-02-12  Roland McGrath  <roland@hack.frob.com>
13545
13546         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
13547         from the message.  The linker prefixes all warnings with that already.
13548
13549 2013-02-12  Andreas Schwab  <schwab@suse.de>
13550
13551         [BZ #15078]
13552         * posix/regexec.c (extend_buffers): Add parameter min_len.
13553         (check_matching): Pass minimum needed length.
13554         (clean_state_log_if_needed): Likewise.
13555         (get_subexp): Likewise.
13556         * posix/Makefile (tests): Add bug-regex34.
13557         (bug-regex34-ENV): Define.
13558         * posix/bug-regex34.c: New file.
13559
13560         [BZ #11561]
13561         * posix/regcomp.c (parse_bracket_exp): When looking up collating
13562         elements compare against the byte sequence of it, not its name.
13563         * posix/Makefile (tests): Add bug-regex35.
13564         (bug-regex35-ENV): Define.
13565         * posix/bug-regex35.c: New file.
13566
13567 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13568
13569         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
13570         comment.
13571         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
13572         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
13573         (CHECK_EOL): Add undef.
13574
13575 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
13576
13577         * bits/stdlib-bsearch.h: New file.
13578         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
13579         * stdlib/stdlib.h: Likewise.
13580
13581 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13582
13583         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
13584         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
13585         declaration.
13586         * manual/search.texi (Array Search Function): Add missing const in
13587         lfind prototype.
13588         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
13589         declaration to use rlim_t.
13590         (Basic Scheduling Functions): Remove erroneous const from
13591         sched_getparam prototype.  Remove erroneous * from
13592         sched_get_priority_max and sched_get_priority_min prototypes.
13593         (Resource Usage): Fix summary @comment on vtimes to refer to
13594         sys/vtimes.h rather than vtimes.h.
13595         Add missing *s in vtimes prototype.
13596         (Limits on Resources): Fix ulimit prototype to return long int.
13597         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
13598         prototypes to use long int rather than double.
13599         (BSD Random): Fix initstate and setstate to use char *, not void *.
13600         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
13601         prototype to make second argument 'struct aiocb64 *const[]'.
13602         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
13603         (Status of AIO Operations): Remove erroneous const in aio_return and
13604         aio_return64 prototypes.
13605         (Synchronizing I/O): Fix sync prototype to return void.
13606         * manual/startup.texi (Suboptions): Remove an erroneous const in
13607         getsubopt prototype.
13608         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
13609         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
13610         use size_t rather than int.
13611         (Scanning All Users): Likewise for getpwent_r.
13612         (Setting Groups): Add missing const to setgroups prototype.
13613         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
13614         * manual/socket.texi (Host Names): Fix gethostbyaddr and
13615         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
13616         'const void *' rather than 'const char *'.
13617         (Host Address Functions): Likewise for inet_ntop.
13618         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
13619         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
13620         ssize_t for return value.
13621         (Sending Data): Likewise for send, sendto, sendmsg.
13622         (Socket Option Functions): Add a missing const in setsockopt prototype.
13623         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
13624         use wchar_t for the argument.
13625         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
13626         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
13627         take no arguments.
13628         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
13629         double/float/long double for second argument.
13630         Fix return types of significand, significandf, significandl.
13631         * manual/filesys.texi (Setting Permissions): Use mode_t for second
13632         argument in fchmod prototype.
13633         (File Owner): Use uid_t and gid_t in fchown prototype.
13634         (File Times): Add const to utimes, futimes, and lutimes prototypes.
13635         (Making Special Files): Use mode_t and dev_t in mknod prototype.
13636         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
13637         use 'const struct dirent **' as argument types to CMP function pointer
13638         argument.
13639         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
13640         (File Times): Fix summary magic @comment for struct utimbuf and utime
13641         to refer to utime.h, not time.h.
13642         * manual/string.texi (Argz Functions): Add missing const in
13643         argz_extract and argz_next prototypes.
13644         (Finding Tokens in a String): Likewise for basename.
13645         (String/Array Comparison): Fix typo in wcscasecmp prototype.
13646         (Copying and Concatenation): Fix typo in wmemmove prototype.
13647         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
13648         (Signal Stack): Remove erroneous const in sigstack prototype.
13649         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
13650         prototype.
13651         (Simple Calendar Time): Likewise for stime.
13652         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
13653         prototype.
13654         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
13655         say sys/sysctl.h instead.
13656         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
13657         and vsyslog prototypes.
13658
13659 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13660
13661         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
13662         Remove.
13663
13664 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13665
13666         * misc/sys/mman.h: Fix typo in mremap comment.
13667
13668 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13669
13670         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
13671         the '\0' terminator.
13672
13673 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13674
13675         [BZ #13550]
13676         * debug/segfault.c: Don't include <bp-checks.h>.
13677         * sysdeps/generic/bp-checks.h: Remove file.
13678         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
13679         (__GETDENTS): Don't use CHECK_N.
13680         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
13681         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
13682         (__getgroups): Don't use CHECK_N.
13683         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
13684         (setgroups): Don't use CHECK_N.
13685         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
13686         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13687         (__libc_msgrcv): Don't use CHECK_N.
13688         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
13689         (__libc_msgsnd): Don't use CHECK_N.
13690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
13691         <bp-checks.h>.
13692         (__libc_pread): Don't use CHECK_N.
13693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
13694         include <bp-checks.h>.
13695         (__libc_pread64): Don't use CHECK_N.
13696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
13697         include <bp-checks.h>.
13698         (__libc_pwrite): Don't use CHECK_N.
13699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
13700         include <bp-checks.h>.
13701         (__libc_pwrite64): Don't use CHECK_N.
13702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
13703         <bp-checks.h>.
13704         (__libc_pread): Don't use CHECK_N.
13705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
13706         include <bp-checks.h>.
13707         (__libc_pread64): Don't use CHECK_N.
13708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
13709         include <bp-checks.h>.
13710         (__libc_pwrite): Don't use CHECK_N.
13711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
13712         include <bp-checks.h>.
13713         (__libc_pwrite64): Don't use CHECK_N.
13714         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
13715         (do_pread): Don't use CHECK_N.
13716         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
13717         (do_pread64): Don't use CHECK_N.
13718         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
13719         (do_pwrite): Don't use CHECK_N.
13720         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
13721         (do_pwrite64): Don't use CHECK_N.
13722         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
13723         (__libc_readv): Don't use CHECK_N.
13724         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
13725         (semop): Don't use CHECK_N.
13726         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
13727         <bp-checks.h>.
13728         (semtimedop): Don't use CHECK_N.
13729         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
13730         (__libc_pread): Don't use CHECK_N.
13731         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
13732         <bp-checks.h>.
13733         (__libc_pread64): Don't use CHECK_N.
13734         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
13735         <bp-checks.h>.
13736         (__libc_pwrite): Don't use CHECK_N.
13737         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
13738         <bp-checks.h>.
13739         (__libc_pwrite64): Don't use CHECK_N.
13740         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
13741         <bp-checks.h>.
13742         (__libc_msgrcv): Don't use CHECK_N.
13743         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
13744         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
13745         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
13746         (__libc_writev): Don't use CHECK_N.
13747
13748 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13749
13750         * string/strcpy.c: Removed unused variable.
13751
13752         * Makeconfig (+sysdep-includes): Define with := rather than =.
13753         Use an existing include/ subdir of each sysdeps dir before it.
13754
13755 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13756
13757         * nscd/connection.c (register_traced_file): Comment function.
13758         [HAVE_INOTIFY] (union __inev): Define.
13759         [HAVE_INOTIFY] (inotify_check_files): New function.
13760         [HAVE_INOTIFY] (clear_db_cache): Likewise.
13761         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
13762         clear_db_cache.
13763         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
13764
13765 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13766
13767         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
13768         loaded if not already and that a failure is permanent.
13769
13770 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13771
13772         [BZ #15006]
13773         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
13774         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
13775
13776 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13777
13778         [BZ #13550]
13779         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
13780         (CHECK_1_NULL_OK): Likewise.
13781         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
13782         (__fxstat): Do not use CHECK_1.
13783         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
13784         <bp-checks.h>.
13785         (___fxstat64): Do not use CHECK_1.
13786         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
13787         <bp-checks.h>.
13788         (__fxstatat): Do not use CHECK_1.
13789         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
13790         <bp-checks.h>.
13791         (__fxstatat64): Do not use CHECK_1.
13792         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
13793         <bp-checks.h>.
13794         (__fxstat): Do not use CHECK_1.
13795         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
13796         <bp-checks.h>.
13797         (__fxstatat): Do not use CHECK_1.
13798         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13799         <bp-checks.h>.
13800         (__getresgid): Do not use CHECK_1.
13801         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13802         <bp-checks.h>.
13803         (__getresuid): Do not use CHECK_1.
13804         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
13805         <bp-checks.h>.
13806         (__lxstat): Do not use CHECK_1.
13807         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13808         <bp-checks.h>.
13809         (__old_msgctl): Do not use CHECK_1.
13810         (__new_msgctl): Likewise.
13811         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
13812         <bp-checks.h>.
13813         (__new_setrlimit): Do not use CHECK_1.
13814         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13815         <bp-checks.h>.
13816         (__old_shmctl): Do not use CHECK_1.
13817         (__new_shmctl): Likewise.
13818         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
13819         <bp-checks.h>.
13820         (__xstat): Do not use CHECK_1.
13821         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
13822         (__lxstat): Do not use CHECK_1.
13823         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
13824         <bp-checks.h>.
13825         (___lxstat64): Do not use CHECK_1.
13826         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
13827         (__old_msgctl): Do not use CHECK_1.
13828         (__new_msgctl): Likewise.
13829         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
13830         <bp-checks.h>.
13831         (__gettimeofday): Do not use CHECK_1.
13832         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
13833         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
13834         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
13835         <bp-checks.h>.
13836         (__gettimeofday): Do not use CHECK_1.
13837         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
13838         (__old_shmctl): Do not use CHECK_1_NULL_OK.
13839         (__new_shmctl): Do not use CHECK_1.
13840         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
13841         <bp-checks.h>.
13842         (do_sigtimedwait): Do not use CHECK_1.
13843         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
13844         <bp-checks.h>.
13845         (do_sigwaitinfo): Do not use CHECK_1.
13846         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
13847         <bp-checks.h>.
13848         (msgctl): Do not use CHECK_1.
13849         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
13850         <bp-checks.h>.
13851         (shmctl): Do not use CHECK_1.
13852         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
13853         (ustat): Do not use CHECK_1.
13854         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
13855         <bp-checks.h>.
13856         (__fxstat): Do not use CHECK_1.
13857         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
13858         <bp-checks.h>.
13859         (__fxstatat): Do not use CHECK_1.
13860         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
13861         <bp-checks.h>.
13862         (__lxstat): Do not use CHECK_1.
13863         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
13864         <bp-checks.h>.
13865         (__xstat): Do not use CHECK_1.
13866         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
13867         (__xstat): Do not use CHECK_1.
13868         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
13869         (___xstat64): Do not use CHECK_1.
13870
13871         [BZ #13550]
13872         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
13873         definitions.
13874         (CHECK_BOUNDS_HIGH): Likewise.
13875         * string/strcpy.c: Do not include <bp-checks.h>.
13876         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
13877
13878 2013-02-07  Roland McGrath  <roland@hack.frob.com>
13879
13880         * nscd/nscd-client.h (__nscd_drop_map_ref):
13881         Add __attribute__ ((unused)).
13882         * nis/nss-nisplus.h (niserr2nss): Likewise.
13883
13884         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
13885         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
13886
13887         * csu/libc-tls.c (init_static_tls, init_slotinfo):
13888         Remove inline keyword.
13889         * include/rounding-mode.h (round_away): Likewise.
13890         * libio/wfileops.c (adjust_wide_data): Likewise.
13891         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
13892         (__m128i_strloadu_tolower): Likewise.
13893         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
13894         (__m128i_strloadu_tolower): Likewise.
13895         * time/mktime.c (ydhms_diff): Likewise.
13896         * locale/elem-hash.h (elem_hash): Likewise.
13897         * locale/setlocale.c (setdata): Likewise.
13898         * posix/regex_internal.h (re_string_char_size_at): Likewise.
13899         (re_string_wchar_at): Likewise.
13900         (bitset_not, bitset_merge, bitset_mask): Likewise.
13901         [!(__GNUC__ > 3)] (inline): Remove macro.
13902         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
13903         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
13904         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
13905         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
13906         * string/memcmp.c (memcmp_bytes): Likewise.
13907         * locale/programs/locarchive.c (compute_hashval): Likewise.
13908         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
13909         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
13910         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
13911         * nss/getent.c (print_rpc, print_protocols): Likewise.
13912         (print_passwd, print_group, print_aliases): Likewise.
13913         * nis/nss-nisplus.h (niserr2nss): Likewise.
13914         * nscd/connections.c (restart_p): Likewise.
13915         Change return type to bool.
13916
13917 2013-02-05  Roland McGrath  <roland@hack.frob.com>
13918
13919         * Makeconfig (all-Depend-files): Add existing
13920         $(sorted-subdirs:=/Depend) files.
13921         (all-subdirs): Remove nss.
13922         * sysdeps/unix/inet/Subdirs: Add it here instead.
13923         * hesiod/Depend: New file.
13924
13925         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
13926         instead of calling alloca.
13927
13928         * io/lseek.c (__lseek): Rename to __libc_lseek.
13929         Define __lseek as an alias.
13930
13931         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
13932
13933 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
13934
13935         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
13936         else clause and remove check for non-standard endianness.
13937
13938 2013-02-04  David S. Miller  <davem@davemloft.net>
13939
13940         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13941
13942 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
13943
13944         [BZ #13550]
13945         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
13946         (__ubp_memchr): Remove prototype.
13947         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
13948         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13949         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
13950         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
13951         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
13952         Remove alias.
13953         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
13954         (__ubp_memchr): Likewise.
13955         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
13956         (__ubp_memchr): Likewise.
13957         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
13958         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
13959         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
13960         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
13961         CHECK_STRING.
13962         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
13963         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
13964         (__getcwd): Do not use CHECK_STRING.
13965         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13966         <bp-checks.h>.
13967         (__real_chown): Do not use CHECK_STRING.
13968         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
13969         <bp-checks.h>.
13970         (fchownat): Do not use CHECK_STRING.
13971         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
13972         CHECK_STRING.
13973         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13974         <bp-checks.h>.
13975         (__lchown): Do not use CHECK_STRING.
13976         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13977         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13978         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13979         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
13980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13981         include <bp-checks.h>.
13982         (truncate64): Do not use CHECK_STRING.
13983         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13984         <bp-checks.h>.
13985         (__real_chown): Do not use CHECK_STRING.
13986         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13987         <bp-checks.h>.
13988         (__lchown): Do not use CHECK_STRING.
13989         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13990         <bp-checks.h>.
13991         (__chown): Do not use CHECK_STRING.
13992         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
13993         <bp-checks.h>.
13994         (truncate64): Do not use CHECK_STRING.
13995         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
13996         Likewise.
13997         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
13998         (__xmknod): Do not use CHECK_STRING.
13999         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
14000         <bp-checks.h>.
14001         (__xmknodat): Do not use CHECK_STRING.
14002         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
14003         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
14004
14005 2013-02-04  Andreas Schwab  <schwab@suse.de>
14006
14007         [BZ #14142]
14008         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
14009         * include/netdb.h: Likewise for h_errno.
14010         * elf/tst-stackguard1.c: Include <tls.h>.
14011
14012 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
14013
14014         * elf/link.h (struct link_map): Extend the l_addr comment.
14015         * include/link.h (struct link_map): Likewise.
14016
14017 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
14018
14019         [BZ #13550]
14020         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
14021         (BOUNDED_1): Remove macro.
14022         * debug/backtrace.c: Don't include <bp-checks.h>.
14023         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
14024         (__backtrace): Likewise.
14025         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
14026         <bp-checks.h>.
14027         (__backtrace): Don't use BOUNDED_1.
14028         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
14029         <bp-checks.h>.
14030         (__backtrace): Don't use BOUNDED_1.
14031         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
14032         (__backtrace): Don't use BOUNDED_1.
14033         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
14034         (shmat): Don't use BOUNDED_N.
14035
14036 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
14037
14038         [BZ #13550]
14039         * sysdeps/generic/bp-start.h: Remove file.
14040         * csu/libc-start.c: Don't include <bp-start.h>.
14041         (LIBC_START_MAIN): Set up __environ directly instead of using
14042         INIT_ARGV_and_ENVIRON.
14043         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
14044         <bp-start.h>.
14045
14046         [BZ #13550]
14047         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
14048         definitions.
14049         (CHECK_FCNTL): Likewise.
14050         (CHECK_N_PAGES): Likewise.
14051
14052         [BZ #13550]
14053         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
14054         definitions.
14055         (CHECK_SIGSET_NULL_OK): Likewise.
14056         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
14057         <bp-checks.h>.
14058         (sigpending): Don't use CHECK_SIGSET.
14059         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
14060         <bp-checks.h>.
14061         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14062         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
14063         <bp-checks.h>.
14064         (do_sigsuspend): Don't use CHECK_SIGSET.
14065         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
14066         use CHECK_SIGSET.
14067         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
14068         (do_sigwait): Don't use CHECK_SIGSET.
14069         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
14070         use CHECK_SIGSET.
14071         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
14072         include <bp-checks.h>.
14073         (sigpending): Don't use CHECK_SIGSET.
14074         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
14075         include <bp-checks.h>.
14076         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14077         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
14078         <bp-checks.h>.
14079         (sigpending): Don't use CHECK_SIGSET.
14080         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
14081         <bp-checks.h>.
14082         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14083
14084         [BZ #13550]
14085         * sysdeps/generic/bp-semctl.h: Remove file.
14086         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
14087         <bp-checks.h> and <bp-semctl.h>.
14088         (__old_semctl): Don't use CHECK_SEMCTL.
14089         (__new_semctl): Likewise.
14090         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
14091         and <bp-semctl.h>.
14092         (__old_semctl): Don't use CHECK_SEMCTL.
14093         (__new_semctl): Likewise.
14094         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
14095         <bp-checks.h> and <bp-semctl.h>.
14096         (__old_semctl): Don't use CHECK_SEMCTL.
14097         (__new_semctl): Likewise.
14098         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
14099         <bp-checks.h> and <bp-semctl.h>.
14100         (semctl): Don't use CHECK_SEMCTL.
14101
14102         [BZ #13550]
14103         * Makerules (elide-bp-thunks): Remove variable.
14104         (elide-routines.oS): Don't use $(elide-bp-thunks).
14105         (elide-routines.os): Likewise.
14106         (elide-routines.o): Likewise.
14107         (elide-routines.op): Likewise.
14108         (elide-routines.og): Likewise.
14109         (objects): Don't use $(bp-thunks).
14110         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
14111         include.
14112         (common-generated): Do not add s-proto-bp.d.
14113         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
14114         (int): Likewise.
14115         (typ): Likewise.
14116         Do not generate makefile rules for bounded-pointer thunks.
14117         * sysdeps/generic/bp-thunks.h: Remove file.
14118         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
14119         * sysdeps/unix/s-proto-bp.S: Likewise.
14120
14121         [BZ #15062]
14122         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
14123         parts of result separately when argument is not close to line from
14124         -i to i and one part of argument is small.
14125         * math/k_casinhf.c (__kernel_casinhf): Likewise.
14126         * math/k_casinhl.c (__kernel_casinhl): Likewise.
14127         * math/libm-test.inc (cacos_test): Add more tests.
14128         (casin_test): Likewise.
14129         (casinh_test): Likewise.
14130         * sysdeps/i386/fpu/libm-test-ulps: Update.
14131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14132
14133 2013-01-31  David S. Miller  <davem@davemloft.net>
14134
14135         * po/de.po: Update from translation team.
14136
14137 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
14138
14139         * time/tzfile.c: Include stdint.h for SIZE_MAX.
14140
14141 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
14142
14143         * configure.in (_AC_PROG_CC_C89): New definition.
14144         * configure: Regenerate.
14145
14146         * configure.in (AC_PROG_CPP): New definition.
14147         * configure: Regenerate.
14148
14149 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14150
14151         * debug/tst-backtrace.h: New file.
14152         * debug/tst-backtrace2.c: Include tst-backtrace.h.
14153         (ret): Remove variable.
14154         (x): Likewise.
14155         (FAIL): Remove macro.
14156         (NO_INLINE): Likewise.
14157         (fn1): Use match function instead of strstr.
14158         * debug/tst-backtrace3.c: Include tst-backtrace.h.
14159         (ret): Remove variable.
14160         (x): Likewise.
14161         (FAIL): Remove macro.
14162         (NO_INLINE): Likewise.
14163         (fn): Use match function instead of strstr.
14164         * debug/tst-backtrace4.c: Include tst-backtrace.h.
14165         (ret): Remove variable.
14166         (x): Likewise.
14167         (FAIL): Remove macro.
14168         (NO_INLINE): Likewise.
14169         (handle_signal): Use match function instead of strstr.
14170         * debug/tst-backtrace5.c: Include tst-backtrace.h.
14171         (ret): Remove variable.
14172         (x): Likewise.
14173         (FAIL): Remove macro.
14174         (NO_INLINE): Likewise.
14175         (handle_signal): Use match function instead of strstr.
14176
14177 2013-01-23  Roland McGrath  <roland@hack.frob.com>
14178
14179         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
14180
14181 2013-01-23  David S. Miller  <davem@davemloft.net>
14182
14183         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
14184         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
14185         argument of CAS if possible.
14186         * sysdeps/sparc/sparc64/bits/atomic.h
14187         (__arch_compare_and_exchange_val_32_acq): Likewise.
14188         (__arch_compare_and_exchange_val_64_acq): Likewise.
14189
14190 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
14191
14192         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
14193         * sysdeps/posix/ulimit.c: ... this.
14194         Include <limits.h>.
14195         * sysdeps/unix/bsd/ulimit.c: Remove file.
14196
14197 2013-01-23  Adam Conrad  <adconrad@0c3.net>
14198
14199         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
14200         (LDFLAGS-tst-array5): Likewise.
14201
14202 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14203
14204         [BZ #15036]
14205         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
14206         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
14207         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
14208         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
14209
14210 2013-01-21  David S. Miller  <davem@davemloft.net>
14211
14212         * sysdeps/sparc/backtrace.c: New file.
14213         * sysdeps/sparc/sparc32/backtrace.h: New file.
14214         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
14215         * sysdeps/sparc/sparc64/backtrace.h: New file.
14216         * sysdeps/sparc/sparc64/backtrace.c: Delete.
14217         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
14218         -funwind-tables.
14219
14220 2013-01-21  Andreas Schwab  <schwab@suse.de>
14221
14222         [BZ #15020]
14223         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
14224         closed its stdout.
14225
14226 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
14227
14228         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
14229         "mpa2.h".
14230         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14231
14232 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
14233             Mark Mitchell  <mark@codesourcery.com>
14234             Tom de Vries  <tom@codesourcery.com>
14235             Paul Pluzhnikov  <ppluzhnikov@google.com>
14236
14237         * debug/tst-backtrace2.c: New file.
14238         * debug/tst-backtrace3.c: Likewise.
14239         * debug/tst-backtrace4.c: Likewise.
14240         * debug/tst-backtrace5.c: Likewise.
14241         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
14242         (CFLAGS-tst-backtrace3.c): Likewise.
14243         (CFLAGS-tst-backtrace4.c): Likewise.
14244         (CFLAGS-tst-backtrace5.c): Likewise.
14245         (LDFLAGS-tst-backtrace2): Likewise.
14246         (LDFLAGS-tst-backtrace3): Likewise.
14247         (LDFLAGS-tst-backtrace4): Likewise.
14248         (LDFLAGS-tst-backtrace5): Likewise.
14249         (tests): Add new tests tst-backtrace2, tst-backtrace3,
14250         tst-backtrace4 and tst-backtrace5.
14251
14252 2013-01-18  Anton Blanchard  <anton@samba.org>
14253             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14254
14255         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
14256         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
14257         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
14258         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
14259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14260         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
14261         "+r" and remove output regs list as redundant.  Add explicit inline
14262         asm to specify register of return val to work around compiler codegen
14263         bug.  Remove (int) cast on return value.  Add return type parameter to
14264         use in macro so that this macro does not truncate return value for
14265         64-bit values.
14266         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
14267         pass to INTERNAL_VSYSCALL_NCS.
14268         (INLINE_VSYSCALL): Add 'long int' as return type to
14269         INTERNAL_VSYSCALL_NCS macro invocation.
14270         (INTERNAL_VSYSCALL): Add 'long int' as return type to
14271         INTERNAL_VSYSCALL_NCS macro invocation.
14272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14273
14274 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14275
14276         [BZ #14496]
14277         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
14278         Fix application of SIMD FP exception mask.
14279
14280         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
14281         mp_no from a power of two.
14282         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
14283         __mpexp_twomm1.  Use __pow_mp.
14284
14285         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
14286         multiplication.
14287
14288 2013-01-17  David S. Miller  <davem@davemloft.net>
14289
14290         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14291
14292 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14293
14294         [BZ #15023]
14295         * include/complex.h: Condition contents on [!_COMPLEX_H].
14296         (__kernel_casinhf): New prototype.
14297         (__kernel_casinh): Likewise.
14298         (__kernel_casinhl): Likewise.
14299         * math/Makefile (libm_calls): Add k_casinh.
14300         * math/k_casinh.c: New file.
14301         * math/k_casinhf.c: Likewise.
14302         * math/k_casinhl.c: Likewise.
14303         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
14304         finite nonzero arguments.
14305         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
14306         finite nonzero arguments.
14307         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
14308         finite nonzero arguments.
14309         * math/s_casinh.c: Do not include <float.h>.
14310         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
14311         * math/s_casinhf.c: Do not include <float.h>.
14312         (__casinhf): Move code for finite nonzero arguments to
14313         k_casinhf.c.
14314         * math/s_casinhl.c: Do not include <float.h>.
14315         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
14316         redefine.
14317         (__casinhl): Move code for finite nonzero arguments to
14318         k_casinhl.c.
14319         * math/libm-test.inc (cacos_test): Add more tests.
14320         * sysdeps/i386/fpu/libm-test-ulps: Update.
14321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14322
14323 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
14324
14325         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
14326         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
14327         [!HAVE_MREMAP]: Remove [defined linux] case.
14328         * malloc/arena.c: Do not include <malloc-sysdep.h>.
14329
14330 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
14331
14332         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
14333
14334 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14335
14336         * elf/elf.h (R_386_SIZE32): New relocation.
14337         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
14338         R_386_SIZE32.
14339         (elf_machine_rela): Likewise.
14340         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14341         R_X86_64_SIZE64 and R_X86_64_SIZE32.
14342
14343 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14344
14345         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
14346         (FP_FAST_FMA): Do not define.
14347         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
14348         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
14349         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
14350         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
14351         !_SOFT_FLOAT]: Likewise.
14352         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
14353         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
14354         value.
14355         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
14356         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
14357         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
14358         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
14359         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
14360         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
14361         file.
14362
14363 2013-01-16  Andreas Schwab  <schwab@suse.de>
14364
14365         [BZ #14327]
14366         * include/stdlib.h (__mktemp): Add declaration.
14367         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
14368         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
14369
14370 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14371
14372         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
14373         definitions.
14374         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14375         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
14376         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
14377         definitions here.
14378         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
14379         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
14380         definitions.
14381         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
14382         and ONE.
14383         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
14384         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
14385         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
14386         definitions.
14387         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
14388         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
14389         definitions.
14390         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14391
14392         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
14393
14394 2013-01-15  David S. Miller  <davem@davemloft.net>
14395
14396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14397         trunc{,f} to libm-sysdep_routes.
14398         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
14400         file.
14401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
14402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
14403         file.
14404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
14405         file.
14406         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
14407         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
14408         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
14409         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
14410         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
14411         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
14412         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
14413         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
14414
14415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14416         nearbyint{,f} to libm-sysdep_routes.
14417         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
14419         New file.
14420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
14421         file.
14422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
14423         New file.
14424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
14425         file.
14426         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
14427         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
14428         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
14429         file.
14430         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
14431         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
14432         file.
14433         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
14434         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
14435         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
14436
14437         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
14438         libc_feholdexcept and libc_fesetenv.
14439
14440 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
14441
14442         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
14443
14444 2013-01-14  David S. Miller  <davem@davemloft.net>
14445
14446         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
14447         (SPARC_ASM_VIS2_IFUNC): Likewise.
14448         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
14449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
14450         use of 'siam' instruction.
14451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
14452         Likewise.
14453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
14454         Likewise.
14455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
14456         Likewise.
14457         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
14458         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
14459         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
14460         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
14461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
14462         file.
14463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
14464         file.
14465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
14466         file.
14467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
14468         file.
14469         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
14470         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
14471         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
14472         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
14473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
14474         new VIS2 routines.
14475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
14476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
14478         Likewise.
14479         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
14480         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
14481         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
14482         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
14483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
14484         routines to libm-sysdep_routines.
14485         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14486
14487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14488         fdim/fdimf to libm-sysdep_routines.
14489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
14490         file.
14491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
14492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
14493         file.
14494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
14495         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
14496         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
14497         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
14498         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
14499         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
14500         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
14501
14502 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14503
14504         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
14505         to optimize copies.
14506
14507         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
14508         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14509         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14510
14511         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
14512         local variable MPTWO.
14513         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
14514         Likewise.
14515
14516 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14517
14518         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
14519         GLOB_NOESCAPE.
14520
14521 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14522
14523         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
14524
14525 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14526
14527         * manual/pattern.texi (glob_t): Document gl_flags.
14528         (glob64_t): Likewise.
14529
14530 2013-01-11  David S. Miller  <davem@davemloft.net>
14531
14532         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
14533         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
14534         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
14535         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
14536         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
14537         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
14538         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
14539         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
14540         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
14541         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
14542         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
14543         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
14544         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
14545
14546         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14547         sparc V9 rather than using V8 code.
14548         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14549         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14550
14551         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14552         Move to...
14553         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
14554         Here.
14555
14556 2013-01-11  Roland McGrath  <roland@hack.frob.com>
14557
14558         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
14559         not in the main loop.
14560         * configure: Regenerated.
14561
14562 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
14563
14564         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
14565         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
14566         to just #else.
14567         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
14568         [!__GLIBC_HAVE_LONG_LONG] case.
14569         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
14570         condition to just #else.
14571         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
14572         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
14573         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
14574         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
14575         unconditional.
14576         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
14577         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14578         #elif condition to just #else.
14579         * sysdeps/unix/sysv/linux/sys/sysmacros.h
14580         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
14581         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14582         #elif condition to just #else.
14583
14584 2013-01-11  Steve Ellcey  <sellcey@mips.com>
14585
14586         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
14587         (EF_MIPS_ARCH_64): Fix value.
14588         (EF_MIPS_ARCH_32R2): New.
14589         (EF_MIPS_ARCH_64R2): New.
14590
14591 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14592
14593         * Makeconfig (+link-pie-before-libc): New.
14594         (+link-pie-after-libc): Likewise.
14595         (+link-pie-tests): Likewise.
14596         (+link-pie): Rewritten.
14597         (link-before-libc): Remove $(config-LDFLAGS).
14598         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
14599         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
14600         (config-LDFLAGS): Renamed to ...
14601         (rtld-LDFLAGS): This.
14602         (rtld-tests-LDFLAGS): New macro.
14603         (link-libc-rpath-link): Likewise.
14604         (link-libc-tests-rpath-link): Likewise.
14605         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
14606         (link-libc): Prepand $(link-libc-rpath-link).
14607         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
14608         (test-program-prefix): New macro.
14609         (test-via-rtld-prefix): Likewise.
14610         (test-program-cmd): Likewise.
14611         (host-test-program-cmd): Likewise.
14612         * Makefile ($(common-objpfx)testrun.sh): Replace
14613         $(run-program-prefix) with $(test-program-prefix).
14614         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
14615         $(rtld-LDFLAGS).
14616         ($(common-objpfx)shlib.lds): Likewise.
14617         (build-module-helper): Likewise.
14618         ($(common-objpfx)format.lds): Likewise.
14619         * Rules (binaries-pie-tests): New.
14620         (binaries-pie-notests): Likewise.
14621         (binaries-pie): Rewritten.
14622         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
14623         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
14624         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
14625         (make-test-out): Replace $(host-built-program-cmd) with
14626         $(host-test-program-cmd).
14627         * config.make.in (build-hardcoded-path-in-tests): New variable.
14628         * configure.in (--enable-hardcoded-path-in-tests): New configure
14629         option.
14630         (hardcoded_path_in_tests): New AC_SUBST.
14631         * configure: Regenerated.
14632         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
14633         $(built-program-cmd) with $(test-program-cmd).
14634         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
14635         (test_program_cmd): This.
14636         * elf/Makefile ($(objpfx)order.out): Run test with
14637         $(test-program-prefix).
14638         ($(objpfx)order2.out): Likewise.
14639         ($(objpfx)tst-initorder.out): Likewise.
14640         ($(objpfx)tst-initorder2.out): Likewise.
14641         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
14642         $(test-program-cmd).
14643         ($(objpfx)tst-array1-static.out): Likewise.
14644         ($(objpfx)tst-array2.out): Likewise.
14645         ($(objpfx)tst-array3.out): Likewise.
14646         ($(objpfx)tst-array4.out): Likewise.
14647         ($(objpfx)tst-array5.out): Likewise.
14648         ($(objpfx)tst-array5-static.out): Likewise.
14649         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
14650         $(test-program-cmd).
14651         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
14652         $(run-program-prefix) with $(test-program-prefix).
14653         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
14654         (test_program_prefix): This.
14655         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
14656         $(run-program-prefix) with $(test-program-prefix).
14657         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
14658         (test_program_prefix): This.
14659         * iconvdata/tst-tables.sh: Likewise.
14660         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
14661         $(run-program-prefix) with $(test-program-prefix).
14662         ($(objpfx)tst-translit.out): Likewise.
14663         ($(objpfx)tst-gettext2.out): Likewise.
14664         ($(objpfx)tst-gettext4.out): Likewise.
14665         ($(objpfx)tst-gettext6.out): Likewise.
14666         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
14667         (test_program_prefix): This.
14668         * intl/tst-gettext2.sh: Likewise.
14669         * intl/tst-gettext4.sh  Likewise.
14670         * intl/tst-gettext6.sh: Likewise.
14671         * intl/tst-translit.sh: Likewise.
14672         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
14673         with $(test-program-cmd).
14674         * libio/Makefile ($(objpfx)test-freopen.out): Replace
14675         $(run-program-prefix) with $(test-program-prefix).
14676         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
14677         (test_program_prefix): This.
14678         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
14679         $(run-program-prefix) with $(test-program-prefix).
14680         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
14681         (test_program_prefix): This.
14682         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
14683         * posix/Makefile ($(objpfx)globtest.out): Replace
14684         $(run-via-rtld-prefix) and $(test-wrapper) with
14685         $(test-program-prefix) and $(test-via-rtld-prefix).
14686         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
14687         $(test-program-prefix).
14688         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
14689         $(host-test-program-cmd).
14690         (tst-spawn-ARGS): Likewise.
14691         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
14692         $(test-program-prefix).
14693         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
14694         (test_via_rtld_prefix): This.
14695         (test_wrapper): Renamed to ...
14696         (test_program_prefix): This.
14697         (run_program_prefix): Replaced by test_program_prefix.
14698         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
14699         (test_program_prefix): This.
14700         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
14701         with $(host-test-program-cmd).
14702         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
14703         $(run-program-prefix) with $(test-program-prefix).
14704         ($(objpfx)tst-printf.out): Likewise.
14705         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
14706         $(test-program-cmd).
14707         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
14708         (test_program_prefix): This.
14709         * stdio-common/tst-unbputc.sh: Likewise.
14710         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
14711         $(run-program-prefix) with $(test-program-prefix).
14712         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
14713         (test_program_prefix): This.
14714         * string/Makefile ($(objpfx)tst-svc.out):  Replace
14715         $(built-program-cmd) with $(test-program-cmd).
14716
14717 2013-01-11  Andreas Jaeger  <aj@suse.de>
14718
14719         [BZ #15003]
14720         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
14721         value. Sync with Linux 3.7.
14722
14723 2013-01-10  David S. Miller  <davem@davemloft.net>
14724
14725         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
14726         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14727         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14728
14729 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14730
14731         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
14732         never set.
14733         * configure: Regenerated.
14734
14735 2013-01-10  David S. Miller  <davem@davemloft.net>
14736
14737         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14738         sparc V9 rather than using V8 code.
14739         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14740         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14741
14742 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14743
14744         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
14745         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
14746         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
14747         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
14748         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
14749         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
14750         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
14751         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
14752         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
14753         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
14754         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
14755         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
14756         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
14757         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
14758         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
14759         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
14760         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
14761         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
14762         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
14763         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
14764         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
14765         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
14766         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
14767         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
14768         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
14769         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
14770         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
14771
14772 2013-01-10  David S. Miller  <davem@davemloft.net>
14773
14774         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14775
14776 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14777
14778         * posix/Makefile (tests-static): New variable.
14779         (tests): Add $(tests-static).
14780         (tst-exec-static-ARGS): New variable.
14781         (tst-spawn-static-ARGS): Likewise.
14782         * posix/tst-exec-static.c: New file.
14783         * posix/tst-spawn-static.c: Likewise.
14784         * posix/tst-exec.c: Support run directly.
14785         * posix/tst-spawn.c: Likewise.
14786
14787 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
14788
14789         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
14790         long.
14791         * math/bits/mathcalls.h (llrint): Likewise.
14792         (llround): Likewise.
14793         * stdlib/stdlib.h (struct drand48_data): Likewise.
14794         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
14795         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
14796         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
14797         Likewise.
14798         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
14799         Likewise.
14800         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
14801         (elf_greg_t): Likewise.
14802         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
14803         (__jmp_buf): Likewise.
14804         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
14805         definitions.
14806         (llrint): Likewise, for all definitions.
14807         (llrintl): Likewise.
14808
14809         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
14810         Remove [__GNUC__] condition.
14811         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
14812         condition to just [__USE_ISOC99].
14813         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
14814
14815 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14816
14817         [BZ #14200]
14818         * sysdeps/unix/sysv/linux/x86/bits/environments.h
14819         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
14820         defined.
14821         (_POSIX_V6_ILP32_OFF32): Likewise.
14822         (_XBS5_ILP32_OFF32): Likewise.
14823         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
14824         (__ILP32_OFFBIG_LDFLAGS): Likewise.
14825
14826 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14827
14828         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
14829
14830         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
14831         doubles __mpexp_twomm1.  Adjust usage.
14832         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
14833         Remove.
14834
14835 2013-01-10  Andreas Schwab  <schwab@suse.de>
14836
14837         [BZ #14964]
14838         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
14839         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
14840
14841 2013-01-09  David S. Miller  <davem@davemloft.net>
14842
14843         [BZ #15003]
14844         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
14845         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
14846         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
14847         TCP_FASTOPEN): Define.
14848         (tcp_repair_opt): New structure.
14849         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
14850         enum values.
14851         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
14852         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
14853         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
14854         (tcp_cookie_transactions): New structure.
14855
14856 2013-01-09  Anton Blanchard  <anton@samba.org>
14857
14858         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
14859         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
14860         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
14861         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
14862
14863 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
14864
14865         * include/features.h (__USE_ANSI): Remove.
14866
14867 2013-01-09  Roland McGrath  <roland@hack.frob.com>
14868
14869         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
14870
14871         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
14872
14873 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
14874
14875         * sysdeps/s390/fpu/libm-test-ulps: Update.
14876
14877         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14878
14879         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
14880         (__acr): Likewise.
14881         (__cpy): Likewise.
14882         (norm): Likewise.
14883         (denorm): Likewise.
14884         (__mp_dbl): Likewise.
14885         (__dbl_mp): Likewise.
14886         (add_magnitudes): Likewise.
14887         (sub_magnitudes): Likewise.
14888         (__add): Likewise.
14889         (__sub): Likewise.
14890         (__mul): Likewise.
14891         (__inv): Likewise.
14892         (__dvd): Likewise.
14893         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
14894         (__acr): Likewise.
14895         (__cpy): Likewise.
14896         (norm): Likewise.
14897         (denorm): Likewise.
14898         (__mp_dbl): Likewise.
14899         (__dbl_mp): Likewise.
14900         (add_magnitudes): Likewise.
14901         (sub_magnitudes): Likewise.
14902         (__add): Likewise.
14903         (__sub): Likewise.
14904         (__mul): Likewise.
14905         (__inv): Likewise.
14906         (__dvd): Likewise.
14907         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
14908         (__acr): Likewise.
14909         (__cpy): Likewise.
14910         (norm): Likewise.
14911         (denorm): Likewise.
14912         (__mp_dbl): Likewise.
14913         (__dbl_mp): Likewise.
14914         (add_magnitudes): Likewise.
14915         (sub_magnitudes): Likewise.
14916         (__add): Likewise.
14917         (__sub): Likewise.
14918         (__mul): Likewise.
14919         (__inv): Likewise.
14920         (__dvd): Likewise.
14921
14922 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
14923
14924         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
14925         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
14926         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
14927         2 && __USE_EXTERN_INLINES]: Likewise.
14928
14929 2013-01-08  Andreas Jaeger  <aj@suse.de>
14930
14931         [BZ# 14985]
14932         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
14933         Remove.
14934         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14935         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
14936
14937 2013-01-07  Anton Blanchard  <anton@samba.org>
14938
14939         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
14940         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
14941         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
14942         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
14943         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14944         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
14945         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
14946         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
14947         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14948         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14949         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14950         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14951         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
14952         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14953         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
14954         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14955         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14956         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14957         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
14958         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14959         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
14960         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
14961         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14962         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
14963         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
14964         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14965         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14966         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
14967         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
14968         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
14969         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
14970         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14971         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14972         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14973         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14974         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14975         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14976         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
14977         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
14978         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
14979         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
14980         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14981         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14982
14983 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
14984
14985         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
14986         (__MALLOC_PMT): Likewise.
14987         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
14988         [__GNUC__], only on [_LIBC].
14989         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14990         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
14991         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
14992         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
14993         forward declaration.
14994         (realloc_hook_ini): Likewise.
14995         (memalign_hook_ini): Likewise.
14996         (__libc_memalign): Do not use __MALLOC_PMT in variable
14997         declaration.
14998         (__libc_valloc): Likewise.
14999         (__libc_pvalloc): Likewise.
15000         (__libc_calloc): Likewise.
15001         (__posix_memalign): Likewise.
15002
15003         [BZ #14996]
15004         * math/s_casinh.c: Include <float.h>.
15005         (__casinh): Do not do computation with squaring and square root
15006         for large arguments.
15007         * math/s_casinhf.c: Include <float.h>.
15008         (__casinhf): Do not do computation with squaring and square root
15009         for large arguments.
15010         * math/s_casinhl.c: Include <float.h>.
15011         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
15012         (__casinhl): Do not do computation with squaring and square root
15013         for large arguments.
15014         * math/libm-test.inc (casin_test): Add more tests.
15015         (casinh_test): Likewise.
15016         * sysdeps/i386/fpu/libm-test-ulps: Update.
15017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15018
15019 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
15020
15021         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
15022         (__x86_64_raw_data_cache_size): Likewise.
15023         (__x86_64_data_cache_size_half): Likewise.
15024         (__x86_64_raw_data_cache_size_half): Likewise.
15025         (__x86_64_shared_cache_size): Likewise.
15026         (__x86_64_raw_shared_cache_size): Likewise.
15027         (__x86_64_shared_cache_size_half): Likewise.
15028         (__x86_64_raw_shared_cache_size_half): Likewise.
15029         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
15030         to ...
15031         (__x86_data_cache_size): This.
15032         (__x86_64_raw_data_cache_size): Renamed to ...
15033         (__x86_raw_data_cache_size): This.
15034         (__x86_64_data_cache_size_half): Renamed to ...
15035         (__x86_data_cache_size_half): This.
15036         (__x86_64_raw_data_cache_size_half): Renamed to ...
15037         (__x86_raw_data_cache_size_half): This.
15038         (__x86_64_shared_cache_size): Renamed to ...
15039         (__x86_shared_cache_size): This.
15040         (__x86_64_raw_shared_cache_size): Renamed to ...
15041         (__x86_raw_shared_cache_size): This.
15042         (__x86_64_shared_cache_size_half): Renamed to ...
15043         (__x86_shared_cache_size_half): This.
15044         (__x86_64_raw_shared_cache_size_half): Renamed to ...
15045         (__x86_raw_shared_cache_size_half): This.
15046         * sysdeps/x86_64/memcpy.S: Updated.
15047         * sysdeps/x86_64/memset.S: Likewise.
15048         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
15049         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
15050         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
15051
15052 2013-01-04  David S. Miller  <davem@davemloft.net>
15053
15054         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15055
15056 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
15057
15058         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
15059         1 to avoid redefinition warning.
15060         (__USE_GNU): Don't define.
15061         (init_signaling_nan): Protoize.
15062
15063         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15064
15065 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15066
15067         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
15068         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
15069         (__cpymn): Likewise.
15070         (norm): Remove commented code.
15071         (denorm): Likewise.
15072         (__mp_dbl): Likewise.
15073         (__inv): Likewise.
15074         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
15075         (__cpymn): Likewise.
15076         (norm): Remove commented code.
15077         (denorm): Likewise.
15078         (__mp_dbl): Likewise.
15079         (__inv): Likewise.
15080
15081         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
15082         mp_no value for 1.0 and 2.0.
15083         (norm): Use RADIXI instead of radixi.d.
15084         (denorm): Likewise.
15085         (__mul): Use 0.0 instead of zero.d.
15086         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
15087         mp_no value for 1.0 and 2.0.
15088         (norm): Use RADIXI instead of radixi.d.
15089         (denorm): Likewise.
15090         (__mul): Use 0.0 instead of zero.d.
15091
15092 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
15093
15094         [BZ #14994]
15095         * math/s_casinh.c (__casinh): Reduce finite argument to first
15096         quadrant then set signs of results at the end.
15097         * math/s_casinhf.c (__casinhf): Likewise.
15098         * math/s_casinhl.c (__casinhl): Likewise.
15099         * math/libm-test.inc (casin_test): Add more tests.
15100         (casinh_test): Likewise.
15101         * sysdeps/i386/fpu/libm-test-ulps: Update.
15102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15103
15104 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15105
15106         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
15107
15108         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
15109
15110         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
15111         declarations.
15112         (denorm): Likewise.
15113         (__mp_dbl): Likewise.
15114         (__inv): Likewise.
15115
15116         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
15117         and adjust the header comment.
15118
15119         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
15120         variable name from declaration.
15121
15122 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15123
15124         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15125         Initialize COMMON_CPUID_INDEX_7 element.
15126         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
15127         (CPUID_RTM): Likewise.
15128         (HAS_RTM): Likewise.
15129         (COMMON_CPUID_INDEX_7): New enum.
15130
15131 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
15132
15133         [BZ #14981]
15134         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
15135         size is zero, record memory as freed.
15136
15137 2013-01-03  Andreas Jaeger  <aj@suse.de>
15138
15139         * po/ia.po: Add new Interlingua translation.
15140
15141 2012-01-03  Allan McRae  <allan@archlinux.org>
15142
15143         * locale/programs/localedef.c: Fix description of '--posix' flag.
15144
15145 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
15146
15147         * NEWS: Update dates in second copyright notice.
15148         * README: Update copyright dates in example.
15149         * manual/libc.texinfo: Update copyright dates.
15150         * scripts/test-installation.pl: Update copyright date in --version
15151         output.
15152
15153         * hurd/ctty-input.c: Fix copyright notice formatting.
15154         * hurd/ctty-output.c: Likewise.
15155         * hurd/dtable.c: Likewise.
15156         * hurd/hurd-raise.c: Likewise.
15157         * hurd/hurdprio.c: Likewise.
15158         * hurd/msgportdemux.c: Likewise.
15159         * misc/sys/file.h: Likewise.
15160         * misc/sys/ioctl.h: Likewise.
15161         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
15162         * sysdeps/mach/hurd/chdir.c: Likewise.
15163         * sysdeps/mach/hurd/fchdir.c: Likewise.
15164         * sysdeps/mach/hurd/rename.c: Likewise.
15165         * sysdeps/mach/hurd/rmdir.c: Likewise.
15166         * sysdeps/mach/hurd/seekdir.c: Likewise.
15167         * sysdeps/mach/hurd/setsid.c: Likewise.
15168         * sysdeps/posix/wait3.c: Likewise.
15169
15170         * All files with FSF copyright notices: Update copyright dates
15171         using scripts/update-copyrights.
15172         * intl/plural.c: Regenerated.
15173         * locale/programs/charmap-kw.h: Likewise.
15174         * locale/programs/locfile-kw.h: Likewise.
15175
15176 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
15177
15178         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
15179         four values.
15180
15181         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
15182         calculation loop and add branch prediction.
15183
15184         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
15185         check access beyond bounds of m1np.
15186
15187         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15188         MPTWO.
15189         (__inv): Remove local variable MPTWO to use the global
15190         constant.
15191         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
15192         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15193         variable MPTWO.
15194         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
15195         MP3HALFS static const.
15196
15197 2013-01-01  David S. Miller  <davem@davemloft.net>
15198
15199         * po/ca.po: Update from translation team.
15200
15201 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
15202
15203         * scripts/update-copyrights: New file.
15204         * Makeconfig: Reformat copyright notice.
15205         * ctype/ctype.h: Likewise.
15206         * debug/swprintf_chk.c: Likewise.
15207         * elf/dl-cache.c: Likewise.
15208         * elf/dl-debug.c: Likewise.
15209         * elf/dl-object.c: Likewise.
15210         * grp/initgroups.c: Likewise.
15211         * hurd/Makefile: Likewise.
15212         * hurd/hurd/signal.h: Likewise.
15213         * hurd/hurdfault.c: Likewise.
15214         * hurd/hurdioctl.c: Likewise.
15215         * hurd/hurdlookup.c: Likewise.
15216         * hurd/intr-msg.c: Likewise.
15217         * iconv/gconv_open.c: Likewise.
15218         * libio/swprintf.c: Likewise.
15219         * locale/lc-ctype.c: Likewise.
15220         * locale/nl_langinfo.c: Likewise.
15221         * mach/Machrules: Likewise.
15222         * mach/Makefile: Likewise.
15223         * malloc/obstack.h: Likewise.
15224         * manual/Makefile: Likewise.
15225         * manual/tsort.awk: Likewise.
15226         * misc/bits/stab.def: Likewise.
15227         * nis/nis_print_group_entry.c: Likewise.
15228         * nis/nis_table.c: Likewise.
15229         * nis/nss_compat/compat-pwd.c: Likewise.
15230         * nis/nss_compat/compat-spwd.c: Likewise.
15231         * po/Makefile: Likewise.
15232         * posix/fnmatch.c: Likewise.
15233         * posix/regex.h: Likewise.
15234         * resolv/Makefile: Likewise.
15235         * resolv/nss_dns/dns-network.c: Likewise.
15236         * resolv/res_hconf.c: Likewise.
15237         * scripts/gen-sorted.awk: Likewise.
15238         * soft-fp/soft-fp.h: Likewise.
15239         * stdio-common/printf.h: Likewise.
15240         * stdlib/monetary.h: Likewise.
15241         * stdlib/random.c: Likewise.
15242         * stdlib/random_r.c: Likewise.
15243         * sysdeps/generic/Makefile: Likewise.
15244         * sysdeps/gnu/Makefile: Likewise.
15245         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15246         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15247         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15248         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15249         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15250         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15251         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15252         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15253         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15254         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15255         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15256         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15257         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15258         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15259         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15260         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15261         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15262         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15263         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15264         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15265         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15266         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15267         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15268         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15269         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
15270         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15271         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
15272         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
15273         * sysdeps/mach/hurd/errnos.awk: Likewise.
15274         * sysdeps/mach/hurd/fork.c: Likewise.
15275         * sysdeps/mach/hurd/getcwd.c: Likewise.
15276         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
15277         * sysdeps/mach/hurd/mmap.c: Likewise.
15278         * sysdeps/mach/hurd/utimes.c: Likewise.
15279         * sysdeps/mach/hurd/xmknod.c: Likewise.
15280         * sysdeps/posix/profil.c: Likewise.
15281         * sysdeps/posix/readdir_r.c: Likewise.
15282         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15283         * sysdeps/powerpc/bits/setjmp.h: Likewise.
15284         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
15285         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15286         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15287         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
15288         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15289         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15290         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15291         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
15292         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15293         * sysdeps/pthread/lio_listio.c: Likewise.
15294         * sysdeps/sparc/dl-procinfo.h: Likewise.
15295         * sysdeps/unix/i386/sysdep.S: Likewise.
15296         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
15297         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
15298         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
15299         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
15300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15301         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
15302         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
15303         * sysdeps/unix/sysv/linux/speed.c: Likewise.
15304         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
15305         * sysdeps/wordsize-32/divdi3.c: Likewise.
15306         * time/sys/time.h: Likewise.
15307         * wcsmbs/Makefile: Likewise.
15308
15309 2013-01-01  David S. Miller  <davem@davemloft.net>
15310
15311         * po/fr.po: Update from translation team.
15312
15313         * catgets/gencat.c: Update copyright year.
15314         * csu/version.c: Likewise.
15315         * debug/catchsegv.sh: Likewise.
15316         * debug/pcprofiledump.c: Likewise.
15317         * debug/xtrace.sh: Likewise.
15318         * elf/ldconfig.c: Likewise.
15319         * elf/ldd.bash.in: Likewise.
15320         * elf/pldd.c: Likewise.
15321         * elf/sotruss.ksh: Likewise.
15322         * elf/sprof.c: Likewise.
15323         * iconv/iconv_prog.c: Likewise.
15324         * iconv/iconvconfig.c: Likewise.
15325         * locale/programs/locale.c: Likewise.
15326         * locale/programs/localedef.c: Likewise.
15327         * login/programs/pt_chown.c: Likewise.
15328         * malloc/memusage.sh: Likewise.
15329         * malloc/memusagestat.c: Likewise.
15330         * malloc/mtrace.pl: Likewise.
15331         * nscd/nscd.c: Likewise.
15332         * nss/getent.c: Likewise.
15333         * nss/makedb.c: Likewise.
15334         * posix/getconf.c: Likewise.
15335
15336 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15337
15338         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
15339         numbers.
15340
15341 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
15342
15343         * math/bits/mathcalls.h (modf): Use __nonnull.
15344
15345 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15346
15347         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
15348         (split): Use macro CN instead of the bare value.
15349         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
15350         could be used.
15351         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
15352         instead of the bare value.
15353         (power1): Likewise.
15354
15355 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15356
15357         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
15358         __ATAN_TWOM.
15359         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15360
15361         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
15362         their values.
15363         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
15364         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
15365         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
15366         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
15367
15368 2012-12-28  Andreas Jaeger  <aj@suse.de>
15369
15370         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
15371         values are from Linux 3.7.
15372
15373         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
15374         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
15375
15376 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15377
15378         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
15379         TRUE case.
15380
15381         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
15382         (norm): Likewise.
15383         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
15384         variables with preprocessor constants.
15385         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15386         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15387         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15388
15389 2012-12-27  Bruno Haible  <bruno@clisp.org>
15390
15391         [BZ #14317]
15392         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
15393         only if needed.
15394
15395 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15396
15397         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
15398         and use variable directly.
15399         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
15400
15401         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15402         MPONE.
15403         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
15404         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15405         variable MPONE.
15406         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
15407         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
15408         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
15409         include directive.  Remove local variable MPONE.
15410         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
15411         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
15412         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15413
15414 2012-12-25  David S. Miller  <davem@davemloft.net>
15415
15416         * version.h (RELEASE): Set to "development".
15417         (VERSION): Set to "2.17.90".
15418         * NEWS: Add 2.18 section.
15419
15420 2012-12-21  David S. Miller  <davem@davemloft.net>
15421
15422         * po/hr.po: Update from translation team.
15423
15424 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15425
15426         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
15427
15428 2012-12-19  Steve Ellcey  <sellcey@mips.com>
15429
15430         * NEWS:  Mention new memcpy for MIPS.
15431
15432 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15433
15434         * manual/contrib.texi (Contributors): Spelling correction.
15435
15436 2012-12-15  David S. Miller  <davem@davemloft.net>
15437
15438         * po/ru.po: Update from translation team.
15439
15440 2012-12-13  David S. Miller  <davem@davemloft.net>
15441
15442         * NEWS: Mention IFUNC testsuite enhancements.
15443
15444         * po/pl.po: Update from translation team.
15445         * po/bg.po: Likewise.
15446
15447         * manual/contrib.texi (Contributors): Update entries for Hongjiu
15448         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
15449
15450 2012-12-11  David S. Miller  <davem@davemloft.net>
15451
15452         * po/sv.po: Update from translation team.
15453
15454         * po/vi.po: Update from translation team.
15455
15456         * po/cs.po: Update from translation team.
15457
15458         * po/de.po: Update from translation team.
15459         * po/eo.po: Likewise.
15460         * po/nl.po: Likewise.
15461
15462 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15463
15464         [BZ #14246]
15465         * manual/argp.texi (Argp Helper Functions): Move node to follow
15466         Argp Parsing State.
15467
15468         [BZ #14872]
15469         * manual/conf.texi (Limits on File System Capacity): Mention if
15470         terminating null is included in the max size.
15471
15472 2012-12-10  Andreas Jaeger  <aj@suse.de>
15473
15474         * po/cs.po: Update from translation team.
15475
15476 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
15477
15478         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
15479         void pointer and cast to uintptr_t.
15480         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
15481         path.
15482         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15483         * sysdeps/s390/s390-64/memset.S: Likewise.
15484
15485 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
15486
15487         [BZ #14833]
15488         * menual/message.texi (Message Translation): Fix typos.
15489         (Helper programs for gettext): Likewise.
15490
15491 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
15492
15493         [BZ #14898]
15494         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
15495         Change to -1.
15496
15497 2012-12-07  David S. Miller  <davem@davemloft.net>
15498
15499         * po/libc.pot: Update.
15500
15501 2012-12-07  Richard Henderson  <rth@redhat.com>
15502
15503         [BZ #10114]
15504         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
15505         normal/normal case to before the switch.
15506         (_FP_DIV): Likewise.
15507
15508 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
15509             Mike Frysinger  <vapier@gentoo.org>
15510
15511         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
15512         check for __NR_fadvise64_64.
15513
15514 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
15515
15516         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
15517         0, not just to plain "0" as a statement.
15518         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
15519         with cw.
15520
15521 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
15522
15523         * NEWS: Use sourceware.org in Bugzilla URL.
15524
15525 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15526
15527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
15528         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15529
15530         * stdio-common/tst-put-error.c (do_test): Add newline to the
15531         padded test to ensure flush.
15532
15533 2012-12-05  Jeff Law  <law@redhat.com>
15534
15535         * sunrpc/etc.rpc (fedfs_admin): Add entry.
15536
15537 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
15538
15539         * README: Don't refer to ports add-on as distributed separately.
15540         Mention AArch64 in list of systems supported in the ports add-on.
15541
15542         * LICENSES: Add more non-FSF copyright and license notices.
15543
15544         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
15545         ((unused)).
15546
15547         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
15548
15549         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
15550         10000 as width of padded output.
15551
15552 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15553
15554         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
15555
15556         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
15557         variable LX with __attribute__ ((unused)).
15558         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15559         Likewise.
15560         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
15561         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15562         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
15563         with __attribute__ ((unused)).
15564
15565 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
15566
15567         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
15568
15569 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15570
15571         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
15572         (CFLAGS-nldbl-acos.c): New variable.
15573         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
15574         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
15575         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
15576         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
15577         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
15578         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
15579         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
15580         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
15581         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
15582         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
15583         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
15584         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
15585         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
15586         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
15587         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
15588         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
15589         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
15590         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
15591         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
15592         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
15593         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
15594         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
15595         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
15596         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
15597         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
15598         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
15599         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
15600         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
15601         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
15602         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
15603         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
15604         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
15605         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
15606         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
15607         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
15608         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
15609         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
15610         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
15611         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
15612         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
15613         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
15614         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
15615         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
15616         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
15617         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
15618         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
15619         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
15620         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
15621         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
15622         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
15623         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
15624         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
15625         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
15626         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
15627         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
15628         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
15629         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
15630         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
15631         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
15632         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
15633         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
15634         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
15635         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
15636         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
15637         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
15638         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
15639         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
15640         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
15641         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
15642         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
15643         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
15644         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
15645         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
15646         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
15647         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
15648         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
15649         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
15650         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
15651         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
15652         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
15653         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
15654         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
15655         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
15656         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
15657         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
15658         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
15659         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
15660         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
15661         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
15662         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
15663         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
15664         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
15665         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
15666         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
15667         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
15668         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
15669         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
15670
15671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
15672         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15673
15674         [BZ #14914]
15675         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
15676         whole low double instead of just low 47 bits when splitting values
15677         into two parts.
15678
15679 2012-12-03  Allan McRae  <allan@archlinux.org>
15680
15681         * manual/stdio.texi (Predefined Printf Handlers): Remove
15682         @hsep and @vsep usage.
15683
15684 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
15685
15686         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
15687         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
15688
15689 2012-12-03  Jeff Law  <law@redhat.com>
15690
15691         * time/sys/time.h (settimeofday): Do not mark TV argument
15692         as __nonnull.
15693
15694 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
15695
15696         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
15697         when currently writing and seek to current position when not.
15698         * libio/Makefile (tests): Remove bug-fclose1.
15699         * libio/bug-fclose1.c: Delete.
15700
15701 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
15702
15703         * manual/arith.texi (feenableexcept): Fix typo.
15704         (fedisableexcept): Likewise.
15705
15706 2012-11-30  Roland McGrath  <roland@hack.frob.com>
15707
15708         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
15709         second, differently-typed declaration, rather than a cast.
15710
15711 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15712
15713         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
15714         * include/rpc/svc.h: ... here.
15715
15716 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
15717
15718         [BZ #13013]
15719         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
15720         depending n and resplen2 to catch cases where answer
15721         equals answerp2.
15722
15723 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
15724
15725         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
15726         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
15727
15728 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
15729
15730         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
15731
15732 2012-11-29  Roland McGrath  <roland@hack.frob.com>
15733
15734         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
15735
15736 2012-11-28  Jeff Law  <law@redhat.com>
15737
15738         [BZ #13761]
15739         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
15740         dataset_temporary.  Track alloca usage into alloca_used.
15741         If dataset is large allocate and release it via malloc/free.
15742
15743 2012-06-04  Florian Weimer  <fweimer@redhat.com>
15744
15745         [BZ #14197]
15746         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
15747
15748 2012-11-28  David S. Miller  <davem@davemloft.net>
15749
15750         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15751
15752 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15753
15754         [BZ #14803]
15755         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
15756         of pi/2 rounded to nearest to 64 bits.
15757         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
15758         nearest to 64 bits.
15759         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
15760         bits.
15761
15762 2012-11-28  Jeff Law <law@redhat.com>
15763             Martin Osvald <mosvald@redhat.com>
15764
15765         [BZ #14889]
15766         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
15767         * sunrpc/svc.c: Include time.h.
15768         (__svc_accept_failed): New function.
15769         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
15770         any reason other than EINTR, call __svc_accept_failed.
15771         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
15772         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
15773
15774 2012-11-28  Andreas Schwab  <schwab@suse.de>
15775
15776         * scripts/abilist.awk: Also handle indirect functions in .opd
15777         section.
15778
15779 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15780
15781         [BZ #13881]
15782         * sysdeps/x86/fpu/powl_helper.c: New file.
15783         * sysdeps/x86/fpu/Makefile: Likewise.
15784         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
15785         (p3): New object.
15786         (__ieee754_powl): Use __powl_helper for finite arguments except
15787         integer exponents below 8.
15788         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
15789         (p3): New object.
15790         (__ieee754_powl): Use __powl_helper for finite arguments except
15791         integer exponents below 8.
15792         * math/libm-test.inc (pow_test): Add more tests and enable some
15793         previously disabled tests.
15794         * sysdeps/i386/fpu/libm-test-ulps: Update.
15795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15796
15797 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15798             Carlos O'Donell  <carlos_odonell@mentor.com>
15799
15800         * nss/makedb.c (is_prime): Assert that input is odd and greater
15801         than 4.  Note that fact in a comment too.
15802         (next_prime): Add 4 to input.
15803
15804 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15805
15806         [BZ #11741]
15807         * libio/Makefile (tests): Add test case tst-fwrite-error.
15808         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
15809         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15810         * libio/tst-fwrite-error.c: New test case.
15811
15812 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
15813
15814         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
15815         before casting to void *.
15816         * include/libc-internal.h (__pointer_type): New macro.
15817         (__integer_if_pointer_type_sub): Likewise.
15818         (__integer_if_pointer_type): Likewise.
15819         (cast_to_integer): Likewise.
15820         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
15821         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
15822         before casting to atomic64_t.
15823         (atomic_exchange_acq): Likewise.
15824         (__arch_exchange_and_add_body): Likewise.
15825         (__arch_add_body): Likewise.
15826         (atomic_add_negative): Likewise.
15827         (atomic_add_zero): Likewise.
15828
15829 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
15830
15831         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
15832         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
15833         (add_fdes): Likewise.
15834         (linear_search_fdes): Likewise.
15835         (binary_search_unencoded_fdes): Likewise.
15836
15837 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
15838
15839         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
15840
15841 2012-11-24  Adam Conrad  <adconrad@0c3.net>
15842
15843         * configure.in: Autodetect C++ header directories.
15844         * configure: Regenerated.
15845
15846 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
15847
15848         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
15849
15850 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
15851
15852         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15853
15854 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
15855
15856         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
15857         LDBL_MANT_DIG == 106]: Disable some tests.
15858         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15859         Likewise.
15860         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15861         Likewise.
15862
15863         [BZ #14871]
15864         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
15865         input for small inputs.  Return +/- pi/2 for large inputs.
15866         * math/libm-test.inc (atan_test): Add more tests.
15867
15868         * sysdeps/generic/unwind-dw2-fde-glibc.c
15869         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
15870         __attribute__ ((unused)).
15871
15872         [BZ #14645]
15873         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
15874         x * y if x and y are nonzero and z is zero.
15875
15876         [BZ #14811]
15877         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
15878         nonzero exponents with absolute value below 0x1p-117 to +/-
15879         0x1p-117.
15880
15881         [BZ #14869]
15882         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
15883         up arguments below 2**-450, not just those below 2**-500.
15884         * math/libm-test.inc (hypot_test): Add another test.
15885
15886         [BZ #14868]
15887         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
15888         Return a+b for ratio over 2**120, not 2**60.
15889         * math/libm-test.inc (hypot_test): Add another test.
15890
15891         * math/libm-test.inc (clog_test): Use
15892         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
15893         (clog10_test): Likewise.
15894
15895         [BZ #6778]
15896         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
15897
15898 2012-11-22  Andreas Schwab  <schwab@suse.de>
15899
15900         * sysdeps/i386/fpu/libm-test-ulps: Update.
15901
15902 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
15903
15904         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
15905         printf output with newline.
15906
15907 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15908
15909         [BZ #14865]
15910         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
15911         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
15912         -z nodlopen, -z initfirst and -z execstack support.
15913         * configure: Regenerated.
15914
15915         * elf/elf.h (DF_1_NODIRECT): New macro.
15916         (DF_1_IGNMULDEF): Likewise.
15917         (DF_1_NOKSYMS): Likewise.
15918         (DF_1_NOHDR): Likewise.
15919         (DF_1_EDITED): Likewise.
15920         (DF_1_NORELOC): Likewise.
15921         (DF_1_SYMINTPOSE): Likewise.
15922         (DF_1_GLOBAUDIT): Likewise.
15923         (DF_1_SINGLETON): Likewise.
15924         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
15925         DT_1_SUPPORTED_MASK bits.
15926         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
15927
15928 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
15929
15930         * sysdeps/unix/make-syscalls.sh: Document prefixes.
15931
15932 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
15933
15934         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
15935         macro.
15936
15937         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
15938         (sendmmsg): Move declarations...
15939         * socket/sys/socket.h: ... here.
15940         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
15941         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
15942         include it from...
15943         * socket/recvmmsg.c: ... this new file.
15944         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
15945         (sendmmsg): Rename to __sendmmsg, create weak alias and make
15946         definition of __sendmmsg hidden.
15947         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
15948         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
15949         Move ENOSYS stub into and include it from...
15950         * socket/sendmmsg.c: ... this new file.
15951         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
15952         (sysdep_routines): Move recvmmsg and sendmmsg...
15953         * socket/Makefile (routines): ... here.
15954         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
15955         (GLIBC_PRIVATE): Add __sendmmsg.
15956         * include/sys/socket.h (__sendmmsg): Add declarations.
15957         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
15958         sendmmsg.
15959
15960 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
15961
15962         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
15963         variable I1 with __attribute__ ((unused)).
15964         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
15965
15966 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15967
15968         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
15969         DUMMY variables with __attribute__ ((unused)).
15970
15971         * bits/byteswap.h: Include <bits/types.h>.
15972         (__bswap_64): Use __uint64_t instead of unsigned long long int.
15973
15974 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
15975
15976         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
15977         string_t.  Do not manually set errno.
15978         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
15979         length with __strnlen.  Make sure to both set errno and return it on
15980         failure.
15981
15982 2012-11-19  David S. Miller  <davem@davemloft.net>
15983
15984         With help from Joseph Myers.
15985         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
15986         very large arguments properly.
15987         * math/libm-test.inc (atan_test): New tests.
15988         (atan2_test): New tests.
15989         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15990         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15991
15992 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
15993
15994         [BZ #14856]
15995         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
15996         Define to 3.
15997
15998         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
15999         [POSIX] (EADDRNOTAVAIL): Likewise.
16000         [POSIX] (EAFNOSUPPORT): Likewise.
16001         [POSIX] (EALREADY): Likewise.
16002         [POSIX] (ECONNABORTED): Likewise.
16003         [POSIX] (ECONNREFUSED): Likewise.
16004         [POSIX] (ECONNRESET): Likewise.
16005         [POSIX] (EDESTADDRREQ): Likewise.
16006         [POSIX] (EDQUOT): Likewise.
16007         [POSIX] (EHOSTUNREACH): Likewise.
16008         [POSIX] (EIDRM): Likewise.
16009         [POSIX] (EISCONN): Likewise.
16010         [POSIX] (ELOOP): Likewise.
16011         [POSIX] (EMULTIHOP): Likewise.
16012         [POSIX] (ENETDOWN): Likewise.
16013         [POSIX] (ENETUNREACH): Likewise.
16014         [POSIX] (ENOBUFS): Likewise.
16015         [POSIX] (ENODATA): Likewise.
16016         [POSIX] (ENOLINK): Likewise.
16017         [POSIX] (ENOMSG): Likewise.
16018         [POSIX] (ENOPROTOOPT): Likewise.
16019         [POSIX] (ENOSR): Likewise.
16020         [POSIX] (ENOSTR): Likewise.
16021         [POSIX] (ENOTCONN): Likewise.
16022         [POSIX] (ENOTSOCK): Likewise.
16023         [POSIX] (EOPNOTSUPP): Likewise.
16024         [POSIX] (EOVERFLOW): Likewise.
16025         [POSIX] (EPROTO): Likewise.
16026         [POSIX] (EPROTONOSUPPORT): Likewise.
16027         [POSIX] (EPROTOTYPE): Likewise.
16028         [POSIX] (ESTALE): Likewise.
16029         [POSIX] (ETIME): Likewise.
16030         [POSIX] (ETXTBSY): Likewise.
16031         [POSIX] (EWOULDBLOCK): Likewise.
16032         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
16033         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
16034         [POSIX] (SEEK_CUR): Likewise.
16035         [POSIX] (SEEK_END): Likewise.
16036         [POSIX || UNIX98] (mode_t): Do not require.
16037         [POSIX] (off_t): Likewise.
16038         [POSIX] (pid_t): Likewise.
16039         [POSIX] (sys/stat.h): Do not allow header.
16040         [POSIX] (unistd.h): Likewise.
16041         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
16042         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
16043         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
16044         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
16045         require.
16046         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
16047         sigevent): Specify elements.
16048         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
16049         entry.
16050         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
16051         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
16052
16053         * conform/data/cpio.h-data [POSIX]: Disable whole file.
16054         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
16055         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
16056         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
16057         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
16058         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
16059         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
16060         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
16061         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
16062         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
16063         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
16064         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
16065         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
16066         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
16067         Likewise.
16068         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
16069         Likewise.
16070         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
16071         Likewise.
16072         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
16073         Likewise.
16074         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
16075         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
16076         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
16077         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
16078         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
16079         Specify lower bound on value.
16080         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
16081         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
16082         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
16083         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
16084         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
16085         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
16086         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
16087         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
16088         value.
16089         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
16090         as optional.
16091         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
16092         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
16093         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
16094         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
16095         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
16096         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
16097         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
16098         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
16099         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
16100         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
16101         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
16102         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
16103         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
16104         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
16105         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
16106         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
16107         entry.
16108         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
16109         optional.
16110         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
16111         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
16112         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
16113         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
16114         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
16115         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
16116         Likewise.
16117         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
16118         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
16119         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
16120         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
16121         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
16122         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
16123         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
16124         as optional.
16125         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
16126         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
16127         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
16128         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
16129         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
16130         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
16131         specify as optional.
16132         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
16133         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
16134         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
16135         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
16136         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
16137         [XPG3] (NL_LANGMAX): Likewise.
16138         [POSIX || XPG3] (NL_MSGMAX): Likewise.
16139         [POSIX || XPG3] (NL_NMAX): Likewise.
16140         [POSIX || XPG3] (NL_SETMAX): Likewise.
16141         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
16142         [XPG3] (NZERO): Likewise.
16143         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
16144         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
16145         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
16146         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
16147         (REG_ERANGE): Expect.
16148         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
16149         optional-constant.
16150         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
16151         Use (void) in prototype.
16152         [POSIX] (*_t): Allow.
16153         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
16154         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
16155         (WRDE_BADVAL): Expect.
16156
16157         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
16158         expect.
16159         [XPG3 || XPG4] (O_RSYNC): Likewise.
16160         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
16161         Likewise.
16162         [XPG3 || XPG4] (pthread_sigmask): Likewise.
16163         [XPG3 || XPG4] (sigqueue): Likewise.
16164         [XPG3 || XPG4] (sigtimedwait): Likewise.
16165         [XPG3 || XPG4] (sigwaitinfo): Likewise.
16166         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
16167         [XPG3 || XPG4] (vsnprintf): Likewise.
16168         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
16169         Likewise.
16170         [XPG3 || XPG4] (blksize_t): Likewise.
16171         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
16172         Likewise.
16173         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
16174         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
16175         [XPG3 || XPG4] (struct itimerspec): Likewise.
16176         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
16177         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
16178         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
16179         [XPG3 || XPG4] (clockid_t): Likewise.
16180         [XPG3 || XPG4] (timer_t): Likewise.
16181         [XPG3 || XPG4] (clock_getres): Likewise.
16182         [XPG3 || XPG4] (clock_gettime): Likewise.
16183         [XPG3 || XPG4] (clock_settime): Likewise.
16184         [XPG3 || XPG4] (nanosleep): Likewise.
16185         [XPG3 || XPG4] (timer_create): Likewise.
16186         [XPG3 || XPG4] (timer_delete): Likewise.
16187         [XPG3 || XPG4] (timer_gettime): Likewise.
16188         [XPG3 || XPG4] (timer_getoverrun): Likewise.
16189         [XPG3 || XPG4] (timer_settime): Likewise.
16190         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
16191         [XPG3 || XPG4] (getlogin_r): Likewise.
16192         [XPG3 || XPG4] (pread): Likewise.
16193         [XPG3 || XPG4] (pthread_atfork): Likewise.
16194         [XPG3 || XPG4] (pwrite): Likewise.
16195
16196         [BZ #14835]
16197         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
16198         <bits/siginfo.h>.
16199
16200 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16201
16202         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
16203         finalizing MALLSTREAM.
16204
16205         * sysdeps/mach/hurd/syncfs.c: New file.
16206
16207 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
16208
16209         [BZ #14719]
16210         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
16211         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
16212         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
16213         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
16214         (_nss_dns_gethostbyname4_r): Likewise.
16215         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
16216         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
16217
16218 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
16219
16220         [BZ #13763]
16221         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
16222
16223 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
16224
16225         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
16226         * elf/cache.c (print_entry): Print ",AArch64" for
16227         FLAG_AARCH64_LIB64
16228
16229         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
16230         * elf/cache.c (print_entry): Print ",hard-float" for
16231         FLAG_ARM_LIBHF.
16232
16233 2012-11-18  David S. Miller  <davem@davemloft.net>
16234
16235         With help from Joseph Myers.
16236         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
16237         cutoff to 2**-13.
16238         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
16239         cutoff to 2**-25.
16240         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
16241         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
16242         small.
16243         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
16244         * math/libm-test.inc (y0_test): New tests.
16245         (y1_test): New tests.
16246         * sysdeps/i386/fpu/libm-test-ulps: Update.
16247         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16248         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16249
16250 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
16251
16252         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
16253         64-bit targets.
16254         * configure: Regenerated.
16255
16256 2012-11-17  David S. Miller  <davem@davemloft.net>
16257
16258         [BZ #14811]
16259         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
16260         nonzero exponents with absolute value below 0x1p-128 to +/-
16261         0x1p-128.
16262
16263 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
16264
16265         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
16266
16267         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
16268
16269         * posix/getconf-speclist.c: New file.
16270         * posix/posix-envs.def: Likewise.
16271         * posix/confstr.c (START_ENV_GROUP): New macro.
16272         (END_ENV_GROUP): Likewise.
16273         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16274         (KNOWN_PRESENT_ENV_STRING): Likewise.
16275         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16276         (UNKNOWN_ENVIRONMENT): Likewise.
16277         (confstr): Include posix-envs.def instead of handling
16278         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
16279         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
16280         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
16281         (END_ENV_GROUP): Likewise.
16282         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16283         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16284         (UNKNOWN_ENVIRONMENT): Likewise.
16285         (__sysconf): Include posix-envs.def instead of handling associated
16286         cases directly here.
16287         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
16288         preprocessing getconf-speclist.c rather than running getconf or
16289         generating empty file.
16290
16291 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
16292
16293         * scripts/check-local-headers.sh: Ignore 'mach' headers.
16294
16295 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
16296
16297         [BZ #14672]
16298         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
16299
16300 2012-11-16  David S. Miller  <davem@davemloft.net>
16301
16302         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
16303         smaller than LDBL_EPSILON/2.0L, just return xm1.
16304
16305 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
16306
16307         * elf/tst-array1.c (init): Set constructor priority to 1000.
16308         (fini): Set destructor priority to 1000.
16309         * elf/tst-array2dep.c: Likewise.
16310
16311 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16312
16313         [BZ #11741]
16314         * libio/fileops.c (_IO_new_file_write): Correctly return error.
16315         (_IO_new_file_xsputn): Also return EOF if none of the input
16316         data was written when overflow failed.
16317         * libio/iopadn.c (_IO_padn): Likewise.
16318         * libio/iowpadn.c (_IO_wpadn): Likewise.
16319         * stdio-common/tst-put-error.c: Add copyright notice.
16320         (do_test): Add case for printing padded string.
16321         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
16322         _IO_padn returned error.
16323         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
16324         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
16325         return EOF.
16326
16327 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16328
16329         * libio/libioP.h: Add comment note that the references to C++
16330         bits are now obsolete.
16331
16332 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16333
16334         * math/libm-test.inc (check_complex): Use asprintf.
16335
16336 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
16337
16338         * debug/pcprofiledump.c (print_version): Update copyright year.
16339         * malloc/memusagestat.c (print_version): Likewise.
16340
16341 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
16342
16343         [BZ #14831]
16344         * elf/Makefile (tests): Add tst-audit8.
16345         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
16346         ($(objpfx)tst-audit8.out): New target.
16347         (tst-audit8-ENV): New variable.
16348         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
16349         audit if l_reloc_result is NULL.
16350         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
16351         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
16352         * elf/tst-audit8.c: New file.
16353
16354 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16355
16356         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
16357         * misc/Makefile (CFLAGS-select.c): Define.
16358         * posix/Makefile (CFLAGS-pause.c): Define.
16359
16360 2012-11-13  David S. Miller  <davem@davemloft.net>
16361
16362         * crypt/Makefile: Move test targets after toplevel Rules
16363         inclusion.  Grab any necessary sysdep routines when linking.
16364         * crypt/md5.c (md5_process_block): Remove define, we will always
16365         name it __md5_process_block.
16366         (md5_finish_ctx): Update md5_process_block call.
16367         (md5_stream): Likewise.
16368         (md5_process_bytes): Likewise.
16369         (md5_process_block): Rename to __md5_process_block and move to ...
16370         * crypt/md5-block.c: ... here.
16371         * crypt/sha256.c (sha256_process_block): Move to ...
16372         * crypt/sha256-block.c: ... here.
16373         * crypt/sha512.c (sha512_process_block): Move to ...
16374         * crypt/sha512-block.c: ... here.
16375         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
16376         path.
16377         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
16378         * sysdeps/sparc/sparc64/multiarch/Makefile
16379         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
16380         crypt subdir.
16381         (localedef-aux): Add md5 crypto assembler when in locale subdir.
16382         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
16383         multiarch changes.
16384         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
16385         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
16386         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
16387         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
16388         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
16389         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
16390         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
16391         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
16392         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
16393         file.
16394         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
16395         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
16396         file.
16397         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
16398
16399 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
16400
16401         * timezone/tzselect.ksh: Update from tzcode git revision
16402         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
16403         * timezone/zdump.c: Likewise.
16404         * timezone/zic.c: Likewise.
16405         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
16406         in TZVERSION setting, not $(PKGVERSION).
16407         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
16408         REPORT_BUGS_TO settings.
16409
16410         [BZ #14838]
16411         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
16412         macro.
16413
16414 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16415
16416         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
16417         detection to immediately after _FP_ROUND().
16418         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
16419         bits are 0.
16420
16421 2012-11-11  David S. Miller  <davem@davemloft.net>
16422
16423         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
16424         inttypes.h
16425         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
16426         __close rather than their public counterparts.
16427
16428 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
16429
16430         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
16431         file.
16432         [UNIX98] (sem_timedwait): Do not expect.
16433         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
16434         [XPG4 || UNIX98] (sockatmark): Do not expect.
16435         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
16436         (clock_getcpuclockid): Do not expect.
16437         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
16438         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
16439         Do not expect.
16440         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
16441         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
16442         [UNIX98] (vwscanf): Likewise.
16443         [UNIX98] (vswscanf): Likewise.
16444
16445 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
16446
16447         * timezone/version.h: Remove file.
16448         * timezone/README: Do not refer to version.h.
16449         * timezone/Makefile ($(objpfx)zic.o): New dependency on
16450         $(objpfx)version.h.
16451         ($(objpfx)zdump.o): Likewise.
16452         ($(objpfx)version.h): New target.
16453
16454         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
16455         2012i.
16456         * timezone/README: Don't mention modification to tzselect.ksh.
16457         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
16458         work on unmodified tzselect.ksh.  Substitute version numbers in
16459         tzselect.ksh.
16460
16461         * Makefile (format-me): Remove.
16462         (INSTALL): Adjust indentation.  Use commands directly instead of
16463         using $(format-me).
16464
16465         * aclocal.m4 (ACX_PKGVERSION): New macro.
16466         (ACX_BUGURL): Likewise.
16467         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
16468         (PKGVERSION): New AC_DEFINE_UNQUOTED.
16469         (REPORT_BUGS_TO): Likewise.
16470         * configure: Regenerated.
16471         * config.h.in (PKGVERSION): New macro.
16472         (REPORT_BUGS_TO): Likewise.
16473         * config.make.in (PKGVERSION): New variable.
16474         (PKGVERSION_TEXI): Likewise.
16475         (REPORT_BUGS_TO): Likewise.
16476         (REPORT_BUGS_TEXI): Likewise.
16477         * Makefile (format-me): Use -I$(common-objpfx)manual.
16478         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
16479         ($(common-objpfx)manual/%): New target.
16480         (manual/%): Remove target.
16481         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
16482         (print_version): Use PKGVERSION.
16483         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
16484         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
16485         and REPORT_BUGS_TO.
16486         ($(objpfx)xtrace): Likewise.
16487         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
16488         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
16489         (print_version): Use PKGVERSION.
16490         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
16491         (do_version): Use PKGVERSION.
16492         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
16493         REPORT_BUGS_TO.
16494         (common-ldd-rewrite): Likewise.
16495         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
16496         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
16497         (print_version): Use PKGVERSION.
16498         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
16499         * elf/pldd.c (argp_program_bug_address): Remove variable.
16500         (more_help): New function.
16501         (argp): Use more_help.
16502         (print_version): Use PKGVERSION.
16503         * elf/sln.c (main): Use PKGVERSION.
16504         (usage): Use REPORT_BUGS_TO.
16505         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
16506         (top level): Use PKGVERSION.
16507         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
16508         (print_version): Use PKGVERSION.
16509         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
16510         (print_version): Use PKGVERSION.
16511         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
16512         (print_version): Use PKGVERSION.
16513         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
16514         (print_version): Use PKGVERSION.
16515         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
16516         (print_version): Use PKGVERSION.
16517         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
16518         (print_version): Use PKGVERSION.
16519         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
16520         and BUGURL.
16521         ($(objpfx)memusage): Likewise.
16522         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
16523         (do_version): Use PKGVERSION.
16524         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
16525         (print_version): Use PKGVERSION.
16526         * malloc/mtrace.pl ($PACKAGE): Remove variable.
16527         ($PKGVERSION): New variable.
16528         ($REPORT_BUGS_TO): Likewise.
16529         (usage): Use $REPORT_BUGS_TO.
16530         (top level): Use $PKGVERSION.
16531         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
16532         ($(objpfx)pkgvers.texi): New rule.
16533         ($(objpfx)stamp-pkgvers): Likewise.
16534         * manual/install.texi: Include pkgvers.texi.
16535         (--with-pkgversion): Document new configure option.
16536         (--with-bugurl): Likewise.
16537         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
16538         than necessarily for this particular distribution.  Use
16539         REPORT_BUGS_TO for where to report bugs.
16540         * INSTALL: Regenerated.
16541         * manual/libc.texinfo: Include pkgvers.texi.
16542         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
16543         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
16544         (print_version): Use PKGVERSION.
16545         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
16546         (print_version): Use PKGVERSION.
16547         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
16548         (print_version): Use PKGVERSION.
16549         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
16550         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
16551         macro.
16552         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
16553         (print_version): Use PKGVERSION.
16554         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
16555         (print_version): Use PKGVERSION.
16556         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
16557         and PKGVERSION.
16558
16559         * timezone/checktab.awk: Update from tzcode 2012i.
16560         * timezone/ialloc.c: Likewise.
16561         * timezone/private.h: Likewise.
16562         * timezone/scheck.c: Likewise.
16563         * timezone/tzfile.h: Likewise.
16564         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
16565         (TZVERSION): Hardcode tzcode version number.
16566         * timezone/zdump.c: Update from tzcode 2012i.
16567         * timezone/zic.c: Likewise.
16568         * timezone/version.h: New file.
16569         * timezone/README: Describe version.h.  Update upstream location.
16570
16571         [BZ #14824]
16572         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
16573         (mktemp): Enable declaration.
16574         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
16575         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
16576         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
16577         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
16578         Likewise.
16579         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
16580         Likewise.
16581         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
16582         Likewise.
16583         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
16584         Likewise.
16585         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
16586         Likewise.
16587         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
16588         Likewise.
16589
16590         [BZ #14821]
16591         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
16592         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
16593         for copies of such integer values.
16594         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16595         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16596
16597 2012-11-09  Andreas Jaeger  <aj@suse.de>
16598
16599         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
16600         definitions and declarations that are provided by
16601         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
16602
16603 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16604
16605         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
16606         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
16607         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
16608         definition.
16609
16610 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16611
16612         * elf/elf.h: Update comment before AArch64 relocations.
16613
16614 2012-11-07  David S. Miller  <davem@davemloft.net>
16615
16616         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
16617         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16618         (__start_context): Declare.
16619         (__makecontext_ret): Delete.
16620         (__makecontext): Hook up __start_context instead of
16621         __makecontext_ret.
16622         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
16623         (sysdep_routines): Add __start_context when in stdlib.
16624
16625 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16626
16627         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
16628         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
16629         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
16630         hardcoded "nm".
16631         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
16632         (READELF): New variable.  Use it instead of hardcoded "readelf".
16633
16634 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16635
16636         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
16637         * sysdeps/x86/Makefile: Here.
16638         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
16639         * sysdeps/x86/tst-xmmymm.sh: This.
16640
16641 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16642
16643         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
16644         expectations.
16645         [UNIX98] (pthread_barrier_t): Do not expect.
16646         [UNIX98] (pthread_barrierattr_t): Likewise.
16647         [UNIX98] (pthread_spinlock_t): Likewise.
16648         [UNIX98] (pthread_barrier_destroy): Likewise.
16649         [UNIX98] (pthread_barrier_init): Likewise.
16650         [UNIX98] (pthread_barrier_wait): Likewise.
16651         [UNIX98] (pthread_barrierattr_destroy): Likewise.
16652         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
16653         [UNIX98] (pthread_barrierattr_init): Likewise.
16654         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
16655         [UNIX98] (pthread_getcpuclockid): Likewise.
16656         [UNIX98] (pthread_mutex_timedlock): Likewise.
16657         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
16658         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
16659         [UNIX98] (pthread_sigmask): Likewise.
16660         [UNIX98] (pthread_spin_destroy): Likewise.
16661         [UNIX98] (pthread_spin_init): Likewise.
16662         [UNIX98] (pthread_spin_lock): Likewise.
16663         [UNIX98] (pthread_spin_trylock): Likewise.
16664         [UNIX98] (pthread_spin_unlock): Likewise.
16665         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
16666         Do not expect.
16667         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
16668         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
16669         [XPG3 || XPG4] (pthread_cond_t): Likewise.
16670         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
16671         [XPG3 || XPG4] (pthread_key_t): Likewise.
16672         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
16673         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
16674         [XPG3 || XPG4] (pthread_once_t): Likewise.
16675         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
16676         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
16677         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
16678         [XPG3 || XPG4] (pthread_t): Likewise.
16679
16680         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
16681         not expect.
16682         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
16683
16684         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
16685         Change function return type to int.
16686
16687         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
16688         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
16689         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
16690         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
16691         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
16692         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
16693         [!POSIX] (posix_madvise): Likewise.
16694         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
16695         && !UNIX98].
16696         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
16697         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
16698         (mode_t): Likewise.
16699         (posix_mem_offset): Likewise.
16700         (posix_typed_mem_get_info): Likewise.
16701         (posix_typed_mem_open): Likewise.
16702
16703         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
16704         Change condition to [XOPEN2K8].
16705
16706         * conform/conformtest.pl: Preprocess allow-header data with -x c
16707         instead of from stdin.
16708         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
16709         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
16710         [C99-based standards] (cerfc): Likewise.
16711         [C99-based standards] (cexp2): Likewise.
16712         [C99-based standards] (cexpm1): Likewise.
16713         [C99-based standards] (clog10): Likewise.
16714         [C99-based standards] (clog1p): Likewise.
16715         [C99-based standards] (clog2): Likewise.
16716         [C99-based standards] (clgamma): Likewise.
16717         [C99-based standards] (ctgamma): Likewise.
16718         [C99-based standards] (cerff): Likewise.
16719         [C99-based standards] (cerfcf): Likewise.
16720         [C99-based standards] (cexp2f): Likewise.
16721         [C99-based standards] (cexpm1f): Likewise.
16722         [C99-based standards] (clog10f): Likewise.
16723         [C99-based standards] (clog1pf): Likewise.
16724         [C99-based standards] (clog2f): Likewise.
16725         [C99-based standards] (clgammaf): Likewise.
16726         [C99-based standards] (ctgammaf): Likewise.
16727         [C99-based standards] (cerfl): Likewise.
16728         [C99-based standards] (cerfcl): Likewise.
16729         [C99-based standards] (cexp2l): Likewise.
16730         [C99-based standards] (cexpm1l): Likewise.
16731         [C99-based standards] (clog10l): Likewise.
16732         [C99-based standards] (clog1pl): Likewise.
16733         [C99-based standards] (clog2l): Likewise.
16734         [C99-based standards] (clgammal): Likewise.
16735         [C99-based standards] (ctgammal): Likewise.
16736         * conform/data/inttypes.h-data [C99-based standards]: Include
16737         stdint.h-data.  Remove all expectations for stdint.h contents.
16738         [C99-based standards] (PRI*): Do not allow.
16739         [C99-based standards] (SCN*): Likewise.
16740         [C99-based standards] (*_t): Likewise.
16741         [C99-based-standards] (PRId8): Expect macro.
16742         [C99-based-standards] (PRIi8): Likewise.
16743         [C99-based-standards] (PRIo8): Likewise.
16744         [C99-based-standards] (PRIu8): Likewise.
16745         [C99-based-standards] (PRIx8): Likewise.
16746         [C99-based-standards] (PRIX8): Likewise.
16747         [C99-based-standards] (SCNd8): Likewise.
16748         [C99-based-standards] (SCNi8): Likewise.
16749         [C99-based-standards] (SCNo8): Likewise.
16750         [C99-based-standards] (SCNu8): Likewise.
16751         [C99-based-standards] (SCNx8): Likewise.
16752         [C99-based-standards] (PRIdLEAST8): Likewise.
16753         [C99-based-standards] (PRIiLEAST8): Likewise.
16754         [C99-based-standards] (PRIoLEAST8): Likewise.
16755         [C99-based-standards] (PRIuLEAST8): Likewise.
16756         [C99-based-standards] (PRIxLEAST8): Likewise.
16757         [C99-based-standards] (PRIXLEAST8): Likewise.
16758         [C99-based-standards] (SCNdLEAST8): Likewise.
16759         [C99-based-standards] (SCNiLEAST8): Likewise.
16760         [C99-based-standards] (SCNoLEAST8): Likewise.
16761         [C99-based-standards] (SCNuLEAST8): Likewise.
16762         [C99-based-standards] (SCNxLEAST8): Likewise.
16763         [C99-based-standards] (PRIdFAST8): Likewise.
16764         [C99-based-standards] (PRIiFAST8): Likewise.
16765         [C99-based-standards] (PRIoFAST8): Likewise.
16766         [C99-based-standards] (PRIuFAST8): Likewise.
16767         [C99-based-standards] (PRIxFAST8): Likewise.
16768         [C99-based-standards] (PRIXFAST8): Likewise.
16769         [C99-based-standards] (SCNdFAST8): Likewise.
16770         [C99-based-standards] (SCNiFAST8): Likewise.
16771         [C99-based-standards] (SCNoFAST8): Likewise.
16772         [C99-based-standards] (SCNuFAST8): Likewise.
16773         [C99-based-standards] (SCNxFAST8): Likewise.
16774         [C99-based-standards] (PRId16): Likewise.
16775         [C99-based-standards] (PRIi16): Likewise.
16776         [C99-based-standards] (PRIo16): Likewise.
16777         [C99-based-standards] (PRIu16): Likewise.
16778         [C99-based-standards] (PRIx16): Likewise.
16779         [C99-based-standards] (PRIX16): Likewise.
16780         [C99-based-standards] (SCNd16): Likewise.
16781         [C99-based-standards] (SCNi16): Likewise.
16782         [C99-based-standards] (SCNo16): Likewise.
16783         [C99-based-standards] (SCNu16): Likewise.
16784         [C99-based-standards] (SCNx16): Likewise.
16785         [C99-based-standards] (PRIdLEAST16): Likewise.
16786         [C99-based-standards] (PRIiLEAST16): Likewise.
16787         [C99-based-standards] (PRIoLEAST16): Likewise.
16788         [C99-based-standards] (PRIuLEAST16): Likewise.
16789         [C99-based-standards] (PRIxLEAST16): Likewise.
16790         [C99-based-standards] (PRIXLEAST16): Likewise.
16791         [C99-based-standards] (SCNdLEAST16): Likewise.
16792         [C99-based-standards] (SCNiLEAST16): Likewise.
16793         [C99-based-standards] (SCNoLEAST16): Likewise.
16794         [C99-based-standards] (SCNuLEAST16): Likewise.
16795         [C99-based-standards] (SCNxLEAST16): Likewise.
16796         [C99-based-standards] (PRIdFAST16): Likewise.
16797         [C99-based-standards] (PRIiFAST16): Likewise.
16798         [C99-based-standards] (PRIoFAST16): Likewise.
16799         [C99-based-standards] (PRIuFAST16): Likewise.
16800         [C99-based-standards] (PRIxFAST16): Likewise.
16801         [C99-based-standards] (PRIXFAST16): Likewise.
16802         [C99-based-standards] (SCNdFAST16): Likewise.
16803         [C99-based-standards] (SCNiFAST16): Likewise.
16804         [C99-based-standards] (SCNoFAST16): Likewise.
16805         [C99-based-standards] (SCNuFAST16): Likewise.
16806         [C99-based-standards] (SCNxFAST16): Likewise.
16807         [C99-based-standards] (PRId32): Likewise.
16808         [C99-based-standards] (PRIi32): Likewise.
16809         [C99-based-standards] (PRIo32): Likewise.
16810         [C99-based-standards] (PRIu32): Likewise.
16811         [C99-based-standards] (PRIx32): Likewise.
16812         [C99-based-standards] (PRIX32): Likewise.
16813         [C99-based-standards] (SCNd32): Likewise.
16814         [C99-based-standards] (SCNi32): Likewise.
16815         [C99-based-standards] (SCNo32): Likewise.
16816         [C99-based-standards] (SCNu32): Likewise.
16817         [C99-based-standards] (SCNx32): Likewise.
16818         [C99-based-standards] (PRIdLEAST32): Likewise.
16819         [C99-based-standards] (PRIiLEAST32): Likewise.
16820         [C99-based-standards] (PRIoLEAST32): Likewise.
16821         [C99-based-standards] (PRIuLEAST32): Likewise.
16822         [C99-based-standards] (PRIxLEAST32): Likewise.
16823         [C99-based-standards] (PRIXLEAST32): Likewise.
16824         [C99-based-standards] (SCNdLEAST32): Likewise.
16825         [C99-based-standards] (SCNiLEAST32): Likewise.
16826         [C99-based-standards] (SCNoLEAST32): Likewise.
16827         [C99-based-standards] (SCNuLEAST32): Likewise.
16828         [C99-based-standards] (SCNxLEAST32): Likewise.
16829         [C99-based-standards] (PRIdFAST32): Likewise.
16830         [C99-based-standards] (PRIiFAST32): Likewise.
16831         [C99-based-standards] (PRIoFAST32): Likewise.
16832         [C99-based-standards] (PRIuFAST32): Likewise.
16833         [C99-based-standards] (PRIxFAST32): Likewise.
16834         [C99-based-standards] (PRIXFAST32): Likewise.
16835         [C99-based-standards] (SCNdFAST32): Likewise.
16836         [C99-based-standards] (SCNiFAST32): Likewise.
16837         [C99-based-standards] (SCNoFAST32): Likewise.
16838         [C99-based-standards] (SCNuFAST32): Likewise.
16839         [C99-based-standards] (SCNxFAST32): Likewise.
16840         [C99-based-standards] (PRId64): Likewise.
16841         [C99-based-standards] (PRIi64): Likewise.
16842         [C99-based-standards] (PRIo64): Likewise.
16843         [C99-based-standards] (PRIu64): Likewise.
16844         [C99-based-standards] (PRIx64): Likewise.
16845         [C99-based-standards] (PRIX64): Likewise.
16846         [C99-based-standards] (SCNd64): Likewise.
16847         [C99-based-standards] (SCNi64): Likewise.
16848         [C99-based-standards] (SCNo64): Likewise.
16849         [C99-based-standards] (SCNu64): Likewise.
16850         [C99-based-standards] (SCNx64): Likewise.
16851         [C99-based-standards] (PRIdLEAST64): Likewise.
16852         [C99-based-standards] (PRIiLEAST64): Likewise.
16853         [C99-based-standards] (PRIoLEAST64): Likewise.
16854         [C99-based-standards] (PRIuLEAST64): Likewise.
16855         [C99-based-standards] (PRIxLEAST64): Likewise.
16856         [C99-based-standards] (PRIXLEAST64): Likewise.
16857         [C99-based-standards] (SCNdLEAST64): Likewise.
16858         [C99-based-standards] (SCNiLEAST64): Likewise.
16859         [C99-based-standards] (SCNoLEAST64): Likewise.
16860         [C99-based-standards] (SCNuLEAST64): Likewise.
16861         [C99-based-standards] (SCNxLEAST64): Likewise.
16862         [C99-based-standards] (PRIdFAST64): Likewise.
16863         [C99-based-standards] (PRIiFAST64): Likewise.
16864         [C99-based-standards] (PRIoFAST64): Likewise.
16865         [C99-based-standards] (PRIuFAST64): Likewise.
16866         [C99-based-standards] (PRIxFAST64): Likewise.
16867         [C99-based-standards] (PRIXFAST64): Likewise.
16868         [C99-based-standards] (SCNdFAST64): Likewise.
16869         [C99-based-standards] (SCNiFAST64): Likewise.
16870         [C99-based-standards] (SCNoFAST64): Likewise.
16871         [C99-based-standards] (SCNuFAST64): Likewise.
16872         [C99-based-standards] (SCNxFAST64): Likewise.
16873         [C99-based-standards] (PRIdMAX): Likewise.
16874         [C99-based-standards] (PRIiMAX): Likewise.
16875         [C99-based-standards] (PRIoMAX): Likewise.
16876         [C99-based-standards] (PRIuMAX): Likewise.
16877         [C99-based-standards] (PRIxMAX): Likewise.
16878         [C99-based-standards] (PRIXMAX): Likewise.
16879         [C99-based-standards] (SCNdMAX): Likewise.
16880         [C99-based-standards] (SCNiMAX): Likewise.
16881         [C99-based-standards] (SCNoMAX): Likewise.
16882         [C99-based-standards] (SCNuMAX): Likewise.
16883         [C99-based-standards] (SCNxMAX): Likewise.
16884         [C99-based-standards] (PRIdPTR): Likewise.
16885         [C99-based-standards] (PRIiPTR): Likewise.
16886         [C99-based-standards] (PRIoPTR): Likewise.
16887         [C99-based-standards] (PRIuPTR): Likewise.
16888         [C99-based-standards] (PRIxPTR): Likewise.
16889         [C99-based-standards] (PRIXPTR): Likewise.
16890         [C99-based-standards] (SCNdPTR): Likewise.
16891         [C99-based-standards] (SCNiPTR): Likewise.
16892         [C99-based-standards] (SCNoPTR): Likewise.
16893         [C99-based-standards] (SCNuPTR): Likewise.
16894         [C99-based-standards] (SCNxPTR): Likewise.
16895         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
16896         allow.
16897         * conform/data/stdint.h-data: Update comments to clarify
16898         requirements.
16899         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
16900         type.
16901         [C99-based standards] (INT8_MAX): Likewise.
16902         [C99-based standards] (INT16_MIN): Likewise.
16903         [C99-based standards] (INT16_MAX): Likewise.
16904         [C99-based standards] (INT32_MIN): Likewise.
16905         [C99-based standards] (INT32_MAX): Likewise.
16906         [C99-based standards] (INT64_MIN): Likewise.
16907         [C99-based standards] (INT64_MAX): Likewise.
16908         [C99-based standards] (UINT8_MAX): Likewise.
16909         [C99-based standards] (UINT16_MAX): Likewise.
16910         [C99-based standards] (UINT32_MAX): Likewise.
16911         [C99-based standards] (UINT64_MAX): Likewise.
16912         [C99-based standards] (INT_LEAST8_MIN): Likewise.
16913         [C99-based standards] (INT_LEAST8_MAX): Likewise.
16914         [C99-based standards] (INT_LEAST16_MIN): Likewise.
16915         [C99-based standards] (INT_LEAST16_MAX): Likewise.
16916         [C99-based standards] (INT_LEAST32_MIN): Likewise.
16917         [C99-based standards] (INT_LEAST32_MAX): Likewise.
16918         [C99-based standards] (INT_LEAST64_MIN): Likewise.
16919         [C99-based standards] (INT_LEAST64_MAX): Likewise.
16920         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
16921         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
16922         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
16923         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
16924         [C99-based standards] (INT_FAST8_MIN): Likewise.
16925         [C99-based standards] (INT_FAST8_MAX): Likewise.
16926         [C99-based standards] (INT_FAST16_MIN): Likewise.
16927         [C99-based standards] (INT_FAST16_MAX): Likewise.
16928         [C99-based standards] (INT_FAST32_MIN): Likewise.
16929         [C99-based standards] (INT_FAST32_MAX): Likewise.
16930         [C99-based standards] (INT_FAST64_MIN): Likewise.
16931         [C99-based standards] (INT_FAST64_MAX): Likewise.
16932         [C99-based standards] (UINT_FAST8_MAX): Likewise.
16933         [C99-based standards] (UINT_FAST16_MAX): Likewise.
16934         [C99-based standards] (UINT_FAST32_MAX): Likewise.
16935         [C99-based standards] (UINT_FAST64_MAX): Likewise.
16936         [C99-based standards] (INTPTR_MIN): Likewise.
16937         [C99-based standards] (INTPTR_MAX): Likewise.
16938         [C99-based standards] (UINTPTR_MAX): Likewise.
16939         [C99-based standards] (INTMAX_MIN): Likewise.
16940         [C99-based standards] (INTMAX_MAX): Likewise.
16941         [C99-based standards] (UINTMAX_MAX): Likewise.
16942         [C99-based standards] (PTRDIFF_MIN): Likewise.
16943         [C99-based standards] (PTRDIFF_MAX): Likewise.
16944         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
16945         [C99-based standards] (SIZE_MAX): Likewise.
16946         [C99-based standards] (WCHAR_MAX): Likewise.
16947         [C99-based standards] (WINT_MAX): Likewise.
16948         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
16949         constraint on value.
16950         [C99-based standards] (WCHAR_MIN): Likewise.
16951         [C99-based standards] (WINT_MIN): Likewise.
16952         [C99-based standards] (*_t): Allow.
16953         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
16954         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
16955         Include math.h-data and complex.h-data.  Remove all expectations
16956         of math.h and complex.h contents.
16957         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
16958         at end of line.
16959         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
16960         (struct tm): Expect tag.
16961         [C99-based-standards] (wcstof): Expect function.
16962         [C99-based-standards] (wcstold): Likewise.
16963         [C99-based-standards] (wcstoll): Likewise.
16964         [C99-based-standards] (wcstoull): Likewise.
16965         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
16966         macro-int-constant.  Specify type.
16967         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
16968         constraint on value.
16969         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16970         Specify type.
16971         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
16972         Specify value.
16973         [ISO C standards]: Do not allow headers.
16974         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
16975         wcs[abcdefghijklmnopqrstuvwxyz]*.
16976         [ISO C standards] (*_t): Do not allow.
16977         * conform/data/wctype.h-data [C99-based standards] (iswblank):
16978         Expect function.
16979         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
16980         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
16981         Specify type.
16982         [ISO C standards]: Do not allow headers.
16983         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
16984         is[abcdefghijklmnopqrstuvwxyz]*.
16985         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
16986         to[abcdefghijklmnopqrstuvwxyz]*.
16987         [ISO C standards] (*_t): Do not allow.
16988         * conform/data/stdalign.h-data: New file.
16989         * conform/data/stdbool.h-data: Likewise.
16990         * conform/data/stdnoreturn.h-data: Likewise.
16991
16992 2012-11-07  Roland McGrath  <roland@hack.frob.com>
16993
16994         [BZ #14815]
16995         * manual/filesys.texi (Directory Entries): Typo fix.
16996         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
16997
16998 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16999
17000         * elf/elf.h (EM_AARCH64): New macro.
17001         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
17002         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
17003         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
17004         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
17005         (R_AARCH64_TLSDESC): Likewise.
17006         (NT_ARM_TLS): Likewise.
17007         (NT_ARM_HW_BREAK): Likewise.
17008         (NT_ARM_HW_WATCH): Likewise.
17009
17010 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
17011
17012         [BZ #14811]
17013         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
17014         (__ieee754_powl): Saturate nonzero exponents with absolute value
17015         below 0x1p-79 to +/- 0x1p-79.
17016         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
17017         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
17018         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
17019         nonzero exponents with absolute value below 0x1p-32 to +/-
17020         0x1p-32.
17021         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
17022         (__ieee754_powl): Saturate nonzero exponents with absolute value
17023         below 0x1p-79 to +/- 0x1p-79.
17024         * math/libm-test.inc (pow_test): Add more tests.
17025
17026 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17027
17028         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
17029         _dl_s390_cap_flags with kernel. Increase string length.
17030         (_dl_s390_platforms): Add z196 and zEC12.
17031
17032 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
17033
17034         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
17035         Change XOPEN21K to XOPEN2K.
17036
17037 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17038
17039         * string/memmove.c: Use memcpy when possible.
17040
17041 2012-11-06  Andreas Jaeger  <aj@suse.de>
17042
17043         * po/eo.po: Update from translation team.
17044
17045 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
17046
17047         [BZ #14793]
17048         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
17049         exponent and small x and y exponents, scale x or y up.  Increase
17050         by 2 the exponent used in scaling up.
17051         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17052         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17053         * math/libm-test.inc (fma_test): Add more tests.
17054         (fma_test_towardzero): Likewise.
17055         (fma_test_downward): Likewise.
17056         (fma_test_upward): Likewise.
17057
17058 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
17059
17060         [BZ #14805]
17061         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
17062         fenv_t *.
17063
17064         [BZ #14801]
17065         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
17066         namespace for names of struct fields.
17067         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
17068         fenv_t fields.
17069         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
17070         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
17071
17072 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17073
17074         [BZ #3665]
17075         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
17076
17077 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17078
17079         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
17080         PTR_DEMANGLE.
17081
17082         [BZ #5246]
17083         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
17084         PTR_DEMANGLE.
17085
17086 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
17087
17088         [BZ #14797]
17089         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
17090         definitely overflow as x * y not x * y + z.
17091         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17092         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17093         * math/libm-test.inc (fma_test): Add more tests.
17094         (fma_test_towardzero): Likewise.
17095         (fma_test_downward): Likewise.
17096         (fma_test_upward): Likewise.
17097
17098 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17099
17100         [BZ #157]
17101
17102         * include/stub-tag.h: Remove file.
17103         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
17104         '#include' of it.
17105         * manual/maint.texi (Porting): Don't reference it.
17106         * Makerules ($(objpfx)stubs): Likewise.
17107         * dirent/closedir.c: Don't include <stub-tag.h>.
17108         * dirent/dirfd.c: Likewise.
17109         * dirent/fdopendir.c: Likewise.
17110         * dirent/getdents.c: Likewise.
17111         * dirent/getdents64.c: Likewise.
17112         * dirent/opendir.c: Likewise.
17113         * dirent/readdir.c: Likewise.
17114         * dirent/readdir64.c: Likewise.
17115         * dirent/readdir64_r.c: Likewise.
17116         * dirent/readdir_r.c: Likewise.
17117         * dirent/rewinddir.c: Likewise.
17118         * dirent/seekdir.c: Likewise.
17119         * dirent/telldir.c: Likewise.
17120         * gmon/profil.c: Likewise.
17121         * grp/setgroups.c: Likewise.
17122         * inet/if_index.c: Likewise.
17123         * io/access.c: Likewise.
17124         * io/chdir.c: Likewise.
17125         * io/chmod.c: Likewise.
17126         * io/chown.c: Likewise.
17127         * io/close.c: Likewise.
17128         * io/dup.c: Likewise.
17129         * io/dup2.c: Likewise.
17130         * io/dup3.c: Likewise.
17131         * io/euidaccess.c: Likewise.
17132         * io/faccessat.c: Likewise.
17133         * io/fchdir.c: Likewise.
17134         * io/fchmod.c: Likewise.
17135         * io/fchmodat.c: Likewise.
17136         * io/fchown.c: Likewise.
17137         * io/fchownat.c: Likewise.
17138         * io/fcntl.c: Likewise.
17139         * io/flock.c: Likewise.
17140         * io/fstatfs.c: Likewise.
17141         * io/fstatfs64.c: Likewise.
17142         * io/fstatvfs.c: Likewise.
17143         * io/fstatvfs64.c: Likewise.
17144         * io/futimens.c: Likewise.
17145         * io/fxstat.c: Likewise.
17146         * io/fxstat64.c: Likewise.
17147         * io/fxstatat.c: Likewise.
17148         * io/fxstatat64.c: Likewise.
17149         * io/getcwd.c: Likewise.
17150         * io/isatty.c: Likewise.
17151         * io/lchmod.c: Likewise.
17152         * io/lchown.c: Likewise.
17153         * io/link.c: Likewise.
17154         * io/linkat.c: Likewise.
17155         * io/lseek.c: Likewise.
17156         * io/lseek64.c: Likewise.
17157         * io/lxstat64.c: Likewise.
17158         * io/mkdir.c: Likewise.
17159         * io/mkdirat.c: Likewise.
17160         * io/mkfifo.c: Likewise.
17161         * io/mkfifoat.c: Likewise.
17162         * io/open.c: Likewise.
17163         * io/open64.c: Likewise.
17164         * io/openat.c: Likewise.
17165         * io/openat64.c: Likewise.
17166         * io/pipe.c: Likewise.
17167         * io/pipe2.c: Likewise.
17168         * io/poll.c: Likewise.
17169         * io/posix_fadvise.c: Likewise.
17170         * io/posix_fadvise64.c: Likewise.
17171         * io/posix_fallocate.c: Likewise.
17172         * io/posix_fallocate64.c: Likewise.
17173         * io/read.c: Likewise.
17174         * io/readlink.c: Likewise.
17175         * io/readlinkat.c: Likewise.
17176         * io/rmdir.c: Likewise.
17177         * io/sendfile.c: Likewise.
17178         * io/sendfile64.c: Likewise.
17179         * io/statfs.c: Likewise.
17180         * io/statfs64.c: Likewise.
17181         * io/statvfs.c: Likewise.
17182         * io/statvfs64.c: Likewise.
17183         * io/symlink.c: Likewise.
17184         * io/symlinkat.c: Likewise.
17185         * io/ttyname.c: Likewise.
17186         * io/ttyname_r.c: Likewise.
17187         * io/umask.c: Likewise.
17188         * io/unlink.c: Likewise.
17189         * io/unlinkat.c: Likewise.
17190         * io/utime.c: Likewise.
17191         * io/utimensat.c: Likewise.
17192         * io/write.c: Likewise.
17193         * io/xmknod.c: Likewise.
17194         * io/xmknodat.c: Likewise.
17195         * io/xstat.c: Likewise.
17196         * io/xstat64.c: Likewise.
17197         * login/getpt.c: Likewise.
17198         * login/grantpt.c: Likewise.
17199         * login/unlockpt.c: Likewise.
17200         * math/e_acoshl.c: Likewise.
17201         * math/e_acosl.c: Likewise.
17202         * math/e_asinl.c: Likewise.
17203         * math/e_atan2l.c: Likewise.
17204         * math/e_atanhl.c: Likewise.
17205         * math/e_coshl.c: Likewise.
17206         * math/e_expl.c: Likewise.
17207         * math/e_fmodl.c: Likewise.
17208         * math/e_gammal_r.c: Likewise.
17209         * math/e_hypotl.c: Likewise.
17210         * math/e_j0l.c: Likewise.
17211         * math/e_j1l.c: Likewise.
17212         * math/e_jnl.c: Likewise.
17213         * math/e_lgammal_r.c: Likewise.
17214         * math/e_log10l.c: Likewise.
17215         * math/e_log2l.c: Likewise.
17216         * math/e_logl.c: Likewise.
17217         * math/e_powl.c: Likewise.
17218         * math/e_rem_pio2l.c: Likewise.
17219         * math/e_sinhl.c: Likewise.
17220         * math/e_sqrtl.c: Likewise.
17221         * math/fclrexcpt.c: Likewise.
17222         * math/fedisblxcpt.c: Likewise.
17223         * math/feenablxcpt.c: Likewise.
17224         * math/fegetenv.c: Likewise.
17225         * math/fegetexcept.c: Likewise.
17226         * math/fegetround.c: Likewise.
17227         * math/feholdexcpt.c: Likewise.
17228         * math/fesetenv.c: Likewise.
17229         * math/fesetround.c: Likewise.
17230         * math/feupdateenv.c: Likewise.
17231         * math/fgetexcptflg.c: Likewise.
17232         * math/fraiseexcpt.c: Likewise.
17233         * math/fsetexcptflg.c: Likewise.
17234         * math/ftestexcept.c: Likewise.
17235         * math/k_cosl.c: Likewise.
17236         * math/k_rem_pio2l.c: Likewise.
17237         * math/k_sinl.c: Likewise.
17238         * math/k_tanl.c: Likewise.
17239         * math/s_asinhl.c: Likewise.
17240         * math/s_atanl.c: Likewise.
17241         * math/s_cbrtl.c: Likewise.
17242         * math/s_erfl.c: Likewise.
17243         * math/s_expm1l.c: Likewise.
17244         * math/s_log1pl.c: Likewise.
17245         * math/s_tanhl.c: Likewise.
17246         * misc/acct.c: Likewise.
17247         * misc/brk.c: Likewise.
17248         * misc/chflags.c: Likewise.
17249         * misc/chroot.c: Likewise.
17250         * misc/fchflags.c: Likewise.
17251         * misc/fgetxattr.c: Likewise.
17252         * misc/flistxattr.c: Likewise.
17253         * misc/fremovexattr.c: Likewise.
17254         * misc/fsetxattr.c: Likewise.
17255         * misc/fsync.c: Likewise.
17256         * misc/ftruncate.c: Likewise.
17257         * misc/futimes.c: Likewise.
17258         * misc/futimesat.c: Likewise.
17259         * misc/getdomain.c: Likewise.
17260         * misc/getdtsz.c: Likewise.
17261         * misc/gethostid.c: Likewise.
17262         * misc/gethostname.c: Likewise.
17263         * misc/getloadavg.c: Likewise.
17264         * misc/getpagesize.c: Likewise.
17265         * misc/getsysstats.c: Likewise.
17266         * misc/getxattr.c: Likewise.
17267         * misc/gtty.c: Likewise.
17268         * misc/ioctl.c: Likewise.
17269         * misc/lgetxattr.c: Likewise.
17270         * misc/listxattr.c: Likewise.
17271         * misc/llistxattr.c: Likewise.
17272         * misc/lremovexattr.c: Likewise.
17273         * misc/lsetxattr.c: Likewise.
17274         * misc/lutimes.c: Likewise.
17275         * misc/madvise.c: Likewise.
17276         * misc/mincore.c: Likewise.
17277         * misc/mlock.c: Likewise.
17278         * misc/mlockall.c: Likewise.
17279         * misc/mmap.c: Likewise.
17280         * misc/mprotect.c: Likewise.
17281         * misc/msync.c: Likewise.
17282         * misc/munlock.c: Likewise.
17283         * misc/munlockall.c: Likewise.
17284         * misc/munmap.c: Likewise.
17285         * misc/preadv.c: Likewise.
17286         * misc/preadv64.c: Likewise.
17287         * misc/ptrace.c: Likewise.
17288         * misc/pwritev.c: Likewise.
17289         * misc/pwritev64.c: Likewise.
17290         * misc/readv.c: Likewise.
17291         * misc/reboot.c: Likewise.
17292         * misc/remap_file_pages.c: Likewise.
17293         * misc/removexattr.c: Likewise.
17294         * misc/revoke.c: Likewise.
17295         * misc/select.c: Likewise.
17296         * misc/setdomain.c: Likewise.
17297         * misc/setegid.c: Likewise.
17298         * misc/seteuid.c: Likewise.
17299         * misc/sethostid.c: Likewise.
17300         * misc/sethostname.c: Likewise.
17301         * misc/setregid.c: Likewise.
17302         * misc/setreuid.c: Likewise.
17303         * misc/setxattr.c: Likewise.
17304         * misc/sstk.c: Likewise.
17305         * misc/stty.c: Likewise.
17306         * misc/swapoff.c: Likewise.
17307         * misc/swapon.c: Likewise.
17308         * misc/sync.c: Likewise.
17309         * misc/syncfs.c: Likewise.
17310         * misc/syscall.c: Likewise.
17311         * misc/truncate.c: Likewise.
17312         * misc/ualarm.c: Likewise.
17313         * misc/usleep.c: Likewise.
17314         * misc/ustat.c: Likewise.
17315         * misc/utimes.c: Likewise.
17316         * misc/vhangup.c: Likewise.
17317         * misc/writev.c: Likewise.
17318         * posix/_exit.c: Likewise.
17319         * posix/alarm.c: Likewise.
17320         * posix/execve.c: Likewise.
17321         * posix/fexecve.c: Likewise.
17322         * posix/fork.c: Likewise.
17323         * posix/fpathconf.c: Likewise.
17324         * posix/getaddrinfo.c: Likewise.
17325         * posix/getegid.c: Likewise.
17326         * posix/geteuid.c: Likewise.
17327         * posix/getgid.c: Likewise.
17328         * posix/getgroups.c: Likewise.
17329         * posix/getlogin.c: Likewise.
17330         * posix/getlogin_r.c: Likewise.
17331         * posix/getpgid.c: Likewise.
17332         * posix/getpid.c: Likewise.
17333         * posix/getppid.c: Likewise.
17334         * posix/getresgid.c: Likewise.
17335         * posix/getresuid.c: Likewise.
17336         * posix/getsid.c: Likewise.
17337         * posix/getuid.c: Likewise.
17338         * posix/glob64.c: Likewise.
17339         * posix/nanosleep.c: Likewise.
17340         * posix/pathconf.c: Likewise.
17341         * posix/pause.c: Likewise.
17342         * posix/posix_madvise.c: Likewise.
17343         * posix/pread.c: Likewise.
17344         * posix/pread64.c: Likewise.
17345         * posix/pwrite.c: Likewise.
17346         * posix/pwrite64.c: Likewise.
17347         * posix/sched_getaffinity.c: Likewise.
17348         * posix/sched_getp.c: Likewise.
17349         * posix/sched_gets.c: Likewise.
17350         * posix/sched_primax.c: Likewise.
17351         * posix/sched_primin.c: Likewise.
17352         * posix/sched_rr_gi.c: Likewise.
17353         * posix/sched_setaffinity.c: Likewise.
17354         * posix/sched_setp.c: Likewise.
17355         * posix/sched_sets.c: Likewise.
17356         * posix/sched_yield.c: Likewise.
17357         * posix/setgid.c: Likewise.
17358         * posix/setlogin.c: Likewise.
17359         * posix/setpgid.c: Likewise.
17360         * posix/setresgid.c: Likewise.
17361         * posix/setresuid.c: Likewise.
17362         * posix/setsid.c: Likewise.
17363         * posix/setuid.c: Likewise.
17364         * posix/sleep.c: Likewise.
17365         * posix/spawni.c: Likewise.
17366         * posix/sysconf.c: Likewise.
17367         * posix/times.c: Likewise.
17368         * posix/wait.c: Likewise.
17369         * posix/wait3.c: Likewise.
17370         * posix/wait4.c: Likewise.
17371         * posix/waitpid.c: Likewise.
17372         * resolv/gai_sigqueue.c: Likewise.
17373         * resource/getpriority.c: Likewise.
17374         * resource/getrlimit.c: Likewise.
17375         * resource/getrusage.c: Likewise.
17376         * resource/nice.c: Likewise.
17377         * resource/setpriority.c: Likewise.
17378         * resource/setrlimit.c: Likewise.
17379         * resource/ulimit.c: Likewise.
17380         * rt/aio_cancel.c: Likewise.
17381         * rt/aio_fsync.c: Likewise.
17382         * rt/aio_read.c: Likewise.
17383         * rt/aio_sigqueue.c: Likewise.
17384         * rt/aio_suspend.c: Likewise.
17385         * rt/aio_write.c: Likewise.
17386         * rt/clock_getres.c: Likewise.
17387         * rt/clock_gettime.c: Likewise.
17388         * rt/clock_nanosleep.c: Likewise.
17389         * rt/clock_settime.c: Likewise.
17390         * rt/lio_listio.c: Likewise.
17391         * rt/mq_close.c: Likewise.
17392         * rt/mq_getattr.c: Likewise.
17393         * rt/mq_notify.c: Likewise.
17394         * rt/mq_open.c: Likewise.
17395         * rt/mq_receive.c: Likewise.
17396         * rt/mq_send.c: Likewise.
17397         * rt/mq_setattr.c: Likewise.
17398         * rt/mq_timedreceive.c: Likewise.
17399         * rt/mq_timedsend.c: Likewise.
17400         * rt/mq_unlink.c: Likewise.
17401         * rt/shm_open.c: Likewise.
17402         * rt/shm_unlink.c: Likewise.
17403         * rt/timer_create.c: Likewise.
17404         * rt/timer_delete.c: Likewise.
17405         * rt/timer_getoverr.c: Likewise.
17406         * rt/timer_gettime.c: Likewise.
17407         * rt/timer_settime.c: Likewise.
17408         * setjmp/__longjmp.c: Likewise.
17409         * setjmp/setjmp.c: Likewise.
17410         * signal/kill.c: Likewise.
17411         * signal/killpg.c: Likewise.
17412         * signal/raise.c: Likewise.
17413         * signal/sigaction.c: Likewise.
17414         * signal/sigaltstack.c: Likewise.
17415         * signal/sigblock.c: Likewise.
17416         * signal/sigignore.c: Likewise.
17417         * signal/sigintr.c: Likewise.
17418         * signal/signal.c: Likewise.
17419         * signal/sigpause.c: Likewise.
17420         * signal/sigpending.c: Likewise.
17421         * signal/sigqueue.c: Likewise.
17422         * signal/sigreturn.c: Likewise.
17423         * signal/sigset.c: Likewise.
17424         * signal/sigsetmask.c: Likewise.
17425         * signal/sigstack.c: Likewise.
17426         * signal/sigsuspend.c: Likewise.
17427         * signal/sigtimedwait.c: Likewise.
17428         * signal/sigvec.c: Likewise.
17429         * signal/sigwait.c: Likewise.
17430         * signal/sigwaitinfo.c: Likewise.
17431         * signal/sysv_signal.c: Likewise.
17432         * socket/accept.c: Likewise.
17433         * socket/accept4.c: Likewise.
17434         * socket/bind.c: Likewise.
17435         * socket/connect.c: Likewise.
17436         * socket/getpeername.c: Likewise.
17437         * socket/getsockname.c: Likewise.
17438         * socket/getsockopt.c: Likewise.
17439         * socket/isfdtype.c: Likewise.
17440         * socket/listen.c: Likewise.
17441         * socket/recv.c: Likewise.
17442         * socket/recvfrom.c: Likewise.
17443         * socket/recvmsg.c: Likewise.
17444         * socket/send.c: Likewise.
17445         * socket/sendmsg.c: Likewise.
17446         * socket/sendto.c: Likewise.
17447         * socket/setsockopt.c: Likewise.
17448         * socket/shutdown.c: Likewise.
17449         * socket/sockatmark.c: Likewise.
17450         * socket/socket.c: Likewise.
17451         * socket/socketpair.c: Likewise.
17452         * stdio-common/ctermid.c: Likewise.
17453         * stdio-common/cuserid.c: Likewise.
17454         * stdio-common/remove.c: Likewise.
17455         * stdio-common/rename.c: Likewise.
17456         * stdio-common/renameat.c: Likewise.
17457         * stdio-common/tempname.c: Likewise.
17458         * stdlib/getcontext.c: Likewise.
17459         * stdlib/makecontext.c: Likewise.
17460         * stdlib/setcontext.c: Likewise.
17461         * stdlib/swapcontext.c: Likewise.
17462         * stdlib/system.c: Likewise.
17463         * streams/fattach.c: Likewise.
17464         * streams/fdetach.c: Likewise.
17465         * streams/getmsg.c: Likewise.
17466         * streams/getpmsg.c: Likewise.
17467         * streams/putmsg.c: Likewise.
17468         * streams/putpmsg.c: Likewise.
17469         * sysdeps/unix/bsd/getpt.c: Likewise.
17470         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
17471         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
17472         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
17473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17474         Likewise.
17475         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
17476         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17477         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
17478         * sysvipc/msgctl.c: Likewise.
17479         * sysvipc/msgget.c: Likewise.
17480         * sysvipc/msgrcv.c: Likewise.
17481         * sysvipc/msgsnd.c: Likewise.
17482         * sysvipc/semctl.c: Likewise.
17483         * sysvipc/semget.c: Likewise.
17484         * sysvipc/semop.c: Likewise.
17485         * sysvipc/semtimedop.c: Likewise.
17486         * sysvipc/shmat.c: Likewise.
17487         * sysvipc/shmctl.c: Likewise.
17488         * sysvipc/shmdt.c: Likewise.
17489         * sysvipc/shmget.c: Likewise.
17490         * termios/tcdrain.c: Likewise.
17491         * termios/tcflow.c: Likewise.
17492         * termios/tcflush.c: Likewise.
17493         * termios/tcgetattr.c: Likewise.
17494         * termios/tcgetpgrp.c: Likewise.
17495         * termios/tcsendbrk.c: Likewise.
17496         * termios/tcsetattr.c: Likewise.
17497         * termios/tcsetpgrp.c: Likewise.
17498         * time/adjtime.c: Likewise.
17499         * time/clock.c: Likewise.
17500         * time/getitimer.c: Likewise.
17501         * time/gettimeofday.c: Likewise.
17502         * time/setitimer.c: Likewise.
17503         * time/settimeofday.c: Likewise.
17504         * time/stime.c: Likewise.
17505         * time/time.c: Likewise.
17506
17507 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
17508
17509         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
17510         /usr/old/bin.
17511
17512         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
17513         instead of spaces.
17514         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
17515
17516 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
17517
17518         [BZ #14796]
17519         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
17520         FE_TONEAREST before applying Dekker multiplication and Knuth
17521         addition.  Clear inexact exceptions and check for exact zero
17522         results afterwards.
17523         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17524         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17525         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17526         * math/libm-test.inc (fma_test): Add more tests.
17527         (fma_test_towardzero): Likewise.
17528         (fma_test_downward): Likewise.
17529         (fma_test_upward): Likewise.
17530         * sysdeps/generic/math_private.h (default_libc_fesetround): New
17531         function.
17532         (libc_fesetround): New macro.
17533         (libc_fesetroundf): Likewise.
17534         (libc_fesetroundl): Likewise.
17535         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
17536         function.
17537         (libc_fesetround_387): Likewise.
17538         (libc_fesetroundf): New macro.
17539         (libc_fesetround): Likewise.
17540         (libc_fesetroundl): Likewise.
17541         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
17542         function.
17543         (libc_fesetroundf): New macro.
17544         (libc_fesetround): Likewise.
17545         (libc_fesetroundl): Likewise.
17546         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
17547         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
17548         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
17549         libm_hidden_ver.
17550         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
17551         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
17552         libm_hidden_def.
17553         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
17554         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
17555         libm_hidden_ver.
17556         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
17557         libm_hidden_def.
17558
17559         [BZ #3439]
17560         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
17561         integer constant usable in #if and use that to give value to enum
17562         constant.
17563         (FE_DIVBYZERO): Likewise.
17564         (FE_UNDERFLOW): Likewise.
17565         (FE_OVERFLOW): Likewise.
17566         (FE_INVALID): Likewise.
17567         (FE_INVALID_SNAN): Likewise.
17568         (FE_INVALID_ISI): Likewise.
17569         (FE_INVALID_IDI): Likewise.
17570         (FE_INVALID_ZDZ): Likewise.
17571         (FE_INVALID_IMZ): Likewise.
17572         (FE_INVALID_COMPARE): Likewise.
17573         (FE_INVALID_SOFTWARE): Likewise.
17574         (FE_INVALID_SQRT): Likewise.
17575         (FE_INVALID_INTEGER_CONVERSION): Likewise.
17576         (FE_TONEAREST): Likewise.
17577         (FE_TOWARDZERO): Likewise.
17578         (FE_UPWARD): Likewise.
17579         (FE_DOWNWARD): Likewise.
17580         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
17581         (FE_DIVBYZERO): Likewise.
17582         (FE_OVERFLOW): Likewise.
17583         (FE_UNDERFLOW): Likewise.
17584         (FE_INEXACT): Likewise.
17585         (FE_TONEAREST): Likewise.
17586         (FE_DOWNWARD): Likewise.
17587         (FE_UPWARD): Likewise.
17588         (FE_TOWARDZERO): Likewise.
17589         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
17590         (FE_UNDERFLOW): Likewise.
17591         (FE_OVERFLOW): Likewise.
17592         (FE_DIVBYZERO): Likewise.
17593         (FE_INVALID): Likewise.
17594         (FE_TONEAREST): Likewise.
17595         (FE_TOWARDZERO): Likewise.
17596         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
17597         (FE_OVERFLOW): Likewise.
17598         (FE_UNDERFLOW): Likewise.
17599         (FE_DIVBYZERO): Likewise.
17600         (FE_INEXACT): Likewise.
17601         (FE_TONEAREST): Likewise.
17602         (FE_TOWARDZERO): Likewise.
17603         (FE_UPWARD): Likewise.
17604         (FE_DOWNWARD): Likewise.
17605         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
17606         (FE_DIVBYZERO): Likewise.
17607         (FE_OVERFLOW): Likewise.
17608         (FE_UNDERFLOW): Likewise.
17609         (FE_INEXACT): Likewise.
17610         (FE_TONEAREST): Likewise.
17611         (FE_DOWNWARD): Likewise.
17612         (FE_UPWARD): Likewise.
17613         (FE_TOWARDZERO): Likewise.
17614
17615 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
17616
17617         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
17618
17619 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
17620
17621         * scripts/cross-test-ssh.sh (command): Use newlines to separate
17622         commands.  Quote $PWD.
17623         (blacklist_exports): Don't use remove_newlines.  Replace "declare
17624         -x" by "export".
17625         (remove_newlines): Remove.
17626
17627 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
17628
17629         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
17630         * stdlib/stdlib.h (atof): Moved to ...
17631         * include/bits/stdlib-float.h: Here.  New file.
17632         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
17633         * stdlib/bits/stdlib-float.h: New file.
17634         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
17635         -mno-sse -mno-mmx.
17636         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
17637         <xmmintrin.h>.
17638
17639 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17640
17641         * conform/conformtest.pl (@headers): Add fenv.h.
17642         * conform/data/fenv.h-data: New file.
17643         * include/fenv.h [_ISOMAC]: Disable all contents of file except
17644         include of <math/fenv.h>.
17645
17646         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
17647         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
17648         && !UNIX98].  Enables tests for XOPEN2K8.
17649         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
17650         POSIX2008]: Likewise.
17651
17652         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
17653         (struct rusage): Do not expect type or its members.
17654
17655         [BZ #3439]
17656         * math/math.h (FP_NAN): Define macro to integer constant usable in
17657         #if and use that to give value to enum constant.
17658         (FP_INFINITE): Likewise.
17659         (FP_ZERO): Likewise.
17660         (FP_SUBNORMAL): Likewise.
17661         (FP_NORMAL): Likewise.
17662
17663 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
17664
17665         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
17666         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
17667         arguments.
17668
17669 2012-11-02  Roland McGrath  <roland@hack.frob.com>
17670
17671         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
17672         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
17673         autoconf-time if not.
17674         * configure.in: Remove AC_PREREQ.
17675
17676 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17677
17678         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
17679         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
17680         of the internal implementation.
17681
17682 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17683
17684         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
17685         except include of <misc/sys/syslog.h>.
17686
17687 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17688
17689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
17690         function returns with a NULL context exit with zero.
17691
17692 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17693
17694         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
17695
17696 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
17697
17698         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
17699         (run_program_cmd): This.
17700         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
17701         (tst_langinfo): New variable.  Use it.
17702
17703 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
17704
17705         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
17706         floating point opcodes.
17707
17708 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17709
17710         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
17711         variable.
17712
17713         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
17714
17715         * sysdeps/mach/hurd/powerpc: Remove directory.
17716         * sysdeps/mach/powerpc: Likewise.
17717
17718 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17719
17720         * scripts/check-local-headers.sh: Ignore c++ headers.
17721
17722 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17723
17724         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
17725         __libc_cleanup_region_start argument.
17726
17727 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
17728
17729         [BZ #14784]
17730         [BZ #14785]
17731         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
17732         x * y using scaling, not as x * y + z.
17733         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17734         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17735         * math/libm-test.inc (fma_test): Add more tests.
17736         (fma_test_towardzero): Likewise.
17737         (fma_test_downward): Likewise.
17738         (fma_test_upward): Likewise.
17739
17740 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17741
17742         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
17743
17744 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17745
17746         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
17747         New variable.
17748
17749 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
17750
17751         * rt/tst-shm.c (worker): Correct checking for mmap failure.
17752
17753 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17754
17755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17756         Fix sort order.
17757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17758         Likewise.
17759
17760 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17761
17762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17763         Fix the order of the list for glibc 2.17.
17764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17765         Likewise.
17766
17767 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17768
17769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17770
17771 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17772
17773         [BZ #14610]
17774         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
17775         for low part of x being zero before using __atanl (y).
17776         * math/libm-test.inc (atan2_test): Add another test.
17777
17778         * manual/install.texi (Configuring and compiling): Document
17779         general use of test-wrapper and test-wrapper-env.
17780         * INSTALL: Regenerated.
17781
17782         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
17783         (__fma): Do not extract and scale down low bits on after-rounding
17784         systems when result rounded to normal precision would have normal
17785         exponent.
17786         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
17787         (__fmal): Do not extract and scale down low bits on after-rounding
17788         systems when result rounded to normal precision would have normal
17789         exponent.
17790         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
17791         (__fmal): Do not extract and scale down low bits on after-rounding
17792         systems when result rounded to normal precision would have normal
17793         exponent.
17794         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
17795         macro.
17796         (fma_test): Add more tests.
17797         (fma_test_towardzero): Likewise.
17798         (fma_test_downward): Likewise.
17799         (fma_test_upward): Likewise.
17800
17801 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
17802
17803         * sysdeps/i386/tininess.h: Renamed to ...
17804         * sysdeps/x86/tininess.h: This.
17805         * sysdeps/x86_64/tininess.h: Removed.
17806
17807 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17808
17809         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
17810         input.  Use $(build-program-cmd).
17811         ($(objpfx)tst-array1-static.out): Likewise.
17812         ($(objpfx)tst-array2.out): Likewise.
17813         ($(objpfx)tst-array3.out): Likewise.
17814         ($(objpfx)tst-array4.out): Likewise.
17815         ($(objpfx)tst-array5.out): Likewise.
17816         ($(objpfx)tst-array5-static.out): Likewise.
17817
17818 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
17819
17820         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
17821         if defined.
17822
17823         * nss/nsswitch.h (nss_interface_function): Provide new
17824         macro for use with NSS functions.
17825         * grp/initgroups.c: Use new macro.
17826         * nss/getXXbyYY.c: Likewise.
17827         * nss/getXXbyYY_r.c: Likewise.
17828         * nss/getXXent.c: Likewise.
17829         * nss/getXXent_r.c: Likewise.
17830         * sysdeps/posix/getaddrinfo.c: Likewise.
17831
17832 2012-10-30  Andreas Jaeger  <aj@suse.de>
17833
17834         * po/ru.po: Update Russion translation from translation project.
17835
17836 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17837
17838         [BZ #14152]
17839         [BZ #14783]
17840         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
17841         result and shift together with sticky bit instead of replicating
17842         round-to-nearest rounding.
17843         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17844         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17845         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
17846         missing underflow exceptions.
17847         (fma_test_towardzero): Add more tests.
17848         (fma_test_downward): Likewise.
17849         (fma_test_upward): Likewise.
17850
17851         [BZ #14047]
17852         * sysdeps/generic/tininess.h: New file.
17853         * sysdeps/i386/tininess.h: Likewise.
17854         * sysdeps/sh/tininess.h: Likewise.
17855         * sysdeps/x86_64/tininess.h: Likewise.
17856         * stdlib/tst-strtod-underflow.c: Likewise.
17857         * stdlib/tst-tininess.c: Likewise.
17858         * stdlib/strtod_l.c: Include <tininess.h>.
17859         (round_and_return): Do not set errno for exact underflow cases.
17860         Force an underflow exception when setting errno for underflow.
17861         Determine underflow based on rounding to normal precision if
17862         TININESS_AFTER_ROUNDING.
17863         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
17864         ERANGE for exact underflow cases.
17865         * stdlib/Makefile (tests): Add tst-tininess and
17866         tst-strtod-underflow.
17867         ($(objpfx)tst-tininess): Use $(link-libm).
17868         ($(objpfx)tst-strtod-underflow): Likewise.
17869
17870 2012-10-30  Andreas Jaeger  <aj@suse.de>
17871
17872         [BZ#14767]
17873         * elf/Makefile (tests): Remove conditional for have-initfini-array
17874         since this is now always required and the variable does not exist
17875         anymore.
17876         (tests-static): Likewise.
17877         (modules-names): Likewise.
17878
17879         * po/eo.po: Add Esperanto translation from translation project.
17880
17881         * elf/tst-array1.c (fini_array): Make writeable so that it can be
17882         merged with constructor/destructor.
17883         (init_array): Likewise.
17884         * elf/tst-array2dep.c (fini_array): Likewise.
17885         (init_array): Likewise.
17886
17887 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
17888
17889         * manual/message.texi: Delete @cartouche tags.
17890
17891 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
17892
17893         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
17894         EOPNOTSUPP.
17895         * sysdeps/mach/hurd/fsync.c: Likewise.
17896
17897         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
17898         [_POSIX_REALTIME_SIGNALS]: Change condition to
17899         [_POSIX_REALTIME_SIGNALS > 0].
17900
17901 2012-10-27  Andreas Jaeger  <aj@suse.de>
17902
17903         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
17904         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
17905         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
17906         [__WORDSIZE != 64]: Likewise.
17907
17908 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
17909
17910         *  iconvdata/tst-table.sh: Remove ${SHELL}.
17911         *  iconvdata/tst-tables.sh: Likewise.
17912
17913 2012-10-25  David S. Miller  <davem@davemloft.net>
17914
17915         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17916         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
17917         of strtoull.
17918
17919         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
17920         ifunc-impl-list.c
17921         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17922         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
17923         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
17924         file.
17925
17926 2012-10-25  Roland McGrath  <roland@hack.frob.com>
17927
17928         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17929         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
17930         __getdirentries.
17931
17932 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17933             Jim Blandy  <jimb@codesourcery.com>
17934
17935         * scripts/cross-test-ssh.sh: New file.
17936         * manual/install.texi (Configuring and compiling): Document use of
17937         cross-test-ssh.sh.
17938         * INSTALL: Regenerated.
17939
17940 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
17941
17942         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
17943         EOPNOTSUPP.
17944
17945 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
17946
17947         * Makeconfig (run-program-prefix): Fix comment.
17948
17949 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
17950             Jim Blandy  <jimb@codesourcery.com>
17951
17952         * Makeconfig (test-wrapper): New variable,
17953         (test-wrapper-env): Likewise.
17954         [$(cross-compiling) = yes && $(test-wrapper) != ""]
17955         (run-built-tests): Define to yes.
17956         (run-program-prefix): Use $(test-wrapper).
17957         (built-program-cmd): Likewise.
17958         * Rules (make-test-out): Use $(test-wrapper-env) and
17959         $(host-built-program-cmd).
17960         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
17961         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
17962         tst-pathopt.sh.
17963         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
17964         $(test-wrapper-env) to tst-rtld-load-self.sh.
17965         ($(objpfx)order2.out): Use $(test-wrapper).
17966         ($(objpfx)tst-initorder.out): Likewise.
17967         ($(objpfx)tst-initorder2.out): Likewise.
17968         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
17969         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
17970         (test_wrapper_env): New variable.  Use it to run ld.so.
17971         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
17972         Use it to run ld.so.
17973         (test_wrapper_env): Likewise.
17974         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
17975         $(test-wrapper) to run-iconv-test.sh.
17976         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
17977         (ICONV): Use $test_wrapper.
17978         * posix/Makefile ($(objpfx)globtest.out): Pass
17979         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
17980         globtest.sh, not $(run-program-prefix).
17981         * posix/globtest.sh (run_via_rtld_prefix): New variable.
17982         (test_wrapper): Likewise.
17983         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
17984         set together with run_via_rtld_prefix.
17985         (run_program_prefix): Define in terms of test_wrapper and
17986         run_via_rtld_prefix.
17987
17988 2012-10-24  Roland McGrath  <roland@hack.frob.com>
17989
17990         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
17991         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
17992         Targets removed.
17993
17994         [BZ #14743]
17995         * include/time.h: Remove librt_hidden_proto (clock_gettime).
17996         Declare __clock_getres, __clock_gettime, __clock_settime,
17997         __clock_nanosleep, and __clock_getcpuclockid.
17998         * rt/clock_gettime.c: Define __clock_gettime as an alias.
17999         Remove librt_hidden_def (clock_gettime).
18000         * sysdeps/unix/clock_gettime.c: Likewise.
18001         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
18002         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
18003         * rt/clock_getres.c: Define __clock_getres as an alias.
18004         * sysdeps/posix/clock_getres.c: Likewise.
18005         * rt/clock_settime.c: Define __clock_settime as an alias.
18006         * sysdeps/unix/clock_settime.c: Likewise.
18007         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
18008         * sysdeps/unix/clock_nanosleep.c: Likewise.
18009         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
18010         * rt/clock-compat.c: New file.
18011         * rt/Makefile (librt-routines): Add clock-compat and move
18012         $(clock-routines) to ...
18013         (routines): ... here, new variable.
18014         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
18015         Don't add get_clockfreq here.
18016         * rt/Versions (libc: GLIBC_2.17): New version set.
18017         Add clock_* symbols here.
18018         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
18019         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
18020         (GLIBC_2.17): Add clock_* symbols.
18021         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
18022         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
18023         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
18024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
18025         Likewise.
18026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
18027         Likewise.
18028         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
18029         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
18030         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
18031         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
18032         * NEWS: Mention the move.
18033
18034         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
18035         Use __open, __read, __close rather than their public counterparts.
18036         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18037         (__get_clockfreq_via_cpuinfo): Likewise.
18038         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
18039         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
18040
18041         * config.h.in (HAVE_IFUNC): New #undef.
18042         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
18043         was successful.
18044         * configure: Regenerated.
18045
18046 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
18047
18048         * configure.in: Move READELF check to start of file.
18049         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
18050         libc_cv_asm_gnu_indirect_function in the process.
18051         * configure: Regenerated.
18052
18053 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
18054
18055         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
18056         send the output to /dev/null.
18057         (libc_cv_cc_with_libunwind): Likewise.
18058         (libc_cv_as_noexecstack): Likewise.
18059         * configure: Regenerate.
18060
18061 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
18062
18063         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
18064
18065         * posix/globtest.sh (TMPDIR): Do not set.
18066         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
18067         (testout): Likewise.
18068
18069 2012-10-24  Andreas Jaeger  <aj@suse.de>
18070
18071         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
18072         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
18073         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
18074         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
18075         posix_fadvise64, posix_fallocate64.
18076
18077         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
18078         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
18079         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
18080         Likewise.
18081         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
18082         Likewise.
18083         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
18084
18085         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
18086         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
18087         <bits/fcntl-linux.h>.
18088         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
18089
18090         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
18091         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
18092         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
18093         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
18094         [__WORDSIZE != 64]: Likewise.
18095
18096 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18097
18098         * Makeconfig (run-built-tests): New variable.
18099         * Rules [$(cross-compiling) = yes]: Change condition to
18100         [$(run-built-tests) = no].
18101         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
18102         to [$(run-built-tests) = yes].
18103         * elf/Makefile [$(cross-compiling) = no]: Likewise
18104         * grp/Makefile [$(cross-compiling) = no]: Likewise.
18105         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
18106         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
18107         * intl/Makefile [$(cross-compiling) = no]: Likewise.
18108         * io/Makefile [$(cross-compiling) = no]: Likewise.
18109         * libio/Makefile [$(cross-compiling) = no]: Likewise.
18110         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
18111         * misc/Makefile [$(cross-compiling) = no]: Likewise.
18112         * posix/Makefile [$(cross-compiling) = no]: Likewise.
18113         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
18114         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
18115         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
18116         * string/Makefile [$(cross-compiling) = no]: Likewise.
18117
18118         * posix/Makefile ($(objpfx)globtest.out): Pass
18119         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
18120         $(rtld-installed-name).
18121         * posix/globtest.sh (elf_objpfx): Remove variable.
18122         (rtld_installed_name): Likewise.
18123         (library_path): Likewise.
18124         (run_program_prefix): New variable.  Use for running globtest
18125         binary.
18126
18127 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
18128             Joseph Myers  <joseph@codesourcery.com>
18129
18130         * Makeconfig (host-built-program-cmd): New variable.
18131         * elf/Makefile (tst-stackguard1-ARGS): Use
18132         $(host-built-program-cmd).
18133         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
18134         (tst-spawn-ARGS): Likewise.
18135         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
18136
18137 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18138             Jim Blandy  <jimb@codesourcery.com>
18139
18140         * Makeconfig (run-via-rtld-prefix): New variable.
18141         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
18142         (built-program-cmd): Likewise.
18143
18144 2012-10-22  Andreas Jaeger  <aj@suse.de>
18145
18146         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
18147         __O_RSYNC if it exists, otherwise to O_SYNC.
18148
18149 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
18150             Joseph Myers  <joseph@codesourcery.com>
18151
18152         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
18153         /dev/null.
18154         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
18155         from /dev/null
18156         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
18157         /dev/null.
18158
18159 2012-10-22  Andreas Jaeger  <aj@suse.de>
18160
18161         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
18162         Define always.
18163         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
18164
18165         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18166         bits/fcntl-linux.h.
18167
18168         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
18169         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
18170
18171         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
18172         to __O_LARGEFILE.
18173         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
18174         to __O_LARGEFILE.
18175
18176 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
18177             Joseph Myers  <joseph@codesourcery.com>
18178
18179         * config.make.in (NM): New variable.
18180
18181 2012-10-21  Andreas Jaeger  <aj@suse.de>
18182
18183         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
18184         definitions and declarations that are provided by
18185         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
18186
18187 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18188
18189         [BZ #14683]
18190         * elf/Makefile (tests-static): Add tst-leaks1-static.
18191         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
18192         ($(objpfx)tst-leaks1-static): New rule.
18193         ($(objpfx)tst-leaks1-static-mem): Likewise.
18194         (tst-leaks1-static-ENV): New macro.
18195         * elf/dl-open.c (dl_open_worker): Check the main application
18196         only if SHARED is defined.
18197         * elf/tst-leaks1-static.c: New file.
18198
18199 2012-10-20  Andreas Jaeger  <aj@suse.de>
18200
18201         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
18202         generic values for Linux.
18203         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
18204         and declarations that are provided by <bits/fcntl-linux.h> and
18205         include <bits/fcntl-linux.h>.
18206         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18207         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18208
18209 2012-10-20  Roland McGrath  <roland@hack.frob.com>
18210
18211         * io/fcntl.h: Move include of <bits/types.h> to the top and
18212         include it unconditionally.
18213
18214 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18215
18216         * wcsmbs/Makefile (tests-ifunc): New variable.
18217         (tests): Add $(tests-ifunc).
18218         * wcsmbs/test-wcschr-ifunc.c: New file.
18219         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
18220         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
18221         * wcsmbs/test-wcslen-ifunc.c: Likewise.
18222         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
18223         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
18224
18225         * string/Makefile (tests-ifunc): New variable.
18226         (tests): Add $(tests-ifunc).
18227         * string/test-memccpy.c (TEST_NAME): New macro.
18228         * string/test-memchr.c (TEST_NAME): Likewise.
18229         * string/test-memcmp.c (TEST_NAME): Likewise.
18230         * string/test-memcpy.c (TEST_NAME): Likewise.
18231         * string/test-memmem.c (TEST_NAME): Likewise.
18232         * string/test-memmove.c (TEST_NAME): Likewise.
18233         * string/test-memset.c (TEST_NAME): Likewise.
18234         * string/test-rawmemchr.c (TEST_NAME): Likewise.
18235         * string/test-stpcpy.c (TEST_NAME): Likewise.
18236         * string/test-stpncpy.c (TEST_NAME): Likewise.
18237         * string/test-strcasecmp.c (TEST_NAME): Likewise.
18238         * string/test-strcasestr.c (TEST_NAME): Likewise.
18239         * string/test-strcat.c (TEST_NAME): Likewise.
18240         * string/test-strchr.c (TEST_NAME): Likewise.
18241         * string/test-strcmp.c(TEST_NAME): Likewise.
18242         * string/test-strcpy.c (TEST_NAME): Likewise.
18243         * string/test-strcspn.c (TEST_NAME): Likewise.
18244         * string/test-strlen.c (TEST_NAME): Likewise.
18245         * string/test-strncasecmp.c (TEST_NAME): Likewise.
18246         * string/test-strncmp.c (TEST_NAME): Likewise.
18247         * string/test-strncpy.c (TEST_NAME): Likewise.
18248         * string/test-strnlen.c (TEST_NAME): Likewise.
18249         * string/test-strpbrk.c (TEST_NAME): Likewise.
18250         * string/test-strrchr.c (TEST_NAME): Likewise.
18251         * string/test-strspn.c (TEST_NAME): Likewise.
18252         * string/test-strstr.c (TEST_NAME): Likewise.
18253         * string/test-bcopy-ifunc.c: New file.
18254         * string/test-bzero-ifunc.c: Likewise.
18255         * string/test-memccpy-ifunc.c: Likewise.
18256         * string/test-memchr-ifunc.c: Likewise.
18257         * string/test-memcmp-ifunc.c: Likewise.
18258         * string/test-memcpy-ifunc.c: Likewise.
18259         * string/test-memmem-ifunc.c: Likewise.
18260         * string/test-memmove-ifunc.c: Likewise.
18261         * string/test-mempcpy-ifunc.c: Likewise.
18262         * string/test-memset-ifunc.c: Likewise.
18263         * string/test-rawmemchr-ifunc.c: Likewise.
18264         * string/test-stpcpy-ifunc.c: Likewise.
18265         * string/test-stpncpy-ifunc.c: Likewise.
18266         * string/test-strcasecmp-ifunc.c: Likewise.
18267         * string/test-strcasestr-ifunc.c: Likewise.
18268         * string/test-strcat-ifunc.c: Likewise.
18269         * string/test-strchr-ifunc.c: Likewise.
18270         * string/test-strchrnul-ifunc.c: Likewise.
18271         * string/test-strcmp-ifunc.c: Likewise.
18272         * string/test-strcpy-ifunc.c: Likewise.
18273         * string/test-strcspn-ifunc.c: Likewise.
18274         * string/test-strlen-ifunc.c: Likewise.
18275         * string/test-strncasecmp-ifunc.c: Likewise.
18276         * string/test-strncat-ifunc.c: Likewise.
18277         * string/test-strncmp-ifunc.c: Likewise.
18278         * string/test-strncpy-ifunc.c: Likewise.
18279         * string/test-strnlen-ifunc.c: Likewise.
18280         * string/test-strpbrk-ifunc.c: Likewise.
18281         * string/test-strrchr-ifunc.c: Likewise.
18282         * string/test-strspn-ifunc.c: Likewise.
18283         * string/test-strstr-ifunc.c: Likewise.
18284
18285         * debug/Makefile (tests-ifunc): New variable.
18286         (tests): Add $(tests-ifunc).
18287         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
18288         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
18289         * debug/test-stpcpy_chk-ifunc.c: New file.
18290         * debug/test-strcpy_chk-ifunc.c: Likewise.
18291
18292 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
18293
18294         [BZ #13601]
18295         * elf/dl-load.c (open_verify): Retry read if the entire ELF
18296         header is not read in.
18297
18298 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
18299
18300         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
18301         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
18302         directly.  Pass built executable to script as
18303         $(built-program-cmd).
18304         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
18305         $testprogram without using LD_LIBRARY_PATH and $ldso.
18306
18307         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
18308         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
18309         $(rtld-installed-name).
18310         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
18311         (rtld_installed_name): Likewise.
18312         (library_path): Likewise.
18313         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
18314         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
18315         $(run-program-prefix) to tst-tables.sh.
18316         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
18317         it to run tst-table-from and tst-table-to.
18318         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
18319         Pass it to tst-table.sh.
18320         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
18321         $(run-program-prefix) to tst-gettext.sh.
18322         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
18323         tst-translit.sh.
18324         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
18325         tst-gettext2.sh.
18326         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
18327         to run tst-gettext.
18328         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
18329         to run tst-gettext2.
18330         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
18331         to run tst-translit.
18332         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
18333         $(run-program-prefix) to tst-mtrace.sh.
18334         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
18335         to run tst-mtrace.
18336         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
18337         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
18338         $(rtld-installed-name).
18339         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
18340         (rtld_installed_name): Likewise.
18341         (run_program_prefix): New variable.  Use it to run wordexp-test.
18342
18343         * Makeconfig (ARCH): Remove all definitions.
18344         (machine): Likewise.
18345         [ARCH]: Remove conditional code.
18346         [!objdir]: Give error.
18347         [!objdir] (objpfx): Remove.
18348         [!objdir] (common-objpfx): Likewise.
18349         [!objdir] (common-objdir): Likewise.
18350         * configure.in (config_makefile): Remove.  Hardcode Makefile in
18351         AC_CONFIG_FILES call.
18352         * configure: Regenerated.
18353
18354         [BZ #13888]
18355         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
18356         or TMPDIR.
18357         (testout): Likewise.
18358
18359         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
18360         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
18361         $(rtld-installed-name).
18362         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
18363         (rtld_installed_name): Likwise.
18364         (runit): Remove function.
18365         (run_getconf): New variable,  Use it for running getconf binary.
18366
18367 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
18368
18369         [BZ #14716]
18370         * string/test-memmem.c (check_result): New function.
18371         (do_one_test): Use it.
18372         (check1): New function.
18373         (test_main): Use it.
18374
18375 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
18376
18377         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
18378
18379 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
18380
18381         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
18382         (_G_LSEEK64): Likewise.
18383         (_G_MMAP64): Likewise.
18384         (_G_FSTAT64): Likewise.
18385         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
18386         (_G_LSEEK64): Likewise.
18387         (_G_MMAP64): Likewise.
18388         (_G_FSTAT64): Likewise.
18389         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
18390         unconditional.  Call __mmap64 directly.
18391         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
18392         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
18393         __lseek64 directly.
18394         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
18395         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
18396         __mmap64 directly.
18397         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
18398         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18399         __lseek64 directly.
18400         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
18401         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18402         __lseek64 directly.
18403         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
18404         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
18405         __lseek64 directly.
18406         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
18407         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
18408         __fxstat64 directly.
18409         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
18410         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
18411         unconditional.
18412         (freopen64) [!_G_OPEN64]: Remove conditional code.
18413         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
18414         unconditional.
18415         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
18416         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
18417         unconditional.
18418         (ftello64) [!_G_LSEEK64]: Remove conditional code.
18419         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
18420         unconditional.
18421         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18422         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
18423         unconditional.
18424         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
18425         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
18426         unconditional.
18427         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18428         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
18429         unconditional.
18430         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18431         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
18432         unconditional.
18433         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18434
18435 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18436
18437         [BZ #12140]
18438         * manual/memory.texi (Malloc Tunable Parameters): Add note
18439         about free list pointers overwriting some perturb bytes.
18440         Wording suggested by Roland McGrath.
18441
18442 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
18443
18444         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
18445         (lgamma_test): Likewise.
18446         (tgamma_test): Likewise.
18447
18448 2012-10-16  Florian Weimer  <fweimer@redhat.com>
18449
18450         [BZ #14700]
18451         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
18452         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
18453
18454 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
18455
18456         * NEWS: Mention BZ #14716.
18457         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
18458         when removing AVAILABLE1_USES_J macro.
18459
18460 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
18461
18462         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
18463         (__bswap_64): __uint64_t for unsigned 64-bit int.
18464
18465 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
18466
18467         * include/string.h (memmem): Declare libc hidden alias.
18468         * string/memmem.c (memmem): Define libc hidden alias.
18469         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
18470         __read, __close instead of open, read, close.
18471
18472 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
18473
18474         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
18475         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
18476         global and hidden.
18477         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
18478         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
18479         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
18480         Likewise.
18481         (__rawmemchr_sse2): Likewise.
18482         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
18483         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
18484         (__strchr_sse2): Likewise.
18485         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
18486         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
18487         (__strcasecmp_sse2): Likewise.
18488         (__strncasecmp_sse2): Likewise.
18489         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
18490         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
18491         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
18492         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
18493         (__strrchr_sse2): Likewise.
18494         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
18495         ifunc-impl-list.c.
18496         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
18497         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
18498         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18499         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18500         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
18501         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
18502         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18503         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18504         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
18505         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
18506         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
18507         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
18508         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
18509         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
18510         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
18511         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
18512         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
18513         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
18514         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
18515         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
18516         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
18517         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
18518         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
18519         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
18520         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
18521         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18522         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18523         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
18524         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
18525         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
18526
18527         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
18528         global and hidden.
18529         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
18530         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
18531         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
18532         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
18533         Likewise.
18534         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
18535         Likewise.
18536         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
18537         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
18538         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
18539         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
18540         ifunc-impl-list.c.
18541         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18542         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18543         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18544         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18545         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18546         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18547         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18548         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18549         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18550         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18551         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18552         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18553         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18554         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18555         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18556         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18557         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18558         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
18559         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18560         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18561         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18562         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18563         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18564         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18565         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18566         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18567         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18568         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18569         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18570         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18571         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18572         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18573         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18574         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
18575         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18576         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18577         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18578         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18579         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18580         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18581         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
18582
18583         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
18584         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
18585         * include/ifunc-impl-list.h: New file.
18586         * misc/ifunc-impl-list.c: Likewise.
18587         * misc/Makefile (routines): Add ifunc-impl-list.
18588         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
18589         * string/test-string.h: Include <ifunc-impl-list.h>.
18590         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
18591         impl_array): New variables.
18592         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
18593         are defined.
18594         (test_init): Call __libc_ifunc_impl_list to initialize
18595         func_list if TEST_IFUNC and TEST_NAME are defined.
18596
18597         * string/Makefile (strop-tests): Add bcopy and bzero.
18598         * string/test-bcopy.c: New file.
18599         * string/test-bzero.c: Likewise.
18600         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
18601         defined.
18602         * string/test-memset.c: Support bzero test if TEST_BZERO is
18603         defined.
18604         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
18605         __libc_memmove.
18606         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
18607         __libc_memset.
18608         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
18609         of memset.
18610
18611 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
18612
18613         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
18614         * configure: Regenerated.
18615
18616         * Makeconfig (+link-static-before-libc): Don't include
18617         $(link-static-libc).
18618
18619         * libio/libio.h (_IO_pos_t): Remove.
18620
18621 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18622
18623         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
18624         McGrath.
18625
18626 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18627
18628         * crypt/crypt-entry.c: Include fips-private.h.
18629         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
18630         * crypt/md5c-test.c (main): Tolerate disabled MD5.
18631         * sysdeps/unix/sysv/linux/fips-private.h: New file.
18632         * sysdeps/generic/fips-private.h: New file, dummy fallback.
18633
18634 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18635
18636         * crypt/crypt-private.h: Include stdbool.h.
18637         (_ufc_setup_salt_r): Return bool.
18638         * crypt/crypt-entry.c: Include errno.h.
18639         (__crypt_r): Return NULL with EINVAL for bad salt.
18640         * crypt/crypt_util.c (bad_for_salt): New.
18641         (_ufc_setup_salt_r): Check that salt is long enough and within
18642         the specified alphabet.
18643         * crypt/badsalttest.c: New file.
18644         * crypt/Makefile (tests): Add it.
18645         ($(objpfx)badsalttest): New.
18646
18647 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
18648
18649         * NEWS: Add entry for BZ #14602.
18650
18651 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18652
18653         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
18654         type-generic.
18655         * math/libm-test.inc: Update comment listing what functions and
18656         macros are tested.
18657         (isgreater_test): New function.
18658         (isgreaterequal_test): Likewise.
18659         (isless_test): Likewise.
18660         (islessequal_test): Likewise.
18661         (islessgreater_test): Likewise.
18662         (isunordered_test): Likewise.
18663         (main): Call the new functions.
18664
18665 2012-10-09  Roland McGrath  <roland@hack.frob.com>
18666
18667         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
18668         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
18669         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
18670         * sysdeps/i386/configure: Regenerated.
18671         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
18672         * sysdeps/mach/configure: Regenerated.
18673         * sysdeps/mach/hurd/configure: Regenerated.
18674         * sysdeps/powerpc/configure: Regenerated.
18675         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18676         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18677         * sysdeps/s390/s390-32/configure: Regenerated.
18678         * sysdeps/s390/s390-64/configure: Regenerated.
18679         * sysdeps/sh/configure: Regenerated.
18680         * sysdeps/sparc/configure: Regenerated.
18681         * sysdeps/unix/sysv/linux/configure: Regenerated.
18682         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
18683         * sysdeps/x86_64/configure: Regenerated.
18684
18685         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
18686         defined.  Don't check if MAP is NULL.
18687
18688 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18689
18690         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
18691         (_G_stat64): Likewise.
18692         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
18693         (_G_stat64): Likewise.
18694         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
18695         instead of struct _G_stat64.
18696         * libio/fileops.c (mmap_remap_check): Likewise.
18697         (decide_maybe_mmap): Likewise.
18698         (_IO_new_file_seekoff): Likewise.
18699         (_IO_file_stat): Likewise.
18700         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
18701         _G_off64_t.
18702         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
18703         instead of struct _G_stat64.
18704         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18705
18706 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18707
18708         [BZ #14602]
18709         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18710         Replace with ...
18711         (CHECK_EOL): New macro.
18712         (two_way_short_needle): Check beginning of haystack for EOL.  Use
18713         CHECK_EOL.
18714         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18715         Replace with CHECK_EOL.
18716         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18717         Replace with CHECK_EOL.
18718
18719 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
18720
18721         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
18722         type-generic.
18723         * math/libm-test.inc: Update comment listing what functions and
18724         macros are tested.
18725         (finite_test): New function.
18726         (isinf_test): Likewise.
18727         (isnan_test): Likewise.
18728         (fpclassify_test): Test subnormal input.
18729         (isfinite_test): Likewise.
18730         (isnormal_test): Likewise.
18731         (main): Call the new functions.
18732
18733 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
18734
18735         [BZ #14660]
18736         * Makerules (%.dynsym): Force C locale when running
18737         $(OBJDUMP) --dynamic-syms.
18738
18739 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
18740
18741         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
18742         <stdint.h>.
18743
18744 2012-10-06  David S. Miller  <davem@davemloft.net>
18745
18746         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
18747         upper 32-bits of the length value in %o2 since we use branch-on-register
18748         tests which consider the entire 64-bit register.
18749
18750 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
18751
18752         * string/test-strstr.c (check2): Add a test for page boundary.
18753
18754 2012-10-05  David S. Miller  <davem@davemloft.net>
18755
18756         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
18757         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
18758         file.
18759         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18760         sysdep_routines.
18761         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18762         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
18763         and bzero when HWCAP_SPARC_CRYPTO is present.
18764
18765 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
18766
18767         [BZ #14602]
18768         * string/test-strstr.c (check2): New function.
18769         (test_main): Call check2.
18770
18771         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
18772         and bug-strchr1.
18773         * string/bug-strcasestr1.c (do_test): Moved to ...
18774         * string/test-strcasestr.c (check1): Here.  New function.
18775         (do_one_test): Break out result checking code into ...
18776         (check_result): This.  New function.
18777         (do_one_test): Call check_result.
18778         (test_main): Call check1.
18779         * string/bug-strchr1.c (do_test): Moved to ...
18780         * string/test-strchr.c (check1): Here.  New function.
18781         (do_one_test): Break out result checking code into ...
18782         (check_result): This.  New function.
18783         (do_one_test): Call check_result.
18784         (test_main): Call check1.
18785         * string/bug-strstr1.c (main): Moved to ...
18786         * string/test-strstr.c (check1): Here.  New function.
18787         (do_one_test): Break out result checking code into ...
18788         (check_result): This.  New function.
18789         (do_one_test): Call check_result.
18790         (test_main): Call check1.
18791         * string/bug-strcasestr1.c: Removed.
18792         * string/bug-strchr1.c: Likewise.
18793         * string/bug-strstr1.c: Likewise.
18794
18795         * elf/Makefile (dl-routines): Add hwcaps.
18796         * elf/dl-support.c (_dl_important_hwcaps): Removed.
18797         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
18798         (_dl_important_hwcaps): Moved to ...
18799         * elf/dl-hwcaps.c: Here.  New file.
18800         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
18801
18802         [BZ #14557]
18803         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
18804         if IS_IN_rtld isn't defined.
18805
18806         * elf/dl-support.c (_dl_sysinfo_map): New.
18807         Include "get-dynamic-info.h" and "setup-vdso.h".
18808         (_dl_non_dynamic_init): Call setup_vdso.
18809         * elf/dynamic-link.h: Don't include <assert.h>.
18810         (elf_get_dynamic_info): Moved to ...
18811         * elf/get-dynamic-info.h: Here.  New file.
18812         * elf/dynamic-link.h: Include "get-dynamic-info.h".
18813         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
18814         * elf/setup-vdso.h: Here.  New file.
18815         * elf/rtld.c: Include "setup-vdso.h".
18816         (dl_main): Call setup_vdso.
18817
18818 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
18819
18820         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
18821         creal in comment listing functions tested.  List finite, isinf,
18822         isnan, isless, islessequal, isgreater, isgreaterequal,
18823         islessgreater, isunordered, lgamma_r and pow10 as functions and
18824         macros not tested.  Mention which functions not tested are aliases
18825         for other functions.  Fix typo.  Note that signs of NaNs are not
18826         tested.
18827
18828         * scripts/config.guess: Update from config.git.
18829         * scripts/config.sub: Likewise.
18830
18831 2012-10-04  Roland McGrath  <roland@hack.frob.com>
18832
18833         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
18834         * misc/madvise.c (madvise): Renamed to __madvise.
18835         Make madvise a weak alias.
18836         * include/sys/mman.h: Declare __madvise.
18837         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
18838         * sysdeps/unix/syscalls.list
18839         (madvise): Make __madvise the strong name, and madvise a weak alias.
18840         * sysdeps/unix/sysv/linux/syscalls.list
18841         (madvise, mmap): Remove redundant entries.
18842         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
18843         * malloc/malloc.c (mtrim): Likewise.
18844         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
18845
18846 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18847
18848         * sysdeps/mach/hurd/dl-cache.c: File removed.
18849         * config.h.in (USE_LDCONFIG): New #undef.
18850         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
18851         * configure: Regenerated.
18852         * elf/Makefile (dl-routines): Add dl-cache only under
18853         [$(use-ldconfig) = yes].
18854         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
18855         cache on [USE_LDCONFIG].
18856         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
18857         [USE_LDCONFIG].
18858         * elf/rtld.c (dl_main): Likewise.
18859
18860 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
18861
18862         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
18863         _SC_LEVEL4_CACHE_LINESIZE.
18864
18865 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18866
18867         * sysdeps/unix/bsd/confstr.h: File removed.
18868
18869 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
18870
18871         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
18872         sys/sdt-config.h.
18873
18874 2012-10-02  Roland McGrath  <roland@hack.frob.com>
18875
18876         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
18877         Make 'mapoff' field ElfW(Off) rather than off_t.
18878
18879 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
18880
18881         * nscd/Makefile: Remove nscd-cflags and all its users.
18882         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
18883         (CFLAGS-nonlib): Add compiler flags for nscd modules.
18884
18885         [BZ #10631]
18886         * malloc.c (malloc_printerr): Clarify error message.
18887
18888 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
18889
18890         [BZ #14648]
18891         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18892         Set bit_FMA_Usable if FMA is supported.
18893         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
18894         macro.
18895         (bit_FMA4_Usable): Updated.
18896         (index_FMA_Usable): New macro.
18897         (CPUID_FMA): Likewise
18898         (HAS_FMA): Defined with bit_FMA_Usable.
18899
18900 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18901
18902         * bits/types.h (__swblk_t): Type removed.
18903         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
18904         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
18905         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18906         (__SWBLK_T_TYPE): Likewise.
18907         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
18908         (__SWBLK_T_TYPE): Likewise.
18909         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18910         (__SWBLK_T_TYPE): Likewise.
18911         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18912         (__SWBLK_T_TYPE): Likewise.
18913
18914 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
18915             Honza Horak <hhorak@redhat.com>
18916
18917         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
18918         (xdr_mapname): Use YPMAXMAP as maxsize.
18919         (xdr_peername): Use YPMAXPEER as maxsize.
18920         (xdr_keydat): Use YPAXRECORD as maxsize.
18921         (xdr_valdat): Use YPMAXRECORD as maxsize.
18922
18923 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18924
18925         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
18926
18927         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
18928         * csu/init-first.c: ... here.
18929         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
18930         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18931         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
18932         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
18933         * sysdeps/i386/init-first.c: File removed.
18934         * sysdeps/sh/init-first.c: File removed.
18935
18936 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
18937
18938         [BZ #14645]
18939         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
18940         if x * y might underflow to zero and z is zero.
18941         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
18942         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18943         * math/libm-test.inc (min_subnorm_value): New variable.
18944         (fma_test): Add more tests.
18945         (fma_test_towardzero): Likewise.
18946         (fma_test_downward): Likewise
18947         (fma_test_upward): Likewise.
18948         (initialize): Set min_subnorm_value.
18949
18950 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
18951
18952         [BZ #14638]
18953         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
18954         0 + 0.
18955         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
18956         mode for addition resulting in exact zero.
18957         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
18958         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
18959         exact 0 + 0.
18960         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
18961         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18962         * math/libm-test.inc (fma_test): Add more tests.
18963         (fma_test_towardzero): New function.
18964         (fma_test_downward): Likewise.
18965         (fma_test_upward): Likewise.
18966         (main): Call the new functions.
18967
18968 2012-09-28  David S. Miller  <davem@davemloft.net>
18969
18970         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
18971
18972 2012-09-28  Roland McGrath  <roland@hack.frob.com>
18973
18974         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
18975         instead of SIGALRM.
18976
18977         * sysdeps/gnu/_G_config.h: Moved to ...
18978         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
18979         * sysdeps/mach/hurd/_G_config.h: Moved to ...
18980         * sysdeps/generic/_G_config.h: ... here.
18981
18982         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
18983
18984         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
18985
18986         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
18987         Conditionalize target on [libnss_test1.so-version].
18988
18989         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
18990
18991         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
18992         (elfobjdir): Move out of conditionals.
18993
18994         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
18995         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
18996         (__nss_lookup_function): Conditionalize label remove_from_tree on
18997         [!DO_STATIC_NSS || SHARED], matching its only use.
18998
18999 2012-09-28  David S. Miller  <davem@davemloft.net>
19000
19001         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
19002         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
19003         file.
19004         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
19005         sysdep_routines.
19006         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
19007         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
19008         when HWCAP_SPARC_CRYPTO is present.
19009
19010 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19011
19012         * io/tst-mknodat.c: Create a FIFO instead of a socket.
19013
19014 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
19015
19016         [BZ #6530]
19017         * stdio-common/vfprintf.c (process_string_arg): Revert
19018         2000-07-22 change.
19019
19020 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
19021
19022         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
19023         for testcase.
19024         * stdio-common/tst-sprintf.c: Include <locale.h>
19025         (main): Test sprintf's handling of incomplete multibyte
19026         characters.
19027
19028 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
19029
19030         * elf/dl-runtime.c (VERSYMIDX): Removed.
19031         * elf/dl-version.c (VERSYMIDX): Likewise.
19032         * elf/do-rel.h (VERSYMIDX): Likewise.
19033         (VALIDX): Likewise.
19034         * elf/dynamic-link.h (VERSYMIDX): Likewise.
19035         * elf/rtld.c (VALIDX): Likewise.
19036         (ADDRIDX): Likewise.
19037         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
19038         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
19039         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
19040         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
19041         (VALIDX): Likewise.
19042         (ADDRIDX): Likewise.
19043
19044 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19045
19046         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
19047
19048 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
19049
19050         [BZ #11438]
19051         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
19052         to global scope.
19053         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
19054         addresses are in the same scope as 192.0.2/24.
19055         * posix/gai.conf: Document new scope table defaults.
19056
19057 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19058
19059         [BZ #5298]
19060         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
19061         for ftell.  Compute offsets from write pointers instead.
19062         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19063
19064 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19065
19066         [BZ #14543]
19067         * libio/Makefile (tests): New test case tst-fseek.
19068         * libio/tst-fseek.c: New test case to verify that fseek/ftell
19069         combination works in wide mode.
19070         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
19071         state when the external buffer state changes.
19072
19073 2012-09-27  David S. Miller  <davem@davemloft.net>
19074
19075         [BZ #14376]
19076         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
19077         pass reloc->r_addend in as the 'high' argument to
19078         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
19079
19080         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19081
19082 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19083
19084         * rt/tst-aio2.c: Include <pthread.h>.
19085         * rt/tst-aio3.c: Likewise.
19086
19087 2012-09-27  Steve Ellcey  <sellcey@mips.com>
19088
19089         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
19090
19091 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
19092
19093         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
19094         contents on [SHARED].
19095
19096 2012-09-26  Marek Polacek  <polacek@redhat.com>
19097
19098         [BZ #14530]
19099         [BZ #13741]
19100         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
19101         for C++ and GCC <4.3 as well as for non GCC compilers.
19102
19103 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19104
19105         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19106
19107 2012-09-25  Roland McGrath  <roland@hack.frob.com>
19108
19109         * Makefile.in (all, install): Declare with .PHONY.
19110         Reported by Michael Hope <michael.hope@linaro.org>.
19111
19112 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19113
19114         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
19115         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
19116         system header.
19117         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
19118         Likewise.
19119         (sydep_routines): Add the new and the internal functions.
19120         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
19121         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
19122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
19123         (GLIBC_2.17): Add the new function.
19124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
19125         (GLIBC_2.17): Likewise.
19126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
19127         (GLIBC_2.17): Likewise.
19128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
19129         (GLIBC_2.17): Likewise.
19130         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
19131
19132 2012-09-25  Alan Modra  <amodra@gmail.com>
19133
19134         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
19135         Add release barrier before setting once_control to say
19136         initialisation is done.  Add hints on lwarx.  Use macro in
19137         place of isync.
19138         (clear_once_control): Add release barrier.
19139
19140 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19141
19142         [BZ #13629]
19143         * math/s_clog.c (__clog): Handle more values close to |z| = 1
19144         specially.
19145         * math/s_clog10.c (__clog10): Likewise.
19146         * math/s_clog10f.c (__clog10f): Likewise.
19147         * math/s_clog10l.c (__clog10l): Likewise.
19148         * math/s_clogf.c (__clogf): Likewise.
19149         * math/s_clogl.c (__clogl): Likewise.
19150         * math/Makefile (libm-calls): Add x2y2m1.
19151         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
19152         (__x2y2m1): Likewise.
19153         (__x2y2m1l): Likewise.
19154         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
19155         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
19156         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
19157         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
19158         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
19159         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
19160         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
19161         * sysdeps/i386/fpu/libm-test-ulps: Update.
19162         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19163
19164         [BZ #14621]
19165         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
19166         int as type of variable DEPTH.
19167         (glob): Use size_t instead of int as type of variables NEWCOUNT
19168         and OLD_PATHC.
19169
19170 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19171
19172         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19173         Add s_sincosf-sse2.
19174         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
19175         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
19176         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
19177         macros for using routine as __sincosf_ia32.
19178         Use macro for function declaration and weak_alias.
19179         * sysdeps/i386/fpu/libm-test-ulps: Update.
19180
19181         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
19182         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19183
19184         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
19185         subnormal argument.
19186         * math/s_cexpf.c (__cexpf): Likewise.
19187         * math/s_csinf.c (__csinf): Likewise.
19188         * math/s_csinhf.c (__csinhf): Likewise.
19189         * math/s_ctanf.c (__ctanf): Likewise.
19190         * math/s_ctanhf.c (__ctanhf): Likewise.
19191         * math/s_ccosh.c (__ccoshf): Likewise.
19192         * math/s_cexp.c (__cexpl): Likewise.
19193         * math/s_csin.c (__csin): Likewise.
19194         * math/s_csinh.c (__csinh): Likewise.
19195         * math/s_ctan.c (__ctan): Likewise.
19196         * math/s_ctanh.c (ctanh): Likewise.
19197         * math/s_ccoshl.c (__ccoshl): Likewise.
19198         * math/s_cexpl.c (__cexpl): Likewise.
19199         * math/s_csinl.c (__csinl): Likewise.
19200         * math/s_csinhl.c (__csinhl): Likewise.
19201         * math/s_ctanl.c (__ctanl): Likewise.
19202         * math/s_ctanhl.c (__ctanhl): Likewise.
19203
19204 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19205
19206         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
19207         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
19208         (_IO_off_t): Define to __off_t, not _G_off_t.
19209         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
19210         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
19211         (_IO_wint_t): Define to wint_t, not _G_wint_t.
19212         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
19213         type of __dummy and __dummy2 fields.
19214         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
19215         (_G_ssize_t): Likewise.
19216         (_G_off_t): Likewise.
19217         (_G_pid_t): Likewise.
19218         (_G_uid_t): Likewise.
19219         (_G_wchar_t): Likewise.
19220         (_G_wint_t): Likewise.
19221         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
19222         (_G_ssize_t): Likewise.
19223         (_G_off_t): Likewise.
19224         (_G_pid_t): Likewise.
19225         (_G_uid_t): Likewise.
19226         (_G_wchar_t): Likewise.
19227         (_G_wint_t): Likewise.
19228         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
19229         (_G_ssize_t): Likewise.
19230         (_G_off_t): Likewise.
19231         (_G_pid_t): Likewise.
19232         (_G_uid_t): Likewise.
19233         (_G_wchar_t): Likewise.
19234         (_G_wint_t): Likewise.
19235
19236 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19237
19238         * malloc/arena.c: Include malloc-sysdep.h.
19239         (shrink_heap): Use check_may_shrink_heap to decide if madvise
19240         is sufficient to shrink the heap or an unmap is needed.
19241         * sysdeps/generic/malloc-sysdep.h: New file.  Define
19242         new function check_may_shrink_heap.
19243         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
19244         new function check_may_shrink_heap.
19245
19246 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19247
19248         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
19249         comments.
19250
19251 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
19252
19253         * catgets/test-gencat.sh: Add "set -e".
19254         * elf/tst-pathopt.sh: Likewise.
19255         * grp/tst_fgetgrent.sh: Likewise.
19256         * iconvdata/run-iconv-test.sh: Likewise.
19257         * intl/tst-gettext.sh: Likewise.
19258         * intl/tst-gettext2.sh: Likewise.
19259         * intl/tst-gettext4.sh: Likewise.
19260         * intl/tst-gettext6.sh: Likewise.
19261         * intl/tst-translit.sh: Likewise.
19262         * io/ftwtest-sh: Likewise.
19263         * libio/test-freopen.sh: Likewise.
19264         * malloc/tst-mtrace.sh: Likewise.
19265         * posix/globtest.sh: Likewise.
19266         * posix/tst-getconf.sh: Likewise.
19267         * posix/wordexp-tst.sh: Likewise.
19268         * stdio-common/tst-printf.sh: Likewise.
19269         * stdio-common/tst-unbputc.sh: Likewise.
19270         * stdlib/tst-fmtmsg.sh: Likewise.
19271         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19272         * catgets/Makefile: Do not specify -e option when running
19273         testsuite shell scripts.
19274         * elf/Makefile: Likewise.
19275         * grp/Makefile: Likewise.
19276         * iconvdata/Makefile: Likewise.
19277         * intl/Makefile: Likewise.
19278         * io/Makefile: Likewise.
19279         * libio/Makefile: Likewise.
19280         * malloc/Makefile: Likewise.
19281         * posix/Makefile: Likewise.
19282         * stdio-common/Makefile: Likewise.
19283         * stdlib/Makefile: Likewise.
19284         * sysdeps/x86_64/Makefile: Likewise.
19285
19286         * io/ftwtest-sh: Add copyright header.
19287         * posix/globtest.sh: Likewise.
19288         * posix/tst-getconf.sh: Likewise.
19289         * posix/wordexp-tst.sh: Likewise.
19290         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19291
19292 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
19293
19294         [BZ #13679]
19295         * Makeconfig (+link): Defined as $(+link-static) if
19296         $(build-shared) isn't yes.
19297         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
19298         isn't yes.
19299         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
19300
19301         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
19302
19303         [BZ #14562]
19304         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
19305         new chunk size with MALLOC_ALIGN_MASK.
19306
19307 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
19308
19309         [BZ #5044]
19310         * stdio-common/printf_fphex.c: Include <stdbool.h> and
19311         <rounding-mode.h>.
19312         (__printf_fphex): Determine rounding using get_rounding_mode and
19313         round_away.
19314         * stdio-common/tst-printf-round.c (struct hex_test): New
19315         structure.
19316         (hex_tests): New variable.
19317         (test_hex_in_one_mode): New function.
19318         (do_test): Also run tests for hex float output.
19319
19320 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
19321
19322         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19323         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19324         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
19325         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19326         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19327         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
19328         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19329         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19330
19331 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
19332
19333         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
19334         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
19335         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
19336         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
19337
19338 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
19339
19340         [BZ #14579]
19341         * elf/rtld.c (dl_main): Limit the check for self loading to normal
19342         mode only.
19343         * elf/tst-rtld-load-self.sh: New test.
19344         * elf/Makefile: Run it.
19345
19346 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
19347
19348         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
19349         (tst-writev-ENV): Remove.
19350         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
19351
19352 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
19353
19354         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
19355
19356 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
19357
19358         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
19359         unconditional.
19360         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
19361         Likewise.
19362         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
19363         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
19364         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
19365         Likewise.
19366
19367 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
19368
19369         [BZ #14587]
19370         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
19371         * config.make.in (have-cpp-asm-debuginfo): Removed.
19372         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
19373         * configure: Regenerated.
19374
19375 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
19376
19377         [BZ #5044]
19378         * stdio-common/printf_fp.c: Include <stdbool.h> and
19379         <rounding-mode.h>.
19380         (___printf_fp): Determine rounding using get_rounding_mode and
19381         round_away.
19382         * stdio-common/tst-printf-round.c: New file.
19383         * stdio-common/Makefile (tests): Add tst-printf-round.
19384         (link-libm): New variable.
19385         ($(objpfx)tst-printf-round): Depend in $(link-libm).
19386
19387 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
19388
19389         [BZ #14576]
19390         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
19391         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
19392         Likewise.
19393         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
19394         Likewise.
19395
19396 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
19397
19398         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
19399         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19400         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19401         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19402
19403 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
19404
19405         [BZ #14518]
19406         * include/rounding-mode.h: New file.
19407         * sysdeps/generic/get-rounding-mode.h: Likewise.
19408         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
19409         * stdlib/strtod_l.c: Include <rounding-mode.h>.
19410         (MAX_VALUE): New macro.
19411         (MIN_VALUE): Likewise.
19412         (overflow_value): New function.
19413         (underflow_value): Likewise.
19414         (round_and_return): Use overflow_value and underflow_value to
19415         determine return values in overflow and underflow cases.  Use
19416         round_away to determine rounding depending on rounding mode.
19417         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
19418         determine return values in overflow and underflow cases.
19419         * stdlib/tst-strtod-round.c: Include <fenv.h>.
19420         (struct test_results): New structure.
19421         (struct test): Use struct test_results to store expected results
19422         for all rounding modes.
19423         (TEST): Include expected results for all rounding modes.
19424         (test_in_one_mode): New function.
19425         (do_test): Use test_in_one_mode to compute and check results.
19426         Check results for all rounding modes.
19427         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
19428         $(link-libm).
19429
19430 2012-12-09  Allan McRae  <allan@archlinux.org>
19431
19432         * sysdeps/i386/fpu/libm-test-ulps: Update
19433
19434 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
19435
19436         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
19437         (_G_int32_t): Likewise.
19438         (_G_uint16_t): Likewise.
19439         (_G_uint32_t): Likewise.
19440         (_G_HAVE_BOOL): Likewise.
19441         (_G_HAVE_ATEXIT): Likewise.
19442         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19443         (_G_HAVE_IO_FILE_OPEN): Likewise.
19444         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
19445         (_G_int32_t): Likewise.
19446         (_G_uint16_t): Likewise.
19447         (_G_uint32_t): Likewise.
19448         (_G_HAVE_BOOL): Likewise.
19449         (_G_HAVE_ATEXIT): Likewise.
19450         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19451         (_G_HAVE_IO_FILE_OPEN): Likewise.
19452         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
19453         (_G_int32_t): Likewise.
19454         (_G_uint16_t): Likewise.
19455         (_G_uint32_t): Likewise.
19456         (_G_HAVE_BOOL): Likewise.
19457         (_G_HAVE_ATEXIT): Likewise.
19458         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19459         (_G_HAVE_IO_FILE_OPEN): Likewise.
19460
19461 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
19462
19463         * csu/libc-tls.c: Update copyright years.
19464
19465 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
19466
19467         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
19468         [!_G_USING_THUNKS]: Remove conditional code.
19469         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
19470         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
19471
19472         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
19473         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
19474         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19475         (_G_VTABLE_LABEL_PREFIX): Likewise.
19476         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19477         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19478         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19479         (_G_VTABLE_LABEL_PREFIX): Likewise.
19480         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19481         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19482         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19483         (_G_VTABLE_LABEL_PREFIX): Likewise.
19484         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19485
19486 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
19487
19488         * libio/Makefile: Include ../Makeconfig before tests.
19489         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
19490         only if $(build-shared) is yes.
19491
19492         * iconv/gconv_db.c: Update copyright years.
19493
19494 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19495
19496         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
19497         unwind info if defined PIC. Fix special cases description.
19498         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
19499
19500         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
19501         DP_HI_MASK entry.
19502         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
19503
19504 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
19505
19506         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
19507
19508         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
19509         is NULL.
19510
19511         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
19512         (LDLIBS-tst-chk4): This.
19513         (LDFLAGS-tst-chk5): Renamed to ...
19514         (LDLIBS-tst-chk5): This.
19515         (LDFLAGS-tst-chk6): Renamed to ...
19516         (LDLIBS-tst-chk6): This.
19517         (LDFLAGS-tst-lfschk4): Renamed to ...
19518         (LDLIBS-tst-lfschk4): This.
19519         (LDFLAGS-tst-lfschk5): Renamed to ...
19520         (LDLIBS-tst-lfschk5): This.
19521         (LDFLAGS-tst-lfschk6): Renamed to ...
19522         (LDLIBS-tst-lfschk6): This.
19523
19524         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
19525         on $(common-objpfx)soversions.mk.
19526
19527 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
19528
19529         [BZ #10014]
19530         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
19531         example host name.
19532
19533 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19534
19535         * malloc/arena.c (arena_get_retry): New function that gets
19536         another arena for the caller to try its request on.
19537         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
19538         current arena cannot fulfill the request.
19539         (__libc_memalign): Likewise.
19540         (__libc_memalign): Likewise.
19541         (__libc_pvalloc): Likewise.
19542         (__libc_calloc): Likewise.
19543
19544 2012-09-05  John Tobey  <john.tobey@gmail.com>
19545
19546         [BZ #13542]
19547         * manual/arith.texi (Operations on Complex): Fix description
19548         of carg branch cut.
19549
19550 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19551
19552         [BZ #10014]
19553         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
19554         host name.
19555
19556         [BZ #10038]
19557         * manual/memory.texi (Memory): Make order of menu items match
19558         order of sections.
19559
19560 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19561
19562         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
19563         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
19564         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
19565
19566 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19567
19568         * csu/libc-tls.c (static_dtv): Renamed to ...
19569         (_dl_static_dtv): This.  Make it global.
19570         (_dl_initial_dtv): Removed.
19571         (__libc_setup_tls): Updated.
19572         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
19573         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
19574         DL_INITIAL_DTV.
19575
19576 2012-09-06  Petr Machata  <pmachata@redhat.com>
19577
19578         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
19579         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
19580         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
19581         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
19582
19583 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19584
19585         [BZ #14545]
19586         * csu/libc-tls.c (_dl_initial_dtv): New variable.
19587         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
19588         freeing dtv[-1].
19589
19590 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19591
19592         [BZ #14544]
19593         * Makeconfig (link-static-before-libc): Replace $(+prector)
19594         with $(+prectorT).
19595         (link-static-after-libc): Replace $(+postctor) with
19596         $(+postctorT).
19597         (link-bounded): Replace $(+prector)/$(+postctor) with
19598         $(+prectorT)/$(+postctorT).
19599         (+prectorT): New macro.
19600         (+postctorT): Likewise.
19601
19602 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19603
19604         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
19605         (round_str): Handle values above the maximum for IBM long double
19606         as inexact.
19607         * stdlib/tst-strtod-round.c (tests): Regenerated.
19608
19609 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19610
19611         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
19612         assembler flag.
19613         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
19614         zarch_nohighgprs around the zarch optimized routines.
19615         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
19616         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
19617         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
19618         for zarch.
19619
19620 2012-09-05  David S. Miller  <davem@davemloft.net>
19621
19622         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19623
19624         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
19625         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
19626         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
19627         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19628         entries.
19629
19630 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19631
19632         * malloc/arena.c: Fold copyright years.
19633         * malloc/mcheck.c, malloc/memusage.c: Likewise.
19634
19635 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19636
19637         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
19638
19639 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19640
19641         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
19642
19643 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19644
19645         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
19646         change internal state upon failure.
19647
19648 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19649
19650         * malloc/mcheck.c (mcheck_check_all): Fix typo.
19651         * malloc/memusage.c (mmap): Likewise.
19652         (mmap64, mremap): Likewise.  Adjust name in comment.
19653
19654 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19655
19656         * libio/fileops.c: Fix typos in comments.
19657         * libio/oldfileops.c: Likewise.
19658         * libio/wfileops.c: Likewise.
19659
19660 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19661
19662         [BZ #1349]
19663         * malloc/Makefile (tests): Add tst-malloc-usable test case.
19664         (tst-malloc-usable-ENV): Set environment for test case.
19665         * malloc/hooks.c (malloc_check_get_size): New function to get
19666         requested size.
19667         * malloc/malloc.c (musable): Use malloc_check_get_size.
19668         * malloc/tst-malloc-usable.c: New test case.
19669
19670 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19671
19672         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
19673
19674 2012-09-05  Allan McRae  <allan@archlinux.org>
19675
19676         [BZ #13966]
19677         * configure.in (CXX_SYSINCLUDES): Use compiler output to
19678         determine header location.
19679         * configure: Regenerated.
19680
19681 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19682
19683         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
19684         float format.
19685         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
19686         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
19687         format.
19688         (test): Regenerate.
19689
19690 2012-09-04  David S. Miller  <davem@davemloft.net>
19691
19692         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
19693         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
19694         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
19695
19696 2012-09-04  Florian Weimer  <fweimer@redhat.com>
19697
19698         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
19699         failures.
19700
19701         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
19702
19703 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
19704
19705         [BZ #9914]
19706         * libio/iogetdelim.c: Include <limits.h>.
19707         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
19708         + len + 1 would overflow.
19709
19710 2012-09-03  Andreas Jaeger  <aj@suse.de>
19711
19712         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19713         * sysdeps/i386/fpu/libm-test-ulps: Update.
19714
19715 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19716
19717         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19718         Add s_sinf-sse2, s_conf-sse2.
19719
19720         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
19721         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
19722         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
19723         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
19724
19725         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
19726         for using routine as __sinf_ia32.
19727         Use macro for function declaration and weak_alias.
19728         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
19729         for using routine as __cosf_ia32.
19730         Use macro for function declaration and weak_alias.
19731
19732         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
19733         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
19734
19735         * sysdeps/x86_64/fpu/s_sinf.S: New file.
19736         * sysdeps/x86_64/fpu/s_cosf.S: New file.
19737         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19738
19739         * math/libm-test.inc (cos_test): Add more test cases.
19740         (sin_test): Likewise.
19741         (sincos_test): Likewise.
19742
19743 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19744
19745         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
19746         (IFUNC_RESOLVE): Make pointers to the specialized implementations
19747         hidden.
19748         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19749
19750 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
19751
19752         [BZ #14538]
19753         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
19754         first element of the GOT.
19755         (elf_machine_load_address): Return the difference between
19756         the runtime address of _DYNAMIC and elf_machine_dynamic ().
19757
19758 2012-09-01  Allan McRae  <allan@archlinux.org>
19759
19760         [BZ #13412]
19761         * configure.in (AWK): Require gawk version 3.0 or later.
19762         * configure: Regenerated.
19763
19764 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
19765
19766         * sysdeps/unix/sysv/linux/kernel-features.h
19767         (__ASSUME_POSIX_CPU_TIMERS): Remove.
19768         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19769         [__NR_clock_getres]: Make code unconditional.
19770         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
19771         (clock_getcpuclockid): Remove code left unreachable by removal of
19772         conditionals.
19773         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
19774         code unconditional.
19775         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19776         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19777         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
19778         Make code unconditional.
19779         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19780         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19781         * sysdeps/unix/sysv/linux/clock_settime.c
19782         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
19783         conditional code.
19784         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
19785         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19786
19787 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
19788
19789         [BZ #14476]
19790         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
19791         scripts/test-installation.pl.
19792
19793         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
19794         and $ld_so_version if it is set.
19795
19796 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19797
19798         [BZ #14516]
19799         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
19800         failure if reading from procfs failed.
19801         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
19802
19803 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19804
19805         * sysdeps/unix/sysv/linux/kernel-features.h
19806         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
19807         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19808         Remove conditional code.
19809         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19810         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
19811         Remove conditional code.
19812         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19813         * sysdeps/unix/sysv/linux/i386/fxstat.c
19814         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19815         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19816         * sysdeps/unix/sysv/linux/i386/fxstatat.c
19817         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19818         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19819         * sysdeps/unix/sysv/linux/i386/lxstat.c
19820         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19821         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19822         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
19823         Remove conditional code.
19824         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19825         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19826         Remove conditional code.
19827         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19828         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
19829         <kernel-features.h>.
19830         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
19831         Remove.
19832         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
19833         Remove conditional code.
19834         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19835         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
19836         Remove conditional.
19837
19838 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
19839
19840         [BZ #5400]
19841         * NEWS: Add fixed bug number.
19842
19843 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19844
19845         [BZ #14519]
19846         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
19847         underflowing exponent in case of negative sign.
19848         * stdlib/tst-strtod-round-data: Add more tests.
19849         * stdlib/tst-strtod-round.c (tests): Regenerated.
19850
19851         [BZ #3479]
19852         * stdlib/strtod_l.c (NDIG): Remove.
19853         (HEXNDIG): Likewise.
19854         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
19855         smallest representable value.
19856         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
19857         lie within an exact representation of 1/2 ulp of the result.
19858         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
19859         unconditionally.
19860         (TENS_P9_IDX): Define unconditionally.
19861         (TENS_P9_SIZE): Likewise.
19862         (TENS_P10_IDX): Likewise.
19863         (TENS_P10_SIZE): Likewise.
19864         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
19865         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
19866         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
19867         entries for 10^2^13 and 10^2^14.
19868         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
19869         (TENS_P13_IDX): Define.
19870         (TENS_P13_SIZE): Likewise.
19871         (TENS_P14_IDX): Likewise.
19872         (TENS_P14_SIZE): Likewise.
19873         (_fpioconst_pow10): Change array size to
19874         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
19875         unconditional.
19876         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
19877         1024]: Add entries for 10^2^13 and 10^2^14.
19878         [LAST_POW10 > _LAST_POW10]: Remove #error.
19879         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
19880         (_fpioconst_pow10): Change array size to
19881         FPIOCONST_POW10_ARRAY_SIZE.
19882         * stdlib/gen-fpioconst.c: New file.
19883         * stdlib/gen-tst-strtod-round.c: Likewise.
19884         * stdlib/tst-strtod-round-data: Likewise.
19885         * stdlib/tst-strtod-round.c: Likewise.
19886         * stdlib/Makefile (tests): Add tst-strtod-round.
19887
19888         [BZ #14459]
19889         * stdlib/strtod_l.c: Include <stdint.h>.
19890         (NDEBUG): Do not define.
19891         (round_and_return): Change EXPONENT parameter to type intmax_t.
19892         Rearrange calculations to avoid internal overflow possibilities.
19893         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
19894         Rearrange calculations to avoid internal overflow possibilities.
19895         Assert that number fits inside MPNSIZE limbs.
19896         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
19897         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
19898         calculations and add assertions to avoid internal overflow
19899         possibilities.  Add casts to avoid signed/unsigned operations.
19900         * stdlib/tst-strtod-overflow.c: New file.
19901         * stdlib/Makefile (tests): Add tst-strtod-overflow.
19902
19903 2012-08-25  Marek Polacek  <polacek@redhat.com>
19904
19905         * time/time.h: Fix some typos in comments.
19906
19907 2012-08-23  Roland McGrath  <roland@hack.frob.com>
19908
19909         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
19910         * posix/tst-rfc3484-2.c: Likewise.
19911         * posix/tst-rfc3484-3.c: Likewise.
19912
19913 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
19914
19915         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
19916         (EF_ARM_ABI_FLOAT_HARD): Likewise.
19917
19918 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
19919
19920         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
19921         #include of fxstatat64.c.
19922
19923 2012-08-22  Roland McGrath  <roland@hack.frob.com>
19924
19925         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
19926         * shadow/getspent_r.c: Likewise.
19927         * shadow/getspnam.c: Likewise.
19928         * shadow/getspnam_r.c: Likewise.
19929         * gshadow/getsgent.c: Likewise.
19930         * gshadow/getsgent_r.c: Likewise.
19931         * gshadow/getsgnam.c: Likewise.
19932         * gshadow/getsgnam_r.c: Likewise.
19933         * inet/getnetbyad.c: Likewise.
19934         * inet/getnetbyad_r.c: Likewise.
19935         * inet/getnetbynm.c: Likewise.
19936         * inet/getnetbynm_r.c: Likewise.
19937         * inet/getnetent.c: Likewise.
19938         * inet/getnetent_r.c: Likewise.
19939         * inet/getproto.c: Likewise.
19940         * inet/getproto_r.c: Likewise.
19941         * inet/getprtent.c: Likewise.
19942         * inet/getprtent_r.c: Likewise.
19943         * inet/getprtname.c: Likewise.
19944         * inet/getprtname_r.c: Likewise.
19945         * inet/getrpcbyname.c: Likewise.
19946         * inet/getrpcbyname_r.c: Likewise.
19947         * inet/getrpcbynumber.c: Likewise.
19948         * inet/getrpcbynumber_r.c: Likewise.
19949         * inet/getrpcent.c: Likewise.
19950         * inet/getrpcent_r.c: Likewise.
19951         * inet/getaliasent.c: Likewise.
19952         * inet/getaliasent_r.c: Likewise.
19953         * inet/getaliasname.c: Likewise.
19954         * inet/getaliasname_r.c: Likewise.
19955         * nscd/getgrgid_r.c: Likewise.
19956         * nscd/getgrnam_r.c: Likewise.
19957         * nscd/gethstbyad_r.c: Likewise.
19958         * nscd/gethstbynm3_r.c: Likewise.
19959         * nscd/getpwnam_r.c: Likewise.
19960         * nscd/getpwuid_r.c: Likewise.
19961         * nscd/getsrvbynm_r.c: Likewise.
19962         * nscd/getsrvbypt_r.c: Likewise.
19963         * nscd/gai.c: Likewise.
19964
19965         * configure.in (build_nscd): New substituted variable, set
19966         by --disable-build-nscd and defaults to $use_nscd.
19967         * configure: Regenerated.
19968         * config.make.in (build-nscd): New substituted variable.
19969         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
19970         Change conditional to require [$(build-nscd) = yes] as well.
19971         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
19972
19973         [BZ# 13696]
19974         * configure.in (use_nscd): New substituted variable, set by
19975         --disable-nscd.  If enabled, define USE_NSCD.
19976         * configure: Regenerated.
19977         * config.h.in: Add USE_NSCD.
19978         * config.make.in (use-nscd): New substituted variable.
19979         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19980         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
19981         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
19982         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
19983         (CFLAGS-getgrnam_r.c): Likewise.
19984         (CFLAGS-initgroups.c): Likewise.
19985         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
19986         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
19987         Variables removed.
19988         * inet/getnetgrent_r.c
19989         (nscd_setnetgrent): New function, broken out of ...
19990         (setnetgrent): ... here.  Call it.
19991         (innetgr): Conditionalize nscd bits on [USE_NSCD].
19992         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
19993         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
19994         * nscd/Makefile (routines, aux): Move definitions after include of
19995         Makeconfig.  Conditionalize on [$(use-nscd) != no].
19996         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
19997         Conditionalize on [USE_NSCD].
19998         (is_nscd, nscd_init_cb): Likewise.
19999         (nss_load_library): Conditionalize init callback on [USE_NSCD].
20000         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
20001         * nss/nss_db/db-init.c: Likewise.
20002         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
20003         [USE_NSCD].
20004         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
20005         (make_request): Use it.
20006         (cache_valid_p): New function.
20007         (__check_pf): Use it.
20008         * NEWS: Add item for --disable-nscd.
20009
20010 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
20011
20012         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
20013         to support sed >= 4.2.1-20-ga9bf076.
20014         * configure: Regenerated.
20015
20016 2012-08-22  Roland McGrath  <roland@hack.frob.com>
20017
20018         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
20019         Conditionalize whole body on [IREL].
20020
20021 2012-08-22  Jeff Law <law@redhat.com>
20022
20023         [BZ #14505]
20024         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
20025         if the family is PF_UNSPEC.
20026
20027 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
20028
20029         * Makerules (lib-version): Rename from V.
20030         (install-lib-nosubdir): Change V to lib-version.
20031
20032 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
20033
20034         [BZ #14252]
20035         * powerpc32/power6/wcschr.c: New file.
20036         * powerpc32/power6/wcscpy.c: New file.
20037         * powerpc32/power6/wcsrchr.c: New file.
20038         * powerpc64/power6/wcschr.c: New file.
20039         * powerpc64/power6/wcscpy.c: New file.
20040         * powerpc64/power6/wcsrchr.c: New file.
20041
20042 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20043
20044         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
20045         (two_way_short_needle): Use it.
20046         * string/strstr.c (AVAILABLE1_USES_J): Define.
20047         * string/strcasestr.c: Likewise.
20048
20049         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
20050         array references.
20051         * string/strcasestr.c (TOLOWER): Make side-effect safe.
20052
20053         [BZ #11607]
20054         * NEWS: Add an entry.
20055         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
20056         define their defaults.
20057         (two_way_short_needle): Detect end-of-string on-the-fly.
20058         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
20059         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
20060         * string/bug-strcasestr1.c: New test.
20061         * string/Makefile: Run it.
20062
20063 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20064
20065         [BZ #11607]
20066         * string/str-two-way.h (two_way_short_needle): Optimize matching of
20067         the first character.
20068
20069 2012-08-21  Roland McGrath  <roland@hack.frob.com>
20070
20071         * csu/elf-init.c (__libc_csu_irel): Function removed.
20072         * csu/libc-start.c (apply_irel): New function.
20073         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
20074
20075 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
20076
20077         * sysdeps/unix/sysv/linux/kernel-features.h
20078         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
20079         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
20080         <kernel-features.h>.
20081         [__NR_fadvise64_64]: Make code unconditional.
20082         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
20083         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20084         !__NR_fadvise64_64)]: Likewise.
20085         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20086         !__NR_fadvise64_64))]: Likewise.
20087         [__NR_fadvise64]: Make code unconditional.
20088         [!__NR_fadvise64]: Remove conditional code.
20089         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
20090         <kernel-features.h>.
20091         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20092         unconditional.
20093         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20094         conditional code.
20095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
20096         not include <kernel-features.h>.
20097         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20098         unconditional.
20099         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20100         conditional code.
20101         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
20102         include <kernel-features.h>.
20103         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20104         unconditional.
20105         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20106         conditional code.
20107
20108 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
20109
20110         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
20111         slight instruction rearrangements per scrollpipe analysis.
20112         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
20113
20114 2012-08-20  Roland McGrath  <roland@hack.frob.com>
20115
20116         * manual/syslog.texi (syslog; vsyslog, closelog):
20117         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
20118         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
20119
20120         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
20121         DSOCAPS to match condition on defining it.
20122
20123 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
20124
20125         * sysdeps/unix/sysv/linux/kernel-features.h
20126         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
20127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
20128         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20129         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
20131         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20132         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
20134         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20135         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20136
20137         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
20138         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
20139
20140         * sysdeps/unix/sysv/linux/kernel-features.h
20141         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
20142         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
20143         unconditional.
20144         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20145         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
20146         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20147         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20148         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
20149         Make code unconditional.
20150         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20151         (__mmap64) [!__NR_mmap2]: Likewise.
20152         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
20153         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20154         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20155         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
20156         [__NR_mmap2]: Make code unconditional.
20157         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20158         (__mmap64) [!__NR_mmap2]: Likewise.
20159
20160 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20161
20162         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
20163
20164 2012-08-18  Andreas Jaeger  <aj@suse.de>
20165
20166         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
20167
20168 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20169
20170         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
20171         * include/unistd.h (__have_sock_cloexec): Likewise.
20172         (__have_pipe2): Likewise.
20173         (__have_dup3): Likewise.
20174
20175 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20176
20177         [BZ #9685]
20178         * include/unistd.h (__have_pipe2): Change define into an extern int.
20179         (__have_dup3): Likewise.
20180         * socket/have_sock_cloexec.c: Include fcntl.h.
20181         (__have_pipe2): New variable.
20182         (__have_dup3): Likewise.
20183
20184 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
20185
20186         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
20187
20188 2012-08-17  Marek Polacek  <polacek@redhat.com>
20189
20190         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
20191         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
20192
20193 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20194
20195         * configure.in: Add AC_SUBST for sysheaders.
20196         * configure: Regenerated.
20197         * config.make.in (sysheaders): New substituted variable.
20198
20199         * sysdeps/unix/mkfifo.c: Moved ...
20200         * sysdeps/posix/mkfifo.c: ... here.
20201         * sysdeps/unix/mkfifoat.c: Moved ...
20202         * sysdeps/posix/mkfifoat.c: ... here.
20203
20204         * sysdeps/unix/utime.c: Moved ...
20205         * sysdeps/posix/utime.c: ... here.
20206
20207         * sysdeps/unix/time.c: Moved ...
20208         * sysdeps/posix/time.c: ... here.
20209         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
20210         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
20211
20212         * sysdeps/unix/nice.c: Moved ...
20213         * sysdeps/posix/nice.c: ... here.
20214
20215         * sysdeps/unix/alarm.c: Moved ...
20216         * sysdeps/posix/alarm.c: ... here.
20217
20218         * intl/Makefile ($(codeset_mo)): Depend on the input file.
20219
20220 2012-08-17  Jeff Law <law@redhat.com>
20221
20222         * intl/Makefile (codeset_mo): New variable.
20223         ($(codeset_mo)): New target.
20224         (tst-codeset.out): Depend on that.  Remove explicit rule.
20225         (tst-gettext3.out, tst-gettext5.out): Likewise.
20226         (LOCPATH-ENV, tst-codeset-ENV): New variables.
20227         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
20228         * intl/tst-codeset.sh: Remove.
20229         * intl/tst-gettext3.sh: Likewise.
20230         * intl/tst-gettext5.sh: Likewise.
20231
20232 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20233
20234         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
20235         * sysdeps/unix/syscalls.list: ... here.
20236
20237         * sysdeps/posix/getaddrinfo.c
20238         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
20239         (gaiconf_init, gaiconf_reload): Use them.
20240         [!_STATBUF_ST_NSEC]
20241         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
20242         Define using time_t rather than struct timespec.
20243
20244         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
20245         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
20246         Macros removed.
20247         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
20248         [!NO_THREADS].
20249         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
20250         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
20251         Likewise.
20252
20253         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
20254         __libc_cleanup_push argument.
20255
20256         * bits/param.h: New file.
20257         * misc/sys/param.h: New file.
20258         * include/sys/param.h: New file.
20259         * misc/Makefile (headers): Add bits/param.h.
20260         * sysdeps/generic/sys/param.h: File removed.
20261         * sysdeps/unix/sysv/linux/bits/param.h: New file.
20262         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
20263         * sysdeps/mach/hurd/bits/param.h: New file.
20264         * sysdeps/mach/hurd/sys/param.h: File removed.
20265
20266         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
20267         last change.
20268
20269         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
20270         [_IO_MTSAFE_IO].
20271         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
20272         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
20273         New macros.
20274
20275         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
20276         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
20277         rather than -D_IO_MTSAFE_IO conditionally.
20278         * stdio-common/Makefile (CPPFLAGS): Likewise.
20279         * wcsmbs/Makefile (CPPFLAGS): Likewise.
20280         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
20281         Use $(libio-mtsafe).
20282         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
20283         of -D_IO_MTSAFE_IO.
20284         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
20285         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
20286         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
20287         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
20288         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
20289         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
20290         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
20291         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
20292         (CFLAGS-fread_u_chk.c): Likewise.
20293         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
20294         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
20295         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
20296         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
20297         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
20298         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
20299         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
20300         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
20301         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
20302
20303         * libio/Makefile: Test [$(libc-reentrant) = yes]
20304         instead of [$(filter %REENTRANT, $(defines)) nonempty].
20305
20306         * Makeconfig
20307         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
20308         * sysdeps/pthread/configure: File removed.
20309         * sysdeps/pthread/Makeconfig: New file.
20310         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
20311         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
20312
20313 2012-08-16  Gary Benson  <gbenson@redhat.com>
20314
20315         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
20316         unmapping the first object in a namespace.
20317
20318 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20319
20320         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
20321         (__internal_setnetgrent): ... this.  Add internal_function to
20322         definition.  Add libc_hidden_def.
20323         (setnetgrent): Update caller.
20324         (internal_endnetgrent): Renamed to ...
20325         (__internal_endnetgrent): ... this.  Add internal_function to
20326         definition.  Add libc_hidden_def.
20327         (endnetgrent): Update caller.
20328         (internal_getnetgrent_r): Renamed to ...
20329         (__internal_getnetgrent_r): ... this.  Add internal_function to
20330         definition.  Add libc_hidden_def.
20331         (__getnetgrent_r): Update caller.
20332         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
20333
20334 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20335
20336         * stdlib/longlong.h: Update from GCC.
20337
20338 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20339
20340         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
20341         on _QL, which is set by umul_ppmm but never used.
20342         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
20343         variables, which are set by GMP macros but never used.
20344         * stdio-common/_itowa.c (_itowa): Likewise.
20345         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
20346         * stdlib/mod_1.c (mpn_mod_1): Likewise.
20347
20348 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
20349
20350         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
20351         struct La_sh_regs is not constant.
20352         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
20353         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
20354         and struct La_sparc64_regs are not constant.
20355
20356 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20357
20358         * sysdeps/unix/sysv/linux/kernel-features.h
20359         (__ASSUME_POSIX_TIMERS): Remove.
20360         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
20361         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20362         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
20363         Make code unconditional.
20364         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20365         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
20366         Make code unconditional.
20367         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20368         * sysdeps/unix/sysv/linux/clock_nanosleep.c
20369         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
20370         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20371         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
20372         Make code unconditional.
20373         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20374         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
20375         (__libc_missing_posix_timers): Remove.
20376
20377 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20378
20379         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
20380         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
20381
20382         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
20383
20384         * elf/dl-sym.c: Include <stdlib.h>.
20385
20386         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
20387         constants, which avoids warnings in 32-bit builds.
20388
20389         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
20390         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
20391
20392         * misc/lseek.c: File moved to ...
20393         * io/lseek.c: ... here.
20394
20395         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
20396
20397         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
20398         shifting LEN more than 31 bits at once.
20399
20400 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20401
20402         [BZ #14195]
20403         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
20404         segmentation fault for a case of two empty input strings.
20405         * string/test-strncasecmp.c (check1): Renamed to...
20406         (bz12205): ...this.
20407         (bz14195): Add new testcase for two empty input strings and N > 0.
20408         (test_main): Call new testcase, adapt for renamed function.
20409
20410 2012-08-15  Andreas Jaeger  <aj@suse.de>
20411
20412         [BZ #14090]
20413         * crypt/md5test2.c: New test, based on test supplied by Serge
20414         Belyshev <belyshev@depni.sinp.msu.ru>.
20415         * crypt/Makefile (xtests): Add md5test-giant..
20416         * crypt/Makefile ($(objpfx)md5test-giant): Add.
20417
20418 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20419
20420         [BZ #14090]
20421         * crypt/md5.c (md5_process_block): Don't assume the buffer
20422         length is less than 2**32.
20423         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
20424         length is less than 2**64.
20425
20426 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20427
20428         * string/str-two-way.h: Include <sys/param.h>.
20429         (MAX): Macro removed.
20430
20431         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
20432         Move #define and #undef of memmove to just before and after
20433         including <string.h>.
20434
20435         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
20436         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
20437         and after including <string.h>.  Move declarations of
20438         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
20439         to before #include "string/memmove.c".
20440
20441         * include/dirent.h: Declare __getdirentries.
20442
20443         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
20444         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
20445
20446 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
20447
20448         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
20449         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
20450         * sysdeps/i386/configure: Regenerated.
20451         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
20452         STABS_CURRENT_FILE, and STABS_FUN.
20453         (END): Remove call to STABS_FUN_END.
20454         (STABS_CURRENT_FILE1): Delete.
20455         (STABS_CURRENT_FILE): Likewise.
20456         (STABS_FUN): Likewise.
20457         (STABS_FUN_END): Likewise.
20458         (STABS_FUN2): Likewise.
20459         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
20460         * sysdeps/x86_64/configure: Regenerated.
20461
20462 2012-08-14  Roland McGrath  <roland@hack.frob.com>
20463
20464         * elf/dl-open.c: Include <atomic.h>.
20465         * elf/dl-lookup.c: Likewise.
20466
20467 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
20468
20469         * sysdeps/unix/sysv/linux/kernel-features.h
20470         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
20471         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
20472         unconditionally.
20473         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
20474         unconditionally.
20475         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
20476         condition on __ASSUME_CLONE_THREAD_FLAGS.
20477
20478 2012-08-14  Andreas Jaeger  <aj@suse.de>
20479
20480         * sysdeps/i386/fpu/libm-test-ulps: Update.
20481
20482 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
20483
20484         * include/atomic.h (atomic_exchange_and_add): Split into ...
20485         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
20486         New atomic macros.
20487
20488 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
20489
20490         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20491
20492 2012-08-13  Jeff Law <law@redhat.com>
20493
20494         * manual/stdio.texi (snprintf): Clarify handling of the trailing
20495         null byte in the output string.
20496
20497 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
20498
20499         * sysdeps/unix/sysv/linux/kernel-features.h
20500         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
20501         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
20502         (__ASSUME_ARG_MAX_STACK_BASED): Define.
20503         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
20504         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
20505         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
20506         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
20507
20508 2012-08-09  Jeff Law <law@redhat.com>
20509
20510         [BZ #13939]
20511         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
20512         When avoid_arena is set, don't retry in the that arena.  Pick the
20513         next one, whatever it might be.
20514         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
20515         (arena_lock): Pass in new parameter to arena_get2.
20516         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
20517         arena_get2.
20518         (__libc_malloc): Unify retrying after main arena failure with
20519         __libc_memalign version.
20520         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
20521
20522 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20523
20524         [BZ #14166]
20525         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
20526         to __redirect_strstr.
20527         (__strstr_sse42): Use typeof __redirect_strstr.
20528         (__strstr_ia32): Likewise.
20529         (__libc_strstr): New prototype.
20530         (strstr): Renamed to ...
20531         (__libc_strstr): This.
20532         (strstr): New strong alias of __libc_strstr.
20533         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
20534         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
20535         __redirect_time.
20536         Include <time.h>.
20537         (__libc_time): New prototype.
20538         (time_ifunc): Replace time with __libc_time.
20539         (time): New strong alias and hidden definition of __libc_time.
20540         (__GI_time): Remove strong alias.
20541         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
20542         Include <stddef.h>.
20543         (memmove): Redefined to __redirect_memmove.
20544         (__memmove_sse2): Use typeof __redirect_memmove.
20545         (__memmove_ssse3): Likewise.
20546         (__memmove_ssse3_back): Likewise.
20547         (__libc_memmove): New prototype.
20548         (memmove): Renamed to ...
20549         (__libc_memmove): This.
20550         (memmove): New strong alias of __libc_memmove.
20551
20552 2012-08-08  Mark Salter  <msalter@redhat.com>
20553
20554         * elf/elf.h
20555         (R_MN10300_TLS_GD): Define.
20556         (R_MN10300_TLS_LD): Likewise.
20557         (R_MN10300_TLS_LDO): Likewise.
20558         (R_MN10300_TLS_GOTIE): Likewise.
20559         (R_MN10300_TLS_IE): Likewise.
20560         (R_MN10300_TLS_LE): Likewise.
20561         (R_MN10300_TLS_DTPMOD): Likewise.
20562         (R_MN10300_TLS_DTPOFF): Likewise.
20563         (R_MN10300_TLS_TPOFF): Likewise.
20564         (R_MN10300_SYM_DIFF): Likewise.
20565         (R_MN10300_ALIGN): Likewise.
20566         (R_MN10300_NUM): Update.
20567
20568 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
20569
20570         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
20571         Remove.
20572
20573 2012-08-08  Roland McGrath  <roland@hack.frob.com>
20574
20575         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
20576
20577         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
20578         sysdeps/unix -> sysdeps/posix move.
20579         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
20580
20581 2012-08-07      Allan McRae     <allan@archlinux.org>
20582
20583         [BZ #14303]
20584         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
20585         (SUNOS_CPP): Likewise.
20586         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
20587         not found.
20588         (open_input): Call CPP using execvp.
20589
20590 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20591
20592         * sysdeps/unix/sysv/linux/kernel-features.h
20593         (__ASSUME_PROT_GROWSUPDOWN): Remove.
20594         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20595         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20596         (__ASSUME_WAITID_SYSCALL): Likewise.
20597         * sysdeps/unix/sysv/linux/dl-execstack.c
20598         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
20599         code unconditional.
20600         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
20601         conditional code.
20602         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
20603         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
20604         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
20605         code.
20606         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
20607         unconditional.
20608         [__ASSUME_WAITID_SYSCALL]: Likewise.
20609         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
20610
20611 2012-08-07  Roland McGrath  <roland@hack.frob.com>
20612
20613         * sysdeps/unix/closedir.c: Renamed to ...
20614         * sysdeps/posix/closedir.c: ... here.
20615         * sysdeps/unix/dirfd.c: Renamed to ...
20616         * sysdeps/posix/dirfd.c: ... here.
20617         * sysdeps/unix/dirstream.h: Renamed to ...
20618         * sysdeps/posix/dirstream.h: ... here.
20619         * sysdeps/unix/fdopendir.c: Renamed to ...
20620         * sysdeps/posix/fdopendir.c: ... here.
20621         * sysdeps/unix/opendir.c: Renamed to ...
20622         * sysdeps/posix/opendir.c: ... here.
20623         * sysdeps/unix/readdir.c: Renamed to ...
20624         * sysdeps/posix/readdir.c: ... here.
20625         * sysdeps/unix/readdir_r.c: Renamed to ...
20626         * sysdeps/posix/readdir_r.c: ... here.
20627         * sysdeps/unix/rewinddir.c: Renamed to ...
20628         * sysdeps/posix/rewinddir.c: ... here.
20629         * sysdeps/unix/seekdir.c: Renamed to ...
20630         * sysdeps/posix/seekdir.c: ... here.
20631         * sysdeps/unix/telldir.c: Renamed to ...
20632         * sysdeps/posix/telldir.c: ... here.
20633         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
20634         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
20635         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
20636         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
20637
20638         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
20639         * bits/fcntl.h: ... here.
20640
20641         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
20642         not 0.
20643         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
20644         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
20645         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
20646         (struct flock): Move l_start, l_len to the beginning.
20647         Use __pid_t for l_pid.
20648         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
20649         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
20650         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
20651         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
20652         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
20653         [__USE_LARGEFILE64] (struct flock64): New type.
20654         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
20655
20656         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
20657         * bits/dirent.h: ... here.
20658
20659         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
20660         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
20661
20662 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20663
20664         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20665         Change from 2.6.0 to 2.6.16.
20666         * sysdeps/unix/sysv/linux/configure: Regenerated.
20667         * sysdeps/unix/sysv/linux/kernel-features.h
20668         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
20669         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
20670         version.
20671         (__ASSUME_UTIMES): Likewise.
20672         (__ASSUME_CLONE_STOPPED): Remove.
20673         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
20674         architectures, not kernel version.
20675         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
20676         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20677         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20678         (__ASSUME_WAITID_SYSCALL): Likewise.
20679         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
20680         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
20681         * README: State 2.6.16 as minimum Linux kernel version.  Do not
20682         refer to older versions.
20683
20684 2012-08-06  Roland McGrath  <roland@hack.frob.com>
20685
20686         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
20687         Define alphasort64 as an alias.
20688         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
20689         Define versionsort64 as an alias.
20690         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
20691         Define scandir64 as an alias.
20692         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
20693         Define scandirat64 as an alias.
20694         * dirent/alphasort64.c (alphasort64):
20695         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
20696         * dirent/versionsort64.c: Likewise.
20697         * dirent/scandir64.c: Likewise.
20698         * dirent/scandirat64.c: Likewise.
20699         * sysdeps/wordsize-64/alphasort.c: File removed.
20700         * sysdeps/wordsize-64/alphasort64.c: File removed.
20701         * sysdeps/wordsize-64/scandir.c: File removed.
20702         * sysdeps/wordsize-64/scandir64.c: File removed.
20703         * sysdeps/wordsize-64/scandirat.c: File removed.
20704         * sysdeps/wordsize-64/scandirat64.c: File removed.
20705         * sysdeps/wordsize-64/versionsort.c: File removed.
20706         * sysdeps/wordsize-64/versionsort64.c: File removed.
20707         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
20708         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
20709         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
20710         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
20711         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
20712         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
20713         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
20714         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
20715
20716         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
20717         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20718         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
20719         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20720         [defined __arch64__ || defined __sparcv9]
20721         (__INO_T_MATCHES_INO64_T): New macro.
20722         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20723         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
20724         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
20725         * sysdeps/unix/sysv/linux/bits/dirent.h
20726         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
20727         (_DIRENT_MATCHES_DIRENT64): New macro.
20728
20729         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
20730         Define lockf64 as an alias.
20731         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
20732         Define fseeko64 as an alias.
20733         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
20734         Define ftello64 as an alias.
20735         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
20736         Define _IO_fgetpos64 and fgetpos64 as aliases.
20737         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
20738         Define _IO_fsetpos64 and fsetpos64 as aliases.
20739         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
20740         Conditionalize body on this.
20741         * libio/fseeko64.c: Likewise.
20742         * libio/ftello64.c: Likewise.
20743         * libio/iofgetpos64.c: Likewise.
20744         * libio/iofsetpos64.c: Likewise.
20745         * sysdeps/wordsize-64/lockf.c: File removed.
20746         * sysdeps/wordsize-64/lockf64.c: File removed.
20747         * sysdeps/wordsize-64/fseeko.c: File removed.
20748         * sysdeps/wordsize-64/fseeko64.c: File removed.
20749         * sysdeps/wordsize-64/ftello.c: File removed.
20750         * sysdeps/wordsize-64/ftello64.c: File removed.
20751         * sysdeps/wordsize-64/iofgetpos.c: File removed.
20752         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
20753         * sysdeps/wordsize-64/iofsetpos.c: File removed.
20754         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
20755         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
20756         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
20757         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
20758         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
20759         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
20760         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
20761         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
20762         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
20763         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
20764         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
20765
20766         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20767         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20768         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
20769         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20770         [defined __arch64__ || defined __sparcv9]
20771         (__OFF_T_MATCHES_OFF64_T): New macro.
20772         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20773         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20774         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20775         (__OFF_T_MATCHES_OFF64_T): New macro.
20776
20777 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20778
20779         * stdlib/secure-getenv.c (__secure_getenv): Replace
20780         GLIBC_2_16 with GLIBC_2_17.
20781
20782 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20783
20784         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
20785         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20786
20787 2012-08-03  David S. Miller  <davem@davemloft.net>
20788
20789         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20790
20791 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20792
20793         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
20794         Remove.
20795         (__ASSUME_CORRECT_SI_PID): Likewise.
20796         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
20797         (__ASSUME_TMPFS_NAME): Likewise.
20798         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
20799         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
20800         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
20801         (HAVE_AUX_SECURE): Make definition unconditional.
20802         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
20803         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
20804
20805 2012-08-03  Roland McGrath  <roland@hack.frob.com>
20806
20807         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
20808         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
20809         * sysdeps/mach/hurd/eloop-threshold.h: New file.
20810         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20811         __eloop_threshold instead of SYMLOOP_MAX.
20812
20813         * sysdeps/generic/eloop-threshold.h: New file.
20814         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
20815         of MAXSYMLINKS.
20816         * elf/chroot_canon.c (chroot_canon): Likewise.
20817
20818 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20819
20820         [BZ #13717]
20821         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20822         Change to 2.6.0 everywhere.
20823         * sysdeps/unix/sysv/linux/configure: Regenerated.
20824         * sysdeps/unix/sysv/linux/kernel-features.h
20825         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
20826         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
20827         kernel versions.
20828         (__ASSUME_POSIX_TIMERS): Define unconditionally.
20829         (__ASSUME_FUTEX_REQUEUE): Remove.
20830         (__ASSUME_STATFS64): Define unconditionally.
20831         (__ASSUME_AT_SECURE): Likewise.
20832         (__ASSUME_CORRECT_SI_PID): Likewise.
20833         (__ASSUME_TGKILL): Define without depending on kernel version for
20834         i386.
20835         (__ASSUME_UTIMES): Likewise.
20836         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
20837         kernel version.
20838         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
20839         (__ASSUME_TMPFS_NAME): Likewise.
20840         * README: Update reference to Linux kernel versions.
20841
20842 2012-08-02  Marek Polacek  <polacek@redhat.com>
20843
20844         [BZ# 14150]
20845         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
20846         libc_cv_asm_type_prefix with %.
20847         * configure: Regenerated.
20848         * include/libc-symbols.h: Remove comment about
20849         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20850         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
20851         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
20852         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
20853         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
20854         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20855         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
20856         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
20857         * elf/tst-unique2mod1.c: Likewise.
20858         * elf/tst-unique1mod2.c: Likewise.
20859         * elf/tst-unique1mod1.c: Likewise.
20860         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
20861         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
20862         Replace ASM_TYPE_DIRECTIVE with .type.
20863         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20864         * sysdeps/i386/sysdep.h: Likewise.
20865         * sysdeps/x86_64/sysdep.h: Likewise.
20866         * sysdeps/sh/sysdep.h: Likewise.
20867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20868         Do not define ASM_TYPE_DIRECTIVE.
20869         * sysdeps/powerpc/sysdep.h: Likewise.
20870         * sysdeps/powerpc/powerpc32/sysdep.h:
20871         Replace ASM_TYPE_DIRECTIVE with .type.
20872         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
20873         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
20874         * sysdeps/i386/fpu/e_powf.S: Likewise.
20875         * sysdeps/i386/fpu/e_expl.S: Likewise.
20876         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20877         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20878         * sysdeps/i386/fpu/e_pow.S: Likewise.
20879         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20880         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20881         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20882         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20883         * sysdeps/i386/fpu/e_log2.S: Likewise.
20884         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20885         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20886         * sysdeps/i386/fpu/e_powl.S: Likewise.
20887         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20888         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20889         * sysdeps/i386/fpu/e_logl.S: Likewise.
20890         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20891         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20892         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20893         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20894         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20895         * sysdeps/i386/fpu/e_log.S: Likewise.
20896         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20897         * sysdeps/i386/fpu/e_logf.S: Likewise.
20898         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20899         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20900         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20901         * sysdeps/i386/fpu/e_log10.S: Likewise.
20902         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20903         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20904         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20905         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20906         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20907         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
20908         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20909         * sysdeps/i386/i686/strtok.S: Likewise.
20910         * sysdeps/i386/i386-mcount.S: Likewise.
20911         * sysdeps/i386/strtok.S: Likewise.
20912         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
20913         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20914         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20915         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20916         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
20917         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20918         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20919         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20920         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20921         * sysdeps/x86_64/_mcount.S: Likewise.
20922         * sysdeps/x86_64/strtok.S: Likewise.
20923         * sysdeps/sh/_mcount.S: Likewise.
20924
20925 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20926
20927         * libio/iofopen.c: Include <fcntl.h>.
20928         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
20929         (_IO_fopen64, fopen64): Define as aliases.
20930         * libio/iofopen64.c: Include <fcntl.h>.
20931         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
20932         Conditionalize body on this.
20933         * sysdeps/wordsize-64/iofopen.c: File removed.
20934         * sysdeps/wordsize-64/iofopen64.c: File removed.
20935
20936 2012-08-01  Marek Polacek  <polacek@redhat.com>
20937
20938         * libc/Makeconfig: Use elf in place of binfmt-subdir.
20939         Use dlfcn directly instead of a variable.
20940         (binfmt-subdir): Do not define.
20941         (dlfcn): Likewise.
20942
20943 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
20944
20945         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
20946         Remove all definitions.
20947         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
20948         <kernel-features.h>.
20949         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20950         (miss_F_GETOWN_EX): Remove all definitions.
20951         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
20952         macro definition.
20953         [!__ASSUME_FCNTL64]: Remove conditional code.
20954         [__ASSUME_FCNTL64]: Make code unconditional.
20955         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
20956         <kernel-features.h>.
20957         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
20958         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
20959         (lockf64) [__NR_fcntl64]: Make code unconditional.
20960         (lockf64) [__ASSUME_FCNTL64]: Likewise.
20961
20962         * sysdeps/unix/sysv/linux/kernel-features.h
20963         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
20964         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
20965         Make code unconditional.
20966         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20967         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
20969         [__NR_vfork]: Make code unconditional.
20970         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20971         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
20973         [__NR_vfork]: Make code unconditional.
20974         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
20975         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
20976
20977 2012-08-01  Roland McGrath  <roland@hack.frob.com>
20978
20979         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
20980         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
20981
20982         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20983         Define mkstemp64 as an alias.
20984         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20985         Define mkstemps64 as an alias.
20986         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20987         Define mkostemp64 as an alias.
20988         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
20989         Define mkostemps64 as an alias.
20990         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
20991         Conditionalize body on this.
20992         * misc/mkostemp64.c: Likewise.
20993         * misc/mkostemps64.c: Likewise.
20994         * misc/mkstemps64.c: Likewise.
20995         * sysdeps/wordsize-64/mkstemp64.c: File removed.
20996         * sysdeps/wordsize-64/mkostemp64.c: File removed.
20997         * sysdeps/wordsize-64/mkostemp.c: File removed.
20998         * sysdeps/wordsize-64/mkstemp.c: File removed.
20999         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
21000         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
21001         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
21002         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
21003
21004         [BZ #14138]
21005         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
21006         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
21007         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
21008         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
21009
21010         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
21011         compat_symbol macros from <shlib-compat.h> rather than the underlying
21012         default_symbol_version and symbol_version macros, so that DEFAULT
21013         lines in shlib-versions are respected.
21014         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
21015
21016 2012-08-01  Florian Weimer  <fweimer@redhat.com>
21017
21018         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
21019         Declare with warn_unused_result.
21020         (setgid, setregid, setegid, setresgid): Likewise.
21021         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
21022         Likewise.
21023         * WUR-REPORT: Remove set*id functions.
21024
21025 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
21026
21027         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
21028
21029 2012-07-31  Roland McGrath  <roland@hack.frob.com>
21030
21031         [BZ #10191]
21032         * include/sys/socket.h (__libc_accept, __libc_accept4):
21033         Add attribute_hidden.
21034         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
21035
21036         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
21037         use of PTR_MANGLE.
21038         * inet/getnetgrent_r.c (setup): Likewise.
21039
21040         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
21041
21042 2012-07-31  David S. Miller  <davem@davemloft.net>
21043
21044         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21045
21046 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
21047
21048         [BZ #13629]
21049         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
21050         value between 1.0 and 2.0 and smaller part has absolute value less
21051         than 1.0.
21052         * math/s_clog10.c (__clog10): Likewise.
21053         * math/s_clog10f.c (__clog10f): Likewise.
21054         * math/s_clog10l.c (__clog10l): Likewise.
21055         * math/s_clogf.c (__clogf): Likewise.
21056         * math/s_clogl.c (__clogl): Likewise.
21057         * math/libm-test.inc (clog_test): Add more tests.
21058         (clog10_test): Likewise.
21059         * sysdeps/i386/fpu/libm-test-ulps: Update.
21060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21061
21062 2012-07-31  Florian Weimer  <fweimer@redhat.com>
21063
21064         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
21065         Exit with zero in case no suitable GID is found, and write a
21066         message to standard error.
21067
21068 2012-07-30  Roland McGrath  <roland@hack.frob.com>
21069
21070         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
21071         rather than to 1.
21072         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
21073         (MAXPATHLEN): Removed.
21074         (NOGROUP, NODEV): New macros.
21075         (setbit, clrbit, isset, isclr): New macros.
21076         (howmany, roundup, powerof2): New macros.
21077         (DEV_BSIZE): New macro.
21078
21079         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
21080         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
21081
21082         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
21083         definition on [!__NO_LONG_DOUBLE_MATH].
21084
21085         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
21086         PTR_MANGLE and PTR_DEMANGLE.
21087
21088         * socket/accept4.c (accept4): Rename to __libc_accept4.
21089         Define accept4 as a weak alias.
21090
21091         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
21092         on [_DIRENT_HAVE_D_TYPE].
21093         * io/ftw.c (ftw_dir): Likewise.
21094
21095         * io/xmknod.c (__xmknod): Don't check PATH for being null.
21096
21097         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
21098
21099         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
21100         Use the BSD numbers rather than the arbitrary ones we had.
21101         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
21102         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
21103         (SIGXCPU, SIGXFSZ): New macros.
21104         (_NSIG): Now 32.
21105
21106         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
21107         initializer on [_LIBC_REENTRANT].
21108
21109         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
21110         definitions inside [_POSIX_MAPPED_FILES].
21111
21112         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
21113
21114         * dirent/opendir.c: Include <fcntl.h>.
21115
21116         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
21117         (__libc_getspecific): Likewise.
21118         (__libc_key_create): Likewise.
21119
21120         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
21121         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
21122         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
21123         (tmpfile64): Define as alias.
21124         * sysdeps/wordsize-64/tmpfile.c: File removed.
21125         * sysdeps/wordsize-64/tmpfile64.c: File removed.
21126         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
21127         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
21128
21129         * stdio-common/vfscanf.c: Include <stdbool.h>.
21130         * nss/makedb.c: Likewise.
21131         * stdio-common/_i18n_number.h: Likewise.
21132         * argp/argp-help.c: Likewise.
21133         * posix/wordexp.c: Likewise.
21134         * sysdeps/posix/spawni.c: Likewise.
21135         * nss/nss_files/files-initgroups.c: Likewise.
21136         * stdio-common/reg-modifier.c: Include <stdlib.h>.
21137         * nss/nss_files/files-initgroups.c: Likewise.
21138         * nss/nss_db/db-netgrp.c: Likewise.
21139         * nss/nss_db/db-initgroups.c: Likewise.
21140         * io/fchmodat.c: Include <sys/stat.h>.
21141
21142         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
21143         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
21144
21145         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
21146         [HAVE_MMAP].
21147
21148         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
21149         Add multiple inclusion protection.
21150
21151 2012-07-27  David S. Miller  <davem@davemloft.net>
21152
21153         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21154
21155 2012-07-27  Gary Benson  <gbenson@redhat.com>
21156
21157         [BZ #14298]
21158         * elf/rtld.c: Include <stap-probe.h>.
21159         (dl_main): Added static probes "init_start" and "init_complete".
21160         * elf/dl-load.c: Include <stap-probe.h>.
21161         (lose): Take new parameter "nsid".
21162         Added static probe "map_failed".
21163         (_dl_map_object_from_fd): Pass namespace id to lose.
21164         Added static probe "map_start".
21165         (open_verify): Pass namespace id to lose.
21166         * elf/dl-open.c: Include <stap-probe.h>.
21167         (dl_open_worker) Added static probes "map_complete", "reloc_start"
21168         and "reloc_complete".
21169         * elf/dl-close.c: Include <stap-probe.h>.
21170         (_dl_close_worker): Added static probes "unmap_start" and
21171         "unmap_complete".
21172         * elf/rtld-debugger-interface.txt: New file documenting the above.
21173
21174 2012-07-26  Roland McGrath  <roland@hack.frob.com>
21175
21176         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
21177         rather than a string variable.
21178         * sunrpc/rpc_main.c (h_output): Likewise.
21179         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
21180
21181 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
21182
21183         * inet/check_native.c: New file.
21184
21185 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
21186
21187         [BZ #13629]
21188         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
21189         if larger part has absolute value 1.0.
21190         * math/s_clog10.c (__clog10): Likewise.
21191         * math/s_clog10f.c (__clog10f): Likewise.
21192         * math/s_clog10l.c (__clog10l): Likewise.
21193         * math/s_clogf.c (__clogf): Likewise.
21194         * math/s_clogl.c (__clogl): Likewise.
21195         * math/libm-test.inc (clog_test): Add more tests.
21196         (clog10_test): Likewise.
21197         * sysdeps/i386/fpu/libm-test-ulps: Update.
21198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21199
21200         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
21201         (pltexit): Likewise.
21202         (La_regs): Likewise.
21203         (La_retval): Likewise.
21204         (int_retval): Likewise.
21205         Update #error for removed macros to refer only to definitions in
21206         tst-audit.h.
21207         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
21208         macro.
21209         (pltexit): Likewise.
21210         (La_regs): Likewise.
21211         (La_retval): Likewise.
21212         (int_retval): Likewise.
21213         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
21214         macro.
21215         (pltexit): Likewise.
21216         (La_regs): Likewise.
21217         (La_retval): Likewise.
21218         (int_retval): Likewise.
21219         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
21220         macro.
21221         (pltexit): Likewise.
21222         (La_regs): Likewise.
21223         (La_retval): Likewise.
21224         (int_retval): Likewise.
21225         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
21226         macro.
21227         (pltexit): Likewise.
21228         (La_regs): Likewise.
21229         (La_retval): Likewise.
21230         (int_retval): Likewise.
21231         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
21232         macro.
21233         (pltexit): Likewise.
21234         (La_regs): Likewise.
21235         (La_retval): Likewise.
21236         (int_retval): Likewise.
21237         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
21238         macro.
21239         (pltexit): Likewise.
21240         (La_regs): Likewise.
21241         (La_retval): Likewise.
21242         (int_retval): Likewise.
21243         * sysdeps/generic/tst-audit.h: Update comment to refer only to
21244         macro definitions in tst-audit.h.
21245         * sysdeps/i386/tst-audit.h: New file.
21246         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
21247         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
21248         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
21249         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
21250         * sysdeps/sh/tst-audit.h: Likewise.
21251         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
21252         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
21253         * sysdeps/x86_64/tst-audit.h: Likewise.
21254
21255 2012-07-26  Andreas Jaeger  <aj@suse.de>
21256
21257         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
21258         ptrace.
21259
21260         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
21261         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
21262         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
21263         PTRACE_O_MASK.
21264         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
21265         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
21266         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
21267
21268         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
21269         value.
21270
21271         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
21272         _sigsys.
21273         (si_call_addr, si_syscall, si_arch): Define new macro.
21274         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
21275         _sigsys.
21276         (si_call_addr, si_syscall, si_arch): Define new marcro.
21277         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
21278         _sigsys.
21279         (si_call_addr, si_syscall, si_arch): Define new macro.
21280         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
21281         _sigsys.
21282         (si_call_addr, si_syscall, si_arch): Define new macro.
21283
21284 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21285
21286         [BZ #13717]
21287         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21288         Change to 2.4.21 where previously 2.4.1.
21289         * sysdeps/unix/sysv/linux/configure: Regenerated.
21290         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
21291         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
21292         Linux kernel version.
21293         (__ASSUME_STD_AUXV): Remove.
21294         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
21295         kernel version.
21296         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
21297         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
21298         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
21299         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
21300         (__ASSUME_NETLINK_SUPPORT): Likewise.
21301         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
21302         (__no_netlink_support): Remove conditional definition.
21303         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
21304         Remove.
21305         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21306         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
21307         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
21308         (if_nameindex_ioctl): Remove.
21309         (if_nameindex_netlink): Do not handle __no_netlink_support.
21310         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21311         code.
21312         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
21313         Remove conditional code.
21314         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21315         code.
21316         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
21317         unconditional.
21318         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21319         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
21320         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
21321         Remove.
21322         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
21323         [!__ASSUME_STD_AUXV]: Remove conditional code.
21324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
21325         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
21326         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
21327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
21328         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
21329         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21330         code.
21331         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
21333         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
21334         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21335         conditional code.
21336         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
21338         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21339         code.
21340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
21341         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21342         conditional code.
21343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
21344         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21345         code unconditional.
21346         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21347         conditional code.
21348         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21349         unconditional.
21350         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21351         conditional code.
21352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21353         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21354         unconditional.
21355         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21356         conditional code.
21357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
21358         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21359         code unconditional.
21360         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21361         conditional code.
21362         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21363         unconditional.
21364         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21365         conditional code.
21366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
21367         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21368         code unconditional.
21369         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21370         conditional code.
21371         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21372         unconditional.
21373         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21374         conditional code.
21375
21376 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
21377
21378         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
21379         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
21380         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
21381         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
21382         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
21383         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
21384         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
21385         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
21386         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
21387         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
21388         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
21389         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
21390         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
21391         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
21392         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
21393         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
21394         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
21395         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
21396         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
21397         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
21398         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
21399         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
21400         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
21401
21402 2012-07-25  Florian Weimer  <fweimer@redhat.com>
21403
21404         * Versions.def: Add GLIBC_2.17.
21405         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
21406         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
21407         Introduce __libc_secure_getenv.
21408         * stdlib/Versions (2.17): Add secure_getenv
21409         (GLIBC_PRIVATE): Add __libc_secure_getenv.
21410         * stdlib/secure-getenv.c: Rename __secure_getenv to
21411         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
21412         symbol __secure_getenv for GLIBC_2.0.
21413         * stdlib/tst-secure-getenv.c: New.
21414         * stdlib/Makefile (tests): Add testcase.
21415         * manual/startup.texi (Environment Access): Document
21416         secure_getenv.
21417         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
21418         __libc_secure_getenv.
21419         * inet/ruserpass.c (ruserpass): Likewise.
21420         * malloc/mtrace.c (mtrace): Likewise.
21421         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
21422         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
21423         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
21424         * sysdeps/posix/tempname.c: Likewise.  Evaluate
21425         HAVE_SECURE_GETENV.
21426         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
21427         __secure_getenv to __libc_secure_getenv.
21428         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
21429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21430         Likewise.
21431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21432         Likewise.
21433         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
21434         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
21435         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21436         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
21437         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
21438         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21439         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
21440
21441 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21442
21443         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
21444         (struct La_i86_retval): Likewise.
21445         (struct La_x86_64_regs): Likewise.
21446         (struct La_x86_64_retval): Likewise.
21447         (struct La_x32_regs): Likewise.
21448         (struct La_x32_retval): Likewise.
21449         (struct La_ppc32_regs): Likewise.
21450         (struct La_ppc32_retval): Likewise.
21451         (struct La_ppc64_regs): Likewise.
21452         (struct La_ppc64_retval): Likewise.
21453         (struct La_sh_regs): Likewise.
21454         (struct La_sh_retval): Likewise.
21455         (struct La_s390_32_regs): Likewise.
21456         (struct La_s390_32_retval): Likewise.
21457         (struct La_s390_64_regs): Likewise.
21458         (struct La_s390_64_retval): Likewise.
21459         (struct La_sparc32_regs): Likewise.
21460         (struct La_sparc32_retval): Likewise.
21461         (struct La_sparc64_regs): Likewise.
21462         (struct La_sparc64_retval): Likewise.
21463         (struct audit_ifaces): Remove architecture-specific pltenter and
21464         pltexit members.
21465         * sysdeps/i386/ldsodefs.h: New file.
21466         * sysdeps/powerpc/ldsodefs.h: Likewise.
21467         * sysdeps/s390/ldsodefs.h: Likewise.
21468         * sysdeps/sh/ldsodefs.h: Likewise.
21469         * sysdeps/sparc/ldsodefs.h: Likewise.
21470         * sysdeps/x86_64/ldsodefs.h: Likewise.
21471
21472 2012-07-25  Marek Polacek  <polacek@redhat.com>
21473
21474         [BZ #6808]
21475         * math/libm-test.inc (yn_test): Add another test.
21476         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
21477         to ERANGE when the result is +-Inf.
21478         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
21479         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
21480         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
21481         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
21482
21483 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
21484
21485         * conform/data/time.h-data (NULL): Use macro-constant.  Require
21486         equal to 0.
21487         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
21488         clock_t.
21489         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
21490
21491 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
21492
21493         * configure.in <sysdeps resolving>: Correct printing
21494         Implies_before.
21495         * configure: Regenerate.
21496
21497 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
21498
21499         * math/w_ilogb.c: Include <limits.h>.
21500         * math/w_ilogbl.c: Likewise.
21501
21502 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21503
21504         * manual/lang.texi (__va_copy): Document primarily as ISO C99
21505         va_copy.  Document allowing for unavailable va_copy only as
21506         pre-C99 compatibility.
21507         * manual/string.texi (Copying and Concatenation): Use va_copy
21508         instead of __va_copy in concat example.
21509
21510 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
21511
21512         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
21513         (__sendto): Use create_address_port.  Initialize APORT and deallocate
21514         it if not null.
21515
21516         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
21517         with O_NOLINK passed to __file_name_lookup.
21518
21519         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
21520         with O_NOLINK passed to __file_name_lookup.
21521
21522         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
21523         negative N or less than NGIDS.
21524
21525         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
21526         type to string_t.  Set ERANGE as errno and return it if NAME is not big
21527         enough.  Use memcpy instead of strncpy.
21528
21529 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21530
21531         * elf/Makefile (check-data): Remove.
21532         (localplt.data): New vpath directive.
21533         ($(objpfx)check-localplt.out): Use localplt.data from vpath
21534         instead of $(check-data).
21535         * scripts/data/localplt-generic.data: Move to ...
21536         * sysdeps/generic/localplt.data: ... here.
21537         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
21538         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
21539         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
21540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
21541         ... here.
21542         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
21543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
21544         ... here.
21545         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
21546         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
21547         ... here.
21548         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
21549         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
21550         ... here.
21551         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
21552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
21553         ... here.
21554         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
21555         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
21556         ... here.
21557
21558 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21559
21560         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
21561         PPC32 and PPC64 files.
21562         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
21563         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
21564
21565 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21566
21567         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
21568         __makecontext_ret to ...
21569         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21570         ... here and call exit if uc_link is NULL.  New file.
21571         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
21572         __makecontext_ret.S.
21573         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
21574         __makecontext_ret to ...
21575         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21576         ... here and call exit if uc_link is NULL.  New file.
21577         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
21578         __makecontext_ret.S.
21579
21580 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21581
21582         * elf/elf.h (R_390_IRELATIVE): New definition.
21583         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
21584         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
21585         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
21586         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
21587         (elf_machine_lazy_rel): Likewise.
21588         * sysdeps/s390/dl-irel.h: New file.
21589         * sysdeps/s390/s390-64/memcpy.S: New asm code.
21590         * sysdeps/s390/s390-64/memset.S: New asm code.
21591         * sysdeps/s390/s390-64/memcmp.S: New asm code.
21592         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
21593         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
21594         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
21595         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
21596         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
21597         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
21598         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
21599         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
21600         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
21601         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
21602         * sysdeps/s390/s390-32/memcpy.S: New asm code.
21603         * sysdeps/s390/s390-32/memset.S: New asm code.
21604         * sysdeps/s390/s390-32/memcmp.S: New asm code.
21605
21606 2012-07-17  Marek Polacek  <polacek@redhat.com>
21607
21608         [BZ #14349]
21609         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
21610         * sysdeps/s390/s390-64/configure.in: Likewise.
21611         * sysdeps/sparc/configure.in: Likewise.
21612         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
21613         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
21614         * sysdeps/i386/configure.in: Likewise.
21615         * sysdeps/x86_64/configure.in: Likewise.
21616         * sysdeps/sh/configure.in: Likewise.
21617         * sysdeps/s390/s390-32/configure: Regenerated.
21618         * sysdeps/s390/s390-64/configure: Likewise.
21619         * sysdeps/x86_64/configure: Likewise.
21620         * sysdeps/sh/configure: Likewise.
21621         * sysdeps/powerpc/powerpc64/configure: Likewise.
21622         * sysdeps/powerpc/powerpc32/configure: Likewise.
21623         * sysdeps/sparc/configure: Likwise.
21624         * sysdeps/i386/configure: Likewise.
21625
21626         * elf/dl-open.c: Comment fixes.
21627
21628 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
21629
21630         * Makefile [CXX] (check-data): Remove.
21631         [CXX] (c++-types.data): New vpath directive.
21632         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
21633         vpath.  Do not allow for C++ type data being missing.
21634         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
21635         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
21636         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
21637         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
21638         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
21639         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
21640         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
21641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
21642         ... here.
21643         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
21644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
21645         ... here.
21646         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
21647         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
21648         ... here.
21649         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
21650         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
21651         ... here.
21652         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
21653         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
21654         ... here.
21655         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
21656         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
21657         ... here.
21658         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
21659         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
21660         ... here.
21661         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
21662         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
21663
21664         * elf/tls-macros.h (TLS_LE): Move architecture-specific
21665         definitions to architecture-specific files.
21666         (TLS_IE): Likewise.
21667         (TLS_LD): Likewise.
21668         (TLS_GD): Likewise.
21669         * sysdeps/i386/tls-macros.h: New file.
21670         * sysdeps/powerpc/tls-macros.h: Likewise.
21671         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
21672         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
21673         * sysdeps/sh/tls-macros.h: Likewise.
21674         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
21675         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
21676         * sysdeps/x86_64/tls-macros.h: Likewise.
21677
21678 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21679
21680         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
21681         zero value for regular exit case.
21682
21683         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21684         (__start_context): Preserve zero value for regular exit case.
21685
21686 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21687             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21688
21689         * manual/setjmp.texi (setcontext): Clarify normal process
21690         termination when uc_link is the null pointer.
21691         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
21692         exit call.
21693
21694 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
21695
21696         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
21697         preprocessor.  Test for each exception mask separately.
21698
21699 2012-07-16  Andreas Jaeger  <aj@suse.de>
21700
21701         * po/ru.po: Update from translation team.
21702
21703 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
21704
21705         * conform/data/string.h-data (NULL): Use macro-constant.  Require
21706         equal to 0.
21707         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
21708         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
21709         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
21710         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
21711         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21712
21713 2012-07-13  Andreas Jaeger  <aj@suse.de>
21714
21715         * po/fr.po: Update from translation team.
21716
21717 2012-07-12  Marek Polacek  <polacek@redhat.com>
21718
21719         [BZ #14173]
21720         * math/libm-test.inc (yn_test): Add test for BZ #14173.
21721         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
21722         loop condition.
21723
21724 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
21725
21726         [BZ #13717]
21727         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21728         Change to 2.4.1 where previously 2.4.0.
21729         * sysdeps/unix/sysv/linux/configure: Regenerated.
21730         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
21731         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
21732         version.
21733         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
21734         (__ASSUME_AT_CLKTCK): Remove.
21735         (__ASSUME_AT_PAGESIZE): Likewise.
21736         (__ASSUME_AT_XID): Likewise.
21737         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
21738         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
21739         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
21740         unconditionally.
21741         (HAVE_AUX_PAGESIZE): Likewise.
21742         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
21743         [__ASSUME_AT_CLKTCK]: Make code unconditional.
21744         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
21745
21746 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
21747
21748         [BZ #14307]
21749         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
21750         the temporary buffer used to invoke __gethostbyname2_r,
21751         __gethostbyaddr_r and gethostbyname4_r to make room for struct
21752         host_data / struct gaih_addrtuple.
21753         * resolv/nss_dns/dns-host.c (global scope): Move definition of
21754         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
21755         header file nss/nsswitch.h.
21756         * nss/nsswitch.h (global scope): Add definition of implementation
21757         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
21758         resolv/nss_dns/dns-host.c).
21759
21760 2012-07-11  Andreas Jaeger  <aj@suse.de>
21761
21762         * po/fr.po: Update from translation team.
21763
21764         * po/sv.po: Update from translation team
21765         * po/fr.po: Another update from translation team.
21766
21767 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21768
21769         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
21770         for subnormals or multiply small sinh result by itself.
21771         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
21772         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21773
21774 2012-07-11  David S. Miller  <davem@davemloft.net>
21775
21776         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21777
21778 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
21779
21780         [BZ #14347]
21781         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
21782         (INTERNAL_MARK): Shift it here.
21783
21784 2012-07-10  Marek Polacek  <polacek@redhat.com>
21785
21786         [BZ #14151]
21787         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
21788         libc_cv_asm_global_directive with .globl.
21789         * configure: Regenerated.
21790         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
21791         with .globl.
21792         * sysdeps/i386/configure: Regenerated.
21793         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
21794         with .globl.
21795         * sysdeps/x86_64/configure: Regenerated.
21796         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
21797         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
21798         * elf/tst-unique2mod2.c: Likewise.
21799         * elf/tst-unique2mod1.c: Likewise.
21800         * elf/tst-unique1mod2.c: Likewise.
21801         * elf/tst-unique1mod1.c: Likewise.
21802         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21803         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21804         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21805         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21806         * sysdeps/mach/sysdep.h: Likewise.
21807         * sysdeps/i386/sysdep.h: Likewise.
21808         * sysdeps/i386/i386-mcount.S: Likewise.
21809         * sysdeps/x86_64/_mcount.S: Likewise.
21810         * sysdeps/x86_64/sysdep.h: Likewise.
21811         * sysdeps/sh/_mcount.S: Likewise.
21812         * sysdeps/sh/sysdep.h: Likewise.
21813         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
21814         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
21815         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
21816         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21817         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
21818         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
21819         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
21820         * locale/localeinfo.h: Likewise.
21821         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
21822         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
21823
21824 2012-07-09  Roland McGrath  <roland@hack.frob.com>
21825
21826         [BZ #14336]
21827         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
21828         system".
21829         * manual/message.texi (The Uniforum approach): Likewise.
21830         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
21831         (glibc iconv Implementation): Likewise.
21832
21833 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
21834
21835         [BZ #14337]
21836         * math/s_clog.c (__clog): Avoid scaling a value down where that
21837         could result in underflow.
21838         * math/s_clog10.c (__clog10): Likewise.
21839         * math/s_clog10f.c (__clog10f): Likewise.
21840         * math/s_clog10l.c (__clog10l): Likewise.
21841         * math/s_clogf.c (__clogf): Likewise.
21842         * math/s_clogl.c (__clogl): Likewise.
21843         * math/libm-test.inc (clog_test): Add more tests.
21844         (clog10_test): Likewise.
21845         * sysdeps/i386/fpu/libm-test-ulps: Update.
21846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21847
21848 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
21849
21850         [BZ #14283]
21851         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
21852         by 7 not 8 to examine high bit of fractional part.
21853
21854         [BZ #14042]
21855         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
21856         for call to __mcount_internal.
21857         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
21858         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
21859         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
21860
21861 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
21862
21863         [BZ #14154]
21864         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
21865         approximation for values within 0x1p-13f of an odd multiple of
21866         pi/4.
21867         * math/libm-test.inc (tan_test): Do not allow spurious underflow
21868         exception.  Add more tests.
21869         * sysdeps/i386/fpu/libm-test-ulps: Update.
21870
21871         [BZ #6778]
21872         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
21873         inputs and return -1 for them.  Do not check for +Inf in case not
21874         reachable for +Inf.
21875         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
21876         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
21877         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21878         and return -1 for them.  Do not check for +Inf in case not
21879         reachable for +Inf.
21880         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
21881         define.
21882         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21883         and return -1 for them.  Do not check for +Inf in case not
21884         reachable for +Inf.
21885         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
21886         spurious underflow.
21887         * sysdeps/i386/fpu/libm-test-ulps: Update.
21888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21889
21890 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
21891
21892         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
21893
21894 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
21895
21896         [BZ #14157]
21897         [BZ #14331]
21898         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
21899         could result in spurious underflow.  Scale down values above
21900         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
21901         * math/s_csqrtf.c (__csqrtf): Likewise.
21902         * math/s_csqrtl.c (__csqrtl): Likewise.
21903         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
21904         spurious underflow.
21905         * sysdeps/i386/fpu/libm-test-ulps: Update.
21906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21907
21908 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
21909
21910         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
21911         xopen-msg.sed.
21912         * catgets/xopen-msg.awk: New file.
21913         * catgets/xopen-msg.sed: Removed.
21914
21915         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
21916         po2text.sed.
21917         * intl/po2test.awk: New file.
21918         * intl/po2test.sed: Removed.
21919
21920 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
21921
21922         [BZ #14328]
21923         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
21924         or multiply small sinh result by itself.
21925         * math/s_ctanf.c (__ctanf): Likewise.
21926         * math/s_ctanh.c (__ctanh): Likewise.
21927         * math/s_ctanhf.c (__ctanhf): Likewise.
21928         * math/s_ctanhl.c (__ctanhl): Likewise.
21929         * math/s_ctanl.c (__ctanl): Likewise.
21930         * math/libm-test.inc (ctan_test_tonearest): New function.
21931         (ctan_test_towardzero): Likewise.
21932         (ctan_test_downward): Likewise.
21933         (ctan_test_upward): Likewise.
21934         (ctanh_test_tonearest): Likewise.
21935         (ctanh_test_towardzero): Likewise.
21936         (ctanh_test_downward): Likewise.
21937         (ctanh_test_upward): Likewise.
21938         (main): Call these new functions.
21939         * sysdeps/i386/fpu/libm-test-ulps: Update.
21940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21941
21942 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
21943
21944         * .gitignore: Delete /ports entry.
21945
21946 2012-07-03  Andreas Jaeger  <aj@suse.de>
21947
21948         * po/bg.po: Update from translation team.
21949         * po/cs.po: Likewise.
21950         * po/de.po: Likewise.
21951         * po/hr.po: Likewise.
21952         * po/nl.pl: Likewise.
21953         * po/pl.po: Likewise.
21954         * po/vi.po: Likewise.
21955
21956 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
21957
21958         * Makeconfig [!+link] (+link-before-libc): New variable.
21959         [!+link] (+link-after-libc): Likewise.
21960         [!+link] (+link-tests): Likewise.
21961         [!+link] (+link): Define in terms of $(+link-before-libc) and
21962         $(+link-after-libc).
21963         [!+link-static] (+link-static-before-libc): New variable.
21964         [!+link-static] (+link-static-after-libc): Likewise.
21965         [!+link-static] (+link-static-tests): Likewise.
21966         [!+link-static] (+link-static): Define in terms of
21967         $(+link-static-before-libc) and $(+link-static-after-libc).
21968         [build-shared] (link-libc-before-gnulib): New variable.
21969         [build-shared] (link-libc-tests): Likewise.
21970         [build-shared] (link-libc): Define in terms of
21971         $(link-libc-before-gnulib).
21972         [!build-shared] (link-libc-tests): New variable.
21973         (link-libc-static-tests): New variable.
21974         [!gnulib] (gnulib-arch): New variable.
21975         [!gnulib] (gnulib-tests): Likewise.
21976         [!gnulib] (static-gnulib-arch): Likewise.
21977         [!gnulib] (static-gnulib-tests): Likewise.
21978         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
21979         Define with "=" instead of ":=".
21980         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
21981         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
21982         * Rules (binaries-all-notests): New variable.
21983         (binaries-all-tests): Likewise.
21984         (binaries-static-notests): Likewise.
21985         (binaries-static-tests): Likewise.
21986         (binaries-all): Define using $(binaries-all-notests) and
21987         $(binaries-all-tests).
21988         (binaries-static): Define using $(binaries-static-notests) and
21989         $(binaries-static-tests).
21990         (binaries-shared-tests): New variable.
21991         (binaries-shared-notests): Likewise.
21992         (binaries-shared): Remove variable.
21993         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
21994         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
21995         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
21996         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
21997         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
21998         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
21999         * elf/Makefile (sln-modules): New variable.
22000         (extra-objs): Add $(sln-modules:=.o).
22001         (ldconfig-modules): Add static-stubs.
22002         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
22003         * elf/static-stubs.c: New file.
22004
22005         [BZ #14283]
22006         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
22007         by 7 not 8 to examine high bit of fractional part.  Use volatile
22008         variables when splitting into final array of floats if
22009         __FLT_EVAL_METHOD__ != 0.
22010         * math/libm-test.inc (cos_test): Add another test.
22011         (sin_test): Likewise.
22012         * sysdeps/i386/fpu/libm-test-ulps: Update.
22013
22014         [BZ #14273]
22015         * math/libm-test.inc (cosh_test): Add more tests.
22016
22017         * version.h (RELEASE): Set to "development".
22018         (VERSION): Set to "2.16.90".
22019
22020 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
22021
22022         * NEWS: Update copyright. Remove last-updated date.
22023         Mention math library bug fixes and timezone data changes.
22024         * README: Mention GNU/Hurd, x32, and HPPA support status.
22025
22026 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
22027
22028         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
22029
22030 2012-06-27  Andreas Jaeger  <aj@suse.de>
22031
22032         * manual/contrib.texi (Contributors): Add Samuel Thibault.
22033
22034 2012-06-25  Andreas Jaeger  <aj@suse.de>
22035
22036         * sysdeps/s390/fpu/libm-test-ulps: Update.
22037
22038 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
22039             Thomas Schwinge  <thomas@codesourcery.com>
22040
22041         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
22042         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
22043         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
22044         fanotify_mark.
22045
22046 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
22047
22048         * sysdeps/mach/start.c: Remove file.
22049         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
22050         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
22051         * sysdeps/sh/init-first.c: Likewise.
22052
22053         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
22054         registers for frame unwinding purposes, add CFI directives.
22055         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22056         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
22057         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
22058         Likewise.
22059
22060         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
22061         __fortify_fail returning.
22062         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22063
22064         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
22065         sysdeps/sh/____longjmp_chk.S.
22066         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
22067         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
22068         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
22069         (gen-as-const-headers): Append sigaltstack-offsets.sym.
22070
22071         * sysdeps/sh/abort-instr.h: New file.
22072         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
22073         process in case exit returns.
22074
22075         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
22076         initialize the GOT register before use.
22077
22078         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
22079         calculation of ARGC > 4.
22080
22081         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
22082         meaningful names to some local labels.
22083
22084 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22085             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22086
22087         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
22088         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
22089         (__arch_compare_and_exchange_val_16_acq): Likewise.
22090         (__arch_compare_and_exchange_val_32_acq): Likewise.
22091         (atomic_exchange_and_add): Fix gUSA sequence.
22092         (atomic_add): Likewise.
22093         (atomic_add_negative): Likewise.
22094         (atomic_add_zero): Likewise.
22095         (atomic_bit_test_set): Likewise.
22096
22097 2012-06-22  Andreas Schwab  <schwab@redhat.com>
22098
22099         [BZ #13579]
22100         * include/link.h (struct link_map): Add l_free_initfini.
22101         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
22102         l_initfini.
22103         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
22104         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
22105         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
22106         set.
22107
22108 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
22109
22110         * configure.in: Use AC_LANG_SOURCE.
22111         * configure: Regenerate.
22112
22113 2012-06-22  Roland McGrath  <roland@hack.frob.com>
22114
22115         * configure.in (libc_cv_localstatedir): New substituted variable.
22116         * configure: Regenerated.
22117         * config.make.in (localstatedir): New variable, substituted from
22118         libc_cv_localstatedir.
22119         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
22120         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
22121         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
22122         * sysdeps/gnu/configure: Regenerated.
22123
22124 2012-06-21  Jeff Law  <law@redhat.com>
22125
22126         [BZ #14277]
22127         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
22128         free.  Simplify list management for _LIBC case.
22129
22130 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
22131
22132         [BZ #14273]
22133         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22134         Clear sign bit of 64-bit integer value before comparing against
22135         overflow value.
22136
22137         * sysdeps/mach/configure: Regenerated.
22138
22139 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
22140
22141         [BZ #14278]
22142         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
22143
22144 2012-06-21  Jeff Law  <law@redhat.com>
22145
22146         [BZ #13882]
22147         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
22148         uint16_t for elements in the "seen" array to avoid char overflows.
22149         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22150         * elf/dl-open.c (dl_open_worker): Likewise.
22151
22152 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
22153
22154         * scripts/list-sources.sh: Scan PORTS for translations.
22155         * po/libc.pot: Regenerated.
22156
22157 2012-06-21  Andreas Jaeger  <aj@suse.de>
22158
22159         [BZ #12194]
22160         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
22161         warning.
22162         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
22163         * bits/byteswap-16.h (__bswap_16): Likewise.
22164         * bits/byteswap.h (__bswap_constant_16): Likewise.
22165
22166 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22167
22168         [BZ #14117]
22169         * sysdeps/i386/fpu_control.h: Removed.
22170         * sysdeps/x86_64/fpu_control.h: Moved to ...
22171         * sysdeps/x86/fpu_control.h: Here.
22172
22173         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
22174         (_FPU_SETCW): Likewise.
22175
22176 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
22177
22178         [BZ #14117]
22179         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
22180         * sysdeps/x86/fpu/bits/mathinline.h: This.
22181         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
22182
22183         [BZ #14050]
22184         [BZ #14117]
22185         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
22186         functions if __x86_64__ is defined.
22187
22188 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
22189
22190         * string/endian.h: Add !__ASSEMBLER__ condition for including
22191         conversion interfaces.
22192
22193 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
22194
22195         [BZ #14241]
22196         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
22197         of ABS(x) in calculating zero to negative powers other than odd
22198         integers.
22199         * math/libm-test.inc (pow_test): Add more tests.
22200
22201 2012-06-15  Andreas Jaeger  <aj@suse.de>
22202
22203         * manual/contrib.texi (Contributors): Update entry of Liubov
22204         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
22205         Machado Filho.
22206
22207 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
22208
22209         * string/string.h: Add __wur to GNU version of strerror_r.
22210
22211 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
22212
22213         [BZ #14229]
22214         * string/Makefile (tests): Add tst-strtok_r.
22215         * string/tst-strtok_r.c: New file.
22216         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
22217         RAX_LP/RDX_LP on SAVE_PTR.
22218
22219 2012-06-14  Roland McGrath  <roland@hack.frob.com>
22220
22221         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
22222
22223 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
22224
22225         * libm_test.inc (csqrt_test): Allow more spurious underflow
22226         exceptions.
22227         (j0_test): Likewise.
22228         (j1_test): Likewise.
22229         (y0_test): Likewise.
22230         (y1_test): Likewise.
22231
22232 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
22233
22234         * po/Makefile (libc.pot): Use UTF-8 charset.
22235
22236 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
22237
22238         [BZ #14210]
22239         Suppress sign-conversion warning from FD_SET.
22240         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
22241         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
22242         not unsigned long int.
22243         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
22244
22245 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
22246
22247         [BZ #14050]
22248         [BZ #14117]
22249         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
22250         __extern_always_inline instead of __extern_inline.
22251         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
22252         (__signbit): Likewise.
22253         (__signbitl): Support C++ namespace.
22254         (lrintf): New inline function.
22255         (lrint): Likewise.
22256         (llrintf): Likewise.
22257         (llrint): Likewise.
22258         (fmaxf): Likewise.
22259         (fmax): Likewise.
22260         (fminf): Likewise.
22261         (fmin): Likewise.
22262         (rint): Likewise.
22263         (rintf): Likewise.
22264         (ceil): Likewise.
22265         (ceilf): Likewise.
22266         (floor): Likewise.
22267         (floorf): Likewise.
22268         (nearbyint): Likewise.
22269         (nearbyintf): Likewise.
22270
22271 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
22272
22273         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
22274         non-default versions.
22275
22276 2012-06-11  Roland McGrath  <roland@hack.frob.com>
22277
22278         [BZ #14218]
22279         * manual/argp.texi (Argp): Reword argp_parse description slightly.
22280
22281 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
22282
22283         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
22284         (FE_UPWARD, FE_DOWNWARD): Don't define.
22285         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
22286         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22287
22288         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
22289         reading it.
22290         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22291         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22292
22293 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22294
22295         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22296         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
22297         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
22298         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
22299
22300 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
22301
22302         [BZ #14117]
22303         * sysdeps/i386/fpu/bits/fenv.h: Removed.
22304         * sysdeps/i386/fpu/Implies: New file.
22305         * sysdeps/x86_64/fpu/Implies: Likewise.
22306         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
22307         * sysdeps/x86/fpu/bits/fenv.h: This.
22308
22309         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
22310         __SSE_MATH__.
22311
22312 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
22313
22314         [BZ #14134]
22315         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
22316         character 0xffff that matches the last element of the
22317         conversion table.
22318
22319 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22320
22321         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
22322         fmodl commit.
22323
22324 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22325
22326         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
22327         values higher than 25.6283.
22328
22329 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22330
22331         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
22332         subnormal exponent extraction and add some __builtin_expect.
22333         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
22334         Fix for subnormal mantissa calculation.
22335
22336 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
22337
22338         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
22339         cpu2 is -1 and errno is not ENOSYS.
22340
22341 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22342
22343         [BZ #14117]
22344         * sysdeps/i386/i486/bits/string.h: Renamed to ...
22345         * sysdeps/x86/bits/string.h: This.
22346         * sysdeps/x86_64/bits/string.h: Removed.
22347
22348         * sysdeps/i386/i486/bits/string.h: Define inline functions only
22349         if not compiling for x86-64, but compiling for >= i486.
22350
22351         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
22352         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
22353
22354         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
22355         New macro from Linux kernel 3.4.0.
22356         (FP_XSTATE_MAGIC2): Likewise.
22357         (FP_XSTATE_MAGIC2_SIZE): Likewise.
22358         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
22359         (struct _fpx_sw_bytes): New struct.
22360         (struct _xsave_hdr): Likewise.
22361         (struct _ymmh_state): Likewise.
22362         (struct _xstate): Likewise.
22363
22364         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
22365         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
22366         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
22367         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
22368         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
22369         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
22370
22371         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
22372         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
22373         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
22374         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
22375         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
22376         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
22377
22378 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22379
22380         [BZ #13743]
22381         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
22382         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
22383         (sysdep_headers): Include sys/platform/ppc.h.
22384         * sysdeps/powerpc/test-gettimebase.c: Test for
22385         __ppc_get_timebase() to catch future ISA opcode/insn changes.
22386         * manual/Makefile (appendices): Include platform.texi.
22387         * manual/contrib.texi (Contributors): Update @node pointers.
22388         * manual/maint.texi (Maintenance): Likewise.
22389         (Platform): New node.
22390         * manual/platform.texi: New file.  Document the new features.
22391
22392 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22393             Jakub Jelinek  <jakub@redhat.com>
22394
22395         [BZ #14188]
22396         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
22397         where __builtin_expect is unavailable.
22398
22399 2012-06-03  David S. Miller  <davem@davemloft.net>
22400
22401         * stdlib/longlong.h: Updated from GCC.
22402
22403 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
22404
22405         [BZ #14042]
22406         * sysdeps/powerpc/powerpc32/mcount.c: New file.
22407         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
22408         __mcount_internal.
22409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
22410         (GLIBC_2.16): Likewise.
22411
22412 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22413
22414         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
22415
22416 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22417
22418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
22419         (default-abi): New variable.
22420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
22421         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
22422         variable.
22423         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
22424         Likewise.
22425         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
22426         Likewise.
22427         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
22428         Likewise.
22429
22430         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
22431         definition.  Document in comment.
22432
22433 2012-06-01  David S. Miller  <davem@davemloft.net>
22434
22435         * stdlib/longlong.h: Updated from GCC.
22436
22437 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22438
22439         [BZ #14117]
22440         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
22441         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
22442         sys/debugreg.h sys/io.h here.
22443         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
22444         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
22445         sys/io.h.
22446         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
22447         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
22448         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
22449         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
22450         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
22451         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
22452
22453         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
22454         Define only if __x86_64__ is defined.
22455
22456 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22457
22458         [BZ #14048]
22459         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
22460         Use int64_t for variable i.
22461         * math/libm-test.inc (fmod_test): Add more tests.
22462
22463         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
22464         z computation is not scheduled after fetestexcept.
22465         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
22466         Use math_force_eval instead of asm to ensure calculation scheduled
22467         before exception test.
22468         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
22469         Ensure a1 + u.d computation is not scheduled after fetestexcept.
22470
22471 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
22472
22473         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
22474         computation is not scheduled after fetestexcept.
22475
22476 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22477
22478         [BZ #14117]
22479         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
22480         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
22481
22482 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22483
22484         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
22485         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
22486
22487 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22488
22489         [BZ #14117]
22490         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
22491         <bits/wordsize.h>.
22492         (__WCHAR_MIN): Support __WORDSIZE == 64.
22493         (__WCHAR_MAX): Likewise.
22494
22495         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
22496         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
22497
22498         [BZ #14183]
22499         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
22500         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
22501
22502         [BZ #14117]
22503         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
22504         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
22505
22506         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
22507         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
22508
22509         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
22510         Defined to 1 if __x86_64__ isn't defined.
22511         (_STAT_VER_LINUX_OLD): New.
22512         (st_atime): Remove duplicate.
22513         (st_mtime): Likewise.
22514         (st_ctime): Likewise.
22515
22516 2012-05-31  David S. Miller  <davem@davemloft.net>
22517
22518         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
22519         entries.
22520
22521 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
22522
22523         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
22524         gen-libm-test.pl.
22525
22526         [BZ #14132]
22527         * elf/dl-reloc.c: Include <_itoa.h>.
22528         (_dl_reloc_bad_type): Remove use of INTUSE.
22529         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
22530         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
22531         * stdio-common/psiginfo.c (psiginfo): Likewise.
22532         * stdio-common/psignal.c (psignal): Likewise.
22533         * string/strsignal.c (strsignal): Likewise.
22534         * include/signal.h (_sys_siglist): Declare hidden proto.
22535         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
22536         INTVARDEF with libc_hidden_data_def.
22537         * stdio-common/itoa-udigits.c: Likewise.
22538         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
22539         (_itoa_lower_digits_internal): Remove declaration.
22540         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
22541         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
22542         (_sys_sigabbrev_internal): Remove aliases.
22543         (_sys_siglist): Define hidden alias.
22544
22545 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
22546
22547         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22548         bits/sysctl.h.
22549
22550 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22551
22552         [BZ #14117]
22553         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
22554         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
22555
22556         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
22557         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
22558         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
22559         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
22560         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
22561         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
22562
22563         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
22564         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
22565         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
22566
22567         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
22568         with __addr.
22569         (insw): Likewise.
22570         (insl): Likewise.
22571         (outsb): Likewise.
22572         (outsw): Likewise.
22573         (outsl): Likewise.
22574
22575         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
22576         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
22577         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
22578
22579         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
22580         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
22581         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
22582         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
22583         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
22584         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
22585
22586         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
22587         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
22588
22589         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
22590         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
22591
22592         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
22593         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
22594         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
22595
22596         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
22597         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
22598         to ...
22599         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
22600
22601         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
22602         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
22603         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
22604
22605         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
22606         for x86-64.
22607         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
22608
22609 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
22610
22611         * math/math.h (M_El): Use two more decimal places.
22612         (M_LOG2El): Likewise.
22613         (M_LOG10El): Likewise.
22614         (M_LN2l): Likewise.
22615         (M_LN10l): Likewise.
22616         (M_PIl): Likewise.
22617         (M_PI_2l): Likewise.
22618         (M_PI_4l): Likewise.
22619         (M_1_PIl): Likewise.
22620         (M_2_PIl): Likewise.
22621         (M_2_SQRTPIl): Likewise.
22622         (M_SQRT2l): Likewise.
22623         (M_SQRT1_2l): Likewise.
22624
22625 2012-05-31  David S. Miller  <davem@davemloft.net>
22626
22627         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
22628         values between float registers.
22629         * sysdeps/sparc/sparc64/memset.S: Likewise.
22630         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22631
22632 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
22633
22634         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
22635         -D_FORTIFY_SOURCE=1.
22636         (CPPFLAGS-tst-longjmp_chk.c): Define.
22637         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
22638         (CPPFLAGS-tst-longjmp_chk2.c): Define.
22639         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
22640         CFLAGS-tst-wchar-h.c.
22641
22642 2012-05-31  Marek Polacek  <polacek@redhat.com>
22643
22644         [BZ #14132]
22645         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
22646         __endmntent_internal): Remove declaration.
22647         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
22648         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
22649         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
22650
22651 2012-05-30  David S. Miller  <davem@davemloft.net>
22652
22653         * sysdeps/sparc/sparc32/soft-fp/q_util.c
22654         (___Q_simulate_exceptions): Use real FP ops rather than writing
22655         into the %fsr.
22656         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
22657         Likewise.
22658
22659 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22660
22661         [BZ #14117]
22662         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
22663         * sysdeps/x86/bits/xtitypes.h: This.
22664
22665         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
22666         * sysdeps/x86/bits/wordsize.h: This.
22667
22668         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
22669         * sysdeps/x86/bits/huge_vall.h: This.
22670
22671         * sysdeps/i386/bits/select.h: Removed.
22672         * sysdeps/x86_64/bits/select.h: Renamed to ...
22673         * sysdeps/x86/bits/select.h: This.
22674
22675         * sysdeps/i386/bits/setjmp.h: Removed.
22676         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
22677         * sysdeps/x86/bits/setjmp.h: This.
22678
22679         * sysdeps/i386/bits/mathdef.h: Removed.
22680         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
22681         * sysdeps/x86/bits/mathdef.h: This.
22682
22683 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
22684
22685         [BZ #14132]
22686         * include/sys/socket.h (__connect_internal)
22687         (__libc_sa_len_internal): Remove declaration.
22688         (__connect, __libc_sa_len): Declare hidden_proto.
22689         (SA_LEN): Remove use of INTUSE.
22690         * socket/connect.c: Add libc_hidden_def.
22691         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
22692         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
22693         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
22694         alias.
22695         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
22696         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
22697         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
22698         of adding _internal alias.
22699
22700 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22701
22702         [BZ #14117]
22703         * sysdeps/i386/bits/link.h: Removed.
22704         * sysdeps/i386/bits/linkmap.h: Likewise.
22705         * sysdeps/x86_64/bits/link.h: Renamed to ...
22706         * sysdeps/x86/bits/link.h: This.
22707         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
22708         * sysdeps/x86/bits/linkmap.h: This.
22709
22710         * sysdeps/i386/bits/endian.h: Removed.
22711         * sysdeps/x86_64/bits/endian.h: Renamed to ...
22712         * sysdeps/x86/bits/endian.h: This.
22713
22714         * sysdeps/i386/bits/byteswap.h: Removed.
22715         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22716         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
22717         * sysdeps/x86/bits/byteswap.h: This.
22718         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
22719         * sysdeps/x86/bits/byteswap-16.h: This.
22720         * sysdeps/i386/Implies: Add x86.
22721         * sysdeps/x86_64/Implies: Likewise.
22722
22723 2012-05-30  David S. Miller  <davem@davemloft.net>
22724
22725         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
22726         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
22727         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
22728         (FP_TRAPPING_EXCEPTIONS): Define.
22729         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
22730         (FP_TRAPPING_EXCEPTIONS): Define.
22731         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
22732         subnormals only when inexact has been signalled or underflow
22733         exceptions are enabled.
22734         (_FP_PACK_CANONICAL): Likewise.
22735
22736 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22737
22738         [BZ #14183]
22739         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
22740         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
22741
22742 2012-05-30  Richard Henderson  <rth@twiddle.net>
22743
22744         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
22745         with #ifndef NOT_IN_libc.
22746
22747         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
22748         marked to avoid plt entry.
22749
22750 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22751
22752         [BZ #14112]
22753         * Makeconfig (default-abi): New macro.
22754         (abi-includes): Likewise.
22755         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
22756         $(abi-$(default-abi)-lib-soname) for soname if defined.
22757         ($(common-objpfx)gnu/lib-names.stmp): Generate from
22758         abi-variants.
22759         * Makefile (installed-stubs): Likewise.
22760         * include/stubs-biarch.h: Removed.
22761         * scripts/lib-names.awk: Only handle one library at a time.
22762         * scripts/soversions.awk: Remove WORDSIZE support.
22763         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
22764         entries.
22765         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
22766         Removed.
22767         (syscall-list-default-condition): Likewise.
22768         (syscall-list-default-condition): Likewise.
22769         (syscall-list-includes): Likewise.
22770         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
22771         syscall-list-* with abi-*.  Handle undefined abi-variants.
22772         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
22773         * sysdeps/unix/sysv/linux/i386/Implies: New file.
22774         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
22775         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
22776         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
22777         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
22778         Removed.
22779         (syscall-list-32-options): Likewise.
22780         (syscall-list-32-condition): Likewise.
22781         (syscall-list-64-options): Likewise.
22782         (syscall-list-64-condition): Likewise.
22783         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
22784         macro.
22785         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
22786         Renamed to ...
22787         (abi-*): This.
22788         (abi-64-ld-soname): New macro.
22789         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
22790         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
22791         Renamed to ...
22792         (abi-*): This.
22793         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
22794         * sysdeps/x86_64/x32/shlib-versions: Likewise.
22795
22796 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
22797
22798         * sysdeps/unix/sysv/linux/kernel-features.h
22799         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
22800         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
22801         include <kernel-features.h>.
22802         [!__NR_ftruncate64]: Remove conditional code.
22803         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22804         [__NR_ftruncate64]: Make code unconditional.
22805         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22806         * sysdeps/unix/sysv/linux/truncate64.c: Do not
22807         include <kernel-features.h>.
22808         [!__NR_ftruncate64]: Remove conditional code.
22809         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22810         [__NR_ftruncate64]: Make code unconditional.
22811         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
22813         include <kernel-features.h>.
22814         [!__NR_ftruncate64]: Remove conditional code.
22815         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22816         [__NR_ftruncate64]: Make code unconditional.
22817         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22819         include <kernel-features.h>.
22820         [!__NR_ftruncate64]: Remove conditional code.
22821         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22822         [__NR_ftruncate64]: Make code unconditional.
22823         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22824
22825         * configure.in (libc_cv_fpie): Weaken to a compile test using
22826         LIBC_TRY_CC_OPTION.
22827         * configure: Regenerated.
22828
22829 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22830
22831         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
22832         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
22833         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
22834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22835         Refreshed.
22836         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
22837         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
22838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
22839         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
22840         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
22841         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22842         Refreshed.
22843
22844 2012-05-27  David S. Miller  <davem@davemloft.net>
22845
22846         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
22847         (___Q_zero): New.
22848         (__Q_simulate_exceptions): Return void.  Change to simulate
22849         exceptions by writing into the %fsr.
22850         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
22851         (__Qp_handle_exceptions): Likewise.
22852         (numbers): Delete.
22853         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
22854         __Qp_handle_exceptions.
22855         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
22856         __Qp_handle_exceptions.
22857         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22858         as unused and give dummy FP_RND_NEAREST initializer.
22859         (FP_INHIBIT_RESULTS): Define.
22860         (___Q_simulate_exceptions): Update declaration.
22861         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
22862         formatting.
22863         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22864         as unused and give dummy FP_RND_NEAREST initializer.
22865         (__Qp_handle_exceptions): Update declaration.
22866         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
22867         formatting.
22868
22869 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
22870
22871         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
22872         the temporary FPU control word.
22873         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
22874         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
22875         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22876         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22877         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22878         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22879         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22880         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22881         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22882         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
22883         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22884
22885 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22886
22887         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
22888         fields.
22889
22890 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
22891
22892         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
22893         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
22894         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
22895         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
22896         Likewise.
22897         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
22898         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
22899         Likewise.
22900
22901 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
22902
22903         * po/h.po: Update from translation team.
22904
22905 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
22906
22907         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
22908
22909         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
22910         handling of denormals.
22911         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
22912         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
22913         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
22914         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
22915         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
22916         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
22917         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
22918         Likewise.
22919
22920 2012-05-26  Marek Polacek  <polacek@redhat.com>
22921
22922         [BZ #14152]
22923         * math/libm-test.inc (fma_test): Don't always expect underflow
22924         exception.
22925
22926 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22927
22928         [BZ #12416]
22929         * elf/tst-execstack.c: Include stackinfo.h.
22930         (do_test): Adjust test case to ensure that pthread_getattr_np
22931         behaviour remains the same after marking stack executable.
22932
22933 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22934
22935         * sysdeps/unix/sysv/linux/kernel-features.h
22936         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
22937         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
22938         kernel-features.h.
22939         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22940         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22941         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
22942         kernel-features.h.
22943         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
22944         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
22945
22946 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
22947
22948         * configure.in: Define the default includes to being none.
22949         * configure: Regenerated.
22950
22951 2012-05-25  Roland McGrath  <roland@hack.frob.com>
22952
22953         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
22954         * sysdeps/x86_64/setjmp.S: Likewise.
22955         * sysdeps/i386/bsd-setjmp.S: Likewise.
22956         * sysdeps/i386/bsd-_setjmp.S: Likewise.
22957         * sysdeps/i386/setjmp.S: Likewise.
22958         * sysdeps/i386/__longjmp.S: Likewise.
22959         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
22960         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
22961
22962         * include/stap-probe.h: New file.
22963         * configure.in: Handle --enable-systemtap.
22964         * configure: Regenerated.
22965         * config.h.in (USE_STAP_PROBE): New #undef.
22966         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
22967         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
22968         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
22969
22970 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
22971
22972         [BZ #13717]
22973         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
22974         to 2.4.0 where earlier.
22975         * sysdeps/unix/sysv/linux/configure: Regenerated.
22976         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22977         <kernel-features.h>.
22978         [__ASSUME_32BITUIDS]: Make code unconditional.
22979         [!__ASSUME_32BITUIDS]: Remove conditional code.
22980         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
22981         <kernel-features.h>.
22982         [__ASSUME_32BITUIDS]: Make code unconditional.
22983         [!__ASSUME_32BITUIDS]: Remove conditional code.
22984         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
22985         [__ASSUME_32BITUIDS]: Make code unconditional.
22986         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
22987         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
22988         <kernel-features.h>.
22989         [__ASSUME_32BITUIDS]: Make code unconditional.
22990         [!__ASSUME_32BITUIDS]: Remove conditional code.
22991         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
22992         <kernel-features.h>.
22993         [__ASSUME_32BITUIDS]: Make code unconditional.
22994         [!__ASSUME_32BITUIDS]: Remove conditional code.
22995         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
22996         <kernel-features.h>.
22997         [__ASSUME_32BITUIDS]: Make code unconditional.
22998         [!__ASSUME_32BITUIDS]: Remove conditional code.
22999         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
23000         <kernel-features.h>.
23001         [__ASSUME_32BITUIDS]: Make code unconditional.
23002         [!__ASSUME_32BITUIDS]: Remove conditional code.
23003         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
23004         <kernel-features.h>.
23005         [__ASSUME_32BITUIDS]: Make code unconditional.
23006         [!__ASSUME_32BITUIDS]: Remove conditional code.
23007         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
23008         <kernel-features.h>.
23009         [__ASSUME_32BITUIDS]: Make code unconditional.
23010         [!__ASSUME_32BITUIDS]: Remove conditional code.
23011         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
23012         <kernel-features.h>.
23013         [__ASSUME_32BITUIDS]: Make code unconditional.
23014         [!__ASSUME_32BITUIDS]: Remove conditional code.
23015         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
23016         <kernel-features.h>.
23017         [__ASSUME_32BITUIDS]: Make code unconditional.
23018         [!__ASSUME_32BITUIDS]: Remove conditional code.
23019         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
23020         <kernel-features.h>.
23021         [__ASSUME_32BITUIDS]: Make code unconditional.
23022         [!__ASSUME_32BITUIDS]: Remove conditional code.
23023         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
23024         <kernel-features.h>.
23025         [__ASSUME_32BITUIDS]: Make code unconditional.
23026         [!__ASSUME_32BITUIDS]: Remove conditional code.
23027         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
23028         <kernel-features.h>.
23029         [__NR_setresgid] (__setresgid): Do not declare.
23030         [__ASSUME_32BITUIDS]: Make code unconditional.
23031         [!__ASSUME_32BITUIDS]: Remove conditional code.
23032         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
23033         <kernel-features.h>.
23034         [__NR_setresuid] (__setresuid): Do not declare.
23035         [__ASSUME_32BITUIDS]: Make code unconditional.
23036         [!__ASSUME_32BITUIDS]: Remove conditional code.
23037         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
23038         <kernel-features.h>.
23039         [__ASSUME_32BITUIDS]: Make code unconditional.
23040         [!__ASSUME_32BITUIDS]: Remove conditional code.
23041         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
23042         <kernel-features.h>.
23043         [__ASSUME_32BITUIDS]: Make code unconditional.
23044         [!__ASSUME_32BITUIDS]: Remove conditional code.
23045         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
23046         <kernel-features.h>.
23047         [__ASSUME_32BITUIDS]: Make code unconditional.
23048         [!__ASSUME_32BITUIDS]: Remove conditional code.
23049         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
23050         <kernel-features.h>.
23051         [__ASSUME_32BITUIDS]: Make code unconditional.
23052         [!__ASSUME_32BITUIDS]: Remove conditional code.
23053         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
23054         <kernel-features.h>.
23055         [__ASSUME_32BITUIDS]: Make code unconditional.
23056         [!__ASSUME_32BITUIDS]: Remove conditional code.
23057         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
23058         <kernel-features.h>.
23059         [__ASSUME_32BITUIDS]: Make code unconditional.
23060         [!__ASSUME_32BITUIDS]: Remove conditional code.
23061         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
23062         <kernel-features.h>.
23063         [__ASSUME_32BITUIDS]: Make code unconditional.
23064         [!__ASSUME_32BITUIDS]: Remove conditional code.
23065         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
23066         <kernel-features.h>.
23067         [__ASSUME_32BITUIDS]: Make code unconditional.
23068         [!__ASSUME_32BITUIDS]: Remove conditional code.
23069         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
23070         <kernel-features.h>.
23071         [__ASSUME_32BITUIDS]: Make code unconditional.
23072         [!__ASSUME_32BITUIDS]: Remove conditional code.
23073         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
23074         <kernel-features.h>.
23075         [__ASSUME_32BITUIDS]: Make code unconditional.
23076         [!__ASSUME_32BITUIDS]: Remove conditional code.
23077         * sysdeps/unix/sysv/linux/kernel-features.h
23078         (__ASSUME_SETRESUID_SYSCALL): Remove.
23079         (__ASSUME_SETRESGID_SYSCALL): Likewise.
23080         (__ASSUME_32BITUIDS): Likewise.
23081         (__ASSUME_LDT_WORKS): Likewise.
23082         (__ASSUME_O_DIRECTORY): Likewise.
23083         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
23084         architecture but not kernel version.
23085         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
23086         (__ASSUME_MMAP2_SYSCALL): Likewise.
23087         (__ASSUME_STAT64_SYSCALL): Likewise.
23088         (__ASSUME_IPC64): Likewise.
23089         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
23090         <kernel-features.h>.
23091         [__ASSUME_32BITUIDS]: Make code unconditional.
23092         [!__ASSUME_32BITUIDS]: Remove conditional code.
23093         * sysdeps/unix/sysv/linux/opendir.c: Do not include
23094         <kernel-features.h>.
23095         [__ASSUME_O_DIRECTORY]: Make code unconditional.
23096         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
23097         132096]: Remove conditional code.
23098         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
23099         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
23100         <kernel-features.h>.
23101         [__ASSUME_32BITUIDS]: Make code unconditional.
23102         [!__ASSUME_32BITUIDS]: Remove conditional code.
23103         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
23104         <kernel-features.h>.
23105         [__ASSUME_32BITUIDS]: Make code unconditional.
23106         [!__ASSUME_32BITUIDS]: Remove conditional code.
23107         * sysdeps/unix/sysv/linux/setegid.c: Do not include
23108         <kernel-features.h>.
23109         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
23110         unconditional.
23111         (__setresgid): Do not declare.
23112         [__ASSUME_32BITUIDS]: Make code unconditional.
23113         [!__ASSUME_32BITUIDS]: Remove conditional code.
23114         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
23115         <kernel-features.h>.
23116         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
23117         unconditional.
23118         (__setresuid): Do not declare.
23119         [__ASSUME_32BITUIDS]: Make code unconditional.
23120         [!__ASSUME_32BITUIDS]: Remove conditional code.
23121         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
23122         <kernel-features.h>.
23123         [__ASSUME_32BITUIDS]: Make code unconditional.
23124         [!__ASSUME_32BITUIDS]: Remove conditional code.
23125         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
23126         <kernel-features.h>.
23127         [__ASSUME_32BITUIDS]: Make code unconditional.
23128         [!__ASSUME_32BITUIDS]: Remove conditional code.
23129
23130 2012-05-25  Richard Henderson  <rth@twiddle.net>
23131
23132         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
23133         dl_hwcap to ifunc resolver.
23134         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
23135         elf_ifunc_invoke.
23136         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
23137         dl_hwcap to ifunc resolver.
23138         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
23139
23140 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23141
23142         [BZ #14153]
23143         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
23144         for |x| <= 2**-26, not 2**-57.
23145         * math/libm-test.inc (acos_test): Do not allow spurious underflow
23146         exception.
23147
23148 2012-05-24  Jeff Law  <law@redhat.com>
23149
23150         * stdio-common/Makefile (tests): Add bug25.
23151         * stdio-common/bug25.c: New test.
23152
23153 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23154
23155         [BZ #13576]
23156         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
23157         multiple of MALLOC_ALIGNMENT in size.
23158         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
23159
23160 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23161
23162         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
23163         Require >= 256.
23164         (FILENAME_MAX): Use macro-int-constant.
23165         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
23166         (_IOFBF): Use macro-int-constant.
23167         (_IOLBF): Likewise.
23168         (_IONBF): Likewise.
23169         (SEEK_CUR): Likewise.
23170         (SEEK_END): Likewise.
23171         (SEEK_SET): Likewise.
23172         (TMP_MAX): Likewise.
23173         (EOF): Use macro-int-constant.  Require < 0.
23174         (NULL): Use macro-constant.  Require == 0.
23175         (stdin): Require type to be FILE *.
23176         (stdout): Likewise.
23177         (stderr): Likewise.
23178         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
23179         macro-int-constant.
23180         (EXIT_SUCCESS): Likewise.
23181         (NULL): Use macro-constant.  Require == 0.
23182         (RAND_MAX): Use macro-int-constant.
23183         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
23184         [C99-based standards] (strtof): Require function.
23185         [C99-based standards] (strtold): Likewise.
23186         [C99-based standards] (strtoll): Likewise.
23187         [C99-based standards] (strtoull): Likewise.
23188         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
23189         [ISO || ISO99 || ISO11] (limits.h): Likewise.
23190         [ISO || ISO99 || ISO11] (math.h): Likewise.
23191         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
23192         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
23193         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23194
23195 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
23196
23197         [BZ #14132]
23198         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
23199         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
23200         * intl/dgettext.c (DCGETTEXT): Likewise.
23201         * intl/gettext.c (DCGETTEXT): Likewise.
23202         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
23203         * posix/regex_internal.h (gettext): Likewise.
23204         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
23205         Remove declaration.
23206         * include/argz.h (__argz_count_internal)
23207         (__argz_stringify_internal): Remove declaration.
23208         (__argz_count, __argz_stringify): Declare hidden proto.
23209         * intl/dcgettext.c: Remove use of INTDEF.
23210         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
23211         * string/argz-stringify.c: Likewise.
23212         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23213         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23214         Declare hidden proto.
23215         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23216         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23217         Declare hidden proto.
23218         * include/stdio.h (__asprintf_internal): Don't declare.
23219         (__asprintf): Don't define as macro.  Declare hidden proto.
23220         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
23221         (__fsetlocking): Declare hidden proto.
23222         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
23223         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
23224         hidden proto.
23225         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
23226         (_IO_setlinebuf): Remove use of INTUSE.
23227         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
23228         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
23229         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
23230         Remove declaration.
23231         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
23232         (_IO_do_flush): Remove use of INTUSE.
23233         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
23234         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
23235         (_IO_adjust_column, _IO_least_wmarker)
23236         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
23237         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
23238         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
23239         (_IO_default_doallocate, _IO_wdefault_doallocate)
23240         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
23241         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
23242         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
23243         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
23244         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
23245         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
23246         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
23247         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
23248         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
23249         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
23250         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
23251         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
23252         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
23253         proto.
23254         (_IO_flush_all_internal, _IO_adjust_column_internal)
23255         (_IO_default_uflow_internal, _IO_default_finish_internal)
23256         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
23257         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
23258         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
23259         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
23260         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
23261         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
23262         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
23263         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
23264         (_IO_file_close_internal, _IO_file_close_it_internal)
23265         (_IO_file_underflow_internal, _IO_file_overflow_internal)
23266         (_IO_file_init_internal, _IO_file_attach_internal)
23267         (_IO_file_fopen_internal, _IO_file_read_internal)
23268         (_IO_file_sync_internal, _IO_file_seek_internal)
23269         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
23270         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
23271         (_IO_str_underflow_internal, _IO_str_overflow_internal)
23272         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
23273         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
23274         (_IO_list_all_internal, _IO_link_in_internal)
23275         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
23276         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
23277         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
23278         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
23279         (_IO_do_write_internal, _IO_padn_internal)
23280         (_IO_getline_info_internal, _IO_getline_internal)
23281         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
23282         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
23283         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
23284         (_IO_vfscanf_internal, _IO_vfprintf_internal)
23285         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
23286         (_IO_init_internal, _IO_un_link_internal): Don't declare.
23287         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
23288         with libc_hidden_ver, remove use of INTUSE.
23289         * libio/genops.c: Likewise.
23290         * libio/freopen.c: Likewise.
23291         * libio/freopen64.c: Likewise.
23292         * libio/iofclose.c: Likewise.
23293         * libio/iofdopen.c: Likewise.
23294         * libio/iofflush.c: Likewise.
23295         * libio/iofflush_u.c: Likewise.
23296         * libio/iofgets.c: Likewise.
23297         * libio/iofgets_u.c: Likewise.
23298         * libio/iofopen.c: Likewise.
23299         * libio/iofopncook.c: Likewise.
23300         * libio/iofread.c: Likewise.
23301         * libio/iofread_u.c: Likewise.
23302         * libio/ioftell.c: Likewise.
23303         * libio/iofwrite.c: Likewise.
23304         * libio/iogetline.c: Likewise.
23305         * libio/iogets.c: Likewise.
23306         * libio/iogetwline.c: Likewise.
23307         * libio/iopadn.c: Likewise.
23308         * libio/iopopen.c: Likewise.
23309         * libio/ioseekoff.c: Likewise.
23310         * libio/ioseekpos.c: Likewise.
23311         * libio/iosetbuffer.c: Likewise.
23312         * libio/iosetvbuf.c: Likewise.
23313         * libio/ioungetc.c: Likewise.
23314         * libio/ioungetwc.c: Likewise.
23315         * libio/iovdprintf.c: Likewise.
23316         * libio/iovsprintf.c: Likewise.
23317         * libio/iovsscanf.c: Likewise.
23318         * libio/memstream.c: Likewise.
23319         * libio/obprintf.c: Likewise.
23320         * libio/oldfileops.c: Likewise.
23321         * libio/oldiofclose.c: Likewise.
23322         * libio/oldiofdopen.c: Likewise.
23323         * libio/oldiofopen.c: Likewise.
23324         * libio/oldiopopen.c: Likewise.
23325         * libio/oldstdfiles.c: Likewise.
23326         * libio/putc.c: Likewise.
23327         * libio/setbuf.c: Likewise.
23328         * libio/setlinebuf.c: Likewise.
23329         * libio/stdfiles.c: Likewise.
23330         * libio/strops.c: Likewise.
23331         * libio/vasprintf.c: Likewise.
23332         * libio/vscanf.c: Likewise.
23333         * libio/vsnprintf.c: Likewise.
23334         * libio/vswprintf.c: Likewise.
23335         * libio/wfiledoalloc.c: Likewise.
23336         * libio/wfileops.c: Likewise.
23337         * libio/wgenops.c: Likewise.
23338         * libio/wmemstream.c: Likewise.
23339         * libio/wstrops.c: Likewise.
23340         * libio/__fpurge.c: Likewise.
23341         * libio/__fsetlocking.c: Likewise.
23342         * assert/assert.c: Likewise.
23343         * debug/fgets_chk.c: Likewise.
23344         * debug/fgets_u_chk.c: Likewise.
23345         * debug/fread_chk.c: Likewise.
23346         * debug/fread_u_chk.c: Likewise.
23347         * debug/gets_chk.c: Likewise.
23348         * debug/obprintf_chk.c: Likewise.
23349         * debug/vasprintf_chk.c: Likewise.
23350         * debug/vdprintf_chk.c: Likewise.
23351         * debug/vsnprintf_chk.c: Likewise.
23352         * debug/vsprintf_chk.c: Likewise.
23353         * malloc/mtrace.c: Likewise.
23354         * misc/error.c: Likewise.
23355         * misc/syslog.c: Likewise.
23356         * stdio-common/asprintf.c: Likewise.
23357         * stdio-common/fxprintf.c: Likewise.
23358         * stdio-common/getw.c: Likewise.
23359         * stdio-common/isoc99_fscanf.c: Likewise.
23360         * stdio-common/isoc99_scanf.c: Likewise.
23361         * stdio-common/isoc99_vfscanf.c: Likewise.
23362         * stdio-common/isoc99_vscanf.c: Likewise.
23363         * stdio-common/isoc99_vsscanf.c: Likewise.
23364         * stdio-common/printf-prs.c: Likewise.
23365         * stdio-common/printf_fp.c: Likewise.
23366         * stdio-common/printf_fphex.c: Likewise.
23367         * stdio-common/printf_size.c: Likewise.
23368         * stdio-common/putw.c: Likewise.
23369         * stdio-common/scanf.c: Likewise.
23370         * stdio-common/sprintf.c: Likewise.
23371         * stdio-common/tmpfile.c: Likewise.
23372         * stdio-common/vfprintf.c: Likewise.
23373         * stdio-common/vfscanf.c: Likewise.
23374         * stdlib/strfmon_l.c: Likewise.
23375         * sunrpc/openchild.c: Likewise.
23376         * sunrpc/xdr_stdio.c: Likewise.
23377         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
23378         * sysdeps/mach/hurd/tmpfile.c: Likewise.
23379
23380 2012-05-24  Roland McGrath  <roland@hack.frob.com>
23381
23382         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23383
23384         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
23385         in the third column, to generate for the shared library an IFUNC
23386         that uses _dl_vdso_vsym.
23387         * Makerules (COMPILE.c, compile-stdin.c): New variables.
23388         * Makeconfig (object-suffixes-noshared): New variable.
23389
23390         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
23391         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
23392         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
23393         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
23394
23395         [BZ #14132]
23396         * include/sys/time.h (__gettimeofday): Remove macro.
23397         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
23398         * time/gettimeofday.c (__gettimeofday): Remove #undef.
23399         Remove INTDEF.
23400         (__gettimeofday): Add libc_hidden_def.
23401         (gettimeofday): Add libc_hidden_weak.
23402         * sysdeps/mach/gettimeofday.c: Likewise.
23403         * sysdeps/posix/gettimeofday.c: Likewise.
23404         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
23405         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23406         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
23407         (__gettimeofday_internal): Remove strong_alias.
23408         (__gettimeofday): Add libc_hidden_def.
23409         (gettimeofday): Add libc_hidden_weak.
23410         * sysdeps/unix/syscalls.list (gettimeofday):
23411         Remove __gettimeofday_internal alias.
23412
23413 2012-05-24  Daniel Jacobowitz  <drow@false.org>
23414             H.J. Lu  <hongjiu.lu@intel.com>
23415
23416         [BZ #12495]
23417         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
23418         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
23419         (largebin_index_32_big): New.
23420         (largebin_index): Use it for 16-byte alignment.
23421         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
23422         correction with front_misalign.
23423
23424 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23425
23426         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
23427         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
23428         Likewise.
23429         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
23430         Likewise.
23431         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
23432         Likewise.
23433         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
23434         Likewise.
23435         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
23436         Likewise.
23437         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
23438         Likewise.
23439         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
23440         Likewise.
23441         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
23442         Likewise.
23443         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
23444         Likewise.
23445         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
23446         Likewise.
23447         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
23448         Likewise.
23449         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
23450         Likewise.
23451
23452         * scripts/data/c++-types-x32-linux-gnu.data: New file.
23453         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
23454
23455 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23456
23457         [BZ #10846]
23458         [BZ #14036]
23459         * math/libm-test.inc (exp_test): Add test from bug 14036.
23460         (pow_test): Add test from bug 10846.
23461
23462         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
23463         and other flags.
23464         (special_function): Do not include flags in test name.
23465         (parse_args): Likewise.
23466         * sysdeps/i386/fpu/libm-test-ulps: Update.
23467         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23468         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
23469         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
23470         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23471
23472         * math/gen-libm-test.pl (%beautify): Add entries for underflow
23473         exceptions.
23474         * math/libm-test.inc ("Philosophy"): Update comment about
23475         exception testing.
23476         (UNDERFLOW_EXCEPTION): New macro.
23477         (UNDERFLOW_EXCEPTION_OK): Likewise.
23478         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
23479         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
23480         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
23481         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
23482         (INVALID_EXCEPTION_OK): Update value.
23483         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23484         (OVERFLOW_EXCEPTION_OK): Likewise.
23485         (IGNORE_ZERO_INF_SIGN): Likewise.
23486         (test_exceptions): Handle underflow exceptions.
23487         (acos_test): Update for underflow exception expectations.
23488         (cexp_test): Likewise.
23489         (clog_test): Likewise.
23490         (clog10_test): Likewise.
23491         (csqrt_test): Likewise.
23492         (ctan_test): Likewise.
23493         (ctanh_test): Likewise.
23494         (exp_test): Likewise.
23495         (exp10_test): Likewise.
23496         (exp2_test): Likewise.
23497         (expm1_test): Likewise.
23498         (fma_test): Likewise.
23499         (j0_test): Likewise.
23500         (jn_test): Likewise.
23501         (nexttoward_test): Likewise.
23502         (pow_test): Likewise.
23503         (scalbn_test): Likewise.
23504         (scalbln_test): Likewise.
23505         (tan_test): Likewise.
23506         (y1_test): Likewise.
23507         * sysdeps/i386/fpu/libm-test-ulps: Update.
23508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23509
23510 2012-05-23  David S. Miller  <davem@davemloft.net>
23511
23512         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23513         (__libc_sigaction): Remove unused local variables.
23514
23515 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23516
23517         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
23518
23519 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23520
23521         mktime: avoid signed integer overflow
23522         * time/mktime.c (__mktime_internal): Do not mishandle the case
23523         where diff == INT_MIN.
23524
23525         mktime: simplify computation of average
23526         * time/mktime.c (ranged_convert): Use new time_t_avg function
23527         instead of rolling our own (probably-slower) code.
23528
23529         mktime: do not assume signed right shift propagates sign bit
23530         * time/mktime.c (isdst_differ): New static function.
23531         (__mktime_internal): No need to normalize tm_isdst now.
23532         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
23533         tm_isdst values.
23534
23535         mktime: merge another wrapv change from gnulib
23536         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
23537         from some compilers.
23538
23539         mktime: remove incorrect attempt at unusual arithmetics
23540         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
23541         The code didn't really work on such machines anyway.
23542         (TYPE_MINIMUM): Assume two's complement.
23543         (twos_complement_arithmetic): Verify that long_int and time_t
23544         are two's complement (or unsigned, in the latter case).
23545
23546         mktime: check signed shifts on long_int and time_t, too
23547         * time/mktime.c (SHR): Check that shifts work as desired
23548         on the types long_int and time_t too, as SHR is used on
23549         such types.
23550
23551         mktime: do not assume 'long' is wide enough
23552         * time/mktime.c (verify): Move decl up.
23553         (long_int): New type.
23554         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
23555         to remove assumption in the code that 'long' is wide enough to
23556         store year values.  This assumption is not true on x32 and on
23557         some non-glibc platforms.
23558
23559         mktime: merge wrapv change from gnulib
23560         * time/mktime.c (WRAPV): New macro.
23561         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
23562         (guess_time_tm, __mktime_internal): Do not assume that signed
23563         integer overflow wraps around; modern compilers generate code
23564         where this assumption is no longer valid.
23565
23566 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23567
23568         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23569         Replace "jmp L(pseudo_end)" with "ret".
23570         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
23571         Likewise.
23572
23573 2012-05-23  Andreas Jaeger  <aj@suse.de>
23574
23575         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
23576         * sysdeps/unix/sysv/linux/poll.c: Remove file.
23577
23578 2012-05-23  Andreas Jaeger  <aj@suse.de>
23579             Maximilian Attems  <max@stro.at>
23580
23581         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
23582         New macros.
23583
23584 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23585
23586         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
23587         code so that pseudo_end is just ret and the stack pointer is
23588         correct also for static library in error case.
23589
23590 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
23591
23592         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
23593         move to syscalls.list.
23594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
23595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
23596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
23597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
23598
23599         * manual/install.texi (Running make install): Do not mention Linux
23600         kernel version for which pt_chown is not needed.
23601         (Linux): Do not mention problems with nscd with 2.0 kernels.
23602         * INSTALL: Regenerated.
23603
23604 2012-05-23  Andreas Jaeger  <aj@suse.de>
23605
23606         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
23607         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
23608         macro.
23609         * sysdeps/unix/sysv/linux/s390/bits/mman.h
23610         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23611         * sysdeps/unix/sysv/linux/sh/bits/mman.h
23612         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23613         * sysdeps/unix/sysv/linux/i386/bits/mman.h
23614         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23615         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
23616         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23617         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
23618         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23619         * sysdeps/unix/sysv/linux/bits/in.h
23620         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
23621
23622 2012-05-22  Roland McGrath  <roland@hack.frob.com>
23623
23624         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
23625         (PREPARE_VERSION): Just use assert instead, it will be elided
23626         under [NDEBUG] anyway.
23627
23628 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23629
23630         * sysdeps/unix/sysv/linux/Makefile: Include
23631         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
23632         (sysdep_routines): Remove sysctl.
23633         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
23634         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
23635         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
23636         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
23637         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
23638
23639 2012-05-22  Andreas Jaeger  <aj@suse.de>
23640
23641         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
23642         that pseudo_end is just ret and the stack pointer is correct also
23643         for static library in error case.
23644
23645 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23646
23647         [BZ #14122]
23648         * nss/nsswitch.c (defconfig_entries): New variable.
23649         (__nss_database_lookup): Don't leak defconfig entries.
23650         (nss_parse_service_list): Don't leak on error paths.
23651         (free_database_entries): New function.
23652         (free_defconfig): New function.
23653         (free_mem): Move common code to free_database_entries.
23654
23655 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23656
23657         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
23658         Add arch_prctl.
23659         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
23660
23661         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
23662         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
23663         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
23664         New macro.
23665         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
23666         (INTERNAL_SYSCALL_TYPES): Likewise.
23667         (LOAD_ARGS_TYPES_[1-6]): Likewise.
23668         (LOAD_REGS_TYPES_[1-6]): Likewise.
23669         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
23670         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
23671
23672 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23673
23674         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
23675         copysignl for GLIBC_2_0.
23676         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
23677         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
23678         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
23679         logbl for GLIBC_2_0.
23680         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23681         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23682
23683 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23684
23685         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
23686         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23687
23688         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23689         Use "neg %eax".
23690
23691         * time/mktime.c: Update copyright years.
23692
23693 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23694
23695         mktime: merge comment-quoting-style change from gnulib
23696         * time/mktime.c: Quote 'like this' in comments.
23697         The GNU coding standards suggest that we no longer quote `like this',
23698         as "`" and "'" are typically rendered asymmetrically nowadays.
23699         The typical gnulib style is to quote 'like this' when quoting
23700         code, and "like this" when quoting English.
23701
23702         * time/mktime.c (compile-command): Add "-I.".
23703
23704         mktime: merge mktime-internal.h change from gnulib
23705         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
23706
23707         mktime: merge time_r change from gnulib
23708         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
23709
23710         mktime: merge DEBUG change from gnulib
23711         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
23712         case system <time.h> has a #define.
23713
23714         mktime: merge <sys/types.h> change from gnulib
23715         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
23716         since <time.t> is now guaranteed to define time_t.
23717
23718         mktime: merge HAVE_CONFIG_H change from gnulib
23719         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
23720
23721 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23722
23723         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23724         Use "neg %eax".
23725
23726         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
23727         __rlim_t cast.
23728         (struct rusage): Use anonymous union to pad each field to
23729         __syscall_slong_t.
23730
23731 2012-05-21  David S. Miller  <davem@davemloft.net>
23732
23733         * Makefules (o-iterator): Remove .s cases.
23734         (compile-command.s): Delete.
23735         (COMPILE.s): Delete.
23736         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
23737
23738 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
23739
23740         * configure.in (libc_cv_predef_stack_protector): Only consider
23741         "foobar" and "__stack_chk_fail" lines in libc_undefs.
23742         * configure: Regenerated.
23743
23744 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23745
23746         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23747         New macro.  Use R*LP on int and pointer.
23748         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
23749         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
23750         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
23751         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
23752
23753         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
23754         [__WORDSIZE_TIME64_COMPAT32] instead of
23755         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
23756         (struct utmp): Likewise.
23757         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
23758         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
23759         Renamed to ...
23760         (__WORDSIZE_TIME64_COMPAT32): This.
23761         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
23762         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
23763         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
23764         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
23765         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
23766         (__WORDSIZE_TIME64_COMPAT32): New macro.
23767
23768 2012-05-21  Andreas Jaeger  <aj@suse.de>
23769
23770         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
23771         only if [SHARED]. Add prototype for __wcschr_ia32.
23772
23773 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23774
23775         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
23776         of %rbp unmolested in the jmp_buf while mangling the low bits.
23777         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
23778         unmolested high bits of %rbp while demangling the low bits.
23779         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23780
23781 2012-05-21  Andreas Jaeger  <aj@suse.de>
23782
23783         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
23784         * sunrpc/svc_simple.c: Use it for registerrpc.
23785         * sunrpc/xcrypt.c: Use it for passwd2des.
23786
23787         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
23788
23789 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23790
23791         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
23792         Don't define if [__SYSCALL_WORDSIZE != 32].
23793         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
23794         New macro.
23795
23796 2012-05-21  Bruno Haible  <bruno@clisp.org>
23797             Andreas Jaeger  <aj@suse.de>
23798
23799         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
23800         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
23801         inptr and inend for must_buffer_ch.
23802         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
23803         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
23804         * stdio-common/Makefile (tests): Remove bug15.
23805         (bug15-ENV): Remove macro.
23806         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
23807         anymore.
23808
23809 2012-05-19  Andreas Jaeger  <aj@suse.de>
23810             Roland McGrath  <roland@hack.frob.com>
23811
23812         * manual/contrib.texi: Completely rewritten. It contains now an
23813         alphabetical list of contributors and their contributions.
23814
23815 2012-05-21  Richard Henderson  <rth@twiddle.net>
23816
23817         * misc/getauxval.c (__getauxval): Use unsigned long int.
23818         * misc/sys/auxv.h: Include <sys/cdefs.h>.
23819         (getauxval): Use unsigned long int.
23820
23821 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23822
23823         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23824
23825 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23826
23827         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
23828         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
23829         __alignof__ (long double).
23830
23831 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23832
23833         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23834
23835 2012-05-20  Richard Henderson  <rth@twiddle.net>
23836
23837         * misc/getauxval.c: New file.
23838         * misc/sys/auxv.h: New file.
23839         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
23840         (routines): Add getauxval.
23841         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
23842         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
23843         * elf/dl-sysdep.c (_dl_auxv): Remove.
23844         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
23845         * elf/dl-support.c (_dl_auxv): New variable.
23846         (_dl_aux_init): Initialize it.
23847         * manual/startup.texi (Auxiliary Vector): New node.
23848         * sysdeps/generic/bits/hwcap.h: New file.
23849         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
23850         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
23851         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
23852         * sysdeps/sparc/sysdep.h: ... here.  Include it.
23853         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
23854         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
23855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23856         Update.
23857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
23858         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
23859         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
23860         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
23861         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23862         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23863         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
23864         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
23865
23866 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23867
23868         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23869
23870 2012-05-19  David S. Miller  <davem@davemloft.net>
23871
23872         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23873
23874 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23875
23876         [BZ #14123]
23877         * math/s_ccosh.c: Include <float.h>
23878         (__ccosh): Avoid internal overflow calculating sinh and cosh
23879         values before multiplying by sin and cos values.
23880         * math/s_ccoshf.c: Likewise.
23881         * math/s_ccoshl.c: Likewise.
23882         * math/s_csin.c: Likewise.
23883         * math/s_csinf.c: Likewise.
23884         * math/s_csinl.c: Likewise.
23885         * math/s_csinh.c: Likewise.
23886         * math/s_csinhf.c: Likewise.
23887         * math/s_csinhl.c: Likewise.
23888         * math/libm-test.inc (ccos_test): Add more tests.
23889         (ccosh_test): Likewise.
23890         (csin_test): Likewise.
23891         (csinh_test): Likewise.
23892         * sysdeps/i386/fpu/libm-test-ulps: Update.
23893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23894
23895 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
23896
23897         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
23898         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
23899
23900         * sysdeps/x86_64/x32/_itoa.h: Add comment.
23901
23902 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23903
23904         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
23905         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
23906         * sysdeps/powerpc/soft-fp/Versions: Likewise.
23907         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
23908         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
23909         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
23910         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
23911         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
23912         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
23913         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
23914         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
23915         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
23916         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
23917         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
23918         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
23919         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
23920         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
23921         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
23922         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
23923         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
23924         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
23925         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
23926         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
23927         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
23928         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
23929         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
23930         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
23931         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
23932         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
23933         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
23934         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
23935
23936 2012-05-18  Andreas Jaeger  <aj@suse.de>
23937
23938         * csu/.gitignore: Delete.
23939
23940 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23941
23942         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
23943         (timex): Use __syscall_slong_t.
23944
23945 2012-05-18  Andreas Jaeger  <aj@suse.de>
23946             Carlos O'Donell  <carlos_odonell@mentor.com>
23947
23948         * manual/install.texi (Configuring and compiling): Update
23949         description about files modified in the source directory.
23950         * INSTALL: Regenerated.
23951
23952 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23953
23954         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
23955         value.  Use "or" to set return value to -1.
23956         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
23957         negate return value.
23958
23959 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23960
23961         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
23962         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
23963         failure if the compiler has Graphite support disabled.
23964         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
23965         Likewise.
23966         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
23967         CFLAGS-memmove.c): Likewise.
23968         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
23969         Likewise.
23970
23971 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
23972
23973         * sysdeps/x86_64/x32/_itoa.h: New file.
23974
23975         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
23976         getdents system call only if kernel and user dirents have the
23977         same d_ino and d_off.
23978
23979         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23980         LLONG_MAX != LONG_MAX.
23981         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23982         (_fitoa_word): Likewise.
23983
23984         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
23985         years.
23986         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
23987         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
23988         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
23989
23990         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
23991         include <bits/wordsize.h>.  Check __x86_64__ instead of
23992         __WORDSIZE.
23993         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
23994         if __x86_64__ is defined.  Use anonymous union on fpstate.
23995
23996         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
23997         anonymous union.
23998
23999 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
24000
24001         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
24002         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
24003         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
24004         Refer to _rtld_local_ro instead of _rtld_global_ro.
24005         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
24006         Likewise.
24007         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
24008         Likewise.
24009         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
24010         Likewise.
24011         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
24012         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
24013         of _rtld_global, and rtld_progname instead of _dl_argv[0].
24014
24015         * sysdeps/powerpc/powerpc32/dl-machine.c
24016         (__elf_machine_runtime_setup) [PROF]: Don't reference
24017         _dl_prof_resolve.
24018
24019 2012-05-18  Andreas Jaeger  <aj@suse.de>
24020
24021         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
24022         function only available for GCCs before 3.4 since GCC 3.4
24023         introduced a builtin.
24024         (lrint): Likewise.
24025         (llrintf): Likewise.
24026         (llrint): Likewise.
24027         (fmaxf): Likewise.
24028         (fmax): Likewise.
24029         (fminf): Likewise.
24030         (fmin): Likewise.
24031         (rint): Likewise.
24032         (rintf): Likewise.
24033         (nearbyint): Likewise.
24034         (nearbyintf): Likewise.
24035         (ceil): Likewise.
24036         (ceilf): Likewise.
24037         (floor): Likewise.
24038         (floorf): Likewise.
24039
24040 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24041
24042         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
24043         on both fields and cast pointer to __syscall_ulong_t.
24044
24045         * bits/types.h (__fsword_t): New type.
24046         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
24047         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
24048         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24049         (__FSWORD_T_TYPE): Likewise.
24050         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24051         (__FSWORD_T_TYPE): Likewise.
24052         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24053         (__FSWORD_T_TYPE): Likewise.
24054         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
24055         (__FSWORD_T_TYPE): Likewise.
24056         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
24057         __SWORD_TYPE with __fsword_t.
24058         (statfs64): Likewise.
24059
24060 2012-05-17  David S. Miller  <davem@davemloft.net>
24061
24062         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
24063
24064 2012-05-17  Andreas Jaeger  <aj@suse.de>
24065
24066         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
24067         warning.
24068
24069 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24070
24071         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
24072
24073 2012-05-17  Andreas Jaeger  <aj@suse.de>
24074
24075         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
24076         when it is used.
24077
24078 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24079
24080         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
24081
24082 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24083
24084         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
24085         * sysdeps/x86_64/tst-mallocalign1.c: New file.
24086
24087 2012-05-17  Andreas Jaeger  <aj@suse.de>
24088             Carlos O'Donell  <carlos_odonell@mentor.com>
24089
24090         [BZ #14059]
24091         * sysdeps/x86_64/multiarch/init-arch.h
24092         (bit_YMM_Usable): Rename to...
24093         (bit_AVX_Usable): ... this.
24094         (bit_FMA4_Usable): New macro.
24095         (bit_XMM_state): New macro.
24096         (bit_YMM_state): New macro.
24097         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
24098         [__ASSEMBLER__] (index_AVX_Usable): ... this.
24099         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
24100         (CPUID_OSXSAVE): New macro.
24101         (CPUID_AVX): New macro.
24102         (CPUID_FMA4): New macro.
24103         (index_YMM_Usable): Rename to...
24104         (index_AVX_Usable): ... this.
24105         (HAS_AVX): Use HAS_ARCH_FEATURE.
24106         (HAS_FMA4): Likewise.
24107         (HAS_YMM_USABLE): Remove.
24108         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24109         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
24110         are present.
24111         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
24112         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
24113         * sysdeps/x86_64/multiarch/Makefile: Likewise.
24114         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
24115         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
24116
24117 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24118
24119         * math/libm-test.c: Support platforms without multiple rounding modes.
24120         * math/bug-nextafter.c: Support platforms without FP exceptions.
24121         * math/bug-nexttoward.c: Likewise.
24122         * math/test-fenv.c: Likewise.
24123         * math/test-misc.c: Likewise.
24124         * stdlib/bug-getcontext.c: Likewise.
24125
24126 2012-05-17  Andreas Jaeger  <aj@suse.de>
24127
24128         * manual/examples/search.c (critter_cmp): Change signature to
24129         avoid warnings.
24130         * manual/string.texi (Collation Functions): Likewise.
24131
24132 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24133
24134         * bits/types.h: Fold copyright years.
24135         * bits/typesizes.h: Likewise.
24136         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
24137         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
24138         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
24139         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
24140         * time/time.h: Likewise.
24141
24142 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
24143
24144         [BZ #208]
24145         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
24146         in instead of returning them.  Return void.
24147         (__libc_mallinfo): Accumulate over all arenas.
24148         (__malloc_stats): Adjust for change in int_mallinfo interface.
24149
24150 2012-05-16  Roland McGrath  <roland@hack.frob.com>
24151
24152         [BZ #10375]
24153         * configure.in (NM): Add AC_CHECK_TOOL for it.
24154         (libc_extra_cflags): New substituted variable.
24155         Check for -fstack-protector being used implicitly.
24156         * configure: Regenerated.
24157         * config.make.in (config-extra-cflags): New variable,
24158         gets @libc_extra_cflags@.
24159         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
24160
24161         [BZ #10375]
24162         * configure.in: Check for _FORTIFY_SOURCE being predefined.
24163         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
24164         * configure: Regenerated.
24165         * config.make.in (CPPUNDEFS): New substituted variable.
24166         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
24167         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
24168         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
24169
24170 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24171
24172         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
24173         (mq_attr): Use __syscall_slong_t.
24174
24175 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24176
24177         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
24178         Check __x86_64__ instead of __WORDSIZE.
24179         (_STAT_VER_LINUX): Likewise.
24180         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
24181         __syscall_ulong_t and __syscall_slong_t.
24182         (stat64): Likewise.
24183
24184 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24185
24186         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
24187
24188 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24189
24190         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
24191
24192 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24193
24194         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
24195         __syscall_ulong_t.
24196
24197         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
24198         include <bits/wordsize.h>.  Check __x86_64__ instead of
24199         __WORDSIZE.
24200         (greg_t): Use "__extension__ long long int" if __x86_64__ is
24201         defined.
24202         (mcontext_t): Replace "unsigned long" with "unsigned long long".
24203
24204         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
24205         include <bits/wordsize.h>.  Check __x86_64__ instead of
24206         __WORDSIZE.
24207         (user_regs_struct): Use "__extension__ unsigned long long"
24208         instead of "unsigned long" if __x86_64__ is defined.
24209         (user): Likewise.  Pad after pointer field if __ILP32__ is
24210         defined.
24211
24212 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
24213
24214         * configure.in (makeinfo): Require version 4.5 or later.  Allow
24215         versions 5 to 9.
24216         * configure: Regenerated.
24217         * manual/install.texi (texinfo): Increase version requirement to
24218         4.5 or later.
24219         * INSTALL: Regenerated.
24220
24221         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
24222
24223 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24224
24225         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
24226
24227         * sysdeps/x86_64/x32/ffs.c: New file.
24228
24229         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
24230         __syscall_ulong_t.
24231         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
24232         defined.  Use __syscall_ulong_t.
24233         (shminfo): Use __syscall_ulong_t.
24234         (shm_info): Likewise.
24235
24236         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
24237         __syscall_ulong_t.
24238
24239         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
24240         <bits/wordsize.h>.
24241         (msgqnum_t): Use __syscall_ulong_t.
24242         (msglen_t): Likewise.
24243         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
24244         __syscall_ulong_t.
24245
24246         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
24247         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24248
24249         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
24250
24251         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
24252         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
24253
24254         * sysvipc/sys/msg.h (msgbuf): Replace long int with
24255         __syscall_slong_t.
24256
24257         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
24258         include <bits/wordsize.h>.  Check __x86_64__ instead of
24259         __WORDSIZE.
24260
24261         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
24262         "unsigned long long int" if __x86_64__ is defined.
24263         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
24264
24265         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
24266         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24267         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
24268
24269         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
24270         <stdint.h>.
24271         (GET_PC): Cast to uintptr_t first.
24272         (GET_FRAME): Likewise.
24273         (GET_STACK): Likewise.
24274
24275         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
24276         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
24277         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
24278         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
24279         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
24280         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
24281         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
24282         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
24283         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24284         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
24285         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
24286         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
24287         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
24288         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
24289         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
24290         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
24291         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
24292         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
24293         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
24294         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
24295         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
24296         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
24297         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
24298         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
24299         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
24300         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
24301         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
24302         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
24303         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
24304
24305 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
24306
24307         * Makerules (+depfiles): Also collect depfiles from .oS in
24308         $(extra-objs).
24309         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
24310         .oS, $(libnldbl-routines)).
24311
24312         * Makerules (native-compile-mkdep-flags): Define.
24313         * sunrpc/Makefile (extra-objs): Add $(addprefix
24314         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
24315         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
24316         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
24317         calling $(make-target-directory).
24318
24319 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24320
24321         * bits/types.h (__snseconds_t): Removed.
24322         * time/time.h (struct timespec): Replace __snseconds_t with
24323         __syscall_slong_t.
24324         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
24325         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
24326         Likewise.
24327         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24328         (__SNSECONDS_T_TYPE): Likewise.
24329         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24330         (__SNSECONDS_T_TYPE): Likewise.
24331         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24332         (__SNSECONDS_T_TYPE): Likewise.
24333
24334 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24335
24336         * sysdeps/mach/hurd/bits/typesizes.h
24337         (__SYSCALL_SLONG_TYPE): New macro.
24338         (__SYSCALL_ULONG_TYPE): Likewise.
24339
24340 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24341
24342         * bits/types.h (__syscall_slong_t): New type.
24343         (__syscall_ulong_t): Likewise.
24344
24345         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
24346         (__SYSCALL_ULONG_TYPE): Likewise.
24347         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24348         (__SYSCALL_SLONG_TYPE): Likewise.
24349         (__SYSCALL_ULONG_TYPE): Likewise.
24350         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24351         (__SYSCALL_SLONG_TYPE): Likewise.
24352         (__SYSCALL_ULONG_TYPE): Likewise.
24353         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24354         (__SYSCALL_SLONG_TYPE): Likewise.
24355         (__SYSCALL_ULONG_TYPE): Likewise.
24356
24357 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24358
24359         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
24360         Add sigaltstack-offsets.sym.
24361         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
24362         <sigaltstack-offsets.h>.
24363         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
24364         longjmp_msg pointer.
24365         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
24366         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
24367         signal stack.
24368         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
24369
24370 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24371
24372         * elf/stackguard-macros.h: Remove file.
24373         * sysdeps/generic/stackguard-macros.h: New file.
24374         * sysdeps/i386/stackguard-macros.h: Likewise.
24375         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
24376         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
24377         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
24378         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
24379         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
24380         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
24381         * sysdeps/x86_64/stackguard-macros.h: Likewise.
24382         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
24383         <elf/stackguard-macros.h>.
24384
24385         [BZ #14109]
24386         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
24387         __aligned__ in attribute.
24388         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
24389         (gregset_t): Likewise.
24390
24391 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24392
24393         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
24394         * sysdeps/x86_64/64/Implies-after: Here.  New file.
24395         * sysdeps/x86_64/x32/Implies-after: New file.
24396
24397 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24398
24399         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
24400         and access return value for _dl_profile_fixup.  Use R10_LP to
24401         load frame size.
24402
24403 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24404
24405         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
24406
24407 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24408
24409         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
24410         * sysdeps/x86_64/x32/sysdep.h: New file.
24411
24412 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24413
24414         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
24415         * sysdeps/x86_64/setjmp.S: Likewise.
24416
24417 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24418
24419         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
24420         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
24421         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
24422         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
24423         remove unused global constant.
24424
24425 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
24426
24427         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
24428         include of <not-cancel.h>.
24429
24430 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24431
24432         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
24433
24434 2012-05-15  Jeff Law  <law@redhat.com>
24435             Andreas Jaeger  <aj@suse.de>
24436
24437         [BZ #13594]
24438         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
24439         out from...
24440         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
24441         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
24442         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
24443         code changing __hst_map_handle.map.
24444
24445 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24446
24447         * configure.in (sysnames): Look for Implies-before and Implies-after
24448         files.
24449         * configure: Regenerated.
24450
24451 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24452
24453         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
24454         8-byte data alignment with LP_SIZE alignment.
24455
24456 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24457
24458         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
24459         into R10_LP.
24460
24461 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24462
24463         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
24464
24465 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24466
24467         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
24468         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
24469         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
24470         Likewise.
24471         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
24472
24473 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24474
24475         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
24476         (stackinfo_sub_sp): Likewise.
24477
24478 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24479
24480         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
24481         RAX_LP.
24482
24483 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24484
24485         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
24486         into R*_LP.
24487
24488 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24489
24490         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
24491         sizes into R*_LP.
24492
24493 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24494
24495         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
24496
24497 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24498
24499         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
24500         into R11_LP and load __x86_64_shared_cache_size_half into
24501         R8_LP.
24502
24503 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24504
24505         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
24506         R8_LP.
24507
24508 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24509
24510         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
24511         logb for POWER7.
24512         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
24513         logbf for POWER7.
24514         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
24515         logbl for POWER7.
24516         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
24517         powerpc32/power7/fpu/s_logb.c via #include.
24518         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
24519         powerpc32/power7/fpu/s_logbf.c via #include.
24520         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
24521         powerpc32/power7/fpu/s_logbl.c via #include.
24522
24523 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24524
24525         * README.libm: Remove file.
24526
24527 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24528
24529         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
24530         count for x32.  Use R*_LP and omit operand-size suffix.
24531
24532 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24533
24534         * shlib-versions: Move x86_64-.*-linux.* entries to ...
24535         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
24536         * sysdeps/x86_64/x32/shlib-versions: New file.
24537
24538 2012-05-14  Roland McGrath  <roland@hack.frob.com>
24539
24540         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
24541         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
24542         Use _dl_fatal_printf instead.
24543
24544 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24545
24546         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
24547         set if not set by the user.  Do not allow for being unset.
24548         * sysdeps/unix/sysv/linux/configure: Regenerated.
24549
24550 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24551
24552         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
24553         the `q' suffix from lea and replace .quad with ASM_ADDR.
24554
24555 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24556
24557         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
24558         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
24559         instead of $17.
24560         (PTR_DEMANGLE): Likewise.
24561
24562 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24563
24564         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
24565         (LP_OP): Likewise.
24566         (ASM_ADDR): Likewise.
24567         (RAX_LP): Likewise.
24568         (RBP_LP): Likewise.
24569         (RBX_LP): Likewise.
24570         (RCX_LP): Likewise.
24571         (RDI_LP): Likewise.
24572         (RSI_LP): Likewise.
24573         (RSP_LP): Likewise.
24574         (R8_LP): Likewise.
24575         (R9_LP): Likewise.
24576         (R10_LP): Likewise.
24577         (R10_LP): Likewise.
24578         (R11_LP): Likewise.
24579         (R12_LP): Likewise.
24580         (R13_LP): Likewise.
24581         (R14_LP): Likewise.
24582         (R15_LP): Likewise.
24583
24584 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24585
24586         * sysdeps/x86_64/x32/dl-machine.h: New file.
24587
24588 2012-05-14  Andreas Jaeger  <aj@suse.de>
24589
24590         * manual/Makefile (subdir): Remove export of subdir.
24591         (all): Remove target.
24592         (.PHONY): Remove all from list.
24593         (mkinstalldirs): Remove.
24594         (.PHONY): Remove installdirs from list.
24595         ($(inst_infodir)/libc.info): Use make-target-directory.
24596         (installdirs): Remove.
24597         (subdir_%): Remove.
24598         (glibc-targets): Remove.
24599         (lib): Remove.
24600         (stubs): Remove.
24601         ($(objpfx)stubs ../po/manual.pot): Remove.
24602         ($(objpfx)stamp%): Remove.
24603         (make-target-directory): Remove.
24604         (subdir_install): Remove.
24605         (routines): Remove.
24606         (aux): Remove.
24607         (sources): Remove.
24608         (objects): Remove.
24609         (headers): Remove.
24610
24611         [BZ #13750]
24612         * manual/.gitignore: Remove, it's not needed anymore.
24613         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
24614         all files in it.
24615         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
24616         directory.
24617         (texis): Renamed to $(objpfx)texis.
24618         (texis-path): New, contains path to generated files.
24619         (chapters.%): Use texis-path for complete path, add extra argument
24620         libc-texinfo.sh.
24621         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
24622         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
24623         (summary,texi, stamp-summary): Use complete path of
24624         files. Generate files in build dir.
24625         (dir-add.texi): Build in build dir.
24626         (libm-err.texi,stamp-libm-err): Likewise.
24627         (version.texi, stamp-version): Likewise.
24628         (.%c.texi): Likewise.
24629         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
24630         (mostlyclean): Remove target.
24631         (realclean): Remove target.
24632         (generated): Add new variable with contents from mostlyclean and
24633         realclean, remove entries duplicated in common-mostlyclean, add
24634         stamp-libm-err and stamp-version.
24635         (generated-dirs): Add libc directory.
24636         ($(inst_infodir)/libc.info): Install files from build dir.
24637
24638         * manual/install.texi (Configuring and compiling): Adjust since
24639         the info files are not part of the tar ball anymore.
24640
24641 2012-05-14  Andreas Jaeger  <aj@suse.de>
24642
24643         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
24644         variable.
24645
24646 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24647
24648         [BZ #13717]
24649         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
24650         to 2.2.0 where earlier.
24651         * sysdeps/unix/sysv/linux/configure: Regenerated.
24652         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
24653         Remove conditional code.
24654         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
24655         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
24656         Remove conditional code.
24657         [!__NR_lchown]: Likewise.
24658         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24659         [__NR_lchown]: Likewise.
24660         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
24661         comment referencing __ASSUME_LCHOWN_SYSCALL.
24662         * sysdeps/unix/sysv/linux/i386/sigaction.c
24663         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24664         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24665         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
24666         Remove conditional code.
24667         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
24668         (__protocol_available): Remove #if 0 code.
24669         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
24670         conditional code.
24671         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
24672         * sysdeps/unix/sysv/linux/kernel-features.h
24673         (__ASSUME_GETCWD_SYSCALL): Don't define.
24674         (__ASSUME_REALTIME_SIGNALS): Likewise.
24675         (__ASSUME_PREAD_SYSCALL): Likewise.
24676         (__ASSUME_PWRITE_SYSCALL): Likewise.
24677         (__ASSUME_POLL_SYSCALL): Likewise.
24678         (__ASSUME_LCHOWN_SYSCALL): Likewise.
24679         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
24680         non-SPARC.
24681         (__ASSUME_SIOCGIFNAME): Don't define.
24682         (__ASSUME_MSG_NOSIGNAL): Likewise.
24683         (__ASSUME_SENDFILE): Define unconditionally.
24684         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
24685         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
24686         conditional code.
24687         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
24688         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
24689         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24690         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24691         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
24692         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24693         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
24695         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24696         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
24698         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24699         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
24701         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24702         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
24704         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24705         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
24707         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24708         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
24710         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24711         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
24713         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24714         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
24716         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24717         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24718         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
24719         Remove conditional code.
24720         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24721         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24722         Remove conditional code.
24723         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24724         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
24725         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
24726         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24727         Remove conditional code.
24728         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24729         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
24730         Remove conditional code.
24731         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24732         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
24733         Remove conditional code.
24734         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24735         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24736         Remove conditional code.
24737         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24738         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24739         Remove conditional code.
24740         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24741         * sysdeps/unix/sysv/linux/sh/pwrite64.c
24742         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24743         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24744         * sysdeps/unix/sysv/linux/sigaction.c
24745         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24746         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24747         * sysdeps/unix/sysv/linux/sigpending.c
24748         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24749         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24750         * sysdeps/unix/sysv/linux/sigprocmask.c
24751         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24752         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24753         * sysdeps/unix/sysv/linux/sigsuspend.c
24754         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24755         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24756         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
24757         (__libc_missing_rt_sigs): Remove.
24758         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
24759         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
24760         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
24761         Remove conditional code.
24762         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
24763         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
24764         return 1.
24765         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
24766         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
24767         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
24768         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
24769
24770 2012-05-14  Andreas Jaeger  <aj@suse.de>
24771
24772         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
24773         it's not used in glibc.
24774         (__coshm1): Likewise.
24775         (__acosh1p): Likewise.
24776         (__sgn): Likewise.
24777
24778         * manual/string.texi (Copying and Concatenation): Add missing
24779         variable in concat example.
24780         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
24781
24782 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24783
24784         [BZ #14103]
24785         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
24786         __builtin_clzl with __builtin_clzll.
24787
24788 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24789
24790         [BZ #14104]
24791         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
24792         libc_freeres_ptr.
24793
24794 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24795
24796         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
24797         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
24798         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
24799         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
24800
24801 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
24802
24803         * NEWS: Update ia64 info.
24804
24805 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
24806
24807         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
24808         used as bcopy.
24809
24810 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
24811
24812         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
24813         * sysdeps/unix/syscalls.list (dup3): Likewise.
24814         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
24815         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
24816
24817 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24818
24819         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
24820         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
24821
24822 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24823
24824         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
24825         thread pointer.
24826         (TLS_IE): Use mov/add instead of movq/addq to load thread
24827         pointer.
24828         (TLS_GD_PREFIX): New.
24829         (TLS_GD): Use it.
24830
24831 2012-05-11  David S. Miller  <davem@davemloft.net>
24832
24833         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
24834         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
24835         (_FPU_SETCW): Likewise.
24836
24837 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24838
24839         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
24840         is 32-byte aligned.
24841
24842 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
24843
24844         [BZ #11837]
24845         * iconvdata/gb18030.c: Update tables.
24846         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
24847         characters specially.
24848         (BODY for TO_LOOP): Add encoding of missing ranges.
24849
24850 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
24851
24852         [BZ #13673]
24853         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
24854         * sysdeps/mach/hurd/dup3.c: Likewise.
24855         * sysdeps/mach/hurd/readlinkat.c: Likewise.
24856         * sysdeps/powerpc/memmove.c:: Likewise.
24857
24858 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24859
24860         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
24861         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
24862
24863 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24864
24865         * elf/elf.h (R_X86_64_RELATIVE64): New.
24866         (R_X86_64_NUM): Updated.
24867         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
24868         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
24869         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
24870         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
24871         tst-quad1pie tst-quad2pie
24872         (modules-names): Add tst-quadmod1 tst-quadmod2.
24873         ($(objpfx)tst-quad1): New dependency.
24874         ($(objpfx)tst-quad2): Likewise.
24875         ($(objpfx)tst-quad1pie): Likewise.
24876         ($(objpfx)tst-quad2pie): Likewise.
24877         * sysdeps/x86_64/tst-quad1.c: New file.
24878         * sysdeps/x86_64/tst-quad1pie.c: New file.
24879         * sysdeps/x86_64/tst-quad2.c: Likewise.
24880         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
24881         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
24882         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
24883         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
24884         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
24885
24886 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24887
24888         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
24889         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
24890         * streams/stropts.h (t_scalar_t): Define type.
24891
24892         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
24893         (_PATH_PRESERVE): Set to "/var/lib".
24894         (_PATH_RWHODIR): Set to "/var/spool/rwho".
24895
24896         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
24897         instead of int.
24898
24899         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
24900         if __dir_mkfile succeeded.
24901
24902         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
24903         checking for _hurd_dtablesize.  Unlock it right after having
24904         finished _hurd_dtable allocation.
24905
24906 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24907
24908         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
24909         * sysdeps/mach/hurd/configure: Regenerated.
24910         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
24911         special-casing to...
24912         * sysdeps/gnu/configure.in: ... this new file.
24913         * sysdeps/unix/sysv/linux/configure: Regenerated.
24914         * sysdeps/gnu/configure: New generated file.
24915
24916         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
24917         for Linux: use nsec instead of usec, as well as:
24918         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
24919         members of type struct timespec.
24920         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
24921         New macros.
24922         (struct stat64): Likewise.
24923         (_STATBUF_ST_NSEC): New macro.
24924         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
24925
24926         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
24927         __strtoul_internal rather than strtoul.
24928
24929 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24930
24931         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
24932         and reject them.
24933
24934 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24935
24936         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
24937         which preserves existing values.
24938         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
24939
24940 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24941
24942         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
24943         TIMEOUT values.  Return EINVAL for NFDS values either negative or
24944         greater than FD_SETSIZE.
24945
24946 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24947
24948         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
24949         allocated, call __vm_protect to finish enabling the existing space, and
24950         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
24951         allocate the remainder.
24952
24953 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
24954
24955         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
24956         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
24957
24958 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24959
24960         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
24961         sysdeps/mach/hurd/readlink.c.
24962
24963         * posix/tst-sysconf.c (posix_options): Only use
24964         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
24965         _POSIX_SYNCHRONIZED_IO when they are defined
24966         * sysdeps/mach/hurd/bits/posix_opt.h:
24967         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
24968         (_XOPEN_REALTIME): Undefine macro.
24969         (_XOPEN_REALTIME_THREADS): Undefine macro.
24970         (_XOPEN_SHM): Undefine macro.
24971         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
24972         macro to -1.
24973         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
24974         macro to -1.
24975         (_POSIX_ASYNC_IO): Undefine macro.
24976         (_POSIX_PRIORITIZED_IO): Undefine macro.
24977         (_POSIX_SPIN_LOCKS): Define macro to -1.
24978
24979         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
24980         SA_NODEFER, SA_RESETHAND.
24981         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
24982         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
24983         F_DUPFD_CLOEXEC.
24984
24985 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24986
24987         * elf/Makefile (pldd-modules): Define unconditionally.
24988
24989 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24990
24991         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
24992
24993 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24994
24995         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
24996         Return ENOENT when name is empty.
24997         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
24998
24999 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25000
25001         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
25002
25003         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
25004
25005 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25006
25007         Fix mlock in all cases except non-readable pages.
25008         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
25009         instead of VM_PROT_ALL as parameter to __vm_wire function.
25010
25011         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
25012         (__mkdir): When path is `/', just fail with EEXIST.
25013         * sysdeps/mach/hurd/mkdirat.c: Likewise.
25014
25015 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25016
25017         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
25018         <sys/uio.h> (for writev).
25019         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
25020         and <sys/param.h> (for MIN).
25021
25022 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25023
25024         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
25025         REQUESTED_TIME.  Properly set the remaining time and return EINTR
25026         if interrupted.
25027
25028 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25029
25030         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
25031         Depend on against $(link-rpcuserlibs).
25032
25033 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25034
25035         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
25036         (__libc_stack_end): Do not use attribute_relro.
25037         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
25038         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
25039         to libthread-provided value.
25040         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
25041         attribute_relro.
25042
25043 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25044
25045         [BZ #3748]
25046         * bits/libc-lock.h (__libc_once_get): New macro.
25047         * sysdeps/mach/bits/libc-lock.h: Likewise.
25048         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
25049         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
25050         instead of using implementation details.
25051
25052         * libio/fileops.c: Unconditionally include <kernel-features.h>.
25053         * libio/freopen.c: Likewise.
25054         * libio/freopen64.c: Likewise.
25055         * misc/syslog.c: Likewise.
25056         * nscd/connections.c: Likewise.
25057         * nscd/netgroupcache.c: Likewise.
25058         * sysdeps/posix/getcwd.c: Likewise.
25059
25060 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25061
25062         * math/w_ilogbf.c: Add #include <limits.h>.
25063
25064 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25065
25066         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
25067         path instead of returning without unlocking.
25068
25069         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
25070         immediate-write ioctls.
25071         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
25072
25073 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25074
25075         * sysdeps/mach/hurd/i386/init-first.c (init): Use
25076         __builtin_frame_address instead of making assumptions about the
25077         location of the return address relative to DATA.  Force early load of
25078         the return address.
25079         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
25080         __builtin_frame_address.
25081
25082         dup3 for GNU Hurd.
25083         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
25084         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
25085         implement dup3 and do some further code clean-ups.
25086         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
25087         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
25088
25089 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25090
25091         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
25092
25093         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
25094         HURD_CRITICAL_END around holding _hurd_dtable_lock.
25095         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
25096         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
25097         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
25098         d->port.lock.
25099
25100         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
25101         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
25102         when handler == SIG_ERR, not when handler != SIG_ERR.
25103
25104 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25105
25106         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
25107         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
25108         definitions.
25109
25110         accept4 for GNU Hurd.
25111         * include/sys/socket.h (__libc_accept4): New prototype.
25112         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
25113         to implement __libc_accept4.
25114         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
25115         __libc_accept4.
25116         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
25117
25118         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
25119         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
25120         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
25121         signal-defines.sym.
25122
25123 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25124
25125         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
25126
25127 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25128
25129         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
25130         assertion on O_CLOEXEC flag.
25131         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
25132         * hurd/intern-fd.c: Likewise.
25133         * hurd/port2fd.c: Likewise.
25134
25135 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25136
25137         [BZ #3906]
25138         * bits/in.h (IPV6_PKTINFO): Define new macro.
25139         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
25140
25141 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25142
25143         [BZ #13954]
25144         [BZ #13955]
25145         [BZ #13956]
25146         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
25147         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
25148         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
25149         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
25150         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
25151         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
25152         * math/libm-test.inc (logb_test) : Additional logb tests.
25153
25154 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
25155             Andreas Jaeger  <aj@suse.de>
25156
25157         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
25158         * configure: Regenerated.
25159         * config.h.in (LINK_OBSOLETE_RPC): New macro.
25160         * config.make.in (link-obsolete-rpc): New substituted variable.
25161         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
25162         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
25163         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25164         (shared-only-routines): Don't set it under [link-obsolete-rpc],
25165         so that libc.a contains the symbols.
25166         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25167         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
25168         * sunrpc/auth_none.c: Likewise.
25169         * sunrpc/auth_unix.c: Likewise.
25170         * sunrpc/authdes_prot.c: Likewise.
25171         * sunrpc/authuxprot.c: Likewise.
25172         * sunrpc/clnt_gen.c: Likewise.
25173         * sunrpc/clnt_perr.c: Likewise.
25174         * sunrpc/clnt_raw.c: Likewise.
25175         * sunrpc/clnt_simp.c: Likewise.
25176         * sunrpc/clnt_tcp.c: Likewise.
25177         * sunrpc/clnt_udp.c: Likewise.
25178         * sunrpc/clnt_unix.c: Likewise.
25179         * sunrpc/des_crypt.c: Likewise.
25180         * sunrpc/des_soft.c: Likewise.
25181         * sunrpc/get_myaddr.c: Likewise.
25182         * sunrpc/key_call.c: Likewise.
25183         * sunrpc/key_prot.c: Likewise.
25184         * sunrpc/netname.c: Likewise.
25185         * sunrpc/pm_getmaps.c: Likewise.
25186         * sunrpc/pm_getport.c: Likewise.
25187         * sunrpc/pmap_clnt.c: Likewise.
25188         * sunrpc/pmap_prot.c: Likewise.
25189         * sunrpc/pmap_prot2.c: Likewise.
25190         * sunrpc/pmap_rmt.c: Likewise.
25191         * sunrpc/publickey.c: Likewise.
25192         * sunrpc/rpc_cmsg.c: Likewise.
25193         * sunrpc/rpc_common.c: Likewise.
25194         * sunrpc/rpc_dtable.c: Likewise.
25195         * sunrpc/rpc_prot.c: Likewise.
25196         * sunrpc/rpc_thread.c: Likewise.
25197         * sunrpc/rtime.c: Likewise.
25198         * sunrpc/svc.c: Likewise.
25199         * sunrpc/svc_auth.c: Likewise.
25200         * sunrpc/svc_raw.c: Likewise.
25201         * sunrpc/svc_run.c: Likewise.
25202         * sunrpc/svc_tcp.c: Likewise.
25203         * sunrpc/svc_udp.c: Likewise.
25204         * sunrpc/svc_unix.c: Likewise.
25205         * sunrpc/svcauth_des.c: Likewise.
25206         * sunrpc/xcrypt.c: Likewise.
25207         * sunrpc/xdr.c: Likewise.
25208         * sunrpc/xdr_array.c: Likewise.
25209         * sunrpc/xdr_float.c: Likewise.
25210         * sunrpc/xdr_intXX_t.c: Likewise.
25211         * sunrpc/xdr_mem.c: Likewise.
25212         * sunrpc/xdr_rec.c: Likewise.
25213         * sunrpc/xdr_ref.c: Likewise.
25214         * sunrpc/xdr_sizeof.c: Likewise.
25215         * sunrpc/xdr_stdio.c: Likewise.
25216
25217 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25218
25219         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
25220         change.  Update copyright years.
25221
25222 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25223
25224         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
25225
25226 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
25227             Joseph Myers  <joseph@codesourcery.com>
25228             Paul Pluzhnikov  <ppluzhnikov@google.com>
25229
25230         [BZ #14012]
25231         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
25232         requiring rpcgen.
25233         [cross-compiling] (extra-libs): Likewise.
25234         [cross-compiling] (extra-libs-others): Likewise.
25235         [cross-compiling] (librpcsvc-routines): Likewise.
25236         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
25237         [cross-compiling] (omit-deps): Likewise.
25238         (sunrpc-CPPFLAGS): New variable.
25239         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
25240         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
25241         (cross-rpcgen-objs): New variable.
25242         (extra-objs): Append $(cross-rpcgen-objs).
25243         ($(cross-rpcgen-objs)): New rule.
25244         ($(objpfx)cross-rpcgen): Likewise.
25245         (rpcgen-cmd): Define to use $(built-program-file).  Expand
25246         comment.
25247         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
25248         ($(objpfx)x%.stmp): Likewise.
25249         * sunrpc/proto.h [IS_IN_build] (_): Define.
25250         [IS_IN_build] (_libc_intl_domainname): Likewise.
25251
25252 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25253
25254         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
25255         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
25256         and R_X86_64_TPOFF64.
25257
25258 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25259
25260         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
25261         sysdeps/unix/sysv/syscalls.list.
25262         (stime): Likewise.
25263         (utime): Likewise.
25264         * sysdeps/unix/sysv/syscalls.list: Remove file.
25265
25266 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25267
25268         [BZ #3440]
25269         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
25270         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
25271         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
25272         (__LC_IDENTIFICATION): Make these macros useful in #if
25273         expressions, as required by C99.
25274
25275 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
25276
25277         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
25278         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
25279         after this.
25280
25281 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25282
25283         * stdlib/longlong.h: Updated from GCC.
25284
25285 2012-05-09  Andreas Jaeger  <aj@suse.de>
25286
25287         * nscd/nscd.c (run_modes): Make named enum, reorder so that
25288         default is first entry.
25289         (run_mode): Set type.
25290         (main): Remove informal message about syslog.
25291         (options): Fix typo.
25292
25293         [BZ #14053]
25294         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
25295         to asm.
25296         (lrint): Likewise.
25297         (llrintf): Likewise.
25298         (llrint): Likewise.
25299         (rint): Likewise.
25300         (rintf): Likewise.
25301         (nearbyint): Likewise.
25302         (nearbyintf): Likewise.
25303
25304 2012-05-09  Andreas Jaeger  <aj@suse.de>
25305             Pedro Alves  <palves@redhat.com>
25306
25307         * nscd/nscd.c (run_mode): Use enum.
25308         (main): Cleanup coding style issue.
25309
25310 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
25311             Andreas Jaeger  <aj@suse.de>
25312
25313         * nscd/nscd.c (go_background): Replaced with...
25314         (run_mode): ... this.
25315         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
25316         (options): Add -F --foreground.
25317         (main): Implement it.
25318         (parse_opt): Parse it.
25319
25320 2012-05-09  Andreas Jaeger  <aj@suse.de>
25321
25322         [BZ #14083]
25323         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
25324         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
25325         -Wconversion warning.
25326         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
25327         Likewise.
25328
25329 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
25330
25331         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
25332         == 0.
25333         (LC_ALL): Use macro-int-constant.
25334         (LC_COLLATE): Likewise.
25335         (LC_CTYPE): Likewise.
25336         (LC_MESSAGES): Likewise.
25337         (LC_MONETARY): Likewise.
25338         (LC_NUMERIC): Likewise.
25339         (LC_TIME): Likewise.
25340         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
25341         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25342         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25343         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
25344         Specify type.
25345         [C99-based standards] (float_t): Expect type.
25346         [C99-based standards] (double_t): Expect type.
25347         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
25348         type.
25349         [C99-based standards] (HUGE_VALL): Likewise.
25350         [C99-based standards] (INFINITY): Likewise.
25351         [C99-based standards] (NAN): Likewise.
25352         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
25353         [C99-based standards] (FP_NAN): Likewise.
25354         [C99-based standards] (FP_NORMAL): Likewise.
25355         [C99-based standards] (FP_SUBNORMAL): Likewise.
25356         [C99-based standards] (FP_ZERO): Likewise.
25357         [C99-based standards] (FP_FAST_FMA): Use
25358         optional-macro-int-constant.  Specify type.  Require == 1.
25359         [C99-based standards] (FP_FAST_FMAF): Likewise.
25360         [C99-based standards] (FP_FAST_FMAL): Likewise.
25361         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
25362         [C99-based standards] (FP_ILOGBNAN): Likewise.
25363         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
25364         Specify type.
25365         [C99-based standards] (MATH_ERREXCEPT): Likewise.
25366         [C99-based standards] (math_errhandling): Specify type.
25367         [ISO99 || ISO11] (signgam): Do not allow.
25368         [non-C99-based standards] (copysignf): Do not allow.
25369         [non-C99-based standards] (exp2f): Likewise.
25370         [non-C99-based standards] (log2f): Likewise.
25371         [non-C99-based standards] (modff): Allow.
25372         [non-C99-based standards] (erff): Do not allow.
25373         [non-C99-based standards] (erfcf): Likewise.
25374         [non-C99-based standards] (gammaf): Likewise.
25375         [non-C99-based standards] (hypotf): Likewise.
25376         [non-C99-based standards] (j0f): Likewise.
25377         [non-C99-based standards] (j1f): Likewise.
25378         [non-C99-based standards] (jnf): Likewise.
25379         [non-C99-based standards] (lgammaf): Likewise.
25380         [non-C99-based standards] (tgammaf): Likewise.
25381         [non-C99-based standards] (y0f): Likewise.
25382         [non-C99-based standards] (y1f): Likewise.
25383         [non-C99-based standards] (ynf): Likewise.
25384         [non-C99-based standards] (isnanf): Likewise.
25385         [non-C99-based standards] (acoshf): Likewise.
25386         [non-C99-based standards] (asinhf): Likewise.
25387         [non-C99-based standards] (atanhf): Likewise.
25388         [non-C99-based standards] (cbrtf): Likewise.
25389         [non-C99-based standards] (expm1f): Likewise.
25390         [non-C99-based standards] (ilogbf): Likewise.
25391         [non-C99-based standards] (log1pf): Likewise.
25392         [non-C99-based standards] (logbf): Likewise.
25393         [non-C99-based standards] (nextafterf): Likewise.
25394         [non-C99-based standards] (remainderf): Likewise.
25395         [non-C99-based standards] (rintf): Likewise.
25396         [non-C99-based standards] (scalbf): Likewise.
25397         [non-C99-based standards] (copysignl): Likewise.
25398         [non-C99-based standards] (exp2l): Likewise.
25399         [non-C99-based standards] (log2l): Likewise.
25400         [non-C99-based standards] (modfl): Allow.
25401         [non-C99-based standards] (erfl): Do not allow.
25402         [non-C99-based standards] (erfcl): Likewise.
25403         [non-C99-based standards] (gammal): Likewise.
25404         [non-C99-based standards] (hypotl): Likewise.
25405         [non-C99-based standards] (j0l): Likewise.
25406         [non-C99-based standards] (j1l): Likewise.
25407         [non-C99-based standards] (jnl): Likewise.
25408         [non-C99-based standards] (lgammal): Likewise.
25409         [non-C99-based standards] (tgammal): Likewise.
25410         [non-C99-based standards] (y0l): Likewise.
25411         [non-C99-based standards] (y1l): Likewise.
25412         [non-C99-based standards] (ynl): Likewise.
25413         [non-C99-based standards] (isnanl): Likewise.
25414         [non-C99-based standards] (acoshl): Likewise.
25415         [non-C99-based standards] (asinhl): Likewise.
25416         [non-C99-based standards] (atanhl): Likewise.
25417         [non-C99-based standards] (cbrtl): Likewise.
25418         [non-C99-based standards] (expm1l): Likewise.
25419         [non-C99-based standards] (ilogbl): Likewise.
25420         [non-C99-based standards] (log1pl): Likewise.
25421         [non-C99-based standards] (logbl): Likewise.
25422         [non-C99-based standards] (nextafterl): Likewise.
25423         [non-C99-based standards] (remainderl): Likewise.
25424         [non-C99-based standards] (rintl): Likewise.
25425         [non-C99-based standards] (scalbl): Likewise.
25426         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25427         [non-C99-based standards] (FP_*): Do not allow.
25428         [C99-based standards] (FP_*): Change to
25429         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25430         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25431         allow.
25432         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
25433         (SIG_ERR): Likewise.
25434         [X/Open-based standards] (SIG_HOLD): Likewise.
25435         (SIG_IGN): Likewise.
25436         (SIGABRT): Use macro-int-constant.  Specify type.  Require
25437         positive value.
25438         (SIGFPE): Likewise.
25439         (SIGILL): Likewise.
25440         (SIGINT): Likewise.
25441         (SIGSEGV): Likewise.
25442         (SIGTER): Likewise.
25443         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
25444         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
25445         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
25446         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
25447         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
25448         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
25449         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
25450         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
25451         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
25452         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
25453         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
25454         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
25455         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
25456         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
25457         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
25458         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
25459         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
25460         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
25461         [X/Open-based standards] (SIGTRAP): Likewise.
25462         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
25463         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
25464         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
25465         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
25466         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25467         allow.
25468
25469 2012-05-08  Ian Wienand  <ianw@vmware.com>
25470
25471         [BZ #14080]
25472         * time/tzset.c (__tzset_parse_tz): Update default rules for
25473         daylight time changes in the Energy Policy Act of 2005.
25474
25475 2012-05-09  Andreas Jaeger  <aj@suse.de>
25476
25477         [BZ #13983]
25478         * elf/ldconfig.c (parse_conf): Change string to make clear that
25479         ldconfig only issued a warning if ld.so.conf does not exist.
25480
25481 2012-05-08  David S. Miller  <davem@davemloft.net>
25482
25483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
25484         movxtod instead of popping the value on the stack.
25485
25486         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25487
25488 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
25489
25490         * config.h.in: Add HAVE_ARM_PCS_VFP.
25491
25492 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
25493
25494         [BZ #13979]
25495         * include/features.h: Warn if user requests __FORTIFY_SOURCE
25496         checking but the checks are disabled for any reason.
25497
25498 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
25499
25500         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
25501         and ELF64_R_TYPE with ELFW(R_TYPE).
25502
25503 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
25504
25505         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
25506         (ulimit): Likewise.
25507
25508         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
25509         (settimeofday): Likewise.
25510
25511 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
25512
25513         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
25514         a struct th_u2 inside the union, and move tu_block/tu_code into
25515         a new th_u3 union of tu_block/tu_code inside of that.  Move
25516         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
25517         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
25518         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
25519         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
25520         (th_stuff): Change to th_u1.tu_stuff.
25521         (th_data): Define.
25522         (th_msg): Change to th_u1.th_u2.tu_data.
25523
25524 2012-05-07  David S. Miller  <davem@davemloft.net>
25525
25526         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25527
25528         [BZ #14074]
25529         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
25530         (SETUP_PIC_REG): Use it.
25531         (SETUP_PIC_REG_LEAF): Use it.
25532
25533 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
25534
25535         [BZ #13885]
25536         [BZ #13923]
25537         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25538         USE_AS_EXPM1L.
25539         (EXPL_FINITE): Likewise.
25540         (FLDLOG): Likewise.
25541         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25542         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25543         e_expl.S.
25544         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25545         USE_AS_EXPM1L.
25546         (EXPL_FINITE): Likewise.
25547         (FLDLOG): Likewise.
25548         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25549         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25550         e_expl.S.
25551         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
25552         test of -max_value argument for long double.
25553         * sysdeps/i386/fpu/libm-test-ulps: Update.
25554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25555
25556 2012-05-06  David S. Miller  <davem@davemloft.net>
25557
25558         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
25559         quad soft-float symbols whose references which are compiler
25560         generated.
25561         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25562
25563 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
25564
25565         [BZ #13884]
25566         [BZ #13914]
25567         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25568         USE_AS_EXP10L.
25569         (EXPL_FINITE): Likewise.
25570         (FLDLOG): Likewise.
25571         (c0): Likewise.
25572         (c1): Likewise.
25573         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25574         Adjust comments for base varying.
25575         (__expl_finite): Change alias to EXPL_FINITE.
25576         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
25577         e_expl.S.
25578         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
25579         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
25580         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
25581         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
25582         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25583         USE_AS_EXP10L.
25584         (EXPL_FINITE): Likewise.
25585         (FLDLOG): Likewise.
25586         (c0): Likewise.
25587         (c1): Likewise.
25588         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25589         Adjust comments for base varying.
25590         (__expl_finite): Change alias to EXPL_FINITE.
25591         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
25592         tests for bugs.
25593         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25594
25595         [BZ #14064]
25596         * math/libm-test.inc (check_float_internal): Correct ulp
25597         calculation for subnormal expected results.
25598
25599 2012-05-06  Andreas Jaeger  <aj@suse.de>
25600
25601         * Makeconfig (+math-flags): New, set to -frounding-math.
25602         (+cflags): Add +math-flags so that all of glibc gets compiled with
25603         it.
25604
25605         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
25606
25607 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
25608
25609         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
25610         Disable one test.
25611
25612         [BZ #13787]
25613         [BZ #13922]
25614         [BZ #14036]
25615         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
25616         (__ieee754_expl): Allow for and saturate large arguments.
25617         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
25618         (u_threshold): Likewise.
25619         (__exp): Call __ieee754_exp before checking for overflow and
25620         underflow.
25621         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
25622         (u_threshold): Likewise.
25623         (__expf): Call __ieee754_expf before checking for overflow and
25624         underflow.
25625         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
25626         (u_threshold): Likewise.
25627         (__expl): Call __ieee754_expl before checking for overflow and
25628         underflow.
25629         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
25630         (__ieee754_expl): Allow for and saturate large arguments.
25631         * math/libm-test.inc (exp_test): Add another test.  Do not allow
25632         missing overflow exception on overflow.
25633         (expm1_test): Do not allow missing overflow exception on overflow.
25634
25635         * sysdeps/i386/fpu/e_expl.c: Move to ...
25636         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
25637         rather than using inline asm.
25638         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
25639         * sysdeps/x86_64/fpu/e_expl.S: Copy from
25640         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
25641
25642         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
25643         (nice): Likewise.
25644         (poll): Likewise.
25645         (signal): Likewise.
25646         (time): Likewise.
25647         (times): Likewise.
25648
25649 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25650
25651         * sysdeps/unix/syscalls.list (adjtime): Add entry from
25652         sysdeps/unix/common/syscalls.list.
25653         (fchmod): Likewise.
25654         (fchown): Likewise.
25655         (ftruncate): Likewise.
25656         (getrusage): Likewise.
25657         (gettimeofday): Likewise.
25658         (setpgid): Likewise.
25659         (setregid): Likewise.
25660         (setreuid): Likewise.
25661         (sigaction): Likewise.
25662         (truncate): Likewise.
25663         (vhangup): Likewise.
25664         * sysdeps/unix/common/syscalls.list: Remove file.
25665         * sysdeps/unix/bsd/Implies: Don't include unix/common.
25666         * sysdeps/unix/sysv/linux/Implies: Likewise.
25667
25668 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
25669
25670         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
25671         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
25672         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
25673         Moved to ...
25674         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
25675         Here.
25676         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
25677         to ...
25678         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
25679         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
25680         to ...
25681         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
25682         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
25683         to ...
25684         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
25685         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
25686         to ...
25687         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
25688         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
25689         to ...
25690         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
25691         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
25692         to ...
25693         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
25694         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
25695         to ...
25696         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
25697         Here.
25698         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
25699         to ...
25700         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
25701         Here.
25702         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
25703         to ...
25704         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
25705         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
25706         Moved to ...
25707         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
25708         Here.
25709         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
25710         to ...
25711         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
25712
25713 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25714
25715         * sysdeps/unix/common/bits/dirent.h: Remove file.
25716         * sysdeps/unix/common/bits/fcntl.h: Likewise.
25717
25718         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
25719         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
25720         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
25721         * sysdeps/unix/bsd/isatty.c: Likewise.
25722         * sysdeps/unix/bsd/tcdrain.c: Likewise.
25723         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
25724         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
25725
25726 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25727
25728         [BZ #13563]
25729         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
25730         long double comparison inaccuracies.
25731         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
25732         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25733
25734 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
25735
25736         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
25737         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
25738
25739 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25740
25741         [BZ #14049]
25742         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
25743         nonzero digits before rounding a hex value.
25744         * stdlib/tst-strtod.c (tests): Add another test.
25745
25746 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25747
25748         * sysdeps/s390/fpu/libm-test-ulps: Update.
25749
25750 2012-05-03  Andreas Jaeger  <aj@suse.de>
25751
25752         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
25753         does not get optimized out.
25754         (malloc_opt_barrier): New.
25755
25756 2012-05-03  Andreas Jaeger  <aj@suse.de>
25757             Roland McGrath  <roland@hack.frob.com>
25758
25759         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
25760         intermediate file deletion.
25761         (generated): Add .symlist files.
25762
25763 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
25764
25765         [BZ #13775]
25766         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
25767         Redirect under this condition.
25768         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25769         [__USE_GNU] (__dprintf_chk): Not under this condition.
25770         [__USE_GNU] (__vdprintf_chk): Likewise.
25771         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
25772         under this condition.
25773         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25774         [__USE_XOPEN2K8] (dprintf): Define under this condition.
25775         [__USE_XOPEN2K8] (vdprintf): Likewise.
25776         [__USE_GNU] (__dprintf_chk): Not under this condition.
25777         [__USE_GNU] (__vdprintf_chk): Likewise.
25778         [__USE_GNU] (dprintf): Likewise.
25779         [__USE_GNU] (vdprintf): Likewise.
25780
25781 2012-05-03  Roland McGrath  <roland@hack.frob.com>
25782
25783         * elf/Makefile (common-generated): Set this instead of generated for
25784         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
25785         $(all-built-dso)-derived lists.
25786
25787 2012-05-03  Andreas Jaeger  <aj@suse.de>
25788
25789         * sysdeps/i386/fpu/libm-test-ulps: Update.
25790
25791         * FAQ: Removed.
25792         * FAQ.in: Likewise.
25793         * scripts/gen-FAQ.pl: Likewise.
25794         * manual/install.texi (Installation): Point to online location of
25795         FAQ.
25796         * Makefile (files-for-dist): Remove FAQ.
25797         (FAQ): Remove.
25798
25799 2012-05-02  Allan McRae  <allan@archlinux.org>
25800
25801         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
25802         (LDFLAGS-reldepmod5.so): Likewise.
25803         (LDFLAGS-reldep6mod1.so): Likewise.
25804         (LDFLAGS-reldep6mod4.so): Likewise.
25805         (LDFLAGS-reldep8mod3.so): Likewise.
25806         (LDFLAGS-unload4mod1.so): Likewise.
25807         (LDFLAGS-unload4mod2.so): Likewise.
25808         (LDFLAGS-tst-initorder): Likewise.
25809         (LDFLAGS-tst-initordera2.so): Likewise.
25810         (LDFLAGS-tst-initordera3.so): Likewise.
25811         (LDFLAGS-tst-initordera4.so): Likewise.
25812         (LDFLAGS-tst-initorderb2.so): Likewise.
25813         (LDFLAGS-noload): Likewise.
25814         (LDFLAGS-next): Likewise.
25815         (LDFLAGS-order2mod1.so): Likewise.
25816         (LDFLAGS-order2mod2.so): Likewise.
25817         (LDFLAGS-tst-initorder2): Likewise.
25818         (LDFLAGS-tst-initorder2a.so): Likewise.
25819         (LDFLAGS-tst-initorder2b.so): Likewise.
25820         (LDFLAGS-tst-initorder2c.so): Likewise.
25821         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
25822
25823 2012-05-02  David S. Miller  <davem@davemloft.net>
25824
25825         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25826
25827 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
25828
25829         [BZ #14055]
25830         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
25831
25832 2012-05-02  Andreas Jaeger  <aj@suse.de>
25833
25834         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
25835         since we manipulate rounding mode.
25836         (CPPFLAGS-test-idouble.c): Likewise.
25837         (CPPFLAGS-test-ifloat.c): Likewise.
25838         (CFLAGS-test-ldouble.c): Likewise.
25839         (CFLAGS-test-double.c): Likewise.
25840         (CFLAGS-test-float.c): Likewise.
25841         (CFLAGS-test-misc.c): Likewise.
25842         (CFLAGS-test-test-fenv.c): Likewise.
25843
25844 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25845
25846         [BZ #2550]
25847         [BZ #2570]
25848         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
25849         comparisons to determine direction to adjust input.
25850
25851 2012-05-01  Roland McGrath  <roland@hack.frob.com>
25852
25853         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
25854         output to the target.
25855
25856         * scripts/localplt.awk: New file.
25857         * elf/Makefile ($(objpfx)check-localplt): Target removed.
25858         (check-localplt-CFLAGS): Variable removed.
25859         ($(all-built-dso:=.jmprel)): New static pattern rule.
25860         (generated): Add those targets.
25861         (localplt-built-dso): New variable.
25862         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
25863
25864         * elf/check-localplt.c: File removed.
25865
25866         * scripts/check-execstack.awk: New file.
25867         * elf/Makefile ($(objpfx)check-execstack): Target removed.
25868         (check-execstack-CFLAGS): Variable removed.
25869         ($(objpfx)check-execstack.h): Target removed.
25870         ($(objpfx)execstack-default): New target.
25871         (generated): Add that instead of check-execstack.h.
25872         ($(all-built-dso:=.phdr)): New static pattern rule.
25873         (generated): Add those targets.
25874         * elf/check-execstack.c: File removed.
25875
25876         * scripts/check-textrel.awk: New file.
25877         * elf/Makefile ($(objpfx)check-textrel): Target removed.
25878         (check-textrel-CFLAGS): Variable removed.
25879         (all-built-dso): Use := to define.o
25880         ($(all-built-dso:=.dyn)): New static pattern rule.
25881         (generated): Add those targets.
25882         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
25883         * config.make.in (READELF): New substituted variable.
25884         * elf/check-textrel.c: File removed.
25885
25886 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25887
25888         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25889         allow.
25890         * conform/data/ctype.h-data [C99-based standards] (isblank):
25891         Expect function.
25892         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
25893         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
25894         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25895         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
25896         Specify type.  Require positive value.
25897         (EILSEQ): Likewise.
25898         (ERANGE): Likewise.
25899         [ISO || POSIX] (EILSEQ): Do not expect.
25900         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
25901         Specify type.  Require positive value.
25902         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
25903         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
25904         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
25905         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
25906         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
25907         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
25908         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
25909         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
25910         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
25911         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
25912         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
25913         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
25914         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
25915         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
25916         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
25917         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
25918         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
25919         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
25920         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
25921         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
25922         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
25923         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
25924         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
25925         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
25926         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
25927         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
25928         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
25929         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
25930         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
25931         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
25932         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
25933         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
25934         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
25935         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
25936         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
25937         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
25938         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
25939         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
25940         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
25941         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
25942         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
25943         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
25944         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
25945         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
25946         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
25947         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
25948         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
25949         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
25950         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
25951         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
25952         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
25953         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
25954         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
25955         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
25956         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
25957         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
25958         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
25959         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
25960         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
25961         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
25962         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
25963         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
25964         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
25965         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
25966         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
25967         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
25968         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
25969         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
25970         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
25971         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
25972         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
25973         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
25974         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
25975         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
25976         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
25977         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
25978         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
25979         Require >= 2.
25980         (FLT_ROUNDS): Expect as macro, not constant.
25981         (FLT_MANT_DIG): Use macro-int-constant.
25982         (DBL_MANT_DIG): Likewise.
25983         (LDBL_MANT_DIG): Likewise.
25984         (FLT_DIG): Likewise.
25985         (DBL_DIG): Likewise.
25986         (LDBL_DIG): Likewise.
25987         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
25988         (DBL_MIN_EXP): Likewise.
25989         (LDBL_MIN_EXP): Likewise.
25990         (FLT_MAX_EXP): Use macro-int-constant.
25991         (DBL_MAX_EXP): Likewise.
25992         (LDBL_MAX_EXP): Likewise.
25993         (FLT_MAX_10_EXP): Likewise.
25994         (DBL_MAX_10_EXP): Likewise.
25995         (LDBL_MAX_10_EXP): Likewise.
25996         (FLT_MAX): Use macro-constant.
25997         (DBL_MAX): Likewise.
25998         (LDBL_MAX): Likewise.
25999         (FLT_EPSILON): Use macro-constant.  Give upper bound.
26000         (DBL_EPSILON): Likewise.
26001         (LDBL_EPSILON): Likewise.
26002         (FLT_MIN): Likewise.
26003         (DBL_MIN): Likewise.
26004         (LDBL_MIN): Likewise.
26005         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
26006         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
26007         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
26008         [ISO11] (FLT_HAS_SUBNORM): Likewise.
26009         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
26010         [ISO11] (DBL_DECIMAL_DIG): Likewise.
26011         [ISO11] (FLT_DECIMAL_DIG): Likewise.
26012         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
26013         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
26014         [ISO11] (FLT_TRUE_MIN): Likewise.
26015         [ISO11] (LDBL_TRUE_MIN): Likewise.
26016         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26017         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
26018         (SCHAR_MIN): Use macro-int-constant.  Specify type.
26019         (SCHAR_MAX): Likewise.
26020         (UCHAR_MAX): Likewise.
26021         (CHAR_MIN): Likewise.
26022         (CHAR_MAX): Likewise.
26023         (MB_LEN_MAX): Use macro-int-constant.
26024         (SHRT_MIN): Use macro-int-constant.  Specify type.
26025         (SHRT_MAX): Likewise.
26026         (USHRT_MAX): Likewise.
26027         (INT_MAX): Likewise.
26028         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
26029         bound negative.
26030         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26031         bound with "U".
26032         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26033         bound with "L".
26034         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
26035         bound negative.  Suffix upper bound with "L".
26036         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26037         bound with "UL".
26038         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
26039         Specify type.
26040         [C99-based standards] (LLONG_MAX): Likewise.
26041         [C99-based standards] (ULLONG_MAX): Likewise.
26042         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
26043         == 0.
26044         [ISO11] (max_align_t): Require type.
26045         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26046
26047         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
26048         from $CFLAGS, without defining away __attribute__ calls.
26049         (checknamespace): Use $CFLAGS_namespace.
26050
26051         * conform/conformtest.pl (@keywords): Only include C99 keywords
26052         for standards based on C99 or C11.
26053
26054         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
26055         Disable tests.
26056         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
26057         UNIX98]: Likewise.
26058
26059         * conform/conformtest.pl: Handle "macro-int-constant" and test for
26060         usability of symbols in #if.
26061
26062         * conform/conformtest.pl: If macro or constant types start
26063         "promoted:", expect the symbol to be of the following type
26064         promoted by the integer promotions.
26065
26066         * conform/conformtest.pl: Parse all "constant" and "macro" lines
26067         in one place.  Also handle "macro-constant".
26068
26069         * conform/conformtest.pl: Only accept expected macro values with
26070         "==".  Parse all "macro" lines in one place.
26071         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
26072
26073         * conform/conformtest.pl: Handle braced types on "constant" lines
26074         instead of handling "typed-constant".
26075         * conform/data/signal.h-data: Use "constant" instead of
26076         "typed-constant".
26077
26078         * conform/conformtest.pl: Handle "optional-" at start of lines in
26079         one place rather than duplicating several cases.  Handle each
26080         format of "macro" line with initial "optional-".
26081
26082         * conform/conformtest.pl: Only accept expected constant or
26083         optional-constant values with "==".  Parse all "constant" lines in
26084         one place.  Parse all "optional-constant" lines in one place.
26085         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
26086         * conform/data/fmtmsg.h-data: Likewise.
26087         * conform/data/netinet/in.h-data: Likewise.
26088         * conform/data/tar.h-data: Likewise.
26089         * conform/data/limits.h-data: Use "==" form on "constant" and
26090         "optional-constant" lines.
26091
26092         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
26093         Use -std=c99 for XOPEN2K.
26094         (@knownproblems): Remove.
26095         (newtoken): Don't check %isknown.
26096
26097         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
26098         Do not expect macro.
26099         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
26100         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
26101         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
26102         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
26103         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
26104         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
26105         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
26106         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
26107         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
26108         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
26109         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
26110         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
26111         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
26112         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
26113         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
26114         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
26115         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
26116         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
26117         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
26118         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
26119         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
26120         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
26121         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
26122         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
26123         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
26124         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
26125         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
26126         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
26127         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
26128         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
26129         [XPG3] (acosh): Likewise.
26130         [XPG3] (asinh): Likewise.
26131         [XPG3] (atanh): Likewise.
26132         [XPG3] (cbrt): Likewise.
26133         [XPG3] (expm1): Likewise.
26134         [XPG3] (ilogb): Likewise.
26135         [XPG3] (log1p): Likewise.
26136         [XPG3] (logb): Likewise.
26137         [XPG3] (nextafter): Likewise.
26138         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
26139         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
26140         [XPG3] (remainder): Likewise.
26141         [XPG3] (rint): Likewise.
26142         [XPG3 || XPG4 || UNIX98] (round): Likewise.
26143         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
26144         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
26145         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
26146         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
26147         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
26148         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
26149         [UNIX98 || XOPEN2K] (scalb): Expect.
26150         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
26151         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
26152         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
26153         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
26154         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
26155         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
26156         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
26157         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
26158         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
26159         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
26160         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
26161         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
26162         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
26163         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
26164         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
26165         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
26166         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
26167         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
26168         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
26169         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
26170         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
26171         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
26172         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
26173         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
26174         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
26175         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
26176         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
26177         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
26178         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
26179         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
26180         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
26181         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
26182         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
26183         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
26184         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
26185         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
26186         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
26187         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
26188         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
26189         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
26190         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
26191         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
26192         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
26193         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
26194         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
26195         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
26196         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
26197         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
26198         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
26199         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
26200         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
26201         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
26202         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
26203         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
26204         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
26205         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
26206         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
26207         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
26208         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
26209         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
26210         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
26211         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
26212         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
26213         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
26214         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
26215         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
26216         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
26217         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
26218         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
26219         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
26220         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
26221         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
26222         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
26223         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
26224         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
26225         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
26226         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
26227         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
26228         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
26229         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
26230         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
26231         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
26232         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
26233         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
26234         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
26235         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
26236         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
26237         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
26238         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
26239         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
26240         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
26241         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
26242         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
26243         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
26244         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
26245         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
26246         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
26247         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
26248         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
26249         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
26250         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
26251         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
26252         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
26253         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
26254         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
26255         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
26256         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
26257         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
26258         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
26259         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
26260         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
26261         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
26262         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
26263         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
26264         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
26265         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
26266         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
26267         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
26268         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
26269         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
26270         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
26271         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
26272         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
26273         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
26274         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
26275         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
26276         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
26277         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
26278         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
26279         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
26280         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
26281         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
26282         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
26283         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
26284         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
26285         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
26286         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
26287
26288         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
26289         _XOPEN_SOURCE_EXTENDED for XPG4.
26290
26291         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
26292
26293         * Makeconfig (localtime): Remove variable.
26294         (inst_localtime-file): Likewise.
26295
26296 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26297
26298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
26299         Update.
26300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26301         Update.
26302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
26303         Update.
26304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
26305         Update.
26306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
26307         Update.
26308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
26309         Update.
26310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26311         Update.
26312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
26313         Update.
26314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26315         Update.
26316
26317 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
26318
26319         [BZ #2550]
26320         [BZ #2570]
26321         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
26322         comparisons to determine direction to adjust input.
26323         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
26324         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
26325         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
26326         Likewise.
26327         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
26328         Likewise.
26329         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
26330         Likewise.
26331         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
26332         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
26333         Likewise.
26334         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
26335         Likewise.
26336         * math/libm-test.inc (nexttoward_test): Add more tests.
26337
26338 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26339
26340         [BZ #14040]
26341         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
26342         in version GLIBC_2.1, not GLIBC_2.0.
26343         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
26344         Likewise.
26345
26346 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
26347
26348         [BZ #13942]
26349         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
26350         (1 - x) * (1 + x).
26351         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26352         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
26353         * math/libm-test.inc (acos_test): Add more tests.
26354         (asin_test): Likewise.
26355         * sysdeps/i386/fpu/libm-test-ulps: Update.
26356         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26357
26358         [BZ #14034]
26359         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
26360         of square root.
26361         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
26362         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26363         * math/libm-test.inc (acos_test_tonearest): New function.
26364         (acos_test_towardzero): Likewise.
26365         (acos_test_downward): Likewise.
26366         (acos_test_upward): Likewise.
26367         (asin_test_tonearest): Likewise.
26368         (asin_test_towardzero): Likewise.
26369         (asin_test_downward): Likewise.
26370         (asin_test_upward): Likewise.
26371         (main): Call the new functions.
26372         * sysdeps/i386/fpu/libm-test-ulps: Update.
26373         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26374
26375         [BZ #13884]
26376         [BZ #13924]
26377         * math/e_exp10.c: Include <float.h>.
26378         (__ieee754_exp10): Handle underflow here rather than multiplying
26379         large negative argument by M_LN10.
26380         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
26381         of __ieee754_expf.
26382         * math/e_exp10l.c: Include <float.h>.
26383         (__ieee754_exp10l): Handle underflow here rather than multiplying
26384         large negative argument by M_LN10l.
26385         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
26386         spurious overflow exception on underflow.
26387
26388 2012-04-29  Marek Polacek  <polacek@redhat.com>
26389
26390         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
26391         (__fortify_function): New macro.
26392         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
26393         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
26394         __extern_always_inline.
26395         * libio/bits/stdio2.h: Likewise.
26396         * libio/bits/stdio.h: Likewise.
26397         * string/string.h: Likewise.
26398         * string/bits/string3.h: Likewise.
26399         * include/stdio.h: Likewise.
26400         * stdlib/bits/stdlib.h: Likewise.
26401         * stdlib/stdlib.h: Likewise.
26402         * rt/bits/mqueue2.h: Likewise.
26403         * rt/mqueue.h: Likewise.
26404         * posix/bits/unistd.h: Likewise.
26405         * posix/unistd.h: Likewise.
26406         * io/bits/poll2.h: Likewise.
26407         * io/bits/fcntl2.h: Likewise.
26408         * io/fcntl.h: Likewise.
26409         * io/sys/poll.h: Likewise.
26410         * misc/bits/syslog.h: Likewise.
26411         * misc/bits/syslog-ldbl.h: Likewise.
26412         * misc/sys/syslog.h: Likewise.
26413         * socket/bits/socket2.h: Likewise.
26414         * socket/sys/socket.h: Likewise.
26415         * debug/tst-chk1.c: Likewise.
26416         * wcsmbs/bits/wchar2.h: Likewise.
26417         * wcsmbs/bits/wchar-ldbl.h: Likewise.
26418         * wcsmbs/wchar.h: Likewise.
26419
26420 2012-04-29  Andreas Jaeger  <aj@suse.de>
26421
26422         * Makerules (tests): Remove enable-check-abi protection.
26423         (check-abi-warn): Remove.
26424         (check-abi-%): Remove check-abi-warn usage.
26425
26426         * configure.in: Remove check-abi configure option.
26427         * configure: Regenerated.
26428         * config.make.in (enable-check-abi): Remove.
26429
26430 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
26431
26432         [BZ #14033]
26433         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
26434         double functions to double *_finite functions.
26435
26436         [BZ #13941]
26437         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
26438         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
26439         LDBL_MIN_EXP.
26440         * stdio-common/Makefile (tests): Add tst-sprintf3.
26441         * stdio-common/tst-sprintf3.c: New file.
26442
26443         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
26444         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
26445
26446 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26447
26448         * conform/conformtest.pl: Remove duplicate typed-constant
26449         handling.
26450
26451 2012-04-28  David S. Miller  <davem@davemloft.net>
26452
26453         * Makerules (%.abilist): Add vpath on sysdep_dirs.
26454         (check-abi-%): Remove AWK script prerequisite and explicit
26455         abilist directory.
26456         (check-abi): Rewrite to just diff the symlist with the abilist.
26457         (config-tls, config-abi-config): Delete, no longer used.
26458         (update-abi-%): Remove AWK script and explicit abilist directory.
26459         (update-abi): Rewrite to simply compare and conditionally copy the
26460         symlist and the sysdep abilist file.  Remove update-abi-config
26461         checks.
26462         * abilist/ld.abilist: Remove.
26463         * abilist/libBrokenLocale.abilist: Remove.
26464         * abilist/libanl.abilist: Remove.
26465         * abilist/libcrypt.abilist: Remove.
26466         * abilist/libdl.abilist: Remove.
26467         * abilist/librt.abilist: Remove.
26468         * abilist/libthread_db.abilist: Remove.
26469         * abilist/libutil.abilist: Remove.
26470         * scripts/extract-abilist.awk: Remove.
26471         * scripts/merge-abilist.awk: Remove.
26472         * sysdeps/generic/libcidn.abilist: New file.
26473         * sysdeps/generic/libnss_compat.abilist: New file.
26474         * sysdeps/generic/libnss_db.abilist: New file.
26475         * sysdeps/generic/libnss_dns.abilist: New file.
26476         * sysdeps/generic/libnss_files.abilist: New file.
26477         * sysdeps/generic/libnss_hesiod.abilist: New file.
26478         * sysdeps/generic/libnss_nis.abilist: New file.
26479         * sysdeps/generic/libnss_nisplus.abilist: New file.
26480         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
26481         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
26482         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
26483         file.
26484         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
26485         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
26486         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
26487         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
26488         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
26489         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
26490         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
26491         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
26492         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
26493         file.
26494         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
26495         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
26496         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
26497         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
26498         file.
26499         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
26500         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
26501         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
26502         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
26503         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
26504         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
26505         file.
26506         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
26507         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
26508         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
26509         file.
26510         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
26511         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
26512         New file.
26513         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
26514         New file.
26515         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
26516         New file.
26517         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
26518         New file.
26519         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
26520         New file.
26521         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
26522         New file.
26523         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
26524         New file.
26525         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
26526         New file.
26527         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
26528         New file.
26529         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
26530         New file.
26531         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
26532         New file.
26533         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
26534         New file.
26535         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
26536         New file.
26537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
26538         file.
26539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
26540         New file.
26541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
26542         New file.
26543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
26544         file.
26545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
26546         New file.
26547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
26548         New file.
26549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
26550         file.
26551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
26552         New file.
26553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26554         New file.
26555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
26556         New file.
26557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
26558         New file.
26559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
26560         New file.
26561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
26562         New file.
26563         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
26564         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
26565         file.
26566         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
26567         New file.
26568         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
26569         file.
26570         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
26571         file.
26572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
26573         file.
26574         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
26575         file.
26576         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
26577         file.
26578         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
26579         New file.
26580         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
26581         file.
26582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
26583         file.
26584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
26585         New file.
26586         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
26587         file.
26588         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
26589         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
26590         file.
26591         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
26592         New file.
26593         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
26594         file.
26595         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
26596         file.
26597         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
26598         file.
26599         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
26600         file.
26601         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
26602         file.
26603         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
26604         New file.
26605         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
26606         file.
26607         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
26608         file.
26609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
26610         New file.
26611         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
26612         file.
26613         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
26614         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
26615         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
26616         file.
26617         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
26618         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
26619         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
26620         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
26621         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
26622         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
26623         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
26624         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
26625         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
26626         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
26627         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
26628         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
26629         file.
26630         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
26631         New file.
26632         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
26633         file.
26634         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
26635         file.
26636         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
26637         file.
26638         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
26639         file.
26640         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
26641         file.
26642         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
26643         New file.
26644         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
26645         New file.
26646         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
26647         file.
26648         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
26649         New file.
26650         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
26651         file.
26652         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
26653         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
26654         file.
26655         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
26656         New file.
26657         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
26658         file.
26659         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
26660         file.
26661         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
26662         file.
26663         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
26664         file.
26665         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
26666         file.
26667         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
26668         New file.
26669         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
26670         New file.
26671         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
26672         file.
26673         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
26674         New file.
26675         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
26676         file.
26677
26678 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26679
26680         * conform/conformtest.pl: Fix typo in handling typed-constant from
26681         allow-header.
26682
26683 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26684
26685         * README: Cut down references to pre-2.6 Linux kernels and
26686         Linuxthreads.  Update lists of configurations in libc and ports
26687         and sort alphabetically.  Say "or newer" with Linux kernel version
26688         requirements.
26689
26690         * config.h.in [IS_IN_build]: Allow compiling without optimization.
26691
26692 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
26693
26694         [BZ #887]
26695         * math/libm-test.inc (logb_test_downward): New test to expose
26696         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
26697         rounding mode.
26698
26699 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26700
26701         [BZ #14027]
26702         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
26703         to be done.
26704         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
26705         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
26706
26707 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
26708
26709         * sysdeps/unix/i386/brk.S: Remove file.
26710         * sysdeps/unix/i386/dl-brk.S: Likewise.
26711         * sysdeps/unix/i386/pipe.S: Likewise.
26712         * sysdeps/unix/i386/sigreturn.S: Likewise.
26713         * sysdeps/unix/i386/syscall.S: Likewise.
26714         * sysdeps/unix/i386/vfork.S: Likewise.
26715         * sysdeps/unix/i386/wait.S: Likewise.
26716
26717         * sysdeps/unix/common/tcsendbrk.c: Move to ...
26718         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
26719
26720         * configure.in (arm*-none*): Do not allow without
26721         --enable-hacker-mode.
26722         (netbsd*): Remove case setting base_os.
26723         (386bsd*): Likewise.
26724         (freebsd*): Likewise.
26725         (bsdi*): Likewise.
26726         (osf*): Likewise.
26727         (sunos*): Likewise.
26728         (ultrix*): Likewise.
26729         (newsos*): Likewise.
26730         (dynix*): Likewise.
26731         (*bsd*): Likewise.
26732         (sysv*): Likewise.
26733         (isc*): Likewise.
26734         (esix*): Likewise.
26735         (sco*): Likewise.
26736         (minix*): Likewise.
26737         (irix4*): Likewise.
26738         (irix6*): Likewise.
26739         (solaris[2-9]*): Likewise.
26740         (none): Likewise.
26741         * configure: Regenerated.
26742
26743 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26744
26745         [BZ #11521]
26746         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
26747         overflow or cancellation in calculating denominator.
26748         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
26749         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
26750         down expression to avoid unexpected rounding in newer GCCs.
26751         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
26752
26753 2012-04-26  David S. Miller  <davem@davemloft.net>
26754
26755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
26756         long-double compat symbols.
26757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
26758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
26759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
26760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
26761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
26762         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
26763         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
26764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
26765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
26766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
26767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
26768         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
26769         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26770
26771 2012-04-25  David S. Miller  <davem@davemloft.net>
26772
26773         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
26774         HWCAP_* values only after the memory barriers have been defined.
26775         (atomic_full_barrier): Define.
26776         (atomic_read_barrier): Define.
26777         (atomic_write_barrier): Define.
26778
26779 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26780
26781         * shlib-versions: Add libgcc_s version information.
26782         * sysdeps/generic/libgcc_s.h: Remove.
26783         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
26784         libgcc_s.h.
26785         * sysdeps/gnu/unwind-resume.c: Likewise.
26786         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
26787
26788 2012-04-25  David S. Miller  <davem@davemloft.net>
26789
26790         * sysdeps/unix/sparc/brk.S: Delete.
26791         * sysdeps/unix/sparc/dl-brk.S: Delete.
26792         * sysdeps/unix/sparc/pipe.S: Delete.
26793         * sysdeps/unix/sparc/sysdep.S: Delete.
26794         * sysdeps/unix/sparc/sysdep.h: Delete.
26795         * sysdeps/unix/sparc/vfork.S: Delete.
26796         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
26797         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
26798         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
26799         ret_ERRVAL, r0, r1, MOVE): Define.
26800         (JUMPTARGET): Remove.
26801         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
26802         sysdeps/unix/sparc/sysdep.h
26803         (ENTRY, END): Remove.
26804         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26805
26806 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
26807
26808         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
26809         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
26810         -DIS_IN_build.
26811
26812         * timezone/README: Update upstream location and email address for
26813         tzcode and tzdata.
26814         * timezone/zdump.c: Update from tzcode 2012b.
26815         * timezone/zic.c: Likewise.
26816
26817         * configure.in (libc_cv_as_needed): Remove test.
26818         * configure: Regenerated.
26819         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
26820         conditional definition.
26821         [$(have-as-needed) != yes] (no-as-needed): Likewise.
26822         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
26823         * config.make.in (have-as-needed): Remove variable.
26824
26825 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26826             Paul Pluzhnikov  <ppluzhnikov@google.com>
26827
26828         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
26829         strings correctly.
26830
26831 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
26832
26833         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
26834         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
26835         * sysdeps/sh/strlen.S: Likewise.
26836
26837 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26838
26839         * sysdeps/unix/fork.S: Remove file.
26840         * sysdeps/unix/i386/fork.S: Likewise.
26841         * sysdeps/unix/sparc/fork.S: Likewise.
26842
26843         * sysdeps/unix/system.c: Remove file.
26844         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
26845
26846         * sysdeps/unix/getegid.S: Remove file.
26847         * sysdeps/unix/geteuid.S: Likewise.
26848
26849 2012-04-24  Roland McGrath  <roland@hack.frob.com>
26850
26851         * scripts/check-localplt.awk: New file.
26852         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
26853         of diff.
26854         * scripts/data/localplt-generic.data: Add a comment.
26855
26856         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
26857         NODE when __dir_mkfile failed.
26858         * sysdeps/mach/hurd/symlinkat.c: Likewise.
26859         Reported by Ludovic Courtès <ludo@gnu.org>.
26860
26861 2012-04-24  Andreas Jaeger  <aj@suse.de>
26862
26863         * Makerules (common-clean): Also remove gen-as-const-headers
26864         files.
26865
26866 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26867
26868         * Makerules (native-compile): Do not change working directory for
26869         build.  Use $(OUTPUT_OPTION) in command.
26870         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
26871
26872 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26873
26874         [BZ #13886]
26875         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
26876         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
26877         * math/libm-test.inc (floor_test): Add more tests.
26878         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
26879
26880 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26881
26882         * sysdeps/unix/getdents.c: Remove file.
26883         * sysdeps/unix/sysv/getdents.c: Likewise.
26884         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
26885
26886         * sysdeps/unix/syscalls.list (madvise): Add syscall from
26887         sysdeps/unix/mman/syscalls.list.
26888         (mmap): Likewise.
26889         (mprotect): Likewise.
26890         (msync): Likewise.
26891         (munmap): Likewise.
26892         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
26893         * sysdeps/unix/mman/syscalls.list: Remove.
26894         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
26895
26896         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
26897         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
26898         * configure: Regenerated.
26899         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
26900         $(libgcc_s_suffix).
26901         * config.make.in (libgcc_s_suffix): Remove variable.
26902
26903 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
26904
26905         * sysdeps/unix/sysv/gethostname.c: Move to ...
26906         * sysdeps/posix/gethostname.c: ... here.
26907
26908         * sysdeps/unix/execve.S: Remove file.
26909
26910         * sysdeps/unix/_exit.S: Remove file.
26911
26912 2012-04-23  Andreas Jaeger  <aj@suse.de>
26913
26914         [BZ #13739]
26915         * manual/Makefile: Remove make dist support, there's no
26916         need for a stand-alone documentation tar ball.
26917         (TEXI2DVI): Define always, it's not in Makeconfig.
26918         (dist): Removed.
26919         (tar-it): Removed.
26920         (edition): Removed.
26921         (glibc-doc-$(edition).tar): Removed
26922         (%.Z): Removed.
26923         (%.gz): Removed.
26924         (%.uu): Removed.
26925         (ETAGS): Remove, it's in Makeconfig.
26926         (move-if-change): Remove, it's in Makeconfig.
26927
26928 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
26929
26930         [BZ #13970]
26931         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
26932         (strtod, strtof, strtold, strtol, strtoul, strtoq)
26933         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
26934         (strtod_l, strtof_l, strtold_l): Remove __wur.
26935         It is not necessarily an error to ignore strtol's return value.
26936         One can reliably look at the stored endptr to decide whether
26937         the number had valid syntax.
26938
26939 2012-04-21  Andreas Jaeger  <aj@suse.de>
26940
26941         [BZ #13739]
26942         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
26943
26944 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
26945
26946         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
26947         * sysdeps/unix/sysv/Versions: Remove file.
26948
26949 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
26950
26951         [BZ #13927]
26952         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26953
26954 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
26955
26956         [BZ #7064]
26957         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
26958         version from __vm86.
26959
26960 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
26961
26962         * sysdeps/unix/common/lxstat.c: Remove file.
26963         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
26964
26965         * sysdeps/unix/sysv/Makefile: Remove file.
26966
26967         * sysdeps/unix/sysv/direct.h: Remove file.
26968
26969         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
26970         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
26971         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
26972         * sysdeps/unix/sysv/bits/signum.h: Likewise.
26973         * sysdeps/unix/sysv/bits/stat.h: Likewise.
26974         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
26975         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
26976
26977         * sysdeps/unix/sysv/setrlimit.c: Remove file.
26978
26979         * sysdeps/unix/xmknod.c: Remove file.
26980         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
26981
26982         * sysdeps/unix/sysv/settimeofday.c: Remove file.
26983
26984         * sysdeps/unix/sysv/i386/time.S: Remove file.
26985
26986         * sysdeps/unix/fxstat.c: Remove file.
26987         * sysdeps/unix/xstat.c: Likewise.
26988         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
26989
26990         * sysdeps/unix/sysv/sigaction.c: Remove file.
26991
26992         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
26993         (sysdep_headers): Remove variable.
26994         [termio.h not in sysdep_headers] (generated): Likewise.
26995         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
26996         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
26997         * sysdeps/unix/sysv/tcdrain.c: Likewise.
26998         * sysdeps/unix/sysv/tcflow.c: Likewise.
26999         * sysdeps/unix/sysv/tcflush.c: Likewise.
27000         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
27001         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
27002         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
27003         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
27004         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
27005
27006         * sysdeps/unix/siglist.c: Remove file.
27007
27008         * sysdeps/unix/getppid.S: Remove file.
27009
27010         * sysdeps/unix/mkdir.c: Remove file.
27011         * sysdeps/unix/rmdir.c: Likewise.
27012
27013 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
27014
27015         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
27016         ERR_MAX value.
27017         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
27018         errlist-compat value.
27019
27020 2012-04-18  David S. Miller  <davem@davemloft.net>
27021
27022         * sysdeps/generic/memcopy.h (reg_char): Delete.
27023         * debug/strcat_chk.c: Use char, not reg_char.
27024         * debug/strcpy_chk.c: Likewise.
27025         * debug/strncat_chk.c: Likewise.
27026         * debug/strncpy_chk.c: Likewise.
27027         * string/memchr.c: Likewise.
27028         * string/memrchr.c: Likewise.
27029         * string/rawmemchr.c: Likewise.
27030         * string/strcat.c: Likewise.
27031         * string/strchr.c: Likewise.
27032         * string/strchrnul.c: Likewise.
27033         * string/strcmp.c: Likewise.
27034         * string/strcpy.c: Likewise.
27035         * string/strncat.c: Likewise.
27036         * string/strncmp.c: Likewise.
27037         * string/strncpy.c: Likewise.
27038
27039 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27040
27041         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
27042         __builtin_memcopy is called when src and dest ranges are known to not
27043         overlap.
27044
27045 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27046
27047         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
27048         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
27049         fwd_align_merge macro call.
27050         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
27051         bwd_align_merge macro call.
27052         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27053
27054 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27055
27056         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
27057         bwd_align_merge macros.
27058         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
27059         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
27060         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27061
27062 2012-04-18  David S. Miller  <davem@davemloft.net>
27063
27064         * sysdeps/sparc/sparc64/memcopy.h: Delete.
27065
27066 2012-04-18  Andreas Jaeger  <aj@suse.de>
27067
27068         [BZ# 6794]
27069         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
27070         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
27071         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27072
27073         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
27074         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
27075         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27076
27077         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
27078         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
27079         Adjust for changed ldbl-128 files.
27080
27081         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
27082         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
27083         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27084
27085 2012-04-17  David S. Miller  <davem@davemloft.net>
27086
27087         * sysdeps/sparc/sparc32/memcopy.h: Delete.
27088
27089 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
27090
27091         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
27092         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
27093         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
27094         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
27095         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
27096         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
27097
27098 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27099
27100         [BZ #6794]
27101         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
27102         * math/libm-test.inc: Add ilogb errno and exception tests.
27103         * math/w_ilogb.c: New file: ilogb wrapper.
27104         * math/w_ilogbf.c: New file: ilogbf wrapper.
27105         * math/w_ilogbl.c: New file: ilogbl wrapper.
27106         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
27107         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
27108         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
27109         exception being thrown with 0.0 as argument.
27110         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
27111         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
27112         exception being thrown with 0.0 as argument.
27113         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
27114         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27115         exception being thrown with 0.0 as argument.
27116         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
27117         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27118         exception being thrown with 0.0 as argument.
27119         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
27120         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
27121         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
27122         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
27123         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
27124         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
27125         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
27126         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
27127         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
27128
27129 2012-04-17  Petr Baudis  <pasky@ucw.cz>
27130
27131         * include/sys/uio.h: Change __vector to __iovec to avoid clash
27132         with altivec.
27133
27134 2012-04-16  Marek Polacek  <polacek@redhat.com>
27135
27136         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
27137
27138 2012-04-16  Marek Polacek  <polacek@redhat.com>
27139
27140         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
27141         operands of fdivp instruction.
27142
27143 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27144
27145         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
27146         * elf/tst-auditmod3b.c: Likewise.
27147         * elf/tst-auditmod4b.c: Likewise.
27148         * elf/tst-auditmod5b.c: Likewise.
27149         * elf/tst-auditmod6b.c: Likewise.
27150         * elf/tst-auditmod6c.c: Likewise.
27151         * elf/tst-auditmod7b.c: Likewise.
27152         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
27153         * sysdeps/x86_64/preconfigure.in: Likewise.
27154         * sysdeps/x86_64/preconfigure: Regenerated.
27155
27156 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27157
27158         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
27159         __ILP32__.
27160
27161 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
27162
27163         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27164         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
27165
27166 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
27167
27168         [BZ #13973]
27169         * locale/iso-639.def: Fix gl language name. Spotted by
27170         Yaron Shahrabani.
27171
27172 2012-04-12  Roland McGrath  <roland@hack.frob.com>
27173
27174         [BZ #2074]
27175         * libio/libio.h (__io_write_fn): Update comment.
27176
27177 2012-04-12  Petr Baudis  <pasky@ucw.cz>
27178
27179         [BZ #2074]
27180         * stdio.texi (Hook Functions): The user provided writer function
27181         is not allowed to return -1.
27182
27183 2012-04-11  David S. Miller  <davem@davemloft.net>
27184
27185         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27186
27187 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
27188
27189         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
27190         Add a leading slash to rtkaio.
27191
27192 2012-04-11  Jim Meyering  <meyering@redhat.com>
27193
27194         [BZ #11959]
27195         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
27196         It is not necessarily an error to ignore fwrite's return
27197         value.  One can reliably use ferror to test for errors after
27198         the fact.
27199
27200 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27201
27202         * bits/types.h (__snseconds_t): New type.
27203         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
27204
27205         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
27206         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27207         (__SNSECONDS_T_TYPE): Likewise.
27208         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27209         (__SNSECONDS_T_TYPE): Likewise.
27210         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27211         (__SNSECONDS_T_TYPE): Likewise.
27212
27213 2012-04-10  Andreas Jaeger  <aj@suse.de>
27214
27215         [BZ #2636]
27216         * manual/time.texi (Processor Time): Return type of times is
27217         elapsed real time since an arbitrary point in the past.
27218         (CPU Time): Move CLK_TCK from here...
27219         (Processor Time): ...to here.  Correct description.
27220         * manual/conf.texi (Constants for Sysconf): Correct description of
27221         _SC_CLK_TCK.
27222
27223 2012-04-10  David S. Miller  <davem@davemloft.net>
27224
27225         [BZ #13967]
27226         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
27227         where the is a gap between DT_REL(A) and DT_JMPREL.
27228
27229 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27230
27231         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
27232         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27233         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27234
27235 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27236
27237         * elf/dl-support.c (_dl_inhibit_cache): New variable.
27238         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
27239         (dl_main): Handle --inhibit-cache.
27240         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
27241         _dl_inhibit_cache.
27242         * elf/dl-load.c (_dl_map_object): Use it.
27243         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
27244
27245 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27246
27247         [BZ #13872]
27248         * sysdeps/i386/fpu/e_powl.S (p78): New object.
27249         (__ieee754_powl): Saturate large exponents rather than testing for
27250         overflow of y*log2(x).
27251         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27252         * math/libm-test.inc (pow_test): Do not permit spurious overflow
27253         exceptions.
27254
27255         [BZ #11521]
27256         * math/s_ctan.c: Include <float.h>.
27257         (__ctan): Avoid internal overflow or cancellation in calculating
27258         denominator.
27259         * math/s_ctanf.c: Likewise.
27260         * math/s_ctanl.c: Likewise.
27261         * math/s_ctanh.c: Likewise.
27262         * math/s_ctanhf.c: Likewise.
27263         * math/s_ctanhl.c: Likewise.
27264         * math/libm-test.inc (ctan_test): Add more tests.
27265         (ctanh_test): Likewise.
27266         * sysdeps/i386/fpu/libm-test-ulps: Update.
27267         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27268
27269 2012-04-09  Andreas Jaeger  <aj@suse.de>
27270
27271         [BZ #6894]
27272         * manual/filesys.texi (Directory Entries): Mention that d_namlen
27273         is an optional BSD extension.
27274
27275         [BZ #10254]
27276         * manual/stdio.texi (Opening Streams): Document additional fopen
27277         parameters.
27278
27279 2012-04-09  Roland McGrath  <roland@hack.frob.com>
27280
27281         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
27282         %eax without telling the compiler.
27283
27284 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
27285
27286         [BZ # 13963]
27287         * manual/install.texi: Use sourceware.org.
27288
27289 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27290
27291         [BZ #13873]
27292         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
27293         (__ieee754_pow): Generate overflow and underflow using huge*huge
27294         and tiny*tiny rather than just returning constant infinity or zero
27295         for large exponents.
27296         * math/libm-test.inc (pow_test): Require overflow exceptions for
27297         applicable cases of large exponents.
27298
27299         [BZ #706]
27300         * sysdeps/i386/fpu/e_pow.S (p10): New object.
27301         (__ieee754_pow): Use iterative multiplication algorithm only for
27302         integer exponents with absolute value below 1024.  Check for odd
27303         integer exponents when using algorithm for real exponents.
27304         * math/libm-test.inc (pow_test): Add more tests.
27305         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27306
27307 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
27308
27309         [BZ #13705]
27310         * math/libm-test.inc (exp_test): Do not allow overflow exception
27311         on underflow test.
27312
27313 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
27314
27315         [BZ #13705]
27316         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
27317         instead of __kernel_standard_f.
27318
27319 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
27320
27321         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
27322         * sysdeps/x86_64/memset_chk.S: Likewise.
27323
27324 2012-04-08  Andreas Jaeger  <aj@suse.de>
27325
27326         [BZ #10153]
27327         * manual/startup.texi (Environment Access): Describe return value
27328         for putenv and setenv.
27329
27330         [BZ #6895]
27331         * manual/filesys.texi (Directory Entries): Add description for
27332         DT_LNK.
27333
27334         [BZ #6890]
27335         * manual/filesys.texi (Directory Entries): Clarify that it's file
27336         system not operating system in the description of DT_UNKNOWN.
27337
27338         [BZ #6578]
27339         * manual/syslog.texi (closelog): Fix reference, it's openlog.
27340
27341 2012-04-08  Stephen Compall  <s11@member.fsf.org>
27342
27343         [BZ #6649]
27344         * manual/llio.texi (Opening and Closing Files): Add cross
27345         reference to explain mode argument.
27346
27347 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
27348
27349         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
27350         * sysdeps/x86_64/memset_chk.S: Likewise.
27351
27352 2012-04-07  David S. Miller  <davem@davemloft.net>
27353
27354         * elf/elf.h (R_SPARC_WDISP10): Define.
27355         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
27356         R_SPARC_SIZE32.
27357         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
27358         R_SPARC_SIZE64 and R_SPARC_H34.
27359
27360 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
27361
27362         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
27363         conditions and remove no longer applicable assertion.
27364
27365 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27366
27367         * bits/byteswap.h: Include <features.h>.
27368         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27369         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27370
27371 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27372
27373         * bits/byteswap.h (__bswap_16): Removed.
27374         Include <bits/byteswap-16.h> to get __bswap_16.
27375         * sysdeps/i386/bits/byteswap.h: Likewise.
27376         * sysdeps/s390/bits/byteswap.h: Likewise.
27377         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27378         * bits/byteswap-16.h: New file.
27379         * sysdeps/i386/bits/byteswap-16.h: Likewise.
27380         * sysdeps/s390/bits/byteswap-16.h: Likewise.
27381         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
27382         * string/Makefile (headers): Add bits/byteswap-16.h.
27383
27384 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27385
27386         [BZ #13895]
27387         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
27388         extra indirection.
27389         * nss/Makefile (tests-static, tests): Add tst-nss-static.
27390         * nss/tst-nss-static.c: New.
27391
27392 2012-04-06  Robert Millan  <rmh@gnu.org>
27393
27394         [BZ #6486]
27395         * manual/llio.texi (File Position Primitive): lseek
27396         refers to WHENCE when it really means OFFSET.
27397
27398 2012-04-06  Andreas Jaeger  <aj@suse.de>
27399
27400         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
27401         strncmp declarations.
27402
27403         * abilist/libc.abilist: Add __poll and __ppoll.
27404
27405 2012-04-05  David S. Miller  <davem@davemloft.net>
27406
27407         * scripts/check-local-headers.sh: Accept a host triplet in the
27408         path matched by the exclude regexp.
27409
27410         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
27411         definition.
27412         * sysdeps/powerpc/powerpc32/dl-machine.h
27413         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
27414         * sysdeps/s390/s390-32/dl-machine.h
27415         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27416         * sysdeps/sparc/sparc32/dl-machine.h
27417         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27418         * sysdeps/sparc/sparc64/dl-machine.h
27419         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27420
27421         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
27422         lazy binding.
27423         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
27424         undefined symbol errors.
27425
27426         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
27427         DT_NEEDED entries.
27428
27429 2012-04-05  Michael Matz  <matz@suse.de>
27430
27431         [BZ #13592]
27432         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
27433
27434 2012-04-05  Andreas Jaeger  <aj@suse.de>
27435
27436         [BZ #13908]
27437         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
27438         comment.
27439
27440 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27441
27442         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
27443         which ROUND is no valid rounding mode.
27444
27445 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27446
27447         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
27448         read again.
27449         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
27450
27451 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27452
27453         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
27454         an exception using FPU order intentionally.
27455
27456 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27457
27458         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
27459         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
27460         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
27461         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
27462
27463 2012-04-05  Simon Josefsson  <simon@josefsson.org>
27464
27465         [BZ #12340]
27466         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
27467         EINVAL when BUFLEN is too smal.
27468
27469 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
27470
27471         [BZ #13553]
27472         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
27473         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
27474
27475 2012-04-03  Andreas Jaeger  <aj@suse.de>
27476
27477         [BZ #13938]
27478         * manual/setjmp.texi (System V contexts): Fix sentence.
27479
27480         [BZ #13926]
27481         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
27482         New macro for this case.
27483         [!__GNUC__] (__bswap_64): New inline function for this case.
27484         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27485         * bits/byteswap.h: Likewise.
27486         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
27487         ull, guard with __GLIBC_HAVE_LONG_LONG.
27488
27489         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
27490         __GLIBC_HAVE_LONG_LONG.
27491
27492         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
27493         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
27494
27495 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27496
27497         [BZ #13691]
27498         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
27499         inptr and inend, rather than using last_ch.
27500
27501 2012-04-02  David S. Miller  <davem@davemloft.net>
27502
27503         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
27504         * stdio-common/printf-parse.h (read_int): Change return type to
27505         'int', return -1 on INT_MAX overflow.
27506         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
27507         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
27508         overflows INT_MAX.  Check for overflow of in-format-string precision
27509         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
27510         SIZE_MAX not INT_MAX for integer overflow test.
27511         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
27512         skip the construct in the format string but do not record anything.
27513         * stdio-common/bug22.c: Adjust to test both width/prevision
27514         INT_MAX overflow as well as total length INT_MAX overflow.  Check
27515         explicitly for proper errno values.
27516
27517 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
27518
27519         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
27520         CHAR_MAX.
27521         * string/test-strcmp.c [! WIDE]: Likewise.
27522         * time/tst-mktime2.c: Likewise for INT_MAX.
27523         * string/test-string.h: #include <sys/param.h> for MIN.
27524
27525         * csu/init-first.c (__libc_init_first): Call __ctype_init.
27526         * sysdeps/i386/init-first.c (init): Likewise.
27527         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
27528         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
27529         * sysdeps/sh/init-first.c (init): Likewise.
27530
27531 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
27532
27533         * po/ru.po: Update from translation team.
27534         * po/vi.po: Likewise.
27535
27536 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
27537
27538         * resolv/nss_dns/dns-host.c: Merge copyright years.
27539
27540 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27541
27542         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27543         Optimize memcpy with prefetch if
27544         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
27545         src, dst pointers have unequal 16 byte alignments.
27546
27547 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
27548
27549         [BZ #13928]
27550         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
27551         from a CNAME entry and return the minimum ttl for the query.
27552         (gaih_getanswer_slice): Likewise.
27553
27554 2012-03-30  Jeff Law  <law@redhat.com>
27555
27556         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
27557         due to long keys.
27558         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
27559         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
27560
27561         * resolv/nss_dns/dns-host.c: Update copyright year.
27562
27563 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
27564
27565         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
27566         requests to save a system call.  Fix check that all bytes are sent.
27567
27568         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
27569         comments for sendmmsg.
27570
27571 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27572
27573         [BZ #13691]
27574         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
27575         with only 1 character between 0x0041 and 0x01b0.
27576         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
27577         * wcsmbs/tst-mbsnrtowcs.c: New file.
27578
27579 2012-03-29  David S. Miller  <davem@davemloft.net>
27580
27581         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
27582         small copies by hand.
27583
27584 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27585
27586         [BZ #13761]
27587         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
27588         _nss_compat_initgroups_dyn): Fall back to malloc/free
27589         for large group memberships.
27590
27591 2012-03-28  David S. Miller  <davem@davemloft.net>
27592
27593         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
27594         that branches into memcpy.
27595         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
27596         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27597         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27598         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27599         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
27600         bits.
27601         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
27602         implementation too.
27603         * sysdeps/sparc/mempcpy.S: New file.
27604
27605         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
27606         the IFUNC routine in the libc case.
27607         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27608
27609         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
27610         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
27611         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
27612         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
27613         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
27614         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
27615         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
27616         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
27617
27618         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
27619         loop to 256 bytes instead of 64 bytes and fix test signedness.
27620
27621         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
27622         * sysdeps/sparc/sparc32/Makefile: rather than here...
27623         * sysdeps/sparc/sparc64/Makefile: and here.
27624
27625 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
27626
27627         * malloc/mallocbug.c: Avoid warnings about unused variables.
27628
27629 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
27630
27631         [BZ #13760]
27632         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
27633         in the right place. Discard and retry query if response is
27634         larger than input buffer size.
27635
27636 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
27637
27638         [BZ #369]
27639         [BZ #2678]
27640         [BZ #3866]
27641         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
27642         x for large integer exponent.
27643         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
27644         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
27645         sign of result as needed afterwards.
27646         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
27647         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
27648         result for underflowing pow the same as for overflow.
27649         (__kernel_standard_l): Handle powl overflow and underflow here
27650         rather than calling __kernel_standard.
27651         * math/libm-test.inc (pow_test): Add more tests.
27652
27653         [BZ #3868]
27654         [BZ #13879]
27655         [BZ #13910]
27656         [BZ #13911]
27657         [BZ #13912]
27658         [BZ #13913]
27659         [BZ #13915]
27660         [BZ #13916]
27661         [BZ #13917]
27662         [BZ #13918]
27663         [BZ #13919]
27664         [BZ #13920]
27665         [BZ #13921]
27666         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
27667         * sysdeps/ieee754/k_standard.c: Include <float.h>.
27668         (__kernel_standard_l): New function.
27669         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
27670         __kernel_standard.
27671         * math/w_acosl.c (__acosl): Likewise.
27672         * math/w_asinl.c (__asinl): Likewise.
27673         * math/w_atan2l.c (__atan2l): Likewise.
27674         * math/w_atanhl.c (__atanhl): Likewise.
27675         * math/w_coshl.c (__coshl): Likewise.
27676         * math/w_exp10l.c (__exp10l): Likewise.
27677         * math/w_exp2l.c (__exp2l): Likewise.
27678         * math/w_fmodl.c (__fmodl): Likewise.
27679         * math/w_hypotl.c (__hypotl): Likewise.
27680         * math/w_j0l.c (__j0l, __y0l): Likewise.
27681         * math/w_j1l.c (__j1l, __y1l): Likewise.
27682         * math/w_jnl.c (__jnl, __ynl): Likewise.
27683         * math/w_lgammal.c (__lgammal): Likewise.
27684         * math/w_log10l.c (__log10l): Likewise.
27685         * math/w_log2l.c (__log2l): Likewise.
27686         * math/w_logl.c (__logl): Likewise.
27687         * math/w_powl.c (__powl): Likewise.
27688         * math/w_remainderl.c (__remainderl): Likewise.
27689         * math/w_scalbl.c (sysv_scalbl): Likewise.
27690         * math/w_sinhl.c (__sinhl): Likewise.
27691         * math/w_sqrtl.c (__sqrtl): Likewise.
27692         * math/w_tgammal.c (__tgammal): Likewise.
27693         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
27694         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
27695         * math/libm-test.inc (acos_test): Add more tests.
27696         (acosh_test): Likewise.
27697         (asin_test): Likewise.
27698         (atanh_test): Likewise.
27699         (exp_test): Likewise.
27700         (exp10_test): Likewise.
27701         (exp2_test): Likewise.
27702         (expm1_test): Likewise.
27703         (lgamma_test): Likewise.
27704         (log_test): Likewise.
27705         (log10_test): Likewise.
27706         (log1p_test): Likewise.
27707         (log2_test): Likewise.
27708         (pow_test): Do not allow some spurious overflow exceptions.
27709         (sqrt_test): Add more tests.
27710         (tgamma_test): Likewise.
27711         (y0_test): Likewise.
27712         (y1_test): Likewise.
27713         (yn_test): Likewise.
27714
27715 2012-03-27  Anton Blanchard  <anton@samba.org>
27716
27717         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
27718         MAP_HUGETLB.
27719         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27720         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27721         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27722
27723 2012-03-27  David S. Miller  <davem@davemloft.net>
27724
27725         * conform/Makefile: Run run-conformtest.sh using $(BASH).
27726
27727         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
27728         have-as-vis3 check.
27729
27730 2012-03-27  Andreas Jaeger  <aj@suse.de>
27731
27732         * sysdeps/x86_64/elf/configure.in: Moved to ...
27733         * sysdeps/x86_64/configure.in: ... here.
27734         * sysdeps/x86_64/elf/start.S: Moved to ...
27735         * sysdeps/x86_64/start.S: ... here.
27736         * sysdeps/x86_64/elf/configure: Delete.
27737
27738         * sysdeps/x86_64/configure.in: Merge contents from
27739         sysdeps/i386/configure.in (without i686 check).
27740
27741         * sysdeps/i386/elf/Versions: Merge into ...
27742         * sysdeps/i386/Versions: ... this.
27743         * sysdeps/i386/elf/Versions: Delete file.
27744         * sysdeps/i386/elf/start.S: Moved to ...
27745         * sysdeps/i386/start.S: ...here.
27746         * sysdeps/i386/elf/configure.in: Merge into...
27747         * sysdeps/i386/configure.in: ...here.
27748         * sysdeps/i386/elf/configure.in: Delete file.
27749         * sysdeps/i386/elf/configure: Delete file.
27750
27751         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
27752         * debug/backtracesyms.c: ... here.
27753         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
27754         * debug/backtracesymsfd.c: ... here.
27755         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
27756         * sysdeps/generic/ifunc-sel.h: ... here.
27757
27758         * sysdeps/unix/i386/start.c: Delete file.
27759         * sysdeps/unix/sparc/start.c: Delete file.
27760         * sysdeps/unix/start.c: Delete file.
27761
27762         * sysdeps/sh/elf/configure.in: Moved to ...
27763         * sysdeps/sh/configure.in: ... here.
27764         * sysdeps/sh/elf/start.S: Moved to ...
27765         * sysdeps/sh/start.S: ... here.
27766         * sysdeps/sh/elf/configure: Delete file.
27767
27768         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
27769         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
27770         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
27771         * sysdeps/powerpc/powerpc64/entry.h: ... here.
27772         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
27773         * sysdeps/powerpc/powerpc64/start.S: here.
27774         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
27775         * sysdeps/powerpc/powerpc64/Makefile: ... this.
27776         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
27777         * sysdeps/powerpc/powerpc64/configure.in: ... this.
27778         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
27779
27780         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
27781         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
27782         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
27783         * sysdeps/powerpc/powerpc32/start.S: ... here.
27784         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
27785         * sysdeps/powerpc/powerpc32/configure.in: ... this.
27786         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
27787
27788         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
27789         * sysdeps/powerpc/ifunc-sel.h: ... here.
27790         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
27791         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
27792
27793         * sysdeps/sparc/elf/configure.in: Moved to ...
27794         * sysdeps/sparc/configure.in: ... here.
27795         * sysdeps/sparc/elf/configure: Delete file.
27796         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
27797         * sysdeps/sparc/sparc32/start.S: ... here.
27798         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
27799         * sysdeps/sparc/sparc64/start.S: ... here.
27800         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
27801         * sysdeps/sparc/sparc32/Makefile: ... this.
27802         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
27803         * sysdeps/sparc/sparc64/Makefile: ... this.
27804
27805         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
27806         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
27807         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
27808         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
27809         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
27810         * sysdeps/s390/s390-32/setjmp.S: ... here.
27811         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
27812         * sysdeps/s390/s390-32/configure.in: ... here.
27813         * sysdeps/s390/s390-32/elf/configure: Delete file.
27814         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
27815         * sysdeps/s390/s390-32/start.S: ... here.
27816
27817         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
27818         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
27819         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
27820         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
27821         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
27822         * sysdeps/s390/s390-64/setjmp.S: ... here.
27823         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
27824         * sysdeps/s390/s390-64/configure.in: ... here
27825         * sysdeps/s390/s390-64/elf/configure: Delete file.
27826         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
27827         * sysdeps/s390/s390-64/start.S: ... here.
27828         * sysdeps/s390/s390-64/elf/configure: Delete.
27829
27830         * configure.in: Remove support for elf directories in sysdeps.
27831
27832         * configure: Regenerated.
27833         * sysdeps/i386/configure: Regenerated.
27834         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27835         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27836         * sysdeps/s390/s390-32/configure: Regenerated.
27837         * sysdeps/s390/s390-64/configure: Regenerated.
27838         * sysdeps/sh/configure: Regenerated.
27839         * sysdeps/sparc/configure: Regenerated.
27840         * sysdeps/x86_64/configure: Regenerated.
27841
27842 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
27843
27844         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27845
27846         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
27847         denormal result into account.
27848
27849 2012-03-25  Roland McGrath  <roland@hack.frob.com>
27850
27851         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
27852         Reported by Allan McRae <allan@archlinux.org>.
27853
27854 2012-03-23  Jeff Law  <law@redhat.com>
27855
27856         * nss/getnssent.c (__nss_getent): Fix typo.
27857
27858 2012-03-23  David S. Miller  <davem@davemloft.net>
27859
27860         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27861
27862 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
27863
27864         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
27865         to pad to uint64_t for each field.
27866         (dl_tls_index): Replace unsigned long with uint64_t.
27867
27868 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
27869         Paul Pluzhnikov  <ppluzhnikov@google.com>
27870
27871         [BZ #6528]
27872         * grp/Makefile (otherlibs): Don't set it.
27873         * inet/Makefile (otherlibs): Likewise.
27874         * login/Makefile (otherlibs): Likewise.
27875         * nscd/Makefile (otherlibs): Likewise.
27876         * posix/Makefile (otherlibs): Likewise.
27877         * pwd/Makefile (otherlibs): Likewise.
27878         * rt/Makefile (otherlibs): Likewise.
27879         * sunrpc/Makefile (otherlibs): Likewise.
27880         * nss/Makefile (otherlibs): Likewise.
27881         Add libnss_files to routines and static-only-routines.
27882         ($(objpfx)getent): Remove rule.
27883         * resolv/Makefile: Add libnss_dns and libresolv to routines and
27884         static-only-routines.
27885
27886 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27887
27888         [BZ #13892]
27889         * math/s_cexp.c: Include <float.h>.
27890         (__cexp): Handle exp result overflowing not necessarily
27891         overflowing both real and imaginary parts of result.
27892         * math/s_cexpf.c: Likewise.
27893         * math/s_cexpl.c: Likewise.
27894         * math/libm-test.inc (cexp_test): Add more tests.
27895         * sysdeps/i386/fpu/libm-test-ulps: Update.
27896         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27897
27898 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27899
27900         * include/link.h (ELFW): New macro.
27901         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
27902         Replace ELF64_R_TYPE with ELFW(R_TYPE).
27903
27904 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27905
27906         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
27907         with uint64_t.
27908
27909 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27910
27911         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
27912         declaration.
27913         (struct La_x32_retval): Likewise.
27914
27915 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27916
27917         * sysdeps/x86_64/preconfigure.in: New file.
27918         * sysdeps/x86_64/preconfigure: New generated file.
27919
27920 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27921
27922         [BZ #13824]
27923         * math/e_exp2l.c: Include <float.h>.
27924         (__ieee754_exp2l): Handle overflow and underflow cases
27925         separately.  Only pass fractional part of argument to
27926         __ieee754_expl.
27927         * math/libm-test.inc (exp2_test): Add more tests.
27928
27929         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
27930         negating x to take absolute value.
27931         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
27932         Likewise.
27933         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
27934         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
27935         Likewise.
27936         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
27937         computing low part if x was negated.
27938         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
27939
27940 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27941
27942         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
27943         la_x32_gnu_pltexit.
27944         (pltexit): Cast int_retval to ptrdiff_t.
27945         * elf/tst-auditmod3b.c: Likewise.
27946         * elf/tst-auditmod4b.c: Likewise.
27947         * elf/tst-auditmod5b.c: Likewise.
27948         * elf/tst-auditmod6b.c: Likewise.
27949         * elf/tst-auditmod6c.c: Likewise.
27950         * elf/tst-auditmod7b.c: Likewise.
27951
27952         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
27953         and x32_gnu_pltexit.
27954
27955         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
27956         __ELF_NATIVE_CLASS.
27957         (La_x32_regs): New macro.
27958         (La_x32_retval): Likewise.
27959         (la_x32_gnu_pltenter): New function prototype.
27960         (la_x32_gnu_pltexit): Likewise.
27961
27962 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
27963
27964         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
27965         exponent.
27966
27967         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27968
27969         * configure.in (libc_cv_cc_nofma): Check for option to disable
27970         generation of FMA instructions.
27971         * configure: Regenerate.
27972         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
27973         * sysdeps/ieee754/dbl-64/Makefile: New file.
27974         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27975         Remove brandred-fma4.
27976         (CFLAGS-brandred-fma4.c): Remove.
27977         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
27978         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
27979         define.
27980         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
27981         define.
27982
27983 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
27984
27985         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
27986         LLONG_MAX != LONG_MAX.
27987         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27988         (_fitoa_word): Likewise.
27989         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
27990         LLONG_MAX != LONG_MAX.
27991         * stdio-common/_itowa.h: Include <_itoa.h>.
27992         (_itowa_word): Use _ITOA_WORD_TYPE on value.
27993         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
27994         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
27995         only if not defined.
27996         (_ITOA_WORD_TYPE): Likewise.
27997         (_itoa_word): Use _ITOA_WORD_TYPE on value.
27998         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
27999
28000 2012-03-21  David S. Miller  <davem@davemloft.net>
28001
28002         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28003
28004 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28005
28006         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
28007         of x86_64 when setting libc_cv_slibdir, libdir and
28008         libc_cv_localedir.
28009         * sysdeps/unix/sysv/linux/configure: Regenerated.
28010
28011 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28012
28013         * manual/lang.texi (Old Varargs): Remove section.
28014         (How Variadic): Update menu.
28015         (va_start): Do not mention varargs.h.
28016
28017 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
28018             Joseph Myers  <joseph@codesourcery.com>
28019
28020         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
28021         link test.
28022         * configure: Regenerated.
28023
28024 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
28025
28026         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
28027         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
28028         conformtest.pl
28029
28030 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28031
28032         * NOTES: Remove.
28033         * Makefile (files-for-dist): Remove NOTES.
28034         (NOTES): Remove rule.
28035         * README: Don't refer to NOTES.
28036         * manual/creature.texi: Don't include macros.texi.
28037         * manual/intro.texi (creature.texi): Remove comment referring to
28038         NOTES.
28039
28040         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
28041         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
28042         * configure: Regenerated.
28043         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
28044         LIBC_TRY_CC_OPTION.
28045         (libc_cv_as_i686): Likewise.
28046         (libc_cv_cc_avx): Likewise.
28047         (libc_cv_cc_sse2avx): Likewise.
28048         (libc_cv_cc_fma4): Likewise.
28049         (libc_cv_cc_novzeroupper): Likewise.
28050         * sysdeps/i386/configure: Regenerated.
28051
28052         [BZ #13883]
28053         * sysdeps/i386/fpu/s_cexp.S: Remove.
28054         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
28055         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
28056         * math/libm-test.inc (cexp_test): Add more tests.
28057         * sysdeps/i386/fpu/libm-test-ulps: Update.
28058         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28059
28060 2012-03-21  Allan McRae  <allan@archlinux.org>
28061
28062         * timezone/Makefile: Do not install iso3166.tab and zone.tab
28063
28064 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28065
28066         [BZ #13871]
28067         * math/w_exp2.c: Do not include <float.h>.
28068         (o_threshold, u_threshold): Remove.
28069         (__exp2): Calculate result before checking finiteness and calling
28070         __kernel_standard.
28071         * math/w_exp2f.c: Likewise.
28072         * math/w_exp2l.c: Likewise.
28073         * math/libm-test.inc (exp2_test): Require overflow exception for
28074         1e6 input.
28075
28076         [BZ #3866]
28077         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
28078         range of signed 64-bit integers before using fistpll.  Remove
28079         checks for whether integers fit in mantissa bits.
28080         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
28081         the range of signed 32-bit integers before using fistpl.  Remove
28082         checks for whether integers fit in mantissa bits.
28083         * sysdeps/i386/fpu/e_powl.S (p64): New object.
28084         (__ieee754_powl): Test for y outside the range of signed 64-bit
28085         integers before using fistpll.  Reduce 64-bit values to 63-bit
28086         ones as needed.
28087         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
28088         divide-by-zero is raised for zero to large negative powers.
28089         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
28090         (__ieee754_powl): Test for y outside the range of signed 64-bit
28091         integers before using fistpll.  Reduce 64-bit values to 63-bit
28092         ones as needed.
28093         * math/libm-test.inc (pow_test): Add more tests.
28094
28095 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28096
28097         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
28098         <stdio-common/_itoa.h>.
28099         * debug/segfault.c: Likewise.
28100         * elf/dl-cache.c: Likewise.
28101         * elf/dl-minimal.c: Likewise.
28102         * elf/dl-misc.c: Likewise.
28103         * elf/dl-sysdep.c: Likewise.
28104         * elf/dl-version.c: Likewise.
28105         * elf/rtld.c: Likewise.
28106         * hurd/hurdsock.c: Likewise.
28107         * hurd/lookup-retry.c: Likewise.
28108         * malloc/malloc.c: Likewise.
28109         * malloc/mtrace.c: Likewise.
28110         * nscd/nscd_getgr_r.c: Likewise.
28111         * nscd/nscd_getpw_r.c: Likewise.
28112         * nscd/nscd_getserv_r.c: Likewise.
28113         * posix/getopt_init.c: Likewise.
28114         * posix/wordexp.c: Likewise.
28115         * stdio-common/_itoa.c: Likewise.
28116         * stdio-common/printf_fphex.c: Likewise.
28117         * stdio-common/vfprintf.c: Likewise.
28118         * string/_strerror.c: Likewise.
28119         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
28120         * sysdeps/i386/i686/hp-timing.h: Likewise.
28121         * sysdeps/mach/_strerror.c: Likewise.
28122         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
28123         * sysdeps/mach/hurd/sethostid.c: Likewise.
28124         * sysdeps/mach/hurd/xmknodat.c: Likewise.
28125         * sysdeps/mach/xpg-strerror.c: Likewise.
28126         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
28127         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28128         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
28129         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
28130         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28131         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
28132         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28133         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28134         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
28135         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
28136         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
28137         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
28138         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
28139         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
28140         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
28141         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
28142         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
28143         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
28144         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
28145         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
28146         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
28147
28148         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
28149
28150         * stdio-common/_itoa.h: Moved to ...
28151         * sysdeps/generic/_itoa.h: Here.
28152
28153         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
28154
28155         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
28156         instead of "_itoa.h" and "_itowa.h".
28157         * stdio-common/vfprintf.: Likewise.
28158
28159 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28160
28161         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
28162         <bits/wordsize.h>.
28163         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
28164         (__signbit): Likwise.
28165         (llrintf): Likwise.
28166         (llrint): Likwise.
28167
28168 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28169
28170         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
28171         __WORDSIZE != 64.
28172
28173 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
28174
28175         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
28176         OVERFLOW_EXCEPTION_OK.
28177         * math/libm-test.inc ("Philosophy"): Update comment about
28178         exception testing.
28179         (OVERFLOW_EXCEPTION): Define.
28180         (OVERFLOW_EXCEPTION_OK): Likewise.
28181         (INVALID_EXCEPTION_OK): Renumber.
28182         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
28183         (IGNORE_ZERO_INF_SIGN): Likewise.
28184         (test_exceptions): Handle FE_OVERFLOW.
28185         (exp10_test): Expect overflow exceptions.
28186         (exp2_test): Likewise.
28187         (expm1_test): Likewise.
28188         (nextafter_test): Likewise.
28189         (pow_test): Likewise.
28190         (scalbn_test): Likewise.
28191         (scalbln_test): Likewise.
28192
28193 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28194
28195         * sysdeps/x86_64/bits/atomic.h
28196         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
28197         64bit integer.
28198         (atomic_exchange_acq): Likewise.
28199         (__arch_exchange_and_add_body): Likewise.
28200         (__arch_add_body): Likewise.
28201         (atomic_add_negative): Likewise.
28202         (atomic_add_zero): Likewise.
28203
28204 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28205
28206         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
28207         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
28208
28209 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28210
28211         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
28212         Check __x86_64__ instead of __WORDSIZE.
28213
28214 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28215
28216         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
28217
28218 2012-03-19  David S. Miller  <davem@davemloft.net>
28219
28220         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28221
28222         * sysdeps/sparc/fpu/fenv_private.h: New file.
28223         * sysdeps/sparc/fpu/math_private.h: Use it.
28224         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
28225         Remove.
28226         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
28227         (libc_feholdexcept_setroundl): Remove.
28228         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
28229         Remove.
28230         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
28231         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
28232
28233 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28234
28235         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
28236         int64_t instead of long int.
28237         (INSERT_WORDS64): Likwise.
28238
28239 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28240
28241         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
28242         _Unwind_GetCFA return to _Unwind_Ptr first.
28243
28244 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
28245
28246         [BZ #13629]
28247         * math/s_clog.c: Include <float.h>.
28248         (__clog): Scale large or subnormal inputs.
28249         * math/s_clogf.c: Likewise.
28250         * math/s_clogl.c: Likewise.
28251         * math/s_clog10.c: Include <float.h>.
28252         (M_LOG10_2): Define.
28253         (__clog10): Scale large or subnormal inputs.
28254         * math/s_clog10f.c: Likewise.
28255         * math/s_clog10l.c: Likewise.
28256         * math/libm-test.inc (clog_test): Add more tests.
28257         (clog10_test): Likewise.
28258         * sysdeps/i386/fpu/libm-test-ulps: Update.
28259         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28260
28261         [BZ #11451]
28262         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
28263         x and y.
28264         * math/libm-test.inc (atan2_test): Add another test.
28265
28266         * Makerules (common-objdir-compile): Remove.
28267         * sysdeps/unix/Makefile (config-generated): Do not add
28268         $(unix-generated) to variable.
28269         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
28270         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
28271         Remove rule.
28272         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
28273         Likewise.
28274         [generic bits/local_lim.h] (before-compile): Do not append to
28275         variable.
28276         [generic bits/local_lim.h] (common-generated): Likewise.
28277         [generic sys/param.h] (before-compile): Do not append to variable.
28278         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
28279         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
28280         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
28281         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
28282         include.
28283         [generic sys/param.h] (sys/param.h-includes): Remove variable.
28284         [generic sys/param.h] (sys/param.h-includes): Remove rule.
28285         [generic sys/param.h] ($(addprefix
28286         $(common-objpfx),$(sys/param.h-includes))): Likewise.
28287         [generic sys/param.h] (common-generated): Do not append to
28288         variable.
28289         [generic sys/param.h] (sysdep_headers): Likewise.
28290         [generic bits/errno.h] (before-compile): Do not append to
28291         variable.
28292         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
28293         rule.
28294         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
28295         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
28296         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
28297         [generic bits/errno.h] (common-generated): Do not append to
28298         variable.
28299         [generic bits/ioctls.h] (before-compile): Do not append to
28300         variable.
28301         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
28302         rule.
28303         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
28304         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
28305         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
28306         rule.
28307         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
28308         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
28309         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
28310         [generic bits/ioctls.h] (common-generated): Do not append to
28311         variable.
28312         [generic sys/syscall.h] (syscall.h): Remove variable.
28313         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
28314         rule.
28315         [generic sys/syscall.h] (before-compile): Do not append to
28316         variable.
28317         [generic sys/syscall.h] (common-generated): Likewise.
28318         * sysdeps/unix/errnos-tmpl.c: Remove file.
28319         * sysdeps/unix/errnos.awk: Likewise.
28320         * sysdeps/unix/ioctls-tmpl.c: Likewise.
28321         * sysdeps/unix/ioctls.awk: Likewise.
28322         * sysdeps/unix/mk-local_lim.c: Likewise.
28323         * sysdeps/unix/snarf-ioctls: Likewise.
28324
28325 2012-03-19  Richard Henderson  <rth@twiddle.net>
28326
28327         * sysdeps/i386/fpu/fenv_private.h: New file.
28328         * sysdeps/i386/fpu/math_private.h: Use it.
28329         (math_opt_barrier, math_force_eval): Remove.
28330         (libc_feholdexcept_setround_53bit): Remove.
28331         (libc_feupdateenv_53bit): Remove.
28332         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28333         (math_opt_barrier, math_force_eval): Remove.
28334         (libc_feholdexcept): Remove.
28335         (libc_feholdexcept_setround): Remove.
28336         (libc_fetestexcept, libc_fesetenv): Remove.
28337         (libc_feupdateenv_test): Remove.
28338         (libc_feupdateenv, libc_feholdsetround): Remove.
28339         (libc_feresetround): Remove.
28340
28341         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
28342         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28343
28344         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
28345         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
28346         (libc_feupdateenv_testl): New.
28347         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
28348         (libc_feupdateenv_testf): New.
28349         (libc_feupdateenv): Use libc_feupdateenv_test.
28350         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
28351         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
28352
28353         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
28354         (libc_feholdsetroundf, libc_feholdsetroundl): New.
28355         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
28356         (libc_feresetround_noex): New.
28357         (libc_feresetround_noexf): New.
28358         (libc_feresetround_noexl): New.
28359         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
28360         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
28361         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
28362         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
28363         SET_RESTORE_ROUND.
28364         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
28365         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
28366         (__cos): Likewise.
28367         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
28368         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
28369         SET_RESTORE_ROUND_NOEX.
28370         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
28371         SET_RESTORE_ROUND_NOEXF.
28372         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
28373         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
28374         (libc_feholdsetroundf): New.
28375         (libc_feresetround, libc_feresetroundf): New.
28376
28377         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
28378         (libc_feholdexcept_setround_53bit): Convert from macro to function.
28379         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
28380
28381         * sysdeps/generic/math_private.h: Include <fenv.h>.
28382         (default_libc_feholdexcept): New.
28383         (default_libc_feholdexcept_setround): New.
28384         (default_libc_fesetenv, default_libc_feupdateenv): New.
28385         (libc_feholdexcept): Only define if undefined.
28386         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
28387         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
28388         (libc_feholdexcept_setroundl): Likewise.
28389         (libc_feholdexcept_setround_53bit): Likewise.
28390         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
28391         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
28392         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
28393         (libc_feupdateenv_53bit): Likewise.
28394         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
28395         (libc_feholdexcept): Convert from macro to inline function.
28396         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
28397         (libc_fesetenv, libc_feupdateenv): Likewise.
28398
28399         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
28400         not previously defined.
28401         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
28402         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
28403         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
28404         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
28405         * sysdeps/ieee754/flt-32/math_private.h: New file.
28406         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
28407         math_private.h below SET_FLOAT_WORD.
28408         (__isnan, __isinf_ns, __finite): Remove.
28409         (__isnanf, __isinf_nsf, __finitef): Remove.
28410
28411 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
28412
28413         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28414
28415 2012-03-17  David S. Miller  <davem@davemloft.net>
28416
28417         [BZ #6471]
28418         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
28419         for 2.16.
28420
28421 2012-03-16  David S. Miller  <davem@davemloft.net>
28422
28423         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
28424         warnings.
28425
28426         [BZ #6471]
28427         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
28428         properly.
28429         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
28430         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
28431         sysdep_routines when subdir is sysvipc.
28432         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
28433         __getshmlba helper.
28434
28435         * sysdeps/sparc/fpu/libm-test/ulps: Update.
28436
28437 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28438
28439         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
28440         [__LP64__].
28441
28442 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28443
28444         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
28445         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
28446         (__lround): Renamed to ...
28447         (__llround): This.  Replace long int with long long int.
28448         Define lround functions as aliases of llround functions.
28449         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
28450
28451 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28452
28453         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
28454         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
28455         adresses to uintptr_t.  Replace "long int" and "unsigned long
28456         int" with "greg_t" on va_arg.
28457
28458 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28459
28460         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
28461         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
28462
28463         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
28464         Move e_machine check before EI_CLASS check.  Handle x32
28465         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
28466         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
28467         SKIP_EM_IA_64 and include
28468         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
28469
28470         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
28471         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
28472         (add_system_dir): New macro.
28473
28474         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
28475         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
28476
28477 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28478
28479         [BZ #2551]
28480         [BZ #2552]
28481         [BZ #2553]
28482         [BZ #2554]
28483         [BZ #2562]
28484         [BZ #2563]
28485         [BZ #2565]
28486         [BZ #2566]
28487         [BZ #2576]
28488         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
28489         (y0): Likewise.
28490         * math/w_j0f.c (j0f): Likewise.
28491         (y0f): Likewise.
28492         * math/w_j0l.c (__j0l): Likewise.
28493         (__y0l): Likewise.
28494         * math/w_j1.c (j1): Likewise.
28495         (y1): Likewise.
28496         * math/w_j1f.c (j1f): Likewise.
28497         (y1f): Likewise.
28498         * math/w_j1l.c (__j1l): Likewise.
28499         (__y1l): Likewise.
28500         * math/w_jn.c (jn): Likewise.
28501         (yn): Likewise.
28502         * math/w_jnf.c (jnf): Likewise.
28503         (ynf): Likewise.
28504         * math/w_jnl.c (__jnl): Likewise.
28505         (__ynl): Likewise.
28506         * math/libm-test.inc (j0_test): Add more tests.
28507         (j1_test): Likewise.
28508         (jn_test): Likewise.  Add trailing semicolon to existing test.
28509         (y0_test): Likewise.
28510         (y1_test): Likewise.
28511         * sysdeps/i386/fpu/libm-test-ulps: Update.
28512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28513
28514         [BZ #13851]
28515         [BZ #13854]
28516         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
28517         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
28518         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
28519         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
28520         (__tanl): Set errno for infinite argument.
28521         * sysdeps/i386/fpu/mptan.c: Remove.
28522         * sysdeps/i386/fpu/s_tan.S: Likewise.
28523         * sysdeps/i386/fpu/s_tanl.S: Likewise.
28524         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
28525         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
28526         * math/libm-test.inc (tan_test): Add more tests and enable more
28527         tests for double and long double.
28528         * sysdeps/i386/fpu/libm-test-ulps: Update.
28529         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28530
28531 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
28532
28533         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
28534         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
28535
28536 2012-03-16  Roland McGrath  <roland@hack.frob.com>
28537
28538         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
28539         * configure.in: Use it for both main tree and add-ons.
28540         * configure: Regenerated.
28541
28542 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28543
28544         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
28545
28546 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28547
28548         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
28549         in comment.
28550
28551         [BZ #13851]
28552         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
28553         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
28554         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
28555         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
28556         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
28557         infinite argument.
28558         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
28559         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
28560         != 0 for prec == 2.
28561         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
28562         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
28563         * sysdeps/i386/fpu/s_cosl.S: Likewise.
28564         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
28565         * sysdeps/i386/fpu/s_sinl.S: Likewise.
28566         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
28567         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
28568         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
28569         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
28570         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
28571         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
28572         * math/libm-test.inc (cos_test): Add more tests and enable more
28573         tests for long double.
28574         (sin_test): Likewise.
28575         (sincos_test): Likewise.
28576         * sysdeps/i386/fpu/libm-test-ulps: Update.
28577         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28578
28579 2012-03-16  David S. Miller  <davem@davemloft.net>
28580
28581         * sysdeps/sparc/fpu/math_private.h: New file.
28582
28583 2012-03-15  David S. Miller  <davem@davemloft.net>
28584
28585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
28586         file.
28587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
28588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
28589         file.
28590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
28591         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
28592         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
28593         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
28594         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
28595         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
28596         sysdep routines.
28597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28598
28599         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
28600         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
28601
28602         * sysdeps/sparc/sparc-ifunc.h: New file.
28603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
28604         sparc-ifunc.h
28605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
28606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28607         Likewise.
28608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
28609         Likewise.
28610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
28611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
28612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
28613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
28614         Likewise.
28615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
28616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
28617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
28618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
28619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
28620         Likewise.
28621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
28622         Likewise.
28623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
28624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
28625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
28626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
28627         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
28628         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
28629         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
28630         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
28631         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
28632         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
28633         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
28634         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
28635         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
28636         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
28637         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
28638         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
28639         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
28640         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
28641         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
28642         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
28643         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
28644         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
28645         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
28646         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
28647
28648 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28649
28650         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
28651         scaling.
28652         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28653
28654 2012-03-15  Andreas Jaeger  <aj@suse.de>
28655
28656         [BZ #13852]
28657         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
28658         ieee754/flt-32 implementation for sin, cos and sincos.
28659         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
28660         * sysdeps/i386/fpu/s_cosf.S: Likewise.
28661         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
28662         * sysdeps/i386/fpu/s_sinf.S: Likewise.
28663         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
28664         ieee754/flt-32 implementation for tan.
28665
28666         * math/libm-test.inc (cos_test): Enable some large input tests for
28667         float as well
28668         (sin_test): Likewise.
28669         (sincos_test): Likewise.
28670         (tan_test): Add tests for large input.
28671
28672         * sysdeps/i386/fpu/libm-test-ulps: Update.
28673
28674 2012-03-15  Andreas Jaeger  <aj@suse.de>
28675
28676         [BZ #13658]
28677         * math/libm-test.inc (cos_test): Add more test cases.
28678         (sin_test): Likewise.
28679         (sincos_test): Likewise.
28680
28681 2012-03-15  Andreas Jaeger  <aj@suse.de>
28682
28683         [BZ #13837]
28684         * math/libm-test.inc (cos_test): Add a test case for large input
28685         value.
28686         (sin_test): Likewise.
28687         (sincos_test): Likewise.
28688
28689 2012-03-15  Andreas Jaeger  <aj@suse.de>,
28690         Joseph Myers  <joseph@codesourcery.com>
28691
28692         [BZ #13658]
28693         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
28694         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
28695         * sysdeps/i386/fpu/branred.c: Likewise.
28696         * sysdeps/i386/fpu/dosincos.c: Likewise.
28697         * sysdeps/i386/fpu/mpa.c: Likewise.
28698         * sysdeps/i386/fpu/s_cos.S: Likewise.
28699         * sysdeps/i386/fpu/s_sin.S: Likewise.
28700         * sysdeps/i386/fpu/s_sincos.S: Likewise.
28701         * sysdeps/i386/fpu/sincos32.c: Likewise.
28702
28703         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
28704         Define.
28705         (libc_feupdateenv_53bit): Define.
28706         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
28707         Define.
28708         (libc_feupdateenv_53bit): Define.
28709
28710         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
28711         53 bit (without extend i386 double precision).
28712
28713         * math/libm-test.inc (sincos_test): Add tests for large input.
28714         (sin): Likewise.
28715         (cos): Likewise.
28716
28717         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28718
28719 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28720
28721         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28722
28723 2012-03-15  David S. Miller  <davem@davemloft.net>
28724
28725         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
28726         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
28727         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
28728         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
28729         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
28730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
28731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
28732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
28733         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
28734         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
28735         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
28736         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
28737         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
28738         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
28739         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
28740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
28741         file.
28742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
28743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
28744         file.
28745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
28746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
28747         file.
28748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
28749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
28750         file.
28751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
28752         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
28753         fmin/fmax sysdep routines.
28754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28755
28756 2012-03-14  David S. Miller  <davem@davemloft.net>
28757
28758         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
28759         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
28760         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
28761         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
28762         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
28763         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
28764         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
28765         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
28766         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
28767         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
28768         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
28769         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
28770         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
28771         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
28772         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
28773         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
28774         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
28775         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
28776         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
28777         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
28778         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
28779         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
28780         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
28781         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
28782         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
28783         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
28784         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
28785         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
28786         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
28787         routines.
28788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
28789         file.
28790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
28791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
28792         file.
28793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
28794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
28795         file.
28796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
28797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
28798         file.
28799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
28800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
28801         file.
28802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
28803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
28804         file.
28805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
28806         file.
28807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
28808         file.
28809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
28810         file.
28811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
28812         New file.
28813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
28814         file.
28815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
28816         file.
28817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
28818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
28819         file.
28820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
28821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
28822         file.
28823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
28824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
28825         file.
28826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
28827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
28828         VIS3 routines.
28829
28830         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
28831         New file.
28832
28833         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28834
28835         * sysdeps/sparc/configure.in: New file.
28836         * sysdeps/sparc/configure: Generate.
28837         * configure.in (libc_cv_sparc_as_vis3): Substitute.
28838         * configure: Regenerate.
28839         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
28840         * config.make.in (have-as-vis3): New.
28841         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
28842         available use -Av9d instead of -Av9a.
28843         * sysdeps/sparc/sparc64/Makefile: Likewise.
28844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
28845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
28846         New file.
28847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
28848         file.
28849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
28850         New file.
28851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
28852         file.
28853         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
28854         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
28855         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
28856         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
28857         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
28858
28859         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
28860         fzeros/fnegs to load 0x80000000 into a float register instead of
28861         using the stack.
28862         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
28863
28864 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28865
28866         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28867         bits/syscall.h.
28868         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
28869         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
28870         ($(inst_includedir)/bits/syscall.h): Remove rule.
28871         ($(objpfx)bits/syscall.d): Include instead of
28872         $(objpfx)syscall-list.d.
28873         (generated): Change syscall-list.h and syscall-list.d to
28874         bits/syscall.h and bits/syscall.d.
28875
28876 2012-03-14  Roland McGrath  <roland@hack.frob.com>
28877
28878         [BZ #13846]
28879         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
28880
28881 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28882
28883         [BZ #13841]
28884         * math/s_csqrt.c: Include <float.h>.
28885         (__csqrt): Scale large or subnormal inputs.
28886         * math/s_csqrtf.c: Likewise.
28887         * math/s_csqrtl.c: Likewise.
28888         * math/libm-test.inc (csqrt_test): Add more tests.
28889         * sysdeps/i386/fpu/libm-test-ulps: Update.
28890         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28891
28892         [BZ #13840]
28893         * math/libm-test.inc (hypot_test): Add more tests.
28894
28895 2012-03-13  David S. Miller  <davem@davemloft.net>
28896
28897         [BZ #13840]
28898         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
28899         double-precision for the calculation instead of scaling.
28900
28901 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
28902
28903         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
28904         manipulate bits before adding and subtracting TWO52[sx].
28905         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
28906         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28907         Likewise.
28908         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
28909
28910 2012-03-13  David S. Miller  <davem@davemloft.net>
28911
28912         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
28913         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
28914         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
28915         rtld-global-offsets.h
28916         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
28917
28918         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
28919         large parameters.
28920
28921         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
28922
28923         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
28924         'err' in the ifdef scope in which it is actually used.
28925
28926         * nss/nss_db/db-init.c: Include string.h
28927
28928 2012-03-12  David S. Miller  <davem@davemloft.net>
28929
28930         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
28931         masking out of the most significant byte of random value used.
28932         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28933         Fix coding style in previous change.
28934
28935         * sysdeps/unix/sysv/linux/kernel-features.h
28936         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
28937         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
28938         expression.
28939         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
28940         later.
28941
28942 2012-03-11  David S. Miller  <davem@davemloft.net>
28943
28944         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
28945         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
28946         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
28947         for 'resultvar' otherwise things get truncated on 64-bit.
28948
28949         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
28950         Fix masking out of the most significant byte of random value used.
28951
28952         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28953
28954 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
28955
28956         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28957
28958 2012-03-09  David S. Miller  <davem@davemloft.net>
28959
28960         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
28961         variables with appropriate CPP guards.
28962         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
28963         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
28964         on resulting framesize and the management of the outregs buffer for pltexit.
28965         Preserve floating point return values across _dl_call_pltexit call.
28966         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
28967         framesize and the management of the outregs buffer for pltexit.
28968         Preserve floating point return values across _dl_call_pltexit
28969         call.
28970         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
28971         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
28972         (print_exit): Fix format string for return register value.
28973
28974 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
28975
28976         * sunrpc/Makefile (others): Add rpcgen.
28977         ($(objpfx)rpcgen): Remove special build rule and dependency on
28978         libc.
28979         * sunrpc/rpcgen.c: New file.
28980
28981 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
28982
28983         [BZ #13673]
28984         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
28985         * stdio-common/bug-vfprintf-nargs.c: Likewise.
28986         * sysdeps/i386/crti.S: Likewise.
28987         * sysdeps/i386/crtn.S: Likewise.
28988         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
28989         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
28990         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
28991         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
28992         * sysdeps/sh/crti.S: Likewise.
28993         * sysdeps/sh/crtn.S: Likewise.
28994         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
28995
28996         [BZ #13673]
28997         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
28998         with URL.
28999         * locale/programs/locfile-kw.gperf: Likewise.
29000         * locale/programs/charmap-kw.h: Regenerated.
29001         * locale/programs/locfile-kw.h: Likewise.
29002
29003         [BZ #13673]
29004         * intl/plural.y: Replace FSF snail mail address with URL.
29005         * intl/plural.c: Regenerated.
29006
29007 2012-03-09  Richard Henderson  <rth@twiddle.net>
29008
29009         * include/math_private.h: Remove file.
29010         * math/math_private.h: Move file ...
29011         * sysdeps/generic/math_private.h: ... here.
29012
29013         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
29014         * sysdeps/powerpc/fpu/math_private.h: Likewise.
29015         * sysdeps/x86_64/fpu/math_private.h: Likewise.
29016
29017         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
29018         and <math_private.h>.
29019         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
29020         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
29021         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
29022         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
29023         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
29024         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
29025         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
29026         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29027         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
29028         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29029         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29030         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29031         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
29032         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29033         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
29034         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
29035         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29036         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
29037         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
29038         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
29039         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29040         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
29041         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
29042         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29043         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
29044         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
29045         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
29046         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29047         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29048         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
29049         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
29050         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29051         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
29052         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
29053         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
29054         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
29055         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
29056         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
29057         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
29058         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29059         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
29060         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
29061         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
29062         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
29063         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
29064         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
29065         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
29066         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
29067         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
29068         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
29069         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
29070         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
29071         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
29072         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
29073         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
29074         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
29075         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
29076         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
29077         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
29078         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
29079         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
29080         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
29081         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29082         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
29083         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
29084         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
29085         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
29086         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
29087         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
29088         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
29089         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
29090         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
29091         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
29092         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
29093         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
29094         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
29095         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
29096         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
29097         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
29098         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
29099         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
29100         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
29101         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
29102         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
29103         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
29104         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
29105         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
29106         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
29107         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29108         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29109         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29110         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29111         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29112         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29113         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29114         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29115         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29116         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29117         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29118         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29119         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29120         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29121         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29122         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29123         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
29124         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29125         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29126         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29127         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
29128         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
29129         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
29130         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
29131         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29132         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
29133         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
29134         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29135         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
29136         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
29137         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
29138         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
29139         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
29140         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
29141         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29142         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
29143         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
29144         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
29145         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29146         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
29147         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
29148         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
29149         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
29150         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
29151         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
29152         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
29153         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
29154         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
29155         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29156         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
29157         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
29158         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
29159         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
29160         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
29161         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
29162         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
29163         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
29164         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
29165         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
29166         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
29167         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
29168         * sysdeps/ieee754/k_standard.c: Likewise.
29169         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29170         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29171         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29172         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29173         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29174         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29175         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29176         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29177         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29178         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29179         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29180         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29181         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29182         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29183         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29184         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29185         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
29186         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29187         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29188         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
29189         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
29190         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
29191         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
29192         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
29193         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
29194         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
29195         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
29196         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
29197         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
29198         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
29199         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
29200         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
29201         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
29202         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
29203         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
29204         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
29205         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
29206         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
29207         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
29208         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
29209         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
29210         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
29211         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
29212         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
29213         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
29214         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
29215         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
29216         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
29217         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
29218         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
29219         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
29220         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
29221         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
29222         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
29223         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
29224         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
29225         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
29226         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
29227         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
29228         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
29229         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
29230         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
29231         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
29232         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29233         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29234         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29235         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29236         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29237         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29238         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29239         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29240         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29241         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29242         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29243         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29244         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29245         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
29246         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29247         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29248         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
29249         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
29250         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
29251         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
29252         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
29253         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
29254         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
29255         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
29256         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29257         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29258         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
29259         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
29260         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
29261         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
29262         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
29263         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
29264         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
29265         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
29266         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
29267         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
29268         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
29269         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
29270         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
29271         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
29272         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
29273         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
29274         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
29275         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
29276         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
29277         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
29278         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
29279         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
29280         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
29281         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29282         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29283         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29284         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29285         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29286         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29287         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29288         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29289         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29290         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29291         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29292         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29293         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29294         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
29295         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
29296         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
29297         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
29298         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
29299         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
29300         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
29301         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
29302         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
29303         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
29304         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
29305         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
29306         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
29307         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
29308         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
29309         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
29310         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
29311         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
29312         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
29313         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
29314         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
29315         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
29316         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
29317         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
29318         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
29319         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
29320         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
29321         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
29322         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
29323         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
29324         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
29325         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
29326         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
29327         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
29328         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
29329         * sysdeps/ieee754/s_lib_version.c: Likewise.
29330         * sysdeps/ieee754/s_matherr.c: Likewise.
29331         * sysdeps/ieee754/s_signgam.c: Likewise.
29332         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29333         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29334         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
29335         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
29336         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
29337         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
29338         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
29339         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
29340         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
29341         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
29342         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
29343         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
29344         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
29345         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
29346         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
29347         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
29348         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
29349         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
29350         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
29351         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
29352         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
29353
29354 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29355
29356         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
29357         * sunrpc/rpc_main.c: Likewise.
29358         * sunrpc/rpc_svcout.c: Likewise.
29359
29360 2012-03-09  David S. Miller  <davem@davemloft.net>
29361
29362         * include/math_private.h: New file.
29363
29364 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29365
29366         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
29367         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
29368         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
29369         from <bits/socket_type.h>.
29370         (enum __socket_type): Don't define here.
29371         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
29372         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29373         bits/socket_type.h.
29374
29375         [BZ #13566]
29376         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
29377         checking __USE_GNU.
29378
29379         * Makerules ($(inst_includedir)/%.h): New rule.
29380         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
29381         (install-others): Remove variable setting.
29382         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
29383
29384 2012-03-08  Richard Henderson  <rth@twiddle.net>
29385
29386         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
29387         from macro to inline function; merge with the
29388         !__LIBC_INTERNAL_MATH_INLINES version.
29389         (__ieee754_sqrtf): Likewise.
29390
29391         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
29392         to inline function.
29393         (__rintf, __floor, __floorf): Likewise.
29394
29395         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
29396         macro to inline function.
29397         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
29398
29399         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
29400         not <math/math_private.h>.
29401
29402 2012-03-08  David S. Miller  <davem@davemloft.net>
29403
29404         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
29405         copyright year.
29406         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
29407
29408 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
29409
29410         * resolv/gai_misc.c (handle_requests): Fix struct timespec
29411         normalization.
29412         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
29413         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29414
29415 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
29416
29417         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
29418         be defined individually, they must be defined as a block.  Define
29419         S for printing a string instead of hidint the different by using a
29420         macro for adding the 'l'.
29421         * stdio-common/tst-fphex-wide.c: Adjust.
29422
29423 2012-03-07  Marek Polacek  <polacek@redhat.com>
29424
29425         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
29426
29427 2012-03-08  Marek Polacek  <polacek@redhat.com>
29428
29429         [BZ #13806]
29430         * stdio-common/Makefile (tests): Add tst-fphex-wide.
29431         * stdio-common/tst-fphex.c: Define a few macros to make the
29432         test reusable.  Use them.
29433         * stdio-common/tst-fphex-wide.c: New file.
29434
29435 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
29436
29437         [BZ #6911]
29438         * manual/macros.texi (gnusystems): New macro.
29439         (nongnusystems): Likewise.
29440         (gnulinuxhurdsystems): Likewise.
29441         (gnuhurdsystems): Likewise..
29442         (gnulinuxsystems): Likewise.
29443         * manual/charset.texi: Use new macros or @theglibc{} to refer to
29444         variants of the GNU system, not "GNU system".
29445         * manual/conf.texi: Likewise.
29446         * manual/errno.texi: Likewise.  Update example of errno macro
29447         expansion.
29448         * manual/filesys.texi: Likewise.
29449         (getumask): Document as specific to GNU/Hurd.
29450         * manual/install.texi: Likewise.  Reword some references to
29451         GNU/Linux.
29452         * manual/intro.texi: Likewise.
29453         * manual/io.texi: Likewise.
29454         (File Name Portability): Detail which constraints are inapplicable
29455         to all GNU systems and which are only inapplicable to GNU/Hurd.
29456         * manual/job.texi: Likewise.
29457         * manual/llio.texi: Likewise.
29458         (O_NOCTTY): Document as present on GNU/Linux.
29459         * manual/maint.texi: Likewise.
29460         * manual/memory.texi: Likewise.
29461         * manual/pattern.texi: Likewise.
29462         * manual/pipe.texi: Likewise.
29463         * manual/process.texi: Likewise.
29464         * manual/resource.texi: Likewise.
29465         (RUSAGE_CHILDREN): Remove statement about specifying a particular
29466         child on GNU/Hurd.
29467         * manual/setjmp.texi: Likewise.
29468         * manual/signal.texi: Likewise.
29469         * manual/startup.texi: Likewise.
29470         * manual/stdio.texi: Likewise.
29471         * manual/terminal.texi: Likewise.
29472         (ONLCR): Document as POSIX.
29473         (OXTABS): Document availability on GNU/Linux as XTABS.
29474         (ONOEOT): Document availability separately from other bits.
29475         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
29476         * manual/time.texi: Likewise.
29477         * manual/users.texi: Likewise.
29478         * INSTALL: Regenerated.
29479         * sysdeps/gnu/errlist.c: Regenerated.
29480
29481         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
29482         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
29483         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
29484         puts.
29485         * configure: Regenerated.
29486
29487 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
29488
29489         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
29490         default includes instead of AC_HEADER_CHECK.
29491         * sysdeps/i386/configure: Regenerated.
29492
29493         [BZ #10716]
29494         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
29495         * math/s_cacoshf.c (__cacoshf): Likewise.
29496         * math/s_cacoshl.c (__cacoshl): Likewise.
29497         * math/s_casinh.c (__casinh): Set signs of result from argument.
29498         * math/s_casinhf.c (__casinhf): Likewise.
29499         * math/s_casinhl.c (__casinhl): Likewise.
29500         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
29501         (casinh_test): Add more tests.
29502         * sysdeps/i386/fpu/libm-test-ulps: Update.
29503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29504
29505 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
29506
29507         * po/zh_TW.po: Update from translation team.
29508
29509         * login/Makefile (distribute): Remove variable.
29510         * catgets/Makefile: Likewise.
29511         * mach/Makefile: Likewise.
29512         * malloc/Makefile: Likewise.
29513         * misc/Makefile: Likewise.
29514         * iconv/Makefile: Likewise.
29515         * nscd/Makefile: Likewise.
29516         * hurd/Makefile: Likewise.
29517         * manual/Makefile: Likewise.
29518         * locale/Makefile: Likewise.
29519         * intl/Makefile: Likewise.
29520         * conform/Makefile: Likewise.
29521         * nss/Makefile: Likewise.
29522         * time/Makefile: Likewise.
29523         * soft-fp/Makefile: Likewise.
29524         * dirent/Makefile: Likewise.
29525         * gmon/Makefile: Likewise.
29526         * po/Makefile: Likewise.
29527         * rt/Makefile: Likewise.
29528         * socket/Makefile: Likewise.
29529         * math/Makefile: Likewise.
29530         * signal/Makefile: Likewise.
29531         * debug/Makefile: Likewise.
29532         * elf/Makefile: Likewise.
29533         * timezone/Makefile: Likewise.
29534         * stdlib/Makefile: Likewise.
29535         * iconvdata/Makefile: Likewise.
29536         * sunrpc/Makefile: Likewise.
29537         * io/Makefile: Likewise.
29538         * argp/Makefile: Likewise.
29539         * inet/Makefile: Likewise.
29540         * hesiod/Makefile: Likewise.
29541         * grp/Makefile: Likewise.
29542         * csu/Makefile: Likewise.
29543         * wctype/Makefile: Likewise.
29544         * crypt/Makefile: Likewise.
29545         * libio/Makefile: Likewise.
29546         * string/Makefile: Likewise.
29547         * nis/Makefile: Likewise.
29548         * resolv/Makefile: Likewise.
29549         * stdio-common/Makefile: Likewise.
29550         * wcsmbs/Makefile: Likewise.
29551         * dlfcn/Makefile: Likewise.
29552         * posix/Makefile: Likewise.
29553
29554         [BZ #6959]
29555         * timezone/Makefile: Don't install timezone files, just the programs
29556         and scripts.
29557
29558 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
29559
29560         * nss/databases.def: Add missing gshadow entry.
29561
29562         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
29563
29564 2012-03-06  Marek Polacek  <polacek@redhat.com>
29565
29566         [BZ #13726]
29567         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
29568         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
29569         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
29570         * stdio-common/tst-long-dbl-fphex.c: New file.
29571
29572 2012-03-06  David S. Miller  <davem@davemloft.net>
29573
29574         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
29575         (set_obp_int): New function.
29576         (get_obp_int): New function.
29577         (__get_clockfreq_via_dev_openprom): Likewise.
29578         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
29579         Avoid unused variable warnings on 'val' and use builtin_expect.
29580         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
29581         __builtin_expect.
29582         (INLINE_CLONE_SYSCALL): Likewise.
29583
29584 2012-03-05  David S. Miller  <davem@davemloft.net>
29585
29586         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29587
29588 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
29589
29590         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29591
29592         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
29593         only for |x| >= 40.
29594         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29595
29596 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
29597
29598         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
29599         Replace gettimeofday with __vdso_gettimeofday.
29600
29601         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29602         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
29603         __vdso_clock_gettime and __vdso_getcpu.
29604
29605         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
29606         time with __vdso_time.
29607
29608 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29609
29610         * manual/lang.texi (size_t): Note types to which size_t may be
29611         equivalent with the GNU C Library, but do not describe when
29612         differences between them are significant.
29613
29614 2012-03-05  Andreas Jaeger  <aj@suse.de>
29615
29616         * sysdeps/i386/fpu/libm-test-ulps: Update.
29617
29618 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29619
29620         [BZ #3976]
29621         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
29622         (__ieee754_pow): Save and restore rounding mode and use
29623         round-to-nearest for main computations.
29624         * math/libm-test.inc (pow_test_tonearest): New function.
29625         (pow_test_towardzero): Likewise.
29626         (pow_test_downward): Likewise.
29627         (pow_test_upward): Likewise.
29628         (main): Call the new functions.
29629         * sysdeps/i386/fpu/libm-test-ulps: Update.
29630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29631
29632         [BZ #3976]
29633         * math/libm-test.inc (cosh_test_tonearest): New function.
29634         (cosh_test_towardzero): Likewise.
29635         (cosh_test_downward): Likewise.
29636         (cosh_test_upward): Likewise.
29637         (sinh_test_tonearest): Likewise.
29638         (sinh_test_towardzero): Likewise.
29639         (sinh_test_downward): Likewise.
29640         (sinh_test_upward): Likewise.
29641         (main): Call the new functions.
29642         * sysdeps/i386/fpu/libm-test-ulps: Update.
29643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29644
29645 2012-03-05  Tom de Vries  <tom@codesourcery.com>
29646
29647         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
29648         default stack guard is set in last bytes.
29649         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
29650
29651 2012-03-05  Kees Cook  <keescook@chromium.org>
29652
29653         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
29654
29655         [BZ #13656]
29656         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
29657         possibly allocate from heap instead of stack.
29658         * stdio-common/bug-vfprintf-nargs.c: New file.
29659         * stdio-common/Makefile (tests): Add nargs overflow test.
29660
29661 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
29662
29663         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29664
29665 2012-03-03  Marek Polacek  <polacek@redhat.com>
29666
29667         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
29668         * math/math_private.h: Likewise.
29669         * stdlib/tst-strtod.c: Likewise.
29670         * sysdeps/i386/i486/bits/atomic.h: Likewise.
29671         * sysdeps/x86_64/bits/atomic.h: Likewise.
29672
29673 2012-03-02  David S. Miller  <davem@davemloft.net>
29674
29675         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
29676         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
29677         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
29678         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
29679         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
29680         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
29681         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
29682         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
29683
29684 2012-03-02  Roland McGrath  <roland@hack.frob.com>
29685
29686         [BZ #13792]
29687         * manual/examples/README: New file, says the example source files
29688         can be used under GPL>=2.
29689         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
29690         line containing just "*/".
29691         * manual/examples/add.c: Add copyright header (GPL>=2).
29692         * manual/examples/argp-ex1.c: Likewise.
29693         * manual/examples/argp-ex2.c: Likewise.
29694         * manual/examples/argp-ex3.c: Likewise.
29695         * manual/examples/argp-ex4.c: Likewise.
29696         * manual/examples/atexit.c: Likewise.
29697         * manual/examples/db.c: Likewise.
29698         * manual/examples/dir.c: Likewise.
29699         * manual/examples/dir2.c: Likewise.
29700         * manual/examples/execinfo.c: Likewise.
29701         * manual/examples/filecli.c: Likewise.
29702         * manual/examples/filesrv.c: Likewise.
29703         * manual/examples/fmtmsgexpl.c: Likewise.
29704         * manual/examples/genpass.c: Likewise.
29705         * manual/examples/inetcli.c: Likewise.
29706         * manual/examples/inetsrv.c: Likewise.
29707         * manual/examples/isockad.c: Likewise.
29708         * manual/examples/longopt.c: Likewise.
29709         * manual/examples/memopen.c: Likewise.
29710         * manual/examples/memstrm.c: Likewise.
29711         * manual/examples/mkfsock.c: Likewise.
29712         * manual/examples/mkisock.c: Likewise.
29713         * manual/examples/mygetpass.c: Likewise.
29714         * manual/examples/pipe.c: Likewise.
29715         * manual/examples/popen.c: Likewise.
29716         * manual/examples/rprintf.c: Likewise.
29717         * manual/examples/search.c: Likewise.
29718         * manual/examples/select.c: Likewise.
29719         * manual/examples/setjmp.c: Likewise.
29720         * manual/examples/sigh1.c: Likewise.
29721         * manual/examples/sigusr.c: Likewise.
29722         * manual/examples/stpcpy.c: Likewise.
29723         * manual/examples/strdupa.c: Likewise.
29724         * manual/examples/strftim.c: Likewise.
29725         * manual/examples/strncat.c: Likewise.
29726         * manual/examples/subopt.c: Likewise.
29727         * manual/examples/swapcontext.c: Likewise.
29728         * manual/examples/termios.c: Likewise.
29729         * manual/examples/testopt.c: Likewise.
29730         * manual/examples/testpass.c: Likewise.
29731         * manual/examples/timeval_subtract.c: Likewise.
29732
29733         [BZ #13792]
29734         * manual/time.texi (Elapsed Time): Move timeval_subtract example
29735         function to ...
29736         * manual/timeval_subtract.c.texi: ... here, new file.
29737
29738 2012-03-02  David S. Miller  <davem@davemloft.net>
29739
29740         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
29741
29742 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
29743
29744         [BZ #3976]
29745         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
29746         (__sin): Save and restore rounding mode and use round-to-nearest
29747         for all computations.
29748         (__cos): Save and restore rounding mode and use round-to-nearest
29749         for all computations.
29750         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
29751         <fenv.h>.
29752         (tan): Save and restore rounding mode and use round-to-nearest for
29753         all computations.
29754         * math/libm-test.inc (cos_test_tonearest): New function.
29755         (cos_test_towardzero): Likewise.
29756         (cos_test_downward): Likewise.
29757         (cos_test_upward): Likewise.
29758         (sin_test_tonearest): Likewise.
29759         (sin_test_towardzero): Likewise.
29760         (sin_test_downward): Likewise.
29761         (sin_test_upward): Likewise.
29762         (tan_test_tonearest): Likewise.
29763         (tan_test_towardzero): Likewise.
29764         (tan_test_downward): Likewise.
29765         (tan_test_upward): Likewise.
29766         (main): Call the new functions.
29767         * sysdeps/i386/fpu/libm-test-ulps: Update.
29768         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29769
29770         [BZ #10135]
29771         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
29772         small n, then large n, before computing and testing k+n.
29773         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
29774         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
29775         Likewise.
29776         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
29777         Likewise.
29778         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
29779         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
29780         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
29781         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
29782         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
29783         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
29784         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
29785         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
29786         * math/libm-test.inc (scalbn_test): Add more tests.
29787         (scalbln_test): Likewise.
29788
29789         * manual/filesys.texi (mode_t): Describe constraints on size and
29790         signedness, not exact equivalence to a particular type.
29791         (ino_t): Likewise.
29792         (ino64_t): Likewise.
29793         (dev_t): Likewise.
29794         (nlink_t): Likewise.
29795         (blkcnt_t): Likewise.
29796         (blkcnt64_t): Likewise.
29797         * manual/llio.texi (off_t): Likewise.
29798
29799         [BZ #3976]
29800         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
29801         (__ieee754_exp): Save and restore rounding mode and use
29802         round-to-nearest for all computations.
29803         * math/libm-test.inc (exp_test_tonearest): New function.
29804         (exp_test_towardzero): Likewise.
29805         (exp_test_downward): Likewise.
29806         (exp_test_upward): Likewise.
29807         (main): Call the new functions.
29808         * sysdeps/i386/fpu/libm-test-ulps: Update.
29809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29810
29811 2012-03-01  Chris Demetriou  <cgd@google.com>
29812
29813         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
29814         have predictable order.
29815
29816 2012-03-01  David S. Miller  <davem@davemloft.net>
29817
29818         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
29819
29820         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
29821         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
29822         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
29823         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
29824
29825         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
29826         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
29827         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
29828         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
29829         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
29830         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
29831         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
29832         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
29833         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
29834
29835         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29836
29837         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
29838         * sysdeps/sparc/fpu/libm-test-ulps: to here.
29839         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
29840
29841         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
29842         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29843         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29844         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
29845         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
29846         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
29847         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
29848         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29849         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29850         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
29851         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
29852         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29853         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29854         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29855         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29856         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29857         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
29858         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
29859         * sysdeps/sparc/elf/configure: Regenerated.
29860
29861 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
29862
29863         * configure.in (AS, LD): Require binutils 2.20 or later.
29864         * configure: Regenerated.
29865         * manual/install.texi (Tools for Compilation): Give binutils 2.20
29866         as required minimum version.
29867         * INSTALL: Regenerated.
29868
29869         [BZ #2541]
29870         [BZ #4108]
29871         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
29872         before squaring exponent.
29873         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
29874         bottom long double and 27 bits of top long double before squaring
29875         exponent.
29876         * math/libm-test.inc (erfc_test): Add more tests.
29877         * sysdeps/i386/fpu/libm-test-ulps: Update.
29878         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29880
29881 2012-03-01  Kai Tietz  <ktietz@redhat.com>
29882
29883         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
29884         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
29885         containing bit-fields.
29886         * soft-fp/extended.h (_FP_UNION_E): Likewise.
29887         * soft-fp/single.h (_FP_UNION_S): Likewise.
29888         * soft-fp/double.h (_FP_UNION_D): Likewise.
29889
29890 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29891
29892         [BZ #13786]
29893         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
29894         not include ../strcmp.S.
29895         [USE_AS_STRNCASECMP_L]: Likewise.
29896         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
29897         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
29898         * sysdeps/i386/i686/multiarch/strncase_l-c.c
29899         (__strncasecmp_l_ia32): Define as alias to
29900         __strncasecmp_l_nonascii.
29901
29902         [BZ #5794]
29903         * math/libm-test.inc (expm1_test): Add test for bug 5794.
29904         * sysdeps/i386/fpu/libm-test-ulps: Update.
29905         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29906
29907         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
29908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29909
29910 2012-02-29  Jeff Law  <law@redhat.com>
29911
29912         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
29913         out of bounds read.
29914
29915 2012-02-29  Marek Polacek  <polacek@redhat.com>
29916
29917         [BZ #13706]
29918         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
29919         * elf/Makefile: Add rules to run tst-unused-dep.out.
29920
29921 2012-02-28  David S. Miller  <davem@davemloft.net>
29922
29923         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
29924         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
29925         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
29926         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
29927         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
29928         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
29929
29930 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29931
29932         * math/libm-test.inc (llround_test): Move one test from
29933         lround_test.  Use TEST_f_L in moved test.
29934         (lround_test): Move misplaced test to llround_test.  Add testcase
29935         from bug 2561.
29936
29937 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
29938
29939         * sysdeps/x86_64/fpu/e_expf.S: New file.
29940         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
29941
29942 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
29943
29944         [BZ #13637]
29945         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
29946         of remain_len that may cause incomplete multi-byte character and
29947         false match.
29948         * posix/bug-regex33.c: New file.
29949         * posix/Makefile (tests): Add bug-regex33.
29950
29951 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
29952
29953         * manual/macros.texi: New file.
29954         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
29955         * manual/libc.texinfo: Include macros.texi.
29956         * manual/creatute.texi: Likewise.
29957         * manual/install.texi: Likewise.
29958         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
29959         @glibcadj{} in references to the GNU C Library.
29960         * manual/charset.texi: Likewise.
29961         * manual/conf.texi: Likewise.
29962         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
29963         when not using those macros.
29964         * manual/creature.texi: Likewise.
29965         * manual/crypt.texi: Likewise.
29966         * manual/errno.texi: Likewise.
29967         * manual/filesys.texi: Likewise.
29968         * manual/header.texi: Likewise.
29969         * manual/install.texi: Likewise.
29970         * manual/intro.texi: Likewise.
29971         * manual/io.texi: Likewise.
29972         * manual/job.texi: Likewise.
29973         * manual/lang.texi: Likewise.
29974         * manual/libc.texiinfo: Likewise.
29975         * manual/llio.texi: Likewise.
29976         * manual/locale.texi: Likewise.
29977         * manual/maint.texi: Likewise.
29978         * manual/math.texi: Likewise.
29979         * manual/memory.texi: Likewise.
29980         * manual/message.texi: Likewise.
29981         * manual/nss.texi: Likewise.
29982         * manual/pattern.texi: Likewise.
29983         * manual/process.texi: Likewise.
29984         * manual/resource.texi: Likewise.
29985         * manual/search.texi: Likewise.
29986         * manual/setjmp.texi: Likewise.
29987         * manual/signal.texi: Likewise.
29988         * manual/socket.texi: Likewise.
29989         * manual/startup.texi: Likewise.
29990         * manual/stdio.texi: Likewise.
29991         * manual/string.texi: Likewise.
29992         * manual/sysinfo.texi: Likewise.
29993         * manual/syslog.texi: Likewise.
29994         * manual/terminal.texi: Likewise.
29995         * manual/time.texi: Likewise.
29996         * manual/users.texi: Likewise.
29997         * INSTALL: Regenerated.
29998         * NOTES: Regenerated.
29999         * sysdeps/gnu/errlist.c: Regenerated.
30000
30001 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
30002
30003         * include/dirent.h: Include <dirstream.h> before
30004         <dirent/dirent.h>.
30005
30006 2012-02-28  David S. Miller  <davem@davemloft.net>
30007
30008         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
30009         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
30010         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
30011         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
30012
30013 2012-02-27  David S. Miller  <davem@davemloft.net>
30014
30015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
30016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
30017         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
30018         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
30019
30020         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
30021         frame pointer instead of stack pointer relative arg slot.
30022         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
30023         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
30024         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
30025
30026 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
30027
30028         [BZ #3992]
30029         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
30030
30031 2012-02-27  David S. Miller  <davem@davemloft.net>
30032
30033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
30034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
30035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
30036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
30037         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
30038         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
30039         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
30040         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
30041
30042 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30043
30044         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
30045         later.  Allow versions 5-9.
30046         * configure: Regenerated.
30047         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
30048         required minimum version and 4.6 as recommended version.  Do not
30049         mention bugs in GCC 2.7 and 2.8.
30050         * INSTALL: Regenerated.
30051
30052 2012-02-27  David S. Miller  <davem@davemloft.net>
30053
30054         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
30055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
30056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
30057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
30058         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
30059         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
30060         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
30061         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
30062
30063         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
30064         manipulate bits before adding and subtracting TWO112[sx].
30065         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
30066
30067 2012-02-27  Roland McGrath  <roland@hack.frob.com>
30068
30069         [BZ #13775]
30070         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
30071         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
30072         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
30073         being in POSIX, because they are in 1003.1-2008.
30074
30075         * rt/tst-aio.c: Include <fcntl.h>.
30076         * rt/tst-aio7.c: Likewise.
30077         * rt/tst-aio64.c: Likewise.
30078
30079         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
30080
30081 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30082
30083         * manual/install.texi (--with-headers): Describe headers as
30084         interface headers, not private headers.
30085         (Specific advice for GNU/Linux systems): Describe use of headers
30086         from "make headers_install", not private headers from older
30087         kernels.
30088         * INSTALL: Regenerated.
30089         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
30090         Change to 2.6.19.
30091         * sysdeps/unix/sysv/linux/configure: Regenerated.
30092
30093         * manual/llio.texi (fclean): Remove documentation.
30094
30095         * manual/Makefile (libc-texi-generated): New variable.  Include
30096         version.texi.
30097         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
30098         $(libc-texi-generated), not duplicated list of files.
30099         (version.texi, stamp-version): New rules.
30100         (realclean): Remove $(libc-texi-generated), not individual files
30101         from that list.  Do not remove dir-add.texinfo.
30102         * manual/libc.texinfo: Comment out uses of edition numbers and
30103         references to printed manual.  Remove last-updated dates.
30104         (EDITION): Comment out.
30105         (ISBN): Likewise.
30106         (VERSION, UPDATED): Remove.
30107         (version.texi): Include.
30108
30109 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
30110
30111         * sysdeps/posix/spawni.c: Include <signal.h>.
30112         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
30113         * sysdeps/pthread/aio_fsync.c: Likewise.
30114
30115 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
30116
30117         * conform/Makefile (tests): Run only when not cross-compiling and
30118         when fast-check is not defined.
30119
30120         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
30121         * conform/data/limits.h-data: Fixes for POSIX2008.
30122         * conform/run-conformtest.sh: Run all tests.
30123         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
30124         headers.
30125         * include/bits/dlfcn.h: Likewise.
30126         * include/langinfo.h: Likewise.
30127         * include/monetary.h: Likewise.
30128         * include/sys/poll.h: Likewise.
30129
30130         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
30131         for __USE_GNU.
30132         * posix/spawn.h: Define __need_sigset_t.
30133         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
30134         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
30135         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
30136         to get sigevent_t only.
30137         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
30138         only for __USE_GNU.
30139         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30140         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
30141         process_vm_writev only for __USE_GNU.
30142         * termios/termios.h: Declare tcgetsid also for POSIX2008.
30143
30144         * conform/Makefile: For now ignore errors from run-conformtest.
30145         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
30146         POSIX to avoid namespace pollution.  Don't prepend headers.
30147         * conform/data/aio.h-data: Fixes for POSIX testing.
30148         * conform/data/fcntl.h-data: Likewise.
30149         * conform/data/glob.h-data: Likewise.
30150         * conform/data/grp.h-data: Likewise.
30151         * conform/data/pthread.h-data: Likewise.
30152         * conform/data/pwd.h-data: Likewise.
30153         * conform/data/signal.h-data: Likewise.
30154         * conform/data/spawn.h-data: Likewise.
30155         * conform/data/stdio.h-data: Likewise.
30156         * conform/data/stdlib.h-data: Likewise.
30157         * conform/data/stropts.h-data: Likewise.
30158         * conform/data/sys/mman.h-data: Likewise.
30159         * conform/data/sys/stat.h-data: Likewise.
30160         * conform/data/sys/types.h-data: Likewise.
30161         * conform/data/sys/wait.h-data: Likewise.
30162         * conform/data/time.h-data: Likewise.
30163         * conform/data/unistd.h-data: Likewise.
30164         * conform/data/utime.h-data: Likewise.
30165
30166         * io/sys/stat.h: fchmod was always in POSIX.
30167         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
30168         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
30169         * rt/aio.h: Define __need_timespec before including <time.h>.
30170         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
30171         struct.  Add forward declaration of pthread_attr_t and use it in
30172         sigevent.
30173         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
30174         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
30175         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
30176         always remove CLK_TCK definition.
30177
30178 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
30179
30180         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
30181
30182 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
30183
30184         * conform/run-conformtest.sh: New file.
30185         * conform/Makefile: Run run-conformtest for tests.
30186         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
30187         support.
30188
30189         * conform/data/uchar.h-data: New file.
30190         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
30191         * conform/data/arpa/inet.h-data: Likewise.
30192         * conform/data/assert.h-data: Likewise.
30193         * conform/data/complex.h-data: Likewise.
30194         * conform/data/cpio.h-data: Likewise.
30195         * conform/data/ctype.h-data: Likewise.
30196         * conform/data/dirent.h-data: Likewise.
30197         * conform/data/dlfcn.h-data: Likewise.
30198         * conform/data/errno.h-data: Likewise.
30199         * conform/data/fcntl.h-data: Likewise.
30200         * conform/data/float.h-data: Likewise.
30201         * conform/data/fmtmsg.h-data: Likewise.
30202         * conform/data/fnmatch.h-data: Likewise.
30203         * conform/data/ftw.h-data: Likewise.
30204         * conform/data/glob.h-data: Likewise.
30205         * conform/data/grp.h-data: Likewise.
30206         * conform/data/iconv.h-data: Likewise.
30207         * conform/data/inttypes.h-data: Likewise.
30208         * conform/data/langinfo.h-data: Likewise.
30209         * conform/data/libgen.h-data: Likewise.
30210         * conform/data/limits.h-data: Likewise.
30211         * conform/data/locale.h-data: Likewise.
30212         * conform/data/math.h-data: Likewise.
30213         * conform/data/monetary.h-data: Likewise.
30214         * conform/data/mqueue.h-data: Likewise.
30215         * conform/data/ndbm.h-data: Likewise.
30216         * conform/data/net/if.h-data: Likewise.
30217         * conform/data/netdb.h-data: Likewise.
30218         * conform/data/netinet/in.h-data: Likewise.
30219         * conform/data/nl_types.h-data: Likewise.
30220         * conform/data/poll.h-data: Likewise.
30221         * conform/data/pthread.h-data: Likewise.
30222         * conform/data/pwd.h-data: Likewise.
30223         * conform/data/regex.h-data: Likewise.
30224         * conform/data/sched.h-data: Likewise.
30225         * conform/data/search.h-data: Likewise.
30226         * conform/data/semaphore.h-data: Likewise.
30227         * conform/data/setjmp.h-data: Likewise.
30228         * conform/data/signal.h-data: Likewise.
30229         * conform/data/spawn.h-data: Likewise.
30230         * conform/data/stdarg.h-data: Likewise.
30231         * conform/data/stdio.h-data: Likewise.
30232         * conform/data/stdlib.h-data: Likewise.
30233         * conform/data/string.h-data: Likewise.
30234         * conform/data/strings.h-data: Likewise.
30235         * conform/data/stropts.h-data: Likewise.
30236         * conform/data/sys/ipc.h-data: Likewise.
30237         * conform/data/sys/mman.h-data: Likewise.
30238         * conform/data/sys/msg.h-data: Likewise.
30239         * conform/data/sys/resource.h-data: Likewise.
30240         * conform/data/sys/select.h-data: Likewise.
30241         * conform/data/sys/sem.h-data: Likewise.
30242         * conform/data/sys/shm.h-data: Likewise.
30243         * conform/data/sys/socket.h-data: Likewise.
30244         * conform/data/sys/stat.h-data: Likewise.
30245         * conform/data/sys/statvfs.h-data: Likewise.
30246         * conform/data/sys/time.h-data: Likewise.
30247         * conform/data/sys/timeb.h-data: Likewise.
30248         * conform/data/sys/times.h-data: Likewise.
30249         * conform/data/sys/types.h-data: Likewise.
30250         * conform/data/sys/uio.h-data: Likewise.
30251         * conform/data/sys/un.h-data: Likewise.
30252         * conform/data/sys/utsname.h-data: Likewise.
30253         * conform/data/sys/wait.h-data: Likewise.
30254         * conform/data/syslog.h-data: Likewise.
30255         * conform/data/tar.h-data: Likewise.
30256         * conform/data/termios.h-data: Likewise.
30257         * conform/data/utime.h-data: Likewise.
30258         * conform/data/utmpx.h-data: Likewise.
30259         * conform/data/varargs.h-data: Likewise.
30260         * conform/data/wchar.h-data: Likewise.
30261         * conform/data/wctype.h-data: Likewise.
30262         * conform/data/wordexp.h-data: Likewise.
30263
30264         * include/stropts.h: New file.
30265         * include/uchar.h: New file.
30266         * include/aio.h: Changes to allow conformtest.pl to use the headers.
30267         * include/assert.h: Likewise.
30268         * include/ctype.h: Likewise.
30269         * include/dirent.h: Likewise.
30270         * include/dlfcn.h: Likewise.
30271         * include/fcntl.h: Likewise.
30272         * include/fnmatch.h: Likewise.
30273         * include/glob.h: Likewise.
30274         * include/grp.h: Likewise.
30275         * include/libio.h: Likewise.
30276         * include/locale.h: Likewise.
30277         * include/math.h: Likewise.
30278         * include/net/if.h: Likewise.
30279         * include/netdb.h: Likewise.
30280         * include/netinet/in.h: Likewise.
30281         * include/pthread.h: Likewise.
30282         * include/pwd.h: Likewise.
30283         * include/regex.h: Likewise.
30284         * include/sched.h: Likewise.
30285         * include/search.h: Likewise.
30286         * include/setjmp.h: Likewise.
30287         * include/signal.h: Likewise.
30288         * include/stdio.h: Likewise.
30289         * include/stdlib.h: Likewise.
30290         * include/string.h: Likewise.
30291         * include/sys/cdefs.h: Likewise.
30292         * include/sys/mman.h: Likewise.
30293         * include/sys/msg.h: Likewise.
30294         * include/sys/resource.h: Likewise.
30295         * include/sys/select.h: Likewise.
30296         * include/sys/socket.h: Likewise.
30297         * include/sys/stat.h: Likewise.
30298         * include/sys/statvfs.h: Likewise.
30299         * include/sys/time.h: Likewise.
30300         * include/sys/times.h: Likewise.
30301         * include/sys/uio.h: Likewise.
30302         * include/sys/utsname.h: Likewise.
30303         * include/sys/wait.h: Likewise.
30304         * include/termios.h: Likewise.
30305         * include/time.h: Likewise.
30306         * include/ulimit.h: Likewise.
30307         * include/unistd.h: Likewise.
30308         * include/utime.h: Likewise.
30309         * include/wchar.h: Likewise.
30310         * include/wctype.h: Likewise.
30311         * include/wordexp.h: Likewise.
30312
30313         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
30314
30315         * time/time.h: TIME_UTC must be a macro.
30316         Make timespec_get available for ISO C11 only as well.
30317
30318 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
30319
30320         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
30321         Reported by Peng Haitao <penght@cn.fujitsu.com>.
30322
30323 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30324
30325         * configure.in: Use -o not -a in test for unsupported multi-arch.
30326
30327 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30328
30329         * manual/texinfo.tex: Update to version 2012-01-19.16.
30330
30331 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30332
30333         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
30334
30335 2012-02-24  Roland McGrath  <roland@hack.frob.com>
30336
30337         [BZ #13738]
30338         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
30339         * manual/fdl-1.3.texi: New file.
30340         * manual/fdl-1.1.texi: File removed.
30341
30342         [BZ #13738]
30343         * manual/libc.texinfo (FDL_VERSION): New @set.
30344         Use it for mention of FDL in cover text.
30345         (Documentation License): Use it in @include file name.
30346
30347 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30348             Roland McGrath  <roland@hack.frob.com>
30349
30350         [BZ #5461]
30351         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
30352         not LONG_LONG_MAX and LONG_LONG_MIN.
30353         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
30354         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
30355         name.
30356         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
30357
30358 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30359
30360         [BZ #2547]
30361         [BZ #11365]
30362         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
30363         manipulate bits before adding and subtracting TWO23[sx].
30364         * math/libm-test.inc (nearbyint_test): Add more tests.
30365
30366 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30367
30368         [BZ #2548]
30369         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
30370         bits before adding and subtracting TWO23[sx].
30371         * math/libm-test.inc (rint_test): Add more tests.
30372         (rint_test_tonearest): Likewise.
30373         (rint_test_towardzero): Likewise.
30374         (rint_test_downward): Likewise.
30375         (rint_test_upward: Likewise.
30376
30377 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30378
30379         [BZ #10110]
30380         * include/stdc-predef.h: New file.  Extracted from features.h.
30381         * include/features.h: Include stdc-predef.h.
30382         * Makefile (headers): Add stdc-predef.h.
30383         * CONFORMANCE (Compiler limitations): Update.
30384
30385 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30386
30387         * manual/libc.texinfo (VERSION, UPDATED): Revert.
30388
30389 2012-02-21  David S. Miller  <davem@davemloft.net>
30390
30391         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
30392         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30393
30394 2012-02-20  David S. Miller  <davem@davemloft.net>
30395
30396         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
30397         using a normal save/restore sequence, rather than allocating a
30398         dummy stack frame just to store a frame pointer and restore.
30399         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30400
30401 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30402
30403         * manual/install.texi: Fix stray word in line-wrapped comment.
30404
30405 2012-02-20  David S. Miller  <davem@davemloft.net>
30406
30407         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
30408         both binutils and gcc support GOTDATA.
30409
30410         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
30411         "rd %pc" in the PIC register setup sequences.
30412
30413         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
30414         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
30415         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
30416         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
30417         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
30418         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30419         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30420         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30421         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
30422         (SYSCALL_ERROR_HANDLER): Likewise.
30423         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
30424         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30425         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
30426         (SYSCALL_ERROR_HANDLER): Likewise.
30427
30428         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
30429         (HAVE_GCC_GOTDATA): New.
30430         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
30431         relocation support in both binutils and gcc.
30432         * sysdeps/sparc/elf/configure: Regenerate.
30433
30434         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
30435         * sysdeps/sparc/sparc32/elf/configure: Delete.
30436         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
30437         * sysdeps/sparc/sparc64/elf/configure: Delete.
30438         * sysdeps/sparc/elf/configure.in: New file.
30439         * sysdeps/sparc/elf/configure: Generate.
30440
30441         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
30442         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
30443         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30444         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
30445         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
30446
30447 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30448
30449         * manual/install.texi: Do not mention specific glibc version
30450         numbers.
30451         * manual/libc.texinfo (VERSION, UPDATED): Update.
30452         (@copying): Use @copyright{} and range of years.
30453
30454 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30455
30456         [BZ #13695]
30457         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
30458         [crti.S not in sysdirs] (generated): Do not append.
30459         [crti.S not in sysdirs] (omit-deps): Likewise.
30460         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
30461         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
30462         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
30463         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
30464         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
30465         Likewise.
30466         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
30467         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
30468         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
30469         * csu/defs.awk: Remove file.
30470         * sysdeps/generic/initfini.c: Likewise.
30471         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
30472         variable.
30473         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
30474         Likewise.
30475
30476 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30477
30478         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
30479         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
30480         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
30481         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
30482         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30483         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
30484         <bits/epoll.h>.
30485         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
30486         (__EPOLL_PACKED): Define to empty if not defined by
30487         <bits/epoll.h>.
30488         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
30489         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30490         bits/epoll.h.
30491
30492 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30493
30494         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
30495         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
30496         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
30497         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
30498         <bits/timerfd.h>.
30499         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
30500         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30501         bits/timerfd.h.
30502
30503 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30504
30505         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
30506         in C locale.
30507         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30508         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
30509         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
30510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30511
30512 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
30513
30514         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30515         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30516
30517 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
30518
30519         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
30520         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
30521         defined.
30522         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
30523         Likewise.
30524         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
30525         entry for 2.16.
30526
30527 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
30528
30529         * math/w_acos.c: Use non-signaling floating-point comparisons.
30530         * math/w_acosf.c: Likewise.
30531         * math/w_acosh.c: Likewise.
30532         * math/w_acoshf.c: Likewise.
30533         * math/w_acoshl.c: Likewise.
30534         * math/w_acosl.c: Likewise.
30535         * math/w_asin.c: Likewise.
30536         * math/w_asinf.c: Likewise.
30537         * math/w_asinl.c: Likewise.
30538         * math/w_atanh.c: Likewise.
30539         * math/w_atanhf.c: Likewise.
30540         * math/w_atanhl.c: Likewise.
30541         * math/w_exp2.c: Likewise.
30542         * math/w_exp2f.c: Likewise.
30543         * math/w_exp2l.c: Likewise.
30544         * math/w_j0.c: Likewise.
30545         * math/w_j0f.c: Likewise.
30546         * math/w_j0l.c: Likewise.
30547         * math/w_j1.c: Likewise.
30548         * math/w_j1f.c: Likewise.
30549         * math/w_j1l.c: Likewise.
30550         * math/w_jn.c: Likewise.
30551         * math/w_jnf.c: Likewise.
30552         * math/w_log.c: Likewise.
30553         * math/w_log10.c: Likewise.
30554         * math/w_log10f.c: Likewise.
30555         * math/w_log10l.c: Likewise.
30556         * math/w_log2.c: Likewise.
30557         * math/w_log2f.c: Likewise.
30558         * math/w_log2l.c: Likewise.
30559         * math/w_logf.c: Likewise.
30560         * math/w_logl.c: Likewise.
30561         * math/w_sqrt.c: Likewise.
30562         * math/w_sqrtf.c: Likewise.
30563         * math/w_sqrtl.c: Likewise.
30564         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
30565         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30566         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30567         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30568         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30569
30570 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30571
30572         [BZ #9739]
30573         * manual/string.texi (strnlen): Use correct parameter name in
30574         equivalent expression.
30575
30576 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30577
30578         [BZ #11174]
30579         * manual/users.texi (seteuid): Consistently use neweuid for
30580         argument name.
30581
30582 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30583
30584         [BZ #13704]
30585         * manual/nss.texi (Services in the NSS configuration): Correct
30586         list of services in example configuration file.
30587
30588 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
30589
30590         [BZ #11322]
30591         * manual/arith.texi: Remove statements about negative zero
30592         behaving identically to zero.
30593
30594 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30595
30596         [BZ #5993]
30597         * manual/install.texi: Do not document upgrading from libc5.
30598
30599 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30600
30601         [BZ #4596]
30602         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
30603
30604 2012-02-18  David S. Miller  <davem@davemloft.net>
30605
30606         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
30607         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
30608         %o7 across the call.
30609         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
30610         instead.
30611         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
30612         SETUP_PIC_REG_LEAF.
30613         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30614         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
30615         * sysdeps/sparc/crtn.S: Likewise.
30616
30617 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
30618
30619         * aout/Makefile: Remove.
30620
30621 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
30622
30623         [BZ #13058]
30624         * manual/examples/argp-ex1.c (main): Format definition in GNU
30625         style.
30626         * manual/examples/argp-ex2.c (main): Likewise.
30627         * manual/examples/argp-ex3.c (main): Likewise.
30628         * manual/examples/argp-ex4.c (main): Likewise.
30629         * manual/examples/longopt.c (main): Use new-style prototype
30630         definition.
30631         * manual/examples/strncat.c (main): Specify return type and use
30632         (void) for arguments.
30633         * manual/examples/subopt.c (main): Use char **argv argument.
30634
30635 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30636
30637         [BZ #5077]
30638         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
30639         rounding modes.
30640
30641 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
30642
30643         [BZ #6907]
30644         * manual/string.texi (strchr): Change when strchrnul is
30645         recommended.
30646
30647 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
30648
30649         [BZ #174]
30650         * manual/locale.texi (setlocale): Document LOCPATH.
30651
30652 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30653
30654         [BZ #10210]
30655         * manual/process.texi (execle): Move @dots{} before last argument.
30656
30657 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
30658
30659         [BZ #12047]
30660         * manual/charset.texi (Generic Charset Conversion): Fix typo
30661         (LC_TYPE -> LC_CTYPE).
30662
30663 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
30664
30665         [BZ #5805]
30666         * manual/arith.texi (scalbn): Use @var{} on parameter names.
30667         (scalbnf): Likewise.
30668         (scalbnl): Likewise.
30669         (scalbln): Likewise.
30670         (scalblnf): Likewise.
30671         (scalblnl): Likewise.
30672         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
30673         (vwarnx): Likewise.
30674         (verr): Likewise.
30675         (verrx): Likewise.
30676         * manual/filesys.texi (telldir): Use braces around return type.
30677         * manual/llio.texi (mmap): Add space after comma.
30678         (mmap64): Likewise.
30679         * manual/math.texi (jn): Use @var{} on parameter names.
30680         (jnf): Likewise.
30681         (jnl): Likewise.
30682         (yn): Likewise.
30683         (ynf): Likewise.
30684         (ynl): Likewise.
30685         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
30686         line.
30687         * manual/resource.texi (ulimit): Use @dots{} instead of literal
30688         "...".
30689         (sched_get_priority_min): Remove semicolon on @deftypefun line.
30690         (sched_get_priority_max): Likewise.
30691         * manual/signal.texi (sigvec): Add space after comma.
30692         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
30693         names.
30694         (if_indextoname): Likewise.
30695         (if_freenameindex): Likewise.
30696         (sendto): Use ',' instead of '.' in prototype.
30697         * manual/startup.texi (syscall): Use @dots{} instead of literal
30698         "...".
30699         * manual/stdio.texi (__fpending): Separate initial words of
30700         paragraph from @deftypefun line.
30701         * manual/syslog.texi (syslog): Use @dots{} instead of literal
30702         "...".
30703         (vsyslog): Use @var{} on parameter names.
30704         * manual/terminal.texi (stty): Use @var{} on parameter names.
30705         * manual/users.texi (getutmp): Use @var{} on parameter names.
30706         (getutmpx): Likewise.
30707
30708 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30709
30710         [BZ #6884]
30711         * manual/stdio.texi (fopen): Fix typos in description of
30712         ",ccs=STRING".
30713
30714 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
30715
30716         [BZ #4026]
30717         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
30718         get clock_id definition.
30719
30720 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
30721
30722         [BZ #4822]
30723         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
30724         (madvise): Cast every argument to void on its own.
30725
30726 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30727
30728         [BZ #9902]
30729         * manual/startup.texi (Exit Status): Fix typo.
30730
30731 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30732
30733         [BZ #10140]
30734         * manual/examples/argp-ex1.c: Include <stdlib.h>.
30735         * manual/examples/argp-ex2.c: Likewise.
30736         * manual/examples/argp-ex3.c: Likewise.
30737
30738 2012-02-16  Richard Henderson  <rth@redhat.com>
30739
30740         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
30741         * sysdeps/s390/s390-32/initfini.c: Remove.
30742         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
30743         * sysdeps/s390/s390-64/initfini.c: Remove.
30744
30745 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30746
30747         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
30748         compiler output for sysdeps/generic/initfini.c.
30749         * sysdeps/sh/elf/initfini.c: Remove file.
30750
30751 2012-02-16  David S. Miller  <davem@davemloft.net>
30752
30753         [BZ #11494]
30754         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
30755
30756         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
30757         * sysdeps/sparc/crti.S: New file.
30758         * sysdeps/sparc/crtn.S: New file.
30759         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
30760         * sysdeps/sparc/sparc64/Makefile: Likewise.
30761
30762 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
30763
30764         [BZ #3335]
30765         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
30766
30767 2012-02-15  Roland McGrath  <roland@hack.frob.com>
30768
30769         [BZ #4822]
30770         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
30771
30772         * mach/devstream.c (cookie_io_functions_t): Macro removed.
30773         (write, read, close): Likewise.
30774         Patch by Aurelien Jarno <aurelien@aurel32.net>.
30775
30776 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
30777
30778         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
30779         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
30780         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
30781         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
30782         <bits/signalfd.h>.
30783         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
30784         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30785         bits/signalfd.h.
30786
30787 2012-02-14  Marek Polacek  <polacek@redhat.com>
30788
30789         * sysdeps/x86_64/crti.S: New file.
30790         * sysdeps/x86_64/crtn.S: New file.
30791         * sysdeps/x86_64/elf/initfini.c: Remove file.
30792
30793 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30794
30795         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
30796         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
30797         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
30798         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
30799         <bits/inotify.h>.
30800         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
30801         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30802         bits/inotify.h.
30803
30804 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30805
30806         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
30807         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
30808         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
30809         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
30810         <bits/eventfd.h>.
30811         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
30812         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30813         bits/eventfd.h.
30814
30815 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
30816
30817         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
30818         __feraiseexcept instead of feraiseexcept.
30819
30820         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
30821         nanosleep invocations.
30822         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
30823         strings, and add error checking for a nanosleep invocations.
30824
30825 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
30826
30827         Replace FSF snail mail address with URLs, as per GNU coding standards.
30828         Most of the snail mail addresses were wrong anyway, and omitting
30829         them makes the source code easier to maintain.  Almost all of the
30830         changes are to license notices and to locale LC_IDENTIFICATION
30831         addresses, except for this one:
30832         * manual/libc.texinfo: In "Published by", give the FSF's URL,
30833         not its snail mail address.
30834
30835 2012-02-09  Richard Henderson  <rth@twiddle.net>
30836
30837         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
30838         of kernel-features.h.
30839
30840         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
30841
30842 2012-02-08  Marek Polacek  <polacek@redhat.com>
30843
30844         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
30845         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
30846         * sysdeps/gnu/_G_config.h: Likewise.
30847         * sysdeps/generic/_G_config.h: Likewise.
30848
30849 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
30850
30851         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
30852         tests.
30853         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30854
30855         * sysdeps/powerpc/powerpc32/crti.S: New file.
30856         * sysdeps/powerpc/powerpc32/crtn.S: New file.
30857         * sysdeps/powerpc/powerpc64/crti.S: New file.
30858         * sysdeps/powerpc/powerpc64/crtn.S: New file.
30859
30860         * Makeconfig (have-initfini): Don't set.
30861         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
30862         * configure.in (nopic_initfini): Don't substitute.
30863         * config.h.in (HAVE_INITFINI): Don't #undef.
30864         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
30865         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
30866
30867 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
30868
30869         Support crti.S and crtn.S provided directly by architectures.
30870         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
30871         [crti.S in sysdirs] (omit-deps): Likewise.
30872         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
30873         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
30874         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
30875         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
30876         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
30877         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
30878         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
30879         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
30880         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
30881         compiler output for sysdeps/generic/initfini.c.
30882         * sysdeps/i386/elf/Makefile: Remove file.
30883         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
30884
30885 2012-02-07  Marek Polacek  <polacek@redhat.com>
30886
30887         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
30888         * sysdeps/gnu/_G_config.h: Likewise.
30889         * sysdeps/mach/hurd/_G_config.h: Likewise.
30890
30891 2012-02-07  Marek Polacek  <polacek@redhat.com>
30892
30893         * math/Makefile (tests): Add tst-CMPLX2.
30894         * math/tst-CMPLX2.c: New file.
30895
30896 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
30897
30898         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30899
30900         * math/libm-test.inc (jn_test): Add missing L suffix.
30901
30902 2012-02-06  Marek Polacek  <polacek@redhat.com>
30903
30904         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
30905         * sysdeps/i386/fpu/e_powf.S: Likewise.
30906         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30907         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
30908         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30909         * sysdeps/i386/fpu/e_pow.S: Likewise.
30910         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
30911         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30912         * sysdeps/i386/fpu/s_expm1.S: Likewise.
30913         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
30914         * sysdeps/i386/fpu/e_log2.S: Likewise.
30915         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30916         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30917         * sysdeps/i386/fpu/e_powl.S: Likewise.
30918         * sysdeps/i386/fpu/s_log1p.S: Likewise.
30919         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30920         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
30921         * sysdeps/i386/fpu/e_logl.S: Likewise.
30922         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
30923         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
30924         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
30925         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
30926         * sysdeps/i386/fpu/e_log2f.S: Likewise.
30927         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
30928         * sysdeps/i386/fpu/e_log.S: Likewise.
30929         * sysdeps/i386/fpu/s_cexp.S: Likewise.
30930         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
30931         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
30932         * sysdeps/i386/fpu/e_logf.S: Likewise.
30933         * sysdeps/i386/fpu/e_log10l.S: Likewise.
30934         * sysdeps/i386/fpu/e_atanh.S: Likewise.
30935         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
30936         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
30937         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
30938         * sysdeps/i386/fpu/e_log10.S: Likewise.
30939         * sysdeps/i386/fpu/s_frexp.S: Likewise.
30940         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
30941         * sysdeps/i386/fpu/s_asinh.S: Likewise.
30942         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
30943         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
30944         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
30945         * sysdeps/i386/asm-syntax.h: Likewise.
30946         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
30947         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
30948         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
30949         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
30950         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
30951         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
30952         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
30953         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
30954         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
30955         * sysdeps/powerpc/sysdep.h: Likewise.
30956         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
30957         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30958
30959 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30960
30961         [BZ #411]
30962         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
30963
30964 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
30965
30966         * sysdeps/i386/sysdep.h: Include <features.h>.
30967         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
30968         version.
30969
30970 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
30971
30972         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
30973         Define.
30974         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
30975         LOAD_PIC_REG_STR.
30976
30977 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30978
30979         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
30980         (SETUP_PIC_REG): Use GET_PC_THUNK.
30981         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
30982         macro.
30983
30984 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
30985
30986         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
30987         for non-PIC compilation.
30988         (SETUP_PIC_REG): Add .p2align directive.
30989         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
30990         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30991         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30992         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30993         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30994         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30995         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30996         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30997         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30998         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30999         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31000         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31001         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31002         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31003         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31004         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
31005         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
31006         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31007         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31008         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31009         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31010         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
31011         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31012         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
31013         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
31014         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
31015         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31016         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
31017         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31018         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31019         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31020         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31021         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31022         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31023         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31024         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31025         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31026         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31027         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31028         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31029         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31030
31031 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31032
31033         * math/tst-CMPLX.c: Include <stdio.h>.
31034
31035 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
31036
31037         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
31038         float.
31039         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31040         * sysdeps/sparc/bits/mathdef.h: Likewise.
31041
31042 2012-01-31  Marek Polacek  <polacek@redhat.com>
31043
31044         * libio/libio.h: Don't define _PARAMS.
31045         * locale/programs/config.h: Don't define PARAMS.
31046         * stdlib/strtol_l.c: Likewise.
31047         (__strtol_l): Remove PARAMS from the prototype.
31048
31049 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
31050
31051         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
31052         names.  Just use the correct names.  Remove unnecessary wrapper
31053         functions.
31054         * malloc/arena.c: Likewise.
31055         * malloc/hooks.c: Likewise.
31056
31057         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
31058         ARENA_TEST says not to.  Simplify test for creation of a new arena.
31059         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
31060
31061 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
31062
31063         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
31064         into tail calls.
31065         (update_get_addr): New function.
31066         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
31067         GET_ADDR_MODULE parameter.
31068
31069 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31070
31071         * crypt/cert.c: Remove __STDC__ conditionals.
31072         * crypt/crypt-entry.c: Likewise.
31073         * crypt/crypt_util.c: Likewise.
31074         * libio/filedoalloc.c: Likewise.
31075         * libio/fileops.c: Likewise.
31076         * libio/genops.c: Likewise.
31077         * libio/iofclose.c: Likewise.
31078         * libio/iofdopen.c: Likewise.
31079         * libio/iofopen.c: Likewise.
31080         * libio/iofopen64.c: Likewise.
31081         * libio/iogetdelim.c: Likewise.
31082         * libio/iopopen.c: Likewise.
31083         * libio/obprintf.c: Likewise.
31084         * libio/oldfileops.c: Likewise.
31085         * libio/oldiofclose.c: Likewise.
31086         * libio/oldiofdopen.c: Likewise.
31087         * libio/oldiofopen.c: Likewise.
31088         * libio/oldiopopen.c: Likewise.
31089         * libio/wfiledoalloc.c: Likewise.
31090         * libio/wgenops.c: Likewise.
31091         * locale/programs/xmalloc.c: Likewise.
31092         * misc/syslog.c: Likewise.
31093         * stdio-common/xbug.c: Likewise.
31094         * string/memchr.c: Likewise.
31095         * string/memcmp.c: Likewise.
31096         * string/memrchr.c: Likewise.
31097         * string/rawmemchr.c: Likewise.
31098         * sysdeps/posix/getcwd.c: Likewise.
31099         * time/strftime_l.c: Likewise.
31100
31101 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31102
31103         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
31104         * config.make.in (config-cflags-sse2avx): Define.
31105         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
31106         Fix typo.
31107
31108 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
31109
31110         * scripts/config.guess: Update from upstream config git repository.
31111         * scripts/config.sub: Likewise.
31112
31113 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
31114
31115         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
31116         (EM_NUM): Update.
31117         (R_TILEPRO_*, R_TILEGX_*): New macros.
31118
31119         * scripts/firstversions.awk: Fix bug in version range handling.
31120
31121         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
31122
31123         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
31124
31125         * include/sys/epoll.h: New file.
31126         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
31127         libc_hidden_def.
31128
31129 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
31130
31131         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
31132         Avoid unnecessary __WORDSIZE == 64 test.
31133         (fmaxf): Use VEX format if possible.
31134         (fmax): Likewise.
31135         (fminf): Likewise.
31136         (fmin): Likewise.
31137
31138         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
31139         * math/math_private.h: Remove libc_fegetround* and
31140         libc_fesetround*.
31141         * sysdeps/i386/configure.in: Check for -msse2avx.
31142         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
31143         also if SSE2AVX is defined.
31144         Remove libc_fegetround* and libc_fesetround*.
31145         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
31146         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
31147         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
31148         of HAS_YMM_USABLE.
31149         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31150         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31151         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31152         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31153         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31154
31155         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
31156
31157 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31158
31159         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
31160         size is not set.
31161         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
31162
31163 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
31164
31165         [BZ #13618]
31166         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
31167         relocation.
31168         * Makeconfig (libm): Define.
31169         * elf/Makefile: Add rules to build and run tst-relsort1.
31170         * elf/tst-relsort1.c: New file.
31171         * elf/tst-relsort1mod1.c: New file.
31172         * elf/tst-relsort1mod2.c: New file.
31173
31174 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
31175
31176         * math/s_ldexp.c: Remove __STDC__ conditionals.
31177         * math/s_ldexpf.c: Likewise.
31178         * math/s_ldexpl.c: Likewise.
31179         * math/s_nextafter.c: Likewise.
31180         * math/s_nexttowardf.c: Likewise.
31181         * math/s_significand.c: Likewise.
31182         * math/s_significandf.c: Likewise.
31183         * math/s_significandl.c: Likewise.
31184         * math/w_jnl.c: Likewise.
31185         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
31186         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
31187         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
31188         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
31189         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
31190         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
31191         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
31192         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
31193         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
31194         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
31195         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
31196         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31197         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
31198         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
31199         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
31200         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
31201         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
31202         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
31203         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
31204         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
31205         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
31206         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
31207         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
31208         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
31209         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
31210         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
31211         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
31212         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
31213         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
31214         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
31215         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
31216         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
31217         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
31218         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
31219         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
31220         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
31221         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
31222         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
31223         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
31224         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
31225         * sysdeps/ieee754/k_standard.c: Likewise.
31226         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
31227         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
31228         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
31229         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
31230         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
31231         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
31232         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
31233         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
31234         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
31235         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
31236         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
31237         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
31238         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
31239         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
31240         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
31241         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
31242         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
31243         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
31244         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
31245         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
31246         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31247         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
31248         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
31249         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
31250         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
31251         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31252         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31253         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31254         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31255         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
31256         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
31257         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
31258         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
31259         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
31260         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
31261         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
31262         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
31263         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
31264         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
31265         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
31266         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
31267         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
31268         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
31269         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
31270         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
31271         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
31272         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
31273         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
31274         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
31275         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
31276         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
31277         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
31278         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
31279         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
31280         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
31281         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
31282         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
31283         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
31284         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
31285         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
31286         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
31287         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
31288         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
31289         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
31290         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
31291         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
31292         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
31293         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
31294         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
31295         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
31296         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
31297         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
31298         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
31299         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
31300         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
31301         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
31302         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
31303         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
31304         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
31305         * sysdeps/ieee754/s_matherr.c: Likewise.
31306         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
31307         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
31308         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
31309         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
31310
31311 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31312
31313         * crypt/md5.h: Remove __STDC__ conditionals.
31314         * libio/libioP.h: Likewise.
31315         * locale/programs/config.h: Likewise.
31316         * sysdeps/generic/sysdep.h: Likewise.
31317         * sysdeps/i386/asm-syntax.h: Likewise.
31318         * sysdeps/s390/asm-syntax.h: Likewise.
31319         * sysdeps/unix/sysdep.h: Likewise.
31320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
31321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
31322
31323 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31324
31325         * libio/libio.h: Remove __STDC__ conditionals.
31326         * malloc/obstack.h: Likewise.
31327         * math/complex.h: Likewise.
31328         * math/math.h: Likewise.
31329         * sysdeps/generic/_G_config.h: Likewise.
31330         * sysdeps/gnu/_G_config.h: Likewise.
31331         * sysdeps/mach/hurd/_G_config.h: Likewise.
31332         * sysdeps/powerpc/bits/mathdef.h: Likewise.
31333         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31334         * sysdeps/sparc/bits/mathdef.h: Likewise.
31335
31336 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
31337
31338         [BZ #13583]
31339         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
31340         Clean up HAS_* macros.
31341         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
31342         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
31343         possible.
31344         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
31345         HAS_AVX.
31346         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31347         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31348         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31349         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31350         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31351
31352 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
31353
31354         * elf/tst-unique3.cc (gets): Remove declaration.
31355         * elf/tst-unique3lib.cc (gets): Likewise.
31356         * elf/tst-unique3lib2.cc (gets): Likewise.
31357         * elf/tst-unique4.cc (gets): Likewise.
31358
31359 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
31360
31361         * include/stdio.h: Add C++ protection.  Add gets declarations and
31362         definitions.
31363         * debug/tst-chk1.c: Don't declare gets here.
31364         * stdio-common/tst-gets.c: Likewise.
31365
31366 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31367
31368         * posix/glob: Remove directory.
31369
31370 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31371
31372         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
31373
31374 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
31375
31376         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
31377         of the non-standard EPFNOSUPPORT.
31378
31379 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31380
31381         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
31382         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
31383         ANYWHERE set to 1 only on KERN_NO_SPACE error.
31384
31385 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
31386
31387         * wcsmbs/uchar.h: Test __STDC_VERSION__.
31388
31389 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
31390
31391         * nscd/aicache.c (addhstaiX): Do not cache negative results of
31392         transient errors.
31393         * nscd/grpcache.c (cache_addgr): Likewise.
31394         * nscd/hstcache.c (cache_addhst): Likewise.
31395         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31396         * nscd/pwdcache.c (cache_addpw): Likewise.
31397         * nscd/servicescache.c (cache_addserv): Likewise.
31398
31399 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
31400
31401         * malloc/malloc.c: Various cleanups.
31402         * malloc/hooks.c: Likewise.
31403
31404         * stdlib/Makefile (tests): Add bug-fmtmsg1.
31405         * stdlib/bug-fmtmsg1.c: New file.
31406
31407         * stdlib/fmtmsg.c (init): Add missing unlock.
31408         Patch by Peng Haitao <penght@cn.fujitsu.com>.
31409
31410 2012-01-12  Marek Polacek  <polacek@redhat.com>
31411
31412         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
31413         and _GNU_SOURCE.
31414
31415 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
31416
31417         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
31418         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
31419         macro to ensure uniqueness of label name.
31420         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31421         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31422
31423 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
31424
31425         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
31426
31427         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
31428         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
31429         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31430         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
31431
31432 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
31433
31434         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
31435
31436         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
31437         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
31438         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
31439
31440         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
31441
31442         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
31443         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
31444         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
31445         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
31446
31447         * math/bits/math-finite.h: Add ldexp support.
31448
31449 2012-01-10  Marek Polacek  <polacek@redhat.com>
31450
31451         * locale/programs/localedef.h (show_archive_content): Add noreturn
31452         attribute.
31453
31454 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
31455
31456         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
31457
31458 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31459
31460         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
31461
31462         * io/Makefile (headers): Add bits/poll2.h.
31463
31464 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
31465
31466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
31467         typo #include statement.
31468
31469 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31470
31471         * include/sys/cdefs.h: Define __attribute_alloc_size.
31472         * catgets/gencat.c: Add alloc_size attribute and apply consistently
31473         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
31474         * elf/pldd.c: Likewise.
31475         * iconv/iconv_charmap.c: Likewise.
31476         * iconv/iconvconfig.c: Likewise.
31477         * iconv/strtab.c: Likewise.
31478         * locale/programs/locale.c: Likewise.
31479         * locale/programs/localedef.h: Likewise.
31480         * locale/programs/simple-hash.c: Likewise.
31481         * nscd/nscd.h: Likewise.
31482         * nss/makedb.c: Likewise.
31483         * sysdeps/generic/ldconfig.h: Likewise.
31484         * locale/programs/localedef.c: Remove xmalloc prototype.
31485         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
31486
31487 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31488
31489         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
31490         appropriate.
31491
31492 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31493
31494         * math/Makefile (tests): Add tst-CMPLX.
31495         * math/tst-CMPLX.c: New file.
31496
31497         * math/complex.h (CMPLXL): Fix typo.
31498
31499         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
31500         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
31501         GLIBC_2.16.
31502         * debug/tst-chk1.c: Add poll and ppoll tests.
31503         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
31504         * include/sys/poll.h: Add hidden proto for ppoll.
31505         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
31506         * sysdeps/mach/hurd/ppoll.c: Likewise.
31507         * io/ppoll.c: Likewise.
31508         * debug/poll_chk.c: New file.
31509         * debug/ppoll_chk.c: New file.
31510         * include/bits/poll2.h: New file.
31511         * io/bits/poll2.h: New file.
31512
31513         [BZ #1350]
31514         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
31515
31516         * configure.in: static is always set to yes.  Remove.
31517         * config.make.in: Don't set build-static.
31518         * Makeconfig: Remove use of build-static.
31519         * dlfcn/Makefile: Likewise.
31520         * elf/Makefile: Likewise.
31521         * math/Makefile: Likewise.
31522         * misc/Makefile: Likewise.
31523         * nptl/Makefile: Likewise.
31524         * sysdeps/mach/hurd/Makefile: Likewise.
31525
31526         * configure.in: PWD_P is not used anymore.
31527         * config.make.in: Remove PWD_P entry.
31528
31529         * configure.in: Remove last remnants of RANLIB.
31530         No need to check for signed size_t anymore.
31531         Don't set libc_commonpagesize and libc_relro_required here for Alpha
31532         and IA-64.
31533         Remove __builtin_expect test because we require at least gcc 3.4.
31534         * aclocal.m4: Likewise.
31535
31536         * wcsmbs/mbrtoc16.c: Implement using towc function.
31537         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
31538         * wcsmbs/wcsmbsload.c: Likewise.
31539         * iconv/gconv_simple.c: Likewise.
31540         * iconv/gconv_int.h: Likewise.
31541         * iconv/gconv_builtin.h: Likewise.
31542         * iconv/iconv_prog.c: Remove CHAR16 handling.
31543
31544         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
31545
31546         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
31547
31548         * configure.in: Remove --with-elf and --enable-bounded options.
31549         Dont set base_machine for ia64.  More non-ELF conditions removed.
31550         Remove testing and setting of leading underscore information.
31551         * config.make.in (build-bounded): Set to no.
31552         * config.h.in: Remove NO_UNDERSCORES entry.
31553         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
31554         them.
31555         * csu/start.c: Remove !NO_UNDERSCORE code.
31556         * locale/localeinfo.h: Likewise.
31557         * sysdeps/generic/machine-gmon.h: Likewise.
31558         * sysdeps/generic/sysdep.h: Likewise.
31559         * sysdeps/i386/sysdep.h: Likewise.
31560         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31561         * sysdeps/mach/sysdep.h: Likewise.
31562         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31563         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31564         * sysdeps/sh/sysdep.h: Likewise.
31565         * sysdeps/sparc/sparc32/alloca.S: Likewise.
31566         * sysdeps/unix/i386/sysdep.S: Likewise.
31567         * sysdeps/unix/sparc/start.c: Likewise.
31568         * sysdeps/unix/sparc/sysdep.S: Likewise.
31569         * sysdeps/unix/sparc/sysdep.h: Likewise.
31570         * sysdeps/unix/start.c: Likewise.
31571         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31572         * sysdeps/x86_64/sysdep.h: Likewise.
31573
31574 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
31575
31576         [BZ #13553]
31577         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
31578         for non-gcc.
31579         * argp/argp-fmtstream.h: Use const instead __const.
31580         * argp/argp.h: Likewise.
31581         * assert/assert.h: Likewise.
31582         * bits/fenv.h: Likewise.
31583         * bits/sched.h: Likewise.
31584         * bits/sigset.h: Likewise.
31585         * bits/sigthread.h: Likewise.
31586         * catgets/nl_types.h: Likewise.
31587         * conform/data/pthread.h-data: Likewise.
31588         * crypt/crypt-private.h: Likewise.
31589         * crypt/crypt.h: Likewise.
31590         * crypt/crypt_util.c: Likewise.
31591         * ctype/ctype.h: Likewise.
31592         * debug/execinfo.h: Likewise.
31593         * debug/mbsnrtowcs_chk.c: Likewise.
31594         * debug/mbsrtowcs_chk.c: Likewise.
31595         * debug/wcsnrtombs_chk.c: Likewise.
31596         * debug/wcsrtombs_chk.c: Likewise.
31597         * debug/wcstombs_chk.c: Likewise.
31598         * dirent/dirent.h: Likewise.
31599         * dlfcn/dlfcn.h: Likewise.
31600         * elf/neededtest4.c: Likewise.
31601         * grp/grp.h: Likewise.
31602         * gshadow/gshadow.h: Likewise.
31603         * iconv/gconv.h: Likewise.
31604         * iconv/gconv_int.h: Likewise.
31605         * iconv/gconv_simple.c: Likewise.
31606         * iconv/iconv.h: Likewise.
31607         * iconv/loop.c: Likewise.
31608         * iconv/skeleton.c: Likewise.
31609         * include/aio.h: Likewise.
31610         * include/aliases.h: Likewise.
31611         * include/argz.h: Likewise.
31612         * include/arpa/inet.h: Likewise.
31613         * include/assert.h: Likewise.
31614         * include/dirent.h: Likewise.
31615         * include/dlfcn.h: Likewise.
31616         * include/execinfo.h: Likewise.
31617         * include/fcntl.h: Likewise.
31618         * include/fenv.h: Likewise.
31619         * include/glob.h: Likewise.
31620         * include/grp.h: Likewise.
31621         * include/libintl.h: Likewise.
31622         * include/mntent.h: Likewise.
31623         * include/netdb.h: Likewise.
31624         * include/pwd.h: Likewise.
31625         * include/rpc/netdb.h: Likewise.
31626         * include/sched.h: Likewise.
31627         * include/search.h: Likewise.
31628         * include/shadow.h: Likewise.
31629         * include/signal.h: Likewise.
31630         * include/stdio.h: Likewise.
31631         * include/stdlib.h: Likewise.
31632         * include/string.h: Likewise.
31633         * include/sys/socket.h: Likewise.
31634         * include/sys/stat.h: Likewise.
31635         * include/sys/statfs.h: Likewise.
31636         * include/sys/statvfs.h: Likewise.
31637         * include/sys/syslog.h: Likewise.
31638         * include/sys/time.h: Likewise.
31639         * include/sys/uio.h: Likewise.
31640         * include/time.h: Likewise.
31641         * include/unistd.h: Likewise.
31642         * include/utmp.h: Likewise.
31643         * include/wchar.h: Likewise.
31644         * include/wctype.h: Likewise.
31645         * inet/aliases.h: Likewise.
31646         * inet/arpa/inet.h: Likewise.
31647         * inet/netinet/ether.h: Likewise.
31648         * inet/netinet/in.h: Likewise.
31649         * intl/libintl.h: Likewise.
31650         * io/bits/fcntl2.h: Likewise.
31651         * io/fcntl.h: Likewise.
31652         * io/ftw.h: Likewise.
31653         * io/sys/poll.h: Likewise.
31654         * io/sys/stat.h: Likewise.
31655         * io/sys/statfs.h: Likewise.
31656         * io/sys/statvfs.h: Likewise.
31657         * io/utime.h: Likewise.
31658         * libio/bits/stdio.h: Likewise.
31659         * libio/bits/stdio2.h: Likewise.
31660         * libio/libio.h: Likewise.
31661         * libio/libioP.h: Likewise.
31662         * libio/stdio.h: Likewise.
31663         * locale/lc-ctype.c: Likewise.
31664         * locale/locale.h: Likewise.
31665         * login/utmp.h: Likewise.
31666         * malloc/arena.c: Likewise.
31667         * malloc/malloc.c: Likewise.
31668         * malloc/malloc.h: Likewise.
31669         * malloc/mcheck.c: Likewise.
31670         * malloc/mtrace.c: Likewise.
31671         * math/bits/mathcalls.h: Likewise.
31672         * math/fenv.h: Likewise.
31673         * math/math_private.h: Likewise.
31674         * misc/bits/error.h: Likewise.
31675         * misc/bits/syslog.h: Likewise.
31676         * misc/err.h: Likewise.
31677         * misc/error.h: Likewise.
31678         * misc/fstab.h: Likewise.
31679         * misc/mntent.h: Likewise.
31680         * misc/regexp.h: Likewise.
31681         * misc/search.h: Likewise.
31682         * misc/sgtty.h: Likewise.
31683         * misc/sys/mman.h: Likewise.
31684         * misc/sys/syslog.h: Likewise.
31685         * misc/sys/uio.h: Likewise.
31686         * misc/sys/xattr.h: Likewise.
31687         * misc/ttyent.h: Likewise.
31688         * nis/rpcsvc/ypclnt.h: Likewise.
31689         * nss/nss.h: Likewise.
31690         * posix/bits/unistd.h: Likewise.
31691         * posix/fnmatch.h: Likewise.
31692         * posix/glob.h: Likewise.
31693         * posix/sched.h: Likewise.
31694         * posix/spawn.h: Likewise.
31695         * posix/sys/wait.h: Likewise.
31696         * posix/unistd.h: Likewise.
31697         * posix/wordexp.h: Likewise.
31698         * pwd/pwd.h: Likewise.
31699         * resolv/netdb.h: Likewise.
31700         * resource/sys/resource.h: Likewise.
31701         * rt/aio.h: Likewise.
31702         * rt/bits/mqueue2.h: Likewise.
31703         * rt/mqueue.h: Likewise.
31704         * shadow/shadow.h: Likewise.
31705         * signal/signal.h: Likewise.
31706         * socket/send.c: Likewise.
31707         * socket/sendto.c: Likewise.
31708         * socket/sys/socket.h: Likewise.
31709         * stdio-common/printf.h: Likewise.
31710         * stdlib/bits/stdlib.h: Likewise.
31711         * stdlib/fmtmsg.h: Likewise.
31712         * stdlib/monetary.h: Likewise.
31713         * stdlib/stdlib.h: Likewise.
31714         * stdlib/ucontext.h: Likewise.
31715         * streams/stropts.h: Likewise.
31716         * string/argz.h: Likewise.
31717         * string/bits/string2.h: Likewise.
31718         * string/string.h: Likewise.
31719         * string/strings.h: Likewise.
31720         * sunrpc/rpc/auth.h: Likewise.
31721         * sunrpc/rpc/auth_des.h: Likewise.
31722         * sunrpc/rpc/clnt.h: Likewise.
31723         * sunrpc/rpc/netdb.h: Likewise.
31724         * sunrpc/rpc/pmap_clnt.h: Likewise.
31725         * sunrpc/rpc/xdr.h: Likewise.
31726         * sysdeps/generic/inttypes.h: Likewise.
31727         * sysdeps/generic/net/if.h: Likewise.
31728         * sysdeps/generic/sys/swap.h: Likewise.
31729         * sysdeps/gnu/net/if.h: Likewise.
31730         * sysdeps/gnu/utmpx.h: Likewise.
31731         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
31732         * sysdeps/i386/i486/bits/string.h: Likewise.
31733         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
31734         * sysdeps/s390/bits/string.h: Likewise.
31735         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
31736         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
31737         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31738         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
31739         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
31740         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
31741         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
31742         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
31743         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
31744         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31745         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
31746         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
31747         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
31748         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
31749         * sysdeps/unix/sysv/linux/readv.c: Likewise.
31750         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
31751         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
31752         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31753         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31754         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31755         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31756         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
31757         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
31758         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
31759         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
31760         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
31761         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
31762         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31763         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
31764         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
31765         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
31766         * sysvipc/sys/ipc.h: Likewise.
31767         * sysvipc/sys/msg.h: Likewise.
31768         * sysvipc/sys/sem.h: Likewise.
31769         * sysvipc/sys/shm.h: Likewise.
31770         * termios/termios.h: Likewise.
31771         * time/sys/time.h: Likewise.
31772         * time/time.h: Likewise.
31773         * wcsmbs/bits/wchar2.h: Likewise.
31774         * wcsmbs/uchar.h: Likewise.
31775         * wcsmbs/wchar.h: Likewise.
31776         * wctype/wctype.h: Likewise.
31777
31778         [BZ #13551]
31779         * Makeconfig: Remove all but ELF support including AIX support.
31780         * Makerules: Likewise.
31781         * config.h.in: Likewise.
31782         * config.make.in: Likewise.
31783         * configure: Likewise.
31784         * configure.in: Likewise.
31785         * csu/Makefile: Likewise.
31786         * csu/version.c: Likewise.
31787         * debug/Makefile: Likewise.
31788         * dlfcn/Makefile: Likewise.
31789         * elf/Makefile: Likewise.
31790         * extra-lib.mk: Likewise.
31791         * iconv/Makefile: Likewise.
31792         * include/libc-symbols.h: Likewise.
31793         * include/shlib-compat.h: Likewise.
31794         * resolv/Makefile: Likewise.
31795         * resolv/res_libc.c: Likewise.
31796         * rt/Makefile: Likewise.
31797         * sysdeps/i386/asm-syntax.h: Likewise.
31798         * sysdeps/i386/sysdep.h: Likewise.
31799         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31800         * sysdeps/mach/sysdep.h: Likewise.
31801         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
31802         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
31803         * sysdeps/s390/asm-syntax.h: Likewise.
31804         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31805         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31806         * sysdeps/sh/sysdep.h: Likewise.
31807         * sysdeps/unix/sparc/sysdep.h: Likewise.
31808         * sysdeps/wordsize-32/divdi3.c: Likewise.
31809         * sysdeps/x86_64/sysdep.h: Likewise.
31810
31811         * argp/Versions: Remove _argp_unlock_xxx.
31812
31813         [BZ #13559]
31814         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
31815         * abilist/libBrokenLocale.abilist: Likewise.
31816         * abilist/libanl.abilist: Likewise.
31817         * abilist/libc.abilist: Likewise.
31818         * abilist/libcrypt.abilist: Likewise.
31819         * abilist/libdl.abilist: Likewise.
31820         * abilist/libm.abilist: Likewise.
31821         * abilist/libnsl.abilist: Likewise.
31822         * abilist/libpthread.abilist: Likewise.
31823         * abilist/libresolv.abilist: Likewise.
31824         * abilist/librt.abilist: Likewise.
31825         * abilist/libthread_db.abilist: Likewise.
31826         * abilist/libutil.abilist: Likewise.
31827         * abilist/libnss_db.abilist: New file.
31828
31829         * scripts/abilist.awk: Add support for indirect functions.
31830
31831         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
31832
31833         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
31834
31835         * shlib-versions: Remove entries for ports architectures.
31836
31837         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
31838         files in ports.
31839         * elf/stackguard-macros.h: Remove support for IA-64.
31840         * elf/tst-auditmod1.c: Likewise.
31841         * sysdeps/generic/ldsodefs.h: Likewise.
31842
31843         * sysdeps/unix/sysv/linux/configure.in: Ports should define
31844         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
31845         configure files.
31846
31847         [BZ #13552]
31848         * configure.in: Remove --enable-omitfp support.
31849         * FAQ.in: Adjust.
31850         * config.make.in: Likewise.
31851         * Makeconfig: Likewise.
31852         * manual/install.texi: Likewise.
31853
31854         In case anyone cares, the IA-64 architecture could move to ports.
31855         * sysdeps/ia64/*: Removed.
31856         * sysdeps/unix/sysv/linux/ia64/*: Removed.
31857         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
31858
31859         [BZ #13555]
31860         * configure.in: Remove entries for unsupported architectures.
31861
31862         [BZ #13533]
31863         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
31864         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
31865         routines.
31866         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
31867         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
31868         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
31869         fall back to using wcrtomb.
31870         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
31871         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
31872         renaming.
31873         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
31874         * wcsmbs/tst-c16c32-1.c: New file.
31875
31876         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
31877         local variable.
31878
31879         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
31880
31881         * elf/tst-unique3.cc: Add explicit declaration of gets.
31882         * elf/tst-unique3lib.cc: Likewise.
31883         * elf/tst-unique3lib2.cc: Likewise.
31884         * elf/tst-unique4.cc: Likewise.
31885
31886         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
31887
31888 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
31889
31890         [BZ #13566]
31891         * assert/assert.h (static_assert): Don't define for C++.
31892         * libio/stdio.h (gets): Do declare for C++ <= C++11.
31893         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
31894
31895 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
31896
31897         * iconv/loop.c (single loop): Fix assertion in storing of
31898         remaining bytes.
31899
31900         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
31901
31902 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
31903
31904         * posix/getconf.c: Update copyright year.
31905         * nss/getent.c: Likewise.
31906         * nss/makedb.c: Likewise.
31907         * iconv/iconvconfig.c: Likewise.
31908         * iconv/iconv_prog.c: Likewise.
31909         * elf/ldconfig.c: Likewise.
31910         * elf/pldd.c: Likewise.
31911         * elf/sotruss.ksh: Likewise.
31912         * catgets/gencat.c: Likewise.
31913         * csu/version.c: Likewise.
31914         * elf/ldd.bash.in: Likewise.
31915         * elf/sprof.c (print_version): Likewise.
31916         * locale/programs/locale.c: Likewise.
31917         * locale/programs/localedef.c: Likewise.
31918         * login/programs/pt_chown.c: Likewise.
31919         * nscd/nscd.c (print_version): Likewise.
31920         * debug/xtrace.sh: Likewise.
31921         * malloc/memusage.sh: Likewise.
31922         * malloc/mtrace.pl: Likewise.
31923         * debug/catchsegv.sh: Likewise.
31924
31925 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
31926
31927         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
31928         pure attribute.
31929
31930 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
31931
31932         [BZ #13533]
31933         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
31934         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
31935         transformations.
31936         * iconv/gconv_int.h: Likewise.
31937         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
31938         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
31939         from libc for GLIBC_2.16.
31940         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
31941         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
31942         * wcsmbs/uchar.h: Really define mbstate_t.
31943         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
31944         * wcsmbs/c16rtomb.c: New file.
31945         * wcsmbs/mbrtoc16.c: New file.
31946         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
31947         for C/POSIX locale.
31948         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
31949         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
31950
31951         * wcsmbs/wchar.h: Add missing __restrict.
31952
31953 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
31954
31955         [BZ #13532]
31956         * time/Makefile (routines): Add timespec_get.
31957         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
31958         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
31959         timespec for ISO C11.
31960         * time/timespec_get.c: New file.
31961         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
31962         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
31963
31964         [BZ #13531]
31965         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
31966         * stdlib/stdlib.h: Declare aligned_alloc.
31967         * Versions.def: Add GLIBC_2.16 for libc.
31968         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
31969
31970         [BZ 13527]
31971         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
31972         ISO C11.
31973
31974         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
31975         code.
31976
31977         [BZ #13528]
31978         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
31979
31980         [BZ #13529]
31981         * assert/assert.h (static_assert): Define.
31982
31983         * version.h: Update for 2.16 development version.
31984
31985         [BZ #13526]
31986         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
31987         _ISOC11_SOURCE.
31988
31989         * version.h (RELEASE): Bump for 2.15 release.
31990         * include/features.h (__GLIBC_MINOR__): Bump to 15.
31991
31992         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
31993         Patch by Marek Polacek <mpolacek@redhat.com>.
31994
31995         * bits/byteswap.h: Protect long long constants with __extension__.
31996         * sysdeps/i386/bits/byteswap.h: Likewise.
31997         * sysdeps/ia64/bits/byteswap.h: Likewise.
31998         * sysdeps/s390/bits/byteswap.h: Likewise.
31999         * sysdeps/x86_64/bits/byteswap.h: Likewise.
32000
32001 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32002
32003         [BZ #13540]
32004         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
32005         destination buffer.
32006         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
32007
32008 2011-12-23  Marek Polacek  <polacek@redhat.com>
32009
32010         * elf/dl-addr.c (determine_info): Add inline keyword.
32011         * elf/tst-auditmod4b.c (check_avx): Likewise.
32012         * elf/tst-auditmod6b.c (check_avx): Likewise.
32013         * elf/tst-auditmod6c.c (check_avx): Likewise.
32014         * elf/tst-auditmod7b.c (check_avx): Likewise.
32015
32016 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
32017
32018         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
32019         !__SSE_MATH__.
32020
32021 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32022
32023         [BZ #13540]
32024         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
32025         processing for last bytes.
32026
32027 2011-08-06  Bruno Haible  <bruno@clisp.org>
32028
32029         [BZ #13061]
32030         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
32031         U+0385, not to U+1FEE.
32032
32033         [BZ #13062]
32034         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
32035         entry for U+00A5 U+0301.
32036
32037 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32038
32039         [BZ #13166]
32040         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
32041         buffer for the output is too small.
32042
32043         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
32044         optimization.
32045
32046         [BZ #13185]
32047         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
32048         SSE flags if possible.
32049
32050 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32051
32052         [BZ #13540]
32053         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
32054         processing for last bytes.
32055
32056 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
32057
32058         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
32059         (syscall-list-default-options, syscall-list-default-condition)
32060         (syscall-list-includes): Define.
32061         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
32062         list of ABIs and options and #if conditions for each ABI.  Do not
32063         handle common syscalls between ABIs specially.
32064         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
32065         Remove.
32066         (syscall-list-variants, syscall-list-32bit-options)
32067         (syscall-list-32bit-condition, syscall-list-64bit-options)
32068         (syscall-list-64bit-condition): Define.
32069         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
32070         (syscall-list-variants, syscall-list-32bit-options)
32071         (syscall-list-32bit-condition, syscall-list-64bit-options)
32072         (syscall-list-64bit-condition): Define.
32073         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
32074         Remove.
32075         (syscall-list-variants, syscall-list-32bit-options)
32076         (syscall-list-32bit-condition, syscall-list-64bit-options)
32077         (syscall-list-64bit-condition): Define.
32078         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
32079         Remove.
32080         (syscall-list-variants, syscall-list-32bit-options)
32081         (syscall-list-32bit-condition, syscall-list-64bit-options)
32082         (syscall-list-64bit-condition): Define.
32083
32084 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32085
32086         * locale/iso-639.def: Add brx entry.
32087
32088         [BZ #13328]
32089         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
32090         Proposed by Mariusz_Cukr <marcukr@op.pl>.
32091
32092         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
32093         __feraiseexcept_renamed.
32094
32095 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32096
32097         [BZ #13538]
32098         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
32099         EPOLLET with unsigned values.
32100         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
32101         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
32102
32103         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
32104         to large cancellation.
32105         * math/s_cacoshf.c: Likewise.
32106         * math/s_cacoshl.c: Likewise.
32107
32108 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
32109
32110         [BZ #13305]
32111         [BZ #12786]
32112         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
32113         * math/s_cacoshf.c: Likewise.
32114         * math/s_cacoshl.c: Likewise.
32115
32116 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32117
32118         [BZ #13439]
32119         * iconv/gconv.h: Define __GCONV_SWAP.
32120         * iconvdata/unicode.c: The swap bit must be stored in __flags.
32121         * iconvdata/utf-16.c: Likewise.
32122         * iconvdata/utf-32.c: Likewise.
32123
32124 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
32125
32126         [BZ #13524]
32127         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
32128         numerator after shifting it by one limb.
32129
32130 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
32131
32132         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
32133         under [__USE_EXTERN_INLINES].
32134
32135 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32136
32137         [BZ #13446]
32138         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
32139
32140 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32141
32142         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
32143         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
32144         optimized code.
32145         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
32146         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
32147         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
32148         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
32149         for strncasecmp/strncasecmp_l compilation.
32150         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
32151         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
32152
32153 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
32154
32155         [BZ #13484]
32156         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
32157         of __asm__.
32158
32159 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32160
32161         [BZ #13506]
32162         * time/tzfile.c (__tzfile_read): Check values from file header.
32163
32164 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
32165
32166         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
32167         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
32168         * powerpc/powerpc32/dl-start.S: Likewise.
32169         * powerpc/powerpc32/elf/start.S: Likewise.
32170         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
32171         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
32172         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
32173         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
32174         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
32175         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
32176         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
32177         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
32178         * powerpc/powerpc32/fpu/s_round.S: Likewise.
32179         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
32180         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
32181         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
32182         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
32183         * powerpc/powerpc32/memset.S: Likewise.
32184         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
32185         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
32186         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
32187         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
32188         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
32189         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
32190         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
32191         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
32192         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
32193         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
32194         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
32195         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
32196         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
32197
32198 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32199
32200         * math/libm-test.inc: Added more nearbyint tests.
32201         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
32202         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
32203         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
32204         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
32205
32206 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
32207
32208         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
32209         FD_CLOEXEC.
32210
32211 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32212
32213         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
32214         Add wcscpy-ssse3 wcscpy-c.
32215         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
32216         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
32217         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
32218         * sysdeps/x86_64/wcschr.S: New file.
32219         * sysdeps/x86_64/wcsrchr.S: New file.
32220         * string/test-strcmp.c: Remove checking of wcscmp function for
32221         wrong alignments.
32222         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
32223         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
32224         wcsrchr-sse2 wcsrchr-c.
32225         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
32226         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
32227         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
32228         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
32229         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
32230         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
32231         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
32232         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
32233         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
32234         * wcsmbc/wcschr.c (WCSCHR): New macro.
32235
32236 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32237
32238         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
32239         * wcsmbs/test-wcsrchr.c: New file.
32240         * string/test-strrchr.c: Add wcsrchr support.
32241         (WIDE): New macro.
32242         * wcsmbs/test-wcscpy.c: New file.
32243         * string/test-strcpy.c: Add wcscpy support.
32244         (WIDE): New macro.
32245
32246 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
32247
32248         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
32249         the inner loop.
32250
32251 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
32252
32253         [BZ #13472]
32254         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
32255
32256 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
32257
32258         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
32259         Minor optimizations.
32260
32261         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
32262         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
32263         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32264
32265 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
32266
32267         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
32268         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
32269         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
32270         for gcc to avoid warnings.
32271         * inet/Makefile (tests): Add tst-checks.
32272         * inet/tst-checks.c: New file.
32273
32274         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
32275         warning.
32276
32277         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
32278         __wmemcmp_sse2.
32279
32280         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
32281         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
32282
32283         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
32284
32285 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
32286
32287         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
32288         problem.
32289
32290         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
32291
32292 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
32293
32294         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
32295         conditional on GCC version.
32296         (__arch_compare_and_exchange_val_8_acq)
32297         (__arch_compare_and_exchange_val_16_acq)
32298         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
32299         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
32300         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
32301
32302 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
32303
32304         * sysdeps/sh/backtrace.c: New file.
32305
32306 2011-12-02  Andreas Schwab  <schwab@redhat.com>
32307
32308         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
32309         parenthesis.
32310
32311 2011-12-01  Andreas Schwab  <schwab@redhat.com>
32312
32313         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
32314         falling back to utime.
32315
32316 2011-11-30  Andreas Schwab  <schwab@redhat.com>
32317
32318         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
32319         expectations for float.
32320
32321 2011-11-29  Andreas Schwab  <schwab@redhat.com>
32322
32323         * locale/weight.h (findidx): Add parameter len.
32324         * locale/weightwc.h (findidx): Likewise.
32325         * posix/fnmatch_loop.c (FCT): Adjust caller.
32326         * posix/regcomp.c (build_equiv_class): Likewise.
32327         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
32328         * posix/regexec.c (check_node_accept_bytes): Likewise.
32329         * string/strcoll_l.c (STRCOLL): Likewise.
32330         * string/strxfrm_l.c (STRXFRM): Likewise.
32331
32332 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
32333
32334         * Makefile.in: Remove CVSOPT handling.
32335         * configure.in: Remove use of AC_REVISION.
32336         * iconvdata/Makefile (distribute): No need to filter out CVS.
32337         * scripts/list-sources.sh: Remove CVS, subversion and monotone
32338         handling.
32339
32340 2011-11-16  Andreas Schwab  <schwab@redhat.com>
32341
32342         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
32343         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
32344         [USE_AS_STRNCASECMP_L]: Likewise.
32345         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
32346         NO_TLS_DIRECT_SEG_REFS.
32347         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
32348         Fix argument offsets for non-PIC.
32349         [USE_AS_STRNCASECMP_L]: Likewise.
32350         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
32351         NO_TLS_DIRECT_SEG_REFS.
32352
32353 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32354
32355         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
32356         O_CLOEXEC.
32357         * locale/loadlocale.c (_nl_load_locale): Likewise.
32358
32359 2011-11-15  Andreas Schwab  <schwab@redhat.com>
32360
32361         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
32362         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
32363         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
32364         (SYSCALL_GETTIME): Set errno on error.
32365
32366         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
32367         count references to noai6ai_cached.
32368
32369 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32370
32371         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
32372
32373         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
32374         FD_CLOEXEC for /proc/self/maps.
32375
32376         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
32377         FD_CLOEXEC for /proc/meminfo.
32378
32379         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
32380         gai.conf.
32381
32382         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
32383         FD_CLOEXEC for given file.
32384
32385         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
32386
32387         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
32388         FD_CLOEXEC for /etc/hosts.
32389         (_gethtent): Likewise.
32390
32391         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
32392
32393         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
32394         cancellation and set FD_CLOEXEC for /etc/netgroup.
32395
32396         * nss/nss_files/files-key.c (search): Don't allow cancellation when
32397         reading /etc/publickey.
32398
32399         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
32400         allow cancellation when reading /etc/group.
32401
32402         * nss/nss_files/files-alias.c (internal_setent): Don't allow
32403         cancellation.
32404         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
32405
32406         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
32407         when using data file.
32408
32409         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
32410
32411         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
32412         (write_nis_obj): Use "c" and "e" in fopen.
32413
32414         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
32415
32416         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
32417
32418         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
32419
32420         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
32421
32422         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
32423         locale.alias.
32424
32425         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
32426
32427         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
32428
32429         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
32430
32431         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
32432         file parsing and set FD_CLOEXEC.
32433
32434 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32435
32436         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
32437
32438 2011-11-14  Andreas Schwab  <schwab@redhat.com>
32439
32440         * malloc/arena.c (arena_get2): Don't call reused_arena when
32441         _int_new_arena failed.
32442
32443 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32444
32445         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
32446         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
32447         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
32448         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32449         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32450         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
32451         to compile strcasecmp and strncasecmp.
32452         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
32453         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
32454
32455         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
32456
32457 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
32458
32459         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
32460         locale-defines.sym to gen-as-const-headers.
32461         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
32462         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
32463         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
32464         to compile strcasecmp and strncasecmp.
32465         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
32466         strcasecmp_l and strncasecmp_l.
32467         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
32468         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
32469         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
32470         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
32471         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
32472         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
32473         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
32474         * sysdeps/i386/i686/multiarch/strncase.S: New file.
32475         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
32476         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
32477         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
32478
32479 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
32480
32481         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
32482         result of SYSDEP_GETTIME_CPU to retval.
32483         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
32484         parameter list to macro.  Remove trailing semicolon.  Adjust users.
32485
32486         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
32487         variable.
32488
32489         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
32490         mantissa words.
32491         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32492
32493         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
32494         from unused variable.
32495
32496         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
32497         DWARF definitions.
32498         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
32499         for assembling.
32500
32501         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
32502         over namespaces.
32503
32504         * sunrpc/rpc_prot.c (rejected): Fix case value.
32505
32506         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
32507         unsigned long long int to avoid warnings in shift.
32508
32509         * posix/regex_internal.c (re_string_reconstruct): Actually use result
32510         of use of trans.
32511         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
32512         variable tmp.
32513
32514         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
32515         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
32516         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
32517
32518         * nis/nis_table.c (nis_list): Use variable of correct type for
32519         result of __follow_path call.
32520
32521 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32522
32523         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
32524         of math functions ceil, trunc, floor, round, and sqrt, when
32525         avaliable on the platform.
32526         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
32527         name clash.
32528         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32529         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32530         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32531
32532 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
32533
32534         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
32535         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
32536
32537 2011-11-11  Roland McGrath  <roland@hack.frob.com>
32538
32539         * include/unistd.h: Fix __readlink return type.
32540         Reported by Chris Metcalf <cmetcalf@tilera.com>.
32541
32542 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
32543
32544         * stdlib/ucontext.h: Undo last change for makecontext.
32545
32546 2011-11-11  Andreas Schwab  <schwab@redhat.com>
32547
32548         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
32549
32550         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
32551         * setjmp/setjmp.h: Mark functions as non-leaf.
32552         * setjmp/bits/setjmp2.h: Likewise.
32553         * stdlib/ucontext.h: Likewise.
32554
32555 2011-11-10  Andreas Schwab  <schwab@redhat.com>
32556
32557         * malloc/arena.c (_int_new_arena): Don't increment narenas.
32558         (reused_arena): Don't check arena limit.
32559         (arena_get2): Atomically check arena limit.
32560
32561 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
32562
32563         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
32564         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
32565
32566         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
32567         instructions.
32568
32569 2011-11-07  Andreas Schwab  <schwab@redhat.com>
32570
32571         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
32572         handler when locking.
32573
32574         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
32575         Fix size of allocated buffer.
32576
32577 2011-11-04  Andreas Schwab  <schwab@redhat.com>
32578
32579         [BZ #10103]
32580         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
32581         declarations for long double functions.
32582         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
32583
32584         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
32585
32586 2011-11-03  Andreas Schwab  <schwab@redhat.com>
32587
32588         * nscd/nscd.c (main): Don't start AVC thread until credentials are
32589         installed.
32590
32591         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
32592         is disabled.
32593
32594 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32595
32596         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
32597
32598 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
32599
32600         * include/alloca.h (stackinfo_alloca_round): Define.
32601         (extend_alloca): Use it.
32602         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
32603         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
32604         here.
32605
32606         * scripts/check-local-headers.sh: Ignore libaudit.h.
32607
32608         * nscd/Makefile (extra-objs): Make recursively expanded.
32609
32610 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
32611
32612         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
32613         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
32614
32615         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
32616         * posix/tst-rfc3484-2.c: Likewise.
32617         * posix/tst-rfc3484-3.c: Likewise.
32618
32619         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
32620         process_vm_writev.
32621         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
32622         process_vm_writev.
32623         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
32624         process_vm_writev from libc using GLIBC_2.15 version.
32625
32626         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
32627
32628 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
32629
32630         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
32631         stack usage.
32632
32633 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
32634
32635         [BZ #13367]
32636         * nss/getent.c (initgroups_keys): Show error message in case no group
32637         names are given.
32638
32639         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
32640         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
32641         __bump_nl_timestamp.
32642         * nscd/connections (nscd_init): When host database is served open
32643         netlink socket and request notification about configuration changes.
32644         (main_loop_poll): Track netlink file descriptor and bump timestamp
32645         in case data becomes available.
32646         (main_loop_epoll): Likewise.
32647         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
32648         (database_pers_head): Add extra_data fileds.
32649         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
32650         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
32651         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
32652         Adjust caller.
32653         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
32654         in6ai data, call __free_in6ai.
32655         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
32656         Add -DHAVE_NETLINK.
32657         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
32658         interface information.  Reuse previous data if netlink timestamp
32659         is not changed.
32660         (__bump_nl_timestamp): New function.
32661         (__free_in6ai): New function.
32662
32663 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
32664
32665         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
32666         close_not_cancel_no_status here.
32667         (__check_pf): Reorganize code a bit to not call close twice if OOM.
32668
32669 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32670
32671         [BZ #13276]
32672         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
32673         return value.
32674
32675         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
32676         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
32677         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
32678
32679 2011-07-03  Andreas Jaeger  <aj@suse.de>
32680
32681         [BZ #10709]
32682         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
32683         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
32684         * math/libm-test.inc (sin_test): Add test case.
32685
32686 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32687
32688         [BZ #13337]
32689         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
32690         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32691
32692         * elf/chroot_canon.c (chroot_canon): Cleanups.
32693
32694         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
32695
32696         [BZ #13335]
32697         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
32698         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32699
32700         * string/test-strchr.c: Make usable for strchrnul testing.
32701         * string/test-strchrnul.c: New file.
32702         * string/Makefile (strop-tests): Add strchrnul.
32703
32704         * po/it.po: Update from translation team.
32705         * po/es.po: Likewise.
32706
32707 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
32708
32709         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
32710         the three constants needed as parameters.  Drop the others.
32711         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
32712         __m128i_strloadu_tolower.
32713         Create and initialize variable zero and use it in all the places
32714         where _mm_setzero_si128 was used.
32715
32716         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
32717         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
32718         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
32719         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
32720         anymore.
32721         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
32722         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
32723         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
32724         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
32725         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
32726         __mpranred, __mptan.
32727         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
32728         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
32729         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
32730         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
32731         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
32732         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
32733         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
32734         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
32735         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
32736
32737 2011-10-28  Andreas Schwab  <schwab@redhat.com>
32738
32739         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
32740         redefine if SHARED.
32741         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
32742
32743         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
32744         wide char related routines to wcsmbs subdir.
32745
32746 2011-10-27  Andreas Schwab  <schwab@redhat.com>
32747
32748         [BZ #13344]
32749         * misc/sys/cdefs.h (__THROWNL): Define.
32750         * posix/unistd.h: Use __THREADNL instead of __THREAD
32751         for memory synchronization functions.
32752
32753 2011-10-26  Roland McGrath  <roland@hack.frob.com>
32754
32755         [BZ #13349]
32756         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
32757         doesn't exist.
32758         * manual/stdio.texi (Obstack Streams): Node removed.
32759
32760 2011-10-26  Andreas Schwab  <schwab@redhat.com>
32761
32762         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
32763         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32764         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32765
32766         * math/math_private.h (math_force_eval): Allow non-addressable
32767         arguments.
32768         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
32769
32770 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32771
32772         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
32773         file is not needed.
32774
32775         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
32776         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32777         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32778         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32779         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32780         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32781         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32782         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
32783         Add AVX variants.
32784         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
32785         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
32786         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
32787         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
32788         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
32789         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
32790         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
32791         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
32792         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
32793         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
32794         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
32795         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
32796         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
32797         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
32798         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
32799         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
32800         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
32801         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
32802         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
32803
32804         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
32805         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
32806
32807         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
32808         place.  Use VEX encoding when compiling for AVX.
32809
32810 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32811
32812         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
32813         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
32814
32815         * string/test-strchr.c (do_test): Don't generate NUL bytes.
32816
32817 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32818
32819         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
32820         useless if() expression.
32821         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32822         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
32823         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
32824         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32825         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
32826         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32827         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32828         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32829         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
32830         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
32831         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
32832         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32833         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
32834         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32835         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
32836         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32837         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
32838         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
32839         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
32840
32841         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
32842
32843 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32844
32845         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
32846         condition.
32847         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32848
32849 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32850
32851         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
32852         .text section.  Avoid duplicate constants.
32853         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
32854         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32855         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
32856         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32857         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32858         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32859         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32860         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32861         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
32862         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
32863         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
32864         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
32865         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
32866         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
32867         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
32868         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
32869         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
32870         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
32871         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
32872         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32873         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
32874         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
32875         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
32876         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
32877         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
32878         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
32879         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
32880         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
32881         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
32882         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
32883         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
32884         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
32885         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
32886         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
32887         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
32888         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
32889         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
32890         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
32891         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
32892         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
32893         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
32894         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
32895         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
32896         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
32897         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
32898
32899 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
32900
32901         * sysdeps/x86_64/dla.h: Move to ...
32902         * sysdeps/x86_64/fpu/dla.h: ...here.
32903         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
32904         situations.  Use __builtin_fma only for gcc 4.6 and up.
32905
32906         * config.make.in: Add have-mfma4 entry.
32907         * configure.in: Substitute libc_cv_cc_fma4.
32908         * math/Makefile (dbl-only-routines): Add sincostab.
32909         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
32910         Use __sincostab not sincos.
32911         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
32912         name is a macro.
32913         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32914         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32915         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32916         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
32917         using __copysign.
32918         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
32919         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
32920         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
32921         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
32922         and __inv.
32923         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
32924         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
32925         __copysign.
32926         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
32927         define aliases when function name is a macro.
32928         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
32929         sysdeps/ieee754/dbl-64/sincos.tbl.
32930         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
32931         fma4-enabled routines.
32932         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
32933         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
32934         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
32935         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
32936         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
32937         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
32938         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
32939         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
32940         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
32941         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
32942         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
32943         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
32944         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
32945         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
32946         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
32947         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
32948         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
32949         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
32950         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
32951         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
32952         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
32953         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
32954         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
32955         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
32956         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
32957         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
32958         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
32959         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
32960         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
32961         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
32962
32963         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
32964         rename.
32965         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32966         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32967         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32968         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32969         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32970         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32971         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
32972         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32973
32974 2011-10-24  Andreas Schwab  <schwab@redhat.com>
32975
32976         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
32977
32978 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
32979
32980         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
32981
32982         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
32983         prediction.
32984         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
32985
32986         * string/strnlen.c: Don't define STRNLEN, reverse logic.
32987         Remove unused variable magic_bits.
32988         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
32989
32990         * string/strnlen.c: Define and use STRNLEN macro.
32991         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
32992         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
32993         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
32994         * wcsmbs/wcslen.c: Define and use WCSLEN.
32995         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
32996         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
32997         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
32998         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
32999         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
33000         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
33001         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33002
33003 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33004
33005         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33006         strnlen-sse2-no-bsf.
33007         Rename strlen-no-bsf to strlen-sse2-no-bsf.
33008         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
33009         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
33010         Add strnlen support.
33011         (USE_AS_STRNLEN): New macro.
33012         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
33013         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
33014         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
33015         * sysdeps/x86_64/wcslen.S: New file.
33016
33017 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
33018
33019         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
33020         XMM-moves are used for copying on small sizes.
33021
33022 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33023
33024         * wcsmbs/Makefile (strop-tests): Add wcschr.
33025         * wcsmbs/test-wcschr.c: New file.
33026         * string/test-strchr.c: Update.
33027         Add wcschr support.
33028         (WIDE): New macro.
33029
33030 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33031
33032         * wcsmbs/Makefile (strop-tests): Add wcslen.
33033         * wcsmbs/test-wcslen.c: New file.
33034         * string/test-strlen.c: Update.
33035         Add wcslen support.
33036         (WIDE): New macro.
33037
33038 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33039
33040         * po/it.po: Update from translation team.
33041
33042 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33043
33044         * sysdeps/x86_64/wcscmp.S: Update.
33045         Fix wrong comparison semantics.
33046         wcscmp shall use signed comparison not unsigned.
33047         Don't use substraction to avoid overflow bug.
33048         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
33049         * wcsmbc/wcscmp.c: Likewise.
33050         * string/test-strcmp.c: Likewise.
33051         Add new tests to check cases with negative values.
33052
33053 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33054
33055         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
33056         * sysdeps/x86_64/dla.h: ...here.  New file.
33057         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
33058         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33059         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33060         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33061         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33062         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33063         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33064         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33065         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33066
33067 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
33068
33069         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
33070         __ynl_finite aliases.
33071
33072 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33073
33074         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33075
33076         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
33077         define DLA_FMA.
33078         [DLA_FMA] (EMULV): Use DLA_FMA.
33079         [DLA_FMA] (MUL12): Use EMULV.
33080         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
33081         that are not needed.
33082         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33083         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33084         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33085         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33086         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33087         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33088         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33089
33090 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
33091
33092         * math/s_nan.c: Undef __nan.
33093         * math/s_nanf.c: Undef __nanf.
33094         * math/s_nanl.c: Undef __nanl.
33095         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
33096         "math_private.h".
33097
33098 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33099
33100         * math/s_catan.c: Add branch predictions.
33101         * math/s_catanf.c: Likewise.
33102         * math/s_catanh.c: Likewise.
33103         * math/s_catanhf.c: Likewise.
33104         * math/s_catanhl.c: Likewise.
33105         * math/s_catanl.c: Likewise.
33106         * math/s_cexp.c: Likewise.
33107         * math/s_cexpf.c: Likewise.
33108         * math/s_cexpl.c: Likewise.
33109         * math/s_clog.c: Likewise.
33110         * math/s_clog10.c: Likewise.
33111         * math/s_clog10f.c: Likewise.
33112         * math/s_clog10l.c: Likewise.
33113         * math/s_clogf.c: Likewise.
33114         * math/s_clogl.c: Likewise.
33115         * math/s_csqrt.c: Likewise.
33116         * math/s_csqrtf.c: Likewise.
33117         * math/s_csqrtl.c: Likewise.
33118         * math/s_ctanf.c: Likewise.
33119         * math/s_ctanh.c: Likewise.
33120         * math/s_ctanhf.c: Likewise.
33121         * math/s_ctanhl.c: Likewise.
33122         * math/s_ctanl.c: Likewise.
33123
33124         * math/math_private.h: Define __nan, __nanf, __nanl.
33125         * math/s_cacosh.c: Include <math_private.h>.
33126         * math/s_cacoshl.c: Likewise.
33127         * math/s_casinh.c: Likewise.
33128         * math/s_casinhf.c: Likewise.
33129         * math/s_casinhl.c: Likewise.
33130         * math/s_ccos.c: Rely entire on ccosh.
33131         * math/s_ccosf.c: Rely entire on ccoshf.
33132         * math/s_ccosl.c: Rely entirely on ccoshl.
33133         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
33134         Remove tests for FE_INVALID.
33135         * math/s_ccoshf.c: Likewise.
33136         * math/s_ccoshl.c: Likewise.
33137         * math/s_csin.c: Likewise.
33138         * math/s_csinf.c: Likewise.
33139         * math/s_csinh.c Likewise.
33140         * math/s_csinhf.c: Likewise.
33141         * math/s_csinhl.c: Likewise.
33142         * math/s_csinl.c: Likewise.
33143         * math/s_ctan.c: Likewise.
33144         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
33145         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
33146         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
33147
33148 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
33149
33150         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
33151         compilation problems.
33152
33153         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
33154         __builtin_expect.
33155
33156 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
33157
33158         * sysdeps/i386/configure.in: Test for -mfma4 option.
33159         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
33160         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
33161         COMMON_CPUID_INDEX_80000001.
33162         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
33163         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
33164         use it if FMA3 is not supported.
33165         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
33166
33167         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
33168         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33169
33170 2011-10-20  Andreas Schwab  <schwab@redhat.com>
33171
33172         [BZ #12892]
33173         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
33174         it would create a cycle with a link time dependency.
33175
33176 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
33177
33178         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
33179         instruction.
33180         * string/Makefile (strop-tests): Add rawmemchr.
33181         * string/test-rawmemchr.c: New file.
33182
33183         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
33184         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
33185         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
33186         when compiling str{,n}casecmp and when AVX is available.  Hook up
33187         new optimized code in initializers.
33188
33189 2011-10-19  Andreas Schwab  <schwab@redhat.com>
33190
33191         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
33192         __feraiseexcept instead of feraiseexcept.
33193
33194 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
33195
33196         * math/math_private.h: Define defaults for libc_fetestexcept and
33197         libc_feupdateenv.
33198         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
33199         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
33200         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33201         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33202         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
33203         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33204         libc_fetestexcept and libc_feupdateenv.
33205
33206         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
33207         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
33208         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
33209         * sysdeps/x86_64/fpu/math_private.h: Define special version of
33210         libc_feholdexcept_setround.
33211
33212         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
33213         Add s_nearbyint-c and s_nearbyintf-c.
33214         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
33215         nearbyintf inlines.
33216         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
33217         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
33218         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
33219         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
33220
33221         * math/math_private.h: Define defaults for libc_fegetround,
33222         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
33223         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
33224         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
33225         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
33226         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
33227         standard functions.
33228         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33229         Remove comments and hacks for old compiler versions.
33230         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33231         libc_fegetround, libc_fesetround, libc_feholdexcept, and
33232         libc_feholdexceptl.
33233
33234 2011-10-18  Andreas Schwab  <schwab@redhat.com>
33235
33236         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
33237         (__feraiseexcept_renamed): Add __NTH.
33238         (feraiseexcept): Add __NTH.  Rename local variables to fix
33239         namespace violations.
33240
33241 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
33242
33243         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
33244
33245         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
33246
33247         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
33248         recently added interfaces.
33249         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
33250
33251         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
33252         about macro parameter expansion.
33253
33254         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
33255         __NO_MATH_INLINES is defined.  Cleanups.
33256
33257         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
33258         and __floorf is target has SSE4.1.
33259         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
33260         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
33261         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
33262         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
33263
33264         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
33265         name.
33266         (floorf): Likewise.
33267
33268         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
33269
33270 2011-10-17  Andreas Schwab  <schwab@redhat.com>
33271
33272         * misc/sys/cdefs.h: Fix last change.
33273
33274         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
33275         database lookup.
33276
33277 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
33278
33279         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
33280
33281         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
33282         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
33283         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
33284         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
33285         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
33286         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
33287         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
33288         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
33289         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
33290         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
33291         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
33292         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
33293         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
33294         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
33295         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
33296         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
33297         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
33298         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
33299         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
33300         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
33301         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
33302         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
33303
33304         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
33305         ceil, ceilf, floor, floorf.
33306
33307         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
33308         Perform IRELATIVE relocations last.
33309
33310         * elf/do-rel.h: Add another parameter nrelative, replacing the
33311         local variable with the same name.  Change name of the function
33312         to end in Rel or Rela (uppercase).
33313         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
33314         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
33315         elf_dynamic_do_##reloc function.
33316
33317 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33318
33319         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
33320         is sufficient, at least on modern CPUs.
33321
33322         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
33323
33324         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
33325         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
33326
33327         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
33328         __expl_finite.
33329         * math/bits/math-finite.h: Add entries for exp.
33330         * math/e_expl.c: Add __*_finite alias.
33331         * sysdeps/i386/fpu/e_exp.S: Likewise.
33332         * sysdeps/i386/fpu/e_expf.S: Likewise.
33333         * sysdeps/i386/fpu/e_expl.c: Likewise.
33334         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33335         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33336         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
33337         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
33338         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
33339         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
33340         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
33341
33342         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
33343         is sufficient, at least on modern CPUs.
33344
33345         * ctype/ctype-info.c (__ctype_init): Define.
33346         * include/ctype.h (__ctype_init): Declare.
33347         (__ctype_b_loc): The variable is always initialized.
33348         (__ctype_toupper_loc): Likewise.
33349         (__ctype_tolower_loc): Likewise.
33350         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
33351         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
33352
33353 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
33354
33355         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
33356
33357         * configure.in: Also look in $cxxmachine/include for C++ system
33358         headers.
33359
33360 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33361
33362         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
33363         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
33364         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
33365         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
33366         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
33367         (USE_AS_WMEMCMP): New macro.
33368         Fixing indents.
33369         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
33370         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
33371         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
33372         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
33373         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33374         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
33375         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
33376         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
33377         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
33378         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
33379         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
33380         (USE_AS_WMEMCMP): New macro.
33381         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
33382         * sysdeps/string/test-memcmp.c: Update.
33383         Fix simple_wmemcmp.
33384         Add new tests.
33385         * wcsmbs/wmemcmp.c: Update.
33386         (WMEMCMP): New macro.
33387         Fix overflow bug.
33388
33389 2011-10-12  Andreas Jaeger  <aj@suse.de>
33390
33391         [BZ #13268]
33392         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
33393
33394 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33395
33396         * libio/iofwide.c (do_length): Avoid warning.
33397
33398         * ctype/ctype.h (__isctype_f): Add missing __THROW.
33399
33400 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
33401
33402         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
33403
33404         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
33405         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
33406         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
33407         * sysdeps/i386/i686/fpu/e_log.S: New file.
33408         * sysdeps/i386/i686/fpu/e_logf.S: New file.
33409         * sysdeps/i386/i686/fpu/e_logl.S: New file.
33410
33411         * ctype/ctype.h: Add support for inlined isXXX functions when
33412         compiling C++ code.
33413
33414 2011-10-14  Andreas Schwab  <schwab@redhat.com>
33415
33416         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33417
33418         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
33419
33420 2011-10-13  Roland McGrath  <roland@hack.frob.com>
33421
33422         [BZ #13291]
33423         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
33424
33425 2011-10-13  Andreas Schwab  <schwab@redhat.com>
33426
33427         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
33428         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
33429         feraiseexcept.
33430
33431         * sysdeps/x86_64/memrchr.S: Check for zero size.
33432
33433         * string/stratcliff.c: Add memrchr tests.
33434
33435 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33436
33437         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33438         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
33439         rawmemchr-sse2 rawmemchr-sse2-bsf.
33440         * sysdeps/i386/i686/multiarch/memchr.S: New file.
33441         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
33442         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
33443         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
33444         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
33445         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
33446         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
33447         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
33448         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
33449         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
33450         * string/memrchr.c (MEMRCHR): New macro.
33451
33452 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
33453
33454         Add integration with gcc's -ffinite-math-only and optimize wrapper
33455         functions in libm.
33456         * Versions.def: Define GLIBC_2.15 version for libm.
33457         * math/Makefile (headers): Add bits/math-finite.h.
33458         * math/bits/math-finite.h: New file.
33459         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
33460         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
33461         * math/e_acoshl.c: Add __*_finite alias.
33462         * math/e_acosl.c: Likewise.
33463         * math/e_asinl.c: Likewise.
33464         * math/e_atan2l.c: Likewise.
33465         * math/e_atanhl.c: Likewise.
33466         * math/e_coshl.c: Likewise.
33467         * math/e_exp10.c: Likewise.
33468         * math/e_exp10f.c: Likewise.
33469         * math/e_exp10l.c: Likewise.
33470         * math/e_exp2l.c: Likewise.
33471         * math/e_fmodl.c: Likewise.
33472         * math/e_gammal_r.c: Likewise.
33473         * math/e_hypotl.c: Likewise.
33474         * math/e_j0l.c: Likewise.
33475         * math/e_j1l.c: Likewise.
33476         * math/e_jnl.c: Likewise.
33477         * math/e_lgammal_r.c: Likewise.
33478         * math/e_log10l.c: Likewise.
33479         * math/e_log2l.c: Likewise.
33480         * math/e_logl.c: Likewise.
33481         * math/e_powl.c: Likewise.
33482         * math/e_sinhl.c: Likewise.
33483         * math/e_sqrtl.c: Likewise.
33484         * math/e_scalb.c: Completely rewritten and optimized.
33485         * math/e_scalbf.c: Likewise.
33486         * math/e_scalbl.c: Likewise.
33487         * math/w_acos.c: Likewise.
33488         * math/w_acosf.c: Likewise.
33489         * math/w_acosl.c: Likewise.
33490         * math/w_acosh.c: Likewise.
33491         * math/w_acoshf.c: Likewise.
33492         * math/w_acoshl.c: Likewise.
33493         * math/w_asin.c: Likewise.
33494         * math/w_asinf.c: Likewise.
33495         * math/w_asinl.c: Likewise.
33496         * math/w_atan2.c: Likewise.
33497         * math/w_atan2f.c: Likewise.
33498         * math/w_atan2l.c: Likewise.
33499         * math/w_atanh.c: Likewise.
33500         * math/w_atanhf.c: Likewise.
33501         * math/w_atanhl.c: Likewise.
33502         * math/w_exp10.c: Likewise.
33503         * math/w_exp10f.c: Likewise.
33504         * math/w_exp10l.c: Likewise.
33505         * math/w_fmod.c: Likewise.
33506         * math/w_fmodf.c: Likewise.
33507         * math/w_fmodl.c: Likewise.
33508         * math/w_j0.c: Likewise.
33509         * math/w_j0f.c: Likewise.
33510         * math/w_j0l.c: Likewise.
33511         * math/w_j1.c: Likewise.
33512         * math/w_j1f.c: Likewise.
33513         * math/w_j1l.c: Likewise.
33514         * math/w_jn.c: Likewise.
33515         * math/w_jnf.c: Likewise.
33516         * math/w_log.c: Likewise.
33517         * math/w_logf.c: Likewise.
33518         * math/w_logl.c: Likewise.
33519         * math/w_log10.c: Likewise.
33520         * math/w_log10f.c: Likewise.
33521         * math/w_log10l.c: Likewise.
33522         * math/w_log2.c: Likewise.
33523         * math/w_log2f.c: Likewise.
33524         * math/w_log2l.c: Likewise.
33525         * math/w_pow.c: Likewise.
33526         * math/w_powf.c: Likewise.
33527         * math/w_powl.c: Likewise.
33528         * math/w_remainder.c: Likewise.
33529         * math/w_remainderf.c: Likewise.
33530         * math/w_remainderl.c: Likewise.
33531         * math/w_scalb.c: Likewise.
33532         * math/w_scalbf.c: Likewise.
33533         * math/w_scalbl.c: Likewise.
33534         * math/w_sqrt.c: Likewise.
33535         * math/w_sqrtf.c: Likewise.
33536         * math/w_sqrtl.c: Likewise.
33537         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
33538         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
33539         used.
33540         * math/math_private.h: Declare __kernel_standard_f.
33541         * math/w_cosh.c: Remove cruft and optimize a bit.
33542         * math/w_coshf.c: Likewise.
33543         * math/w_coshl.c: Likewise.
33544         * math/w_exp2.c: Likewise.
33545         * math/w_exp2f.c: Likewise.
33546         * math/w_exp2l.c: Likewise.
33547         * math/w_hypot.c: Likewise.
33548         * math/w_hypotf.c: Likewise.
33549         * math/w_hypotl.c: Likewise.
33550         * math/w_lgamma.c: Likewise.
33551         * math/w_lgamma_r.c: Likewise.
33552         * math/w_lgammaf.c: Likewise.
33553         * math/w_lgammaf_r.c: Likewise.
33554         * math/w_lgammal.c: Likewise.
33555         * math/w_lgammal_r.c: Likewise.
33556         * math/w_sinh.c: Likewise.
33557         * math/w_sinhf.c: Likewise.
33558         * math/w_sinhl.c: Likewise.
33559         * math/w_tgamma.c: Likewise.
33560         * math/w_tgammaf.c: Likewise.
33561         * math/w_tgammal.c: Likewise.
33562         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
33563         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33564         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
33565         Minor optimizations.  Pretty printing.  Remove cruft.
33566         * sysdeps/i386/fpu/e_acosf.S: Likewise.
33567         * sysdeps/i386/fpu/e_acosh.S: Likewise.
33568         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
33569         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
33570         * sysdeps/i386/fpu/e_acosl.c: Likewise.
33571         * sysdeps/i386/fpu/e_asin.S: Likewise.
33572         * sysdeps/i386/fpu/e_asinf.S: Likewise.
33573         * sysdeps/i386/fpu/e_atan2.S: Likewise.
33574         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
33575         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
33576         * sysdeps/i386/fpu/e_atanh.S: Likewise.
33577         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
33578         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
33579         * sysdeps/i386/fpu/e_exp10.S: Likewise.
33580         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
33581         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
33582         * sysdeps/i386/fpu/e_exp2.S: Likewise.
33583         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
33584         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
33585         * sysdeps/i386/fpu/e_fmod.S: Likewise.
33586         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
33587         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
33588         * sysdeps/i386/fpu/e_hypot.S: Likewise.
33589         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
33590         * sysdeps/i386/fpu/e_log.S: Likewise.
33591         * sysdeps/i386/fpu/e_log10.S: Likewise.
33592         * sysdeps/i386/fpu/e_log10f.S: Likewise.
33593         * sysdeps/i386/fpu/e_log10l.S: Likewise.
33594         * sysdeps/i386/fpu/e_log2.S: Likewise.
33595         * sysdeps/i386/fpu/e_log2f.S: Likewise.
33596         * sysdeps/i386/fpu/e_log2l.S: Likewise.
33597         * sysdeps/i386/fpu/e_logf.S: Likewise.
33598         * sysdeps/i386/fpu/e_logl.S: Likewise.
33599         * sysdeps/i386/fpu/e_pow.S: Likewise.
33600         * sysdeps/i386/fpu/e_powf.S: Likewise.
33601         * sysdeps/i386/fpu/e_powl.S: Likewise.
33602         * sysdeps/i386/fpu/e_remainder.S: Likewise.
33603         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
33604         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
33605         * sysdeps/i386/fpu/e_scalb.S: Likewise.
33606         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
33607         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
33608         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
33609         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
33610         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
33611         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
33612         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33613         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33614         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
33615         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33616         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
33617         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
33618         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
33619         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
33620         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
33621         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
33622         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
33623         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33624         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
33625         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
33626         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33627         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
33628         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
33629         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33630         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33631         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
33632         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
33633         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
33634         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
33635         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
33636         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
33637         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33638         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
33639         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
33640         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
33641         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33642         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
33643         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33644         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
33645         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
33646         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
33647         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
33648         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
33649         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
33650         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
33651         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
33652         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
33653         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
33654         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
33655         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
33656         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
33657         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
33658         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
33659         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
33660         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
33661         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
33662         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
33663         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
33664         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33665         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
33666         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
33667         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
33668         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
33669         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
33670         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
33671         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
33672         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
33673         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
33674         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
33675         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
33676         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
33677         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
33678         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
33679         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
33680         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
33681         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
33682         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
33683         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
33684         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
33685         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
33686         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
33687         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
33688         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
33689         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
33690         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
33691         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33692         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
33693         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
33694         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
33695         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33696         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
33697         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33698         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
33699         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
33700         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
33701         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
33702         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
33703         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
33704         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
33705         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
33706         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
33707         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
33708         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
33709         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
33710         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
33711         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
33712         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
33713         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
33714         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
33715         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
33716         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
33717         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
33718         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33719         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
33720         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
33721         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
33722         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
33723         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
33724         (__isnanf): Likewise.
33725         (__isinf_ns): Likewise.
33726         (__isinf_nsf): Likewise.
33727         (__finite): Likewise.
33728         (__finitef): Likewise.
33729         (__ieee754_sqrt): Define as macro.
33730         (__ieee754_sqrtf): Define as macro.
33731         (__ieee754_sqrtl): Define as macro.
33732         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
33733         inlined copy.
33734         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
33735         __FINITE_MATH_ONLY__ consistent.
33736         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
33737
33738 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
33739
33740         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
33741         of rawmemchr.
33742
33743         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
33744
33745 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
33746
33747         * po/ja.po: Update from translation team.
33748
33749 2011-10-08  Roland McGrath  <roland@hack.frob.com>
33750
33751         * locale/programs/locarchive.c (prepare_address_space): New function.
33752         (create_archive, enlarge_archive, open_archive): Use it.
33753
33754         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
33755         inside [SHARED], where it is used.
33756
33757         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
33758
33759         * nss/getent.c (netgroup_keys): Remove unused variable.
33760         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
33761
33762 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
33763
33764         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
33765         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
33766         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
33767         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
33768         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
33769         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
33770         * math/Makefile (libm-calls): Add s_isinf_ns.
33771         * math/divtc3.c: Use __isinf_nsl instead of isinf.
33772         * math/multc3.c: Likewise.
33773         * math/s_casin.c: Likewise.
33774         * math/s_casinf.c: Likewise.
33775         * math/s_casinl.c: Likewise.
33776         * math/s_ccos.c: Likewise.
33777         * math/s_ccosf.c: Likewise.
33778         * math/s_ccosl.c: Likewise.
33779         * math/s_ctan.c: Likewise.
33780         * math/s_ctanf.c: Likewise.
33781         * math/s_ctanh.c: Likewise.
33782         * math/s_ctanhf.c: Likewise.
33783         * math/s_ctanhl.c: Likewise.
33784         * math/s_ctanl.c: Likewise.
33785         * math/w_fmod.c: Likewise.
33786         * math/w_fmodf.c: Likewise.
33787         * math/w_fmodl.c: Likewise.
33788         * math/w_remainder.c: Likewise.
33789         * math/w_remainderf.c: Likewise.
33790         * math/w_remainderl.c: Likewise.
33791         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
33792         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
33793         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
33794         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
33795         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
33796         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
33797         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
33798         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
33799
33800         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
33801         of the number.
33802         * stdio-common/printf_fphex.c: Likewise.
33803         * stdio-common/printf_size.c: Likewise.
33804
33805         * math/e_exp10.c: Include math_private.h using <...> not "...".
33806         * math/e_exp10f.c: Likewise.
33807         * math/e_exp10l.c: Likewise.
33808         * math/e_exp2l.c: Likewise.
33809         * math/e_j0l.c: Likewise.
33810         * math/e_j1l.c: Likewise.
33811         * math/e_jnl.c: Likewise.
33812         * math/e_lgammal_r.c: Likewise.
33813         * math/e_rem_pio2l.c: Likewise.
33814         * math/e_scalb.c: Likewise.
33815         * math/e_scalbf.c: Likewise.
33816         * math/e_scalbl.c: Likewise.
33817         * math/k_cosl.c: Likewise.
33818         * math/k_sinl.c: Likewise.
33819         * math/k_tanl.c: Likewise.
33820         * math/s_cacoshf.c: Likewise.
33821         * math/s_catan.c: Likewise.
33822         * math/s_catanf.c: Likewise.
33823         * math/s_catanh.c: Likewise.
33824         * math/s_catanhf.c: Likewise.
33825         * math/s_catanhl.c: Likewise.
33826         * math/s_catanl.c: Likewise.
33827         * math/s_ccosh.c: Likewise.
33828         * math/s_ccoshf.c: Likewise.
33829         * math/s_ccoshl.c: Likewise.
33830         * math/s_cexp.c: Likewise.
33831         * math/s_cexpf.c: Likewise.
33832         * math/s_cexpl.c: Likewise.
33833         * math/s_clog.c: Likewise.
33834         * math/s_clog10.c: Likewise.
33835         * math/s_clog10f.c: Likewise.
33836         * math/s_clog10l.c: Likewise.
33837         * math/s_clogf.c: Likewise.
33838         * math/s_clogl.c: Likewise.
33839         * math/s_csin.c: Likewise.
33840         * math/s_csinf.c: Likewise.
33841         * math/s_csinh.c: Likewise.
33842         * math/s_csinhf.c: Likewise.
33843         * math/s_csinhl.c: Likewise.
33844         * math/s_csinl.c: Likewise.
33845         * math/s_csqrt.c: Likewise.
33846         * math/s_csqrtf.c: Likewise.
33847         * math/s_csqrtl.c: Likewise.
33848         * math/s_ctan.c: Likewise.
33849         * math/s_ctanf.c: Likewise.
33850         * math/s_ctanh.c: Likewise.
33851         * math/s_ctanhf.c: Likewise.
33852         * math/s_ctanhl.c: Likewise.
33853         * math/s_ctanl.c: Likewise.
33854         * math/s_ldexp.c: Likewise.
33855         * math/s_ldexpf.c: Likewise.
33856         * math/s_ldexpl.c: Likewise.
33857         * math/s_significand.c: Likewise.
33858         * math/s_significandf.c: Likewise.
33859         * math/s_significandl.c: Likewise.
33860         * math/w_acos.c: Likewise.
33861         * math/w_acosf.c: Likewise.
33862         * math/w_acosh.c: Likewise.
33863         * math/w_acoshf.c: Likewise.
33864         * math/w_acoshl.c: Likewise.
33865         * math/w_acosl.c: Likewise.
33866         * math/w_asin.c: Likewise.
33867         * math/w_asinf.c: Likewise.
33868         * math/w_asinl.c: Likewise.
33869         * math/w_atan2.c: Likewise.
33870         * math/w_atan2f.c: Likewise.
33871         * math/w_atan2l.c: Likewise.
33872         * math/w_atanh.c: Likewise.
33873         * math/w_atanhf.c: Likewise.
33874         * math/w_atanhl.c: Likewise.
33875         * math/w_cosh.c: Likewise.
33876         * math/w_coshf.c: Likewise.
33877         * math/w_coshl.c: Likewise.
33878         * math/w_dremf.c: Likewise.
33879         * math/w_exp10.c: Likewise.
33880         * math/w_exp10f.c: Likewise.
33881         * math/w_exp10l.c: Likewise.
33882         * math/w_exp2.c: Likewise.
33883         * math/w_exp2f.c: Likewise.
33884         * math/w_fmod.c: Likewise.
33885         * math/w_fmodf.c: Likewise.
33886         * math/w_fmodl.c: Likewise.
33887         * math/w_hypot.c: Likewise.
33888         * math/w_hypotf.c: Likewise.
33889         * math/w_hypotl.c: Likewise.
33890         * math/w_j0.c: Likewise.
33891         * math/w_j0f.c: Likewise.
33892         * math/w_j0l.c: Likewise.
33893         * math/w_j1.c: Likewise.
33894         * math/w_j1f.c: Likewise.
33895         * math/w_j1l.c: Likewise.
33896         * math/w_jn.c: Likewise.
33897         * math/w_jnf.c: Likewise.
33898         * math/w_jnl.c: Likewise.
33899         * math/w_lgamma.c: Likewise.
33900         * math/w_lgamma_r.c: Likewise.
33901         * math/w_lgammaf.c: Likewise.
33902         * math/w_lgammaf_r.c: Likewise.
33903         * math/w_lgammal.c: Likewise.
33904         * math/w_lgammal_r.c: Likewise.
33905         * math/w_log.c: Likewise.
33906         * math/w_log10.c: Likewise.
33907         * math/w_log10f.c: Likewise.
33908         * math/w_log10l.c: Likewise.
33909         * math/w_log2.c: Likewise.
33910         * math/w_log2f.c: Likewise.
33911         * math/w_log2l.c: Likewise.
33912         * math/w_logf.c: Likewise.
33913         * math/w_logl.c: Likewise.
33914         * math/w_pow.c: Likewise.
33915         * math/w_powf.c: Likewise.
33916         * math/w_powl.c: Likewise.
33917         * math/w_remainder.c: Likewise.
33918         * math/w_remainderf.c: Likewise.
33919         * math/w_remainderl.c: Likewise.
33920         * math/w_scalb.c: Likewise.
33921         * math/w_scalbf.c: Likewise.
33922         * math/w_scalbl.c: Likewise.
33923         * math/w_sinh.c: Likewise.
33924         * math/w_sinhf.c: Likewise.
33925         * math/w_sinhl.c: Likewise.
33926         * math/w_sqrt.c: Likewise.
33927         * math/w_sqrtf.c: Likewise.
33928         * math/w_sqrtl.c: Likewise.
33929         * math/w_tgamma.c: Likewise.
33930         * math/w_tgammaf.c: Likewise.
33931         * math/w_tgammal.c: Likewise.
33932
33933         * po/ja.po: Update from translation team.
33934
33935 2011-09-29  Andreas Jaeger  <aj@suse.de>
33936
33937         [BZ #13179]
33938         * sunrpc/netname.c (netname2host): Fix logic.
33939
33940         [BZ #6779]
33941         [BZ #6783]
33942         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
33943         correctly.
33944         * math/w_remainder.c (__remainder): Likewise.
33945         * math/w_remainderf.c (__remainderf): Likewise.
33946         * math/libm-test.inc (remainder_test): Add test cases.
33947
33948 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33949
33950         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
33951         sdiv_qrnnd.
33952
33953 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33954
33955         * string/test-memcmp.c: Avoid unncessary #defines.
33956         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33957
33958 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33959
33960         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
33961         Use new sse2 version for core i3 - i7 as it's faster
33962         than sse42 version.
33963         (bit_Prefer_PMINUB_for_stringop): New.
33964         * sysdeps/x86_64/rawmemchr.S: Update.
33965         Replace with faster SSE2 version.
33966         * sysdeps/x86_64/memrchr.S: New file.
33967         * sysdeps/x86_64/memchr.S: Update.
33968         Replace with faster SSE2 version.
33969
33970 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
33971
33972         * elf/dl-load.c (lose): Add cast to avoid warning.
33973
33974 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
33975
33976         * po/ca.po: Update from translation team.
33977
33978         * inet/getnetgrent_r.c: Hook up nscd.
33979         * nscd/Makefile (routines): Add nscd_netgroup.
33980         (nscd-modules): Add netgroupcache.
33981         (CFLAGS-netgroupcache.c): Define.
33982         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
33983         (cache_search): Add const to second parameter.
33984         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
33985         INNETGR.
33986         (dbs): Add netgrdb entry.
33987         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
33988         (verify_persistent_db): Handle netgrdb.
33989         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
33990         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
33991         GETFDNETGR.
33992         (netgroup_response_header): Define.
33993         (innetgroup_response_header): Define.
33994         (datahead): Add netgroup_response_header and innetgroup_response_header
33995         elements.
33996         * nscd/nscd.conf: Add entries for netgroup cache.
33997         * nscd/nscd.h (dbtype): Add netgrdb.
33998         (_PATH_NSCD_NETGROUP_DB): Define.
33999         (netgroup_iov_disabled): Declare.
34000         (xmalloc, xcalloc, xrealloc): Move declarations here.
34001         (cache_search): Adjust prototype.
34002         Add netgroup-related prototypes.
34003         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
34004         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
34005         (__nscd_innetgr): Declare.
34006         * nscd/selinux.c (perms): Use access_vector_t as element type and
34007         add netgroup-related initializers.
34008         * nscd/netgroupcache.c: New file.
34009         * nscd/nscd_netgroup.c: New file.
34010         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
34011         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
34012         For four parameters use innetgr.
34013         * nss/nss_files/files-init.c: Add definition and callback for netgr.
34014         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
34015         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
34016         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
34017
34018         * nscd/connections.c (register_traced_file): Don't register file
34019         for disabled databases.
34020
34021 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
34022
34023         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
34024
34025         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
34026         from tree and freeing node.
34027
34028 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
34029
34030         * nss/nsswitch.c (__nss_database_lookup): Handle
34031         nss_parse_service_list out of memory case.
34032
34033 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
34034
34035         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
34036         out of memory case.
34037
34038 2011-10-04  Andreas Schwab  <schwab@redhat.com>
34039
34040         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
34041         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
34042         pass it down.
34043         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
34044         elf_machine_rela, elf_machine_lazy_rel.
34045         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
34046         (ELF_DYNAMIC_DO_REL): Likewise.
34047         (ELF_DYNAMIC_DO_RELA): Likewise.
34048         (ELF_DYNAMIC_RELOCATE): Likewise.
34049         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
34050         to ELF_DYNAMIC_DO_REL.
34051         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
34052         (dl_main): In trace mode always set __RTLD_NOIFUNC.
34053         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
34054         elf_machine_rela.
34055         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
34056         skip_ifunc, don't call ifunc function if non-zero.
34057         (elf_machine_rela): Likewise.
34058         (elf_machine_lazy_rel): Likewise.
34059         (elf_machine_lazy_rela): Likewise.
34060         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
34061         (elf_machine_lazy_rel): Likewise.
34062         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
34063         Likewise.
34064         (elf_machine_lazy_rel): Likewise.
34065         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34066         Likewise.
34067         (elf_machine_lazy_rel): Likewise.
34068         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
34069         (elf_machine_lazy_rel): Likewise.
34070         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
34071         (elf_machine_lazy_rel): Likewise.
34072         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
34073         (elf_machine_lazy_rel): Likewise.
34074         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
34075         (elf_machine_lazy_rel): Likewise.
34076         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
34077         (elf_machine_lazy_rel): Likewise.
34078         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
34079         (elf_machine_lazy_rel): Likewise.
34080
34081 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
34082
34083         * nss/nss_files/files-init.c (_nss_files_init): Use static
34084         initialization for all the *_traced_file variables.
34085
34086 2011-09-28  Andreas Schwab  <schwab@redhat.com>
34087
34088         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34089
34090 2011-09-27  Roland McGrath  <roland@hack.frob.com>
34091
34092         [BZ #13226]
34093         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
34094
34095 2011-09-27  Andreas Schwab  <schwab@redhat.com>
34096
34097         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
34098         Reread the line before reparsing it.
34099
34100 2011-09-26  Andreas Schwab  <schwab@redhat.com>
34101
34102         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
34103
34104 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
34105             Maxim Kuvyrkov  <maxim@codesourcery.com>
34106             Joseph Myers  <joseph@codesourcery.com>
34107
34108         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
34109         if needed for __stack_chk_guard.
34110
34111 2011-09-19  Roland McGrath  <roland@hack.frob.com>
34112
34113         * sysdeps/posix/spawni.c (script_execute): Always define it.
34114         It will be optimized away if unused.
34115         (maybe_script_execute): New function.
34116         (__spawni): Call it.
34117
34118         * Makerules: Don't include tls.make.
34119         (config-tls): Always set to thread.
34120         * tls.make.c: File removed.
34121
34122 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
34123
34124         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
34125         * config.make.in (CPPFLAGS-config): New substituted variable.
34126
34127 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34128
34129         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
34130
34131         [BZ #13192]
34132         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
34133         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
34134
34135 2011-09-15  Roland McGrath  <roland@hack.frob.com>
34136
34137         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
34138         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
34139         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
34140         (CALL_FAIL): Likewise.
34141         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
34142         (CALL_FAIL): Macro removed.
34143         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
34144
34145 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34146
34147         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
34148         for __FINITE_MATH_ONLY__ == 1.
34149
34150 2011-09-15  Andreas Schwab  <schwab@redhat.com>
34151
34152         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
34153         __ieee754_sqrt instead of sqrt.
34154         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
34155         __ieee754_sqrtf instead of sqrtf.
34156         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
34157         __floorf instead of floorf.
34158         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
34159         __floorf, __truncf instead of floorf, truncf.
34160
34161 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
34162
34163         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
34164
34165         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
34166         __extern_always_inline.
34167         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
34168         32-bit.
34169
34170 2011-09-14  Andreas Schwab  <schwab@redhat.com>
34171
34172         * elf/rtld.c (dl_main): Also relocate in dependency order when
34173         doing symbol dependency testing.
34174
34175 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
34176
34177         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34178         Always define `refsym'.
34179
34180 2011-09-13  Andreas Schwab  <schwab@redhat.com>
34181
34182         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
34183         (__FD_ELT): Renamed from __FDELT.
34184         * misc/bits/select2.h (__FD_ELT): Likewise.
34185         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
34186         __FD_MASK instead of __FDELT, __FDMASK.
34187         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34188         Likewise.
34189         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34190         Likewise.
34191
34192         * elf/Makefile (gen-ldd): Fix pattern.
34193
34194         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
34195         (init_tls): Likewise.
34196
34197 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
34198
34199         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
34200
34201 2011-09-12  Andreas Schwab  <schwab@redhat.com>
34202
34203         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
34204         `struct cmsghdr *' instead of `void *'.
34205         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
34206         Likewise.
34207
34208 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
34209
34210         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
34211         if non-absolute.
34212         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
34213         ldd_rewrite_script.
34214
34215 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
34216
34217         * configure.in: Remove --with-tls option.
34218         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
34219         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
34220         out in case it is missing.
34221         * sysdeps/ia64/elf/configure.in: Likewise.
34222         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
34223         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
34224         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
34225         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
34226         * sysdeps/sh/elf/configure.in: Likewise.
34227         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
34228         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
34229         * sysdeps/x86_64/elf/configure.in: Likewise.
34230         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
34231         * sysdeps/mach/hurd/tls.h: Likewise.
34232
34233         [BZ #13067]
34234         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
34235
34236         [BZ #13090]
34237         * configure.in: Fix use of AC_INIT.
34238
34239         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
34240
34241 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
34242
34243         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
34244         __set_errno.
34245         * malloc/hooks.c: Likewise.
34246
34247         [BZ #11929]
34248         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
34249         variables statically.
34250         (narenas): Initialize.
34251         (list_lock): Initialize.
34252         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
34253         initializtion of main_arena and list_lock.  Small cleanups.
34254         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
34255         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
34256         Add initializers to main_arena and mp_.
34257         (malloc_state): Remove pagesize member.  Change all users to use
34258         GLRO(dl_pagesize).
34259
34260         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
34261         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
34262         is always initialized.
34263
34264         * malloc/malloc.c: Removed unused configurations and dead code.
34265         * malloc/arena.c: Likewise.
34266         * malloc/hooks.c: Likewise.
34267         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
34268
34269         * include/tls.h: Removed.  USE___THREAD must always be defined.
34270         * bits/libc-tsd.h: Don't handle !USE___THREAD.
34271         * elf/dl-libc.c: Likewise.
34272         * elf/dl-tsd.c: Likewise.
34273         * include/errno.h: Likewise.
34274         * include/netdb.h: Likewise.
34275         * include/resolv.h: Likewise.
34276         * inet/herrno-loc.c: Likewise.
34277         * inet/herrno.c: Likewise.
34278         * malloc/arena.c: Likewise.
34279         * malloc/hooks.c: Likewise.
34280         * malloc/malloc.c: Likewise.
34281         * resolv/res-state.c: Likewise.
34282         * resolv/res_libc.c: Likewise.
34283         * sysdeps/i386/dl-machine.h: Likewise.
34284         * sysdeps/ia64/dl-machine.h: Likewise.
34285         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
34286         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
34287         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
34288         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
34289         * sysdeps/sh/dl-machine.h: Likewise.
34290         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
34291         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
34292         * sysdeps/unix/i386/sysdep.S: Likewise.
34293         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
34294         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
34295         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
34296         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
34297         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
34298         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
34299         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
34300         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
34301         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34302         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
34303         * sysdeps/unix/x86_64/sysdep.S: Likewise.
34304         * sysdeps/x86_64/dl-machine.h: Likewise.
34305         * tls.make.c: Likewise.
34306
34307         * configure.in: Remove --with-__thread option.  Make tests for
34308         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
34309         tls_model attribute fail if no support is available.  Remove
34310         USE_IN_LIBIO.
34311         * Makeconfig: Adjust for dropped configure option.  All features are
34312         now mandatory.
34313         * Makerules: Likewise.
34314         * Versions.def: Likewise.
34315         * argp/argp-fmtstream.c: Likewise.
34316         * argp/argp-fmtstream.h: Likewise.
34317         * argp/argp-help.c: Likewise.
34318         * assert/assert.c: Likewise.
34319         * config.h.in: Likewise.
34320         * config.make.in: Likewise.
34321         * configure: Likewise.
34322         * configure.in: Likewise.
34323         * csu/Versions: Likewise.
34324         * csu/init.c: Likewise.
34325         * elf/tst-audit2.c: Likewise.
34326         * elf/tst-tls10.c: Likewise.
34327         * elf/tst-tls10.h: Likewise.
34328         * elf/tst-tls11.c: Likewise.
34329         * elf/tst-tls12.c: Likewise.
34330         * elf/tst-tls14.c: Likewise.
34331         * elf/tst-tlsmod11.c: Likewise.
34332         * elf/tst-tlsmod12.c: Likewise.
34333         * elf/tst-tlsmod13.c: Likewise.
34334         * elf/tst-tlsmod13a.c: Likewise.
34335         * elf/tst-tlsmod14a.c: Likewise.
34336         * elf/tst-tlsmod15b.c: Likewise.
34337         * elf/tst-tlsmod16a.c: Likewise.
34338         * elf/tst-tlsmod16b.c: Likewise.
34339         * elf/tst-tlsmod7.c: Likewise.
34340         * elf/tst-tlsmod8.c: Likewise.
34341         * elf/tst-tlsmod9.c: Likewise.
34342         * gmon/gmon.c: Likewise.
34343         * grp/fgetgrent_r.c: Likewise.
34344         * grp/putgrent.c: Likewise.
34345         * hurd/fopenport.c: Likewise.
34346         * include/libc-symbols.h: Likewise.
34347         * include/tls.h: Likewise.
34348         * intl/gettextP.h: Likewise.
34349         * intl/loadinfo.h: Likewise.
34350         * locale/global-locale.c: Likewise.
34351         * locale/localeinfo.h: Likewise.
34352         * mach/devstream.c: Likewise.
34353         * malloc/arena.c: Likewise.
34354         * malloc/set-freeres.c: Likewise.
34355         * misc/err.c: Likewise.
34356         * misc/getttyent.c: Likewise.
34357         * misc/mntent_r.c: Likewise.
34358         * posix/getopt.c: Likewise.
34359         * posix/wordexp.c: Likewise.
34360         * pwd/fgetpwent_r.c: Likewise.
34361         * resolv/Versions: Likewise.
34362         * resolv/res_hconf.c: Likewise.
34363         * shadow/fgetspent_r.c: Likewise.
34364         * shadow/putspent.c: Likewise.
34365         * stdio-common/printf_fphex.c: Likewise.
34366         * stdio-common/tmpfile.c: Likewise.
34367         * stdlib/abort.c: Likewise.
34368         * stdlib/fmtmsg.c: Likewise.
34369         * sunrpc/auth_unix.c: Likewise.
34370         * sunrpc/clnt_perr.c: Likewise.
34371         * sunrpc/clnt_tcp.c: Likewise.
34372         * sunrpc/clnt_udp.c: Likewise.
34373         * sunrpc/clnt_unix.c: Likewise.
34374         * sunrpc/openchild.c: Likewise.
34375         * sunrpc/svc_simple.c: Likewise.
34376         * sunrpc/svc_tcp.c: Likewise.
34377         * sunrpc/svc_udp.c: Likewise.
34378         * sunrpc/svc_unix.c: Likewise.
34379         * sunrpc/xdr.c: Likewise.
34380         * sunrpc/xdr_array.c: Likewise.
34381         * sunrpc/xdr_rec.c: Likewise.
34382         * sunrpc/xdr_ref.c: Likewise.
34383         * sunrpc/xdr_stdio.c: Likewise.
34384
34385 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34386
34387         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34388
34389 2011-07-03  Andreas Jaeger  <aj@suse.de>
34390
34391         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
34392         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
34393         regenerate with gen-libm-tests.pl.
34394
34395 2010-05-12  Petr Baudis  <pasky@suse.cz>
34396
34397         [BZ #11589]
34398         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
34399         around j0() zero points by switching to j1().
34400         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
34401         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
34402         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
34403         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
34404
34405 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34406
34407         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
34408         instead of 0.
34409         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
34410         instead of 0.
34411         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
34412         Patch in part by Pavel Roskin <proski@gnu.org>.
34413
34414         [BZ #13138]
34415         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
34416         realloc.
34417         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
34418         Free memory block if necessary.
34419
34420         [BZ #12847]
34421         * libio/genops.c (INTDEF): For string streams the _lock pointer can
34422         be NULL.  Don't lock in this case.
34423
34424 2011-09-09  Roland McGrath  <roland@hack.frob.com>
34425
34426         * elf/elf.h (ELFOSABI_GNU): New macro.
34427         (ELFOSABI_LINUX): Define to that.
34428
34429 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
34430
34431         * string/strncat.c (strncat): Undef the symbol in case it has been
34432         defined in bits/string.h.
34433
34434 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34435
34436         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
34437
34438         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
34439         link map.
34440
34441 2011-08-17  Andreas Jaeger  <aj@suse.de>
34442
34443         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
34444
34445 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
34446             Ian Lance Taylor  <iant@google.com>
34447
34448         * math/libm-test.inc (lround_test): New testcase.
34449         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
34450
34451 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
34452
34453         * Makefile: Remove support for automatic cvs check-ins.
34454         * Makerules: Likewise.
34455         * config.make.in: Likewise.
34456         * configure.in: Likewise.
34457         * intl/Makefile: Likewise.
34458         * locale/Makefile: Likewise.
34459         * po/Makefile: Likewise.
34460         * posix/Makefile: Likewise.
34461         * sysdeps/gnu/Makefile: Likewise.
34462         * sysdeps/mach/hurd/Makefile: Likewise.
34463         * sysdeps/sparc/sparc32/Makefile: Likewise.
34464
34465         [BZ #13118]
34466         * posix/Makefile (bug-regex32-ENV): Define.
34467         Patch by John Stanley <jpsinthemix@verizon.net>.
34468
34469         * misc/Makefile (headers): Add bits/select2.h.
34470         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
34471         * misc/bits/select2.h: New file.
34472         * include/bits/select2.h: New file.
34473         * debug/Makefile (routines): Add fdelt_chk.
34474         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
34475         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
34476         FD_ISSET.
34477         * debug/fdelt_chk.c: New file.
34478
34479         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
34480         * wcsmbs/test-wmemcmp.c: Likewise.
34481         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
34482         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
34483
34484 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34485
34486         * string/Makefile (strop-tests): Add memcmp.
34487         * string/test-wmemcmp.c: New file.
34488         * string/test-memcmp.c: Add wmemcmp support.
34489
34490 2011-09-08  Roland McGrath  <roland@hack.frob.com>
34491
34492         [BZ #13153]
34493         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
34494         2011-07-19 change.
34495
34496         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
34497         garbage value in a __mach_port_mod_refs call in the cases of the
34498         task-self and thread-self ports.
34499
34500 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34501
34502         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
34503
34504 2011-09-08  Andreas Schwab  <schwab@redhat.com>
34505
34506         * elf/dl-load.c (lose): Check for non-null L.
34507
34508 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34509
34510         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
34511
34512         * elf/dl-libc.c (dlerror_run): Pass back error code from
34513         dl_catch_error.
34514
34515         [BZ #13123]
34516         * elf/dl-load.c (lose): Free l_origin if it is valid.
34517
34518         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
34519         names.
34520         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
34521         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34522         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34523         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34524         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
34525         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
34526
34527 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34528
34529         * sysdeps/powerpc/fpu/e_hypot.c: New file.
34530         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
34531         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
34532         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
34533         * sysdeps/powerpc/fpu/k_cosf.c: New file.
34534         * sysdeps/powerpc/fpu/k_sinf.c: New file.
34535         * sysdeps/powerpc/fpu/s_cosf.c: New file.
34536         * sysdeps/powerpc/fpu/s_sinf.c: New file.
34537         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
34538         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
34539
34540 2011-08-15  Alan Modra  <amodra@gmail.com>
34541
34542         [BZ #13092]
34543         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
34544         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
34545         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
34546         ppc_mcount to static-only-routines.
34547         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
34548         __mcount_internal.
34549         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
34550         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
34551
34552 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
34553
34554         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
34555         for finite and infinity parameters.
34556
34557 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
34558
34559         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
34560         and add nop instructions for throughput optimization.
34561         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
34562
34563 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
34564
34565         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
34566         aligned copy for power7 with vector-scalar instructions.
34567         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
34568
34569 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
34570
34571         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
34572         AVX check.
34573
34574 2011-09-07  Andreas Schwab  <schwab@redhat.com>
34575
34576         [BZ #13144]
34577         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
34578         last change.
34579
34580 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34581
34582         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34583         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
34584         syscall wrapper around clock_gettime in __vdso_clock_gettime.
34585         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
34586         clock_gettime.
34587
34588 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34589
34590         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
34591         Forgot to demangle the pointer.
34592
34593         * sysdeps/i386/sysdep.h: Define atom_text_section.
34594         * sysdeps/x86_64/sysdep.h: Likewise.
34595         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
34596         section with atom_text_section.
34597         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34598         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34599         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
34600         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34601         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
34602
34603         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
34604         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
34605         already be defined.  Change to take two parameters and don't assign
34606         result to variable.  Adjust all users.
34607         Define INTERNAL_GETTIME if not already defined.
34608         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
34609         call.
34610         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
34611         HAVE_CLOCK_GETTIME_VSYSCALL.
34612         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
34613
34614         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
34615         gettimeofday vsyscall, just use time.
34616
34617 2011-09-06  Andreas Schwab  <schwab@redhat.com>
34618
34619         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
34620         <errno.h>.
34621
34622 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34623
34624         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
34625         syscall on x86-64.
34626         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
34627         syscall.
34628         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
34629         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
34630         syscall if possible.
34631
34632 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34633
34634         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
34635         e_ident.  Don't pass to find_mapsXX.
34636         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
34637
34638 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34639
34640         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34641         strchr-sse2-no-bsf strrchr-sse2-no-bsf
34642         * sysdeps/x86_64/multiarch/strchr.S: Update.
34643         Check bit_slow_BSF bit.
34644         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
34645         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
34646         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
34647
34648 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34649
34650         [BZ #13134]
34651         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
34652         before glibc 2.15.
34653         (tryshell): Define.
34654         (__spawni): Change last parameter to be flag.  Test
34655         SPAWN_XFLAGS_USE_PATH flag to use path or not.
34656         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
34657         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
34658         * posix/spawni.c: Likewise.
34659         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
34660         * posix/spawnp.c: Likewise.  Change normal version to use
34661         SPAWN_XFLAGS_USE_PATH.
34662         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
34663         SPAWN_XFLAGS_TRY_SHELL.
34664
34665         [BZ #13150]
34666         * posix/glob.h: Remove gcc 1.x support.
34667
34668         [BZ #13068]
34669         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
34670
34671 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34672
34673         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34674         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
34675         strrchr-sse2-bsf
34676         * sysdeps/i386/i686/multiarch/strchr.S: New file.
34677         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
34678         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
34679         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
34680         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
34681         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
34682
34683 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34684
34685         * sysdeps/x86_64/wcscmp.S: New file.
34686
34687         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
34688         wcscmp-c wcscmp-sse2
34689         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
34690         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
34691         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
34692         * wcsmbs/wcscmp.c: Allow renaming.
34693
34694 2011-09-05  David S. Miller  <davem@davemloft.net>
34695
34696         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
34697         stack slot, rather than the struct return pointer slot.
34698         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
34699         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
34700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
34701         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
34702
34703 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34704
34705         * po/ja.po: Update from translation team.
34706
34707         [BZ #13144]
34708         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
34709         kernel in 64-bit binaries.
34710
34711 2011-09-01  David S. Miller  <davem@davemloft.net>
34712
34713         * elf/elf.h (HWCAP_SPARC_*): Move to..
34714         * sysdeps/sparc/sysdep.h: this new file and add new values.
34715         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
34716         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
34717         _DL_HWCAP_COUNT to 24.
34718         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
34719         entries.
34720         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
34721         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
34722         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
34723         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
34724         instead of magic constants.
34725         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
34726
34727 2011-08-31  David S. Miller  <davem@davemloft.net>
34728
34729         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
34730         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
34731         Reimplement to do errno handling inline.
34732         (SYSCALL_ERROR_HANDLER): New macro.
34733         (__SYSCALL_STRING): Do not do errno handling in asm.
34734         (__CLONE_SYSCALL_STRING): Delete.
34735         (__INTERNAL_SYSCALL_STRING): Delete.
34736         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
34737         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
34738         (PSEUDO): Reimplement to do errno handling inline.
34739         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
34740         (SYSCALL_ERROR_HANDLER): New macro.
34741         (__SYSCALL_STRING): Do not do errno handling in asm.
34742         (__CLONE_SYSCALL_STRING): Delete.
34743         (__INTERNAL_SYSCALL_STRING): Delete.
34744         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
34745         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
34746         i386.
34747         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
34748         (inline_syscall*): Add 'err' argument.
34749         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
34750         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
34751         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
34752         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
34753
34754         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
34755         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34756
34757 2011-08-30  Andreas Schwab  <schwab@redhat.com>
34758
34759         * elf/rtld.c (dl_main): Relocate objects in dependency order.
34760
34761 2011-08-29  Jiri Olsa <jolsa@redhat.com>
34762
34763         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
34764         directive.
34765
34766 2011-08-24  David S. Miller  <davem@davemloft.net>
34767
34768         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
34769
34770 2011-08-24  Andreas Schwab  <schwab@redhat.com>
34771
34772         * elf/Makefile: Add rules to build and run unload8 test.
34773         * elf/unload8.c: New file.
34774         * elf/unload8mod1.c: New file.
34775         * elf/unload8mod1x.c: New file.
34776         * elf/unload8mod2.c: New file.
34777         * elf/unload8mod3.c: New file.
34778
34779         * elf/dl-close.c (_dl_close_worker): Reset private search list if
34780         it wasn't used.
34781
34782 2011-08-23  David S. Miller  <davem@davemloft.net>
34783
34784         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
34785         subtract stack bias.
34786         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
34787         %sp not %fp in calculations.
34788         (_JMPBUF_UNWINDS_ADJ): Likewise.
34789
34790         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
34791         (aio_suspend): Call it to force an exception region around the
34792         AIO_MISC_WAIT() invocation.
34793
34794 2011-08-23  Andreas Schwab  <schwab@redhat.com>
34795
34796         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
34797         backslash.
34798
34799 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
34800
34801         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
34802         protection macro.
34803         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
34804         and <dl-machine.h>.
34805         (Elf64_FuncDesc): Remove.
34806
34807 2011-08-22  David S. Miller  <davem@davemloft.net>
34808
34809         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
34810         sigaltstack check, add missing cfi directives.
34811         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
34812         missing cfi directives, and sigaltstack handling.
34813
34814 2011-08-16  Andreas Schwab  <schwab@redhat.com>
34815
34816         [BZ #11724]
34817         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
34818         object is seen twice.
34819         * elf/dl-fini.c (_dl_sort_fini): Likewise.
34820
34821         * elf/Makefile (distribute): Add tst-initorder2.c.
34822         (tests): Add tst-initorder2.
34823         (modules-names): Add tst-initorder2a tst-initorder2b
34824         tst-initorder2c tst-initorder2d.  Add rules to build them.
34825         ($(objpfx)tst-initorder2.out): New rule.
34826         * elf/tst-initorder2.c: New file.
34827         * elf/tst-initorder2.exp: New file.
34828
34829 2011-08-22  Andreas Schwab  <schwab@redhat.com>
34830
34831         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
34832
34833         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
34834         dependencies back to end of function.
34835
34836         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34837         $(elfobjdir)/ld.so.
34838
34839 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
34840
34841         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
34842         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
34843         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
34844         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
34845         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
34846         of __vdso_gettimeofday.
34847         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
34848         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
34849         attribute_hidden.
34850         (_libc_vdso_platform_setup): Remove initialization of
34851         __vdso_gettimeofday and __vdso_time.
34852
34853 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34854
34855         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
34856         and fgetc_unlocked.
34857         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
34858         getc_unlocked.
34859
34860         * elf/dl-open.c (add_to_global): Report additions to the global scope
34861         for LD_DEBUG=scopes.
34862         (dl_open_worker): Also print scope of newly loaded dependencies.
34863         (_dl_show_scope): Indicate if there is no scope.
34864
34865         [BZ #13114]
34866         * stdio-common/Makefile (tests): Add bug24.
34867         * stdio-common/bug24.c: New file.
34868
34869 2011-08-19  Andreas Jaeger  <aj@suse.de>
34870
34871         [BZ #13114]
34872         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
34873         non-existant file when using close-on-exec mode.
34874
34875 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34876
34877         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
34878         the very first instruction.
34879
34880         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
34881         the CFI state in the end.
34882         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
34883         inclusion of dl-trampoline.h.
34884         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
34885
34886 2011-08-19  Andreas Schwab  <schwab@redhat.com>
34887
34888         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
34889         expectations for long double.
34890
34891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
34892         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
34893
34894 2011-08-14  David S. Miller  <davem@davemloft.net>
34895
34896         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
34897         artificual limit depends upon the system page size.
34898
34899 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34900
34901         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
34902         * resolv/Makefile: Define CFLAGS-libresolv.
34903
34904 2011-08-17  Andreas Schwab  <schwab@redhat.com>
34905
34906         * nss/makedb.c (compute_tables): Make variables used in nested
34907         function static.
34908
34909 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34910
34911         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
34912         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
34913         if buffer was too small.
34914
34915         * elf/pldd.c (main): Attach to all threads in the process.
34916         Rewrite /proc handling to use *at functions.
34917
34918 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
34919
34920         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
34921         specifies first scope to show.
34922         (dl_open_worker): Update callers.  Move printing scope of new
34923         object to before the relocation.
34924         * elf/rtld.c (dl_main): Update _dl_show_scope call.
34925         * sysdeps/generic/ldsodefs.h: Update declaration.
34926
34927         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
34928         string for the scope number.
34929
34930 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
34931
34932         * nscd/servicescache.c (cache_addserv): Make sure written is always
34933         initialized.
34934
34935 2011-08-14  Roland McGrath  <roland@hack.frob.com>
34936
34937         * sysdeps/i386/i486/bits/atomic.h
34938         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
34939         statement expression, so as to suppress "set but not used" warning.
34940         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
34941
34942         * string/strncat.c (STRNCAT): Use prototype definition.
34943
34944         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
34945         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
34946         -Iprograms here.
34947         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
34948         (localedef-modules): Add localedef.
34949         (locale-modules): Add locale.
34950
34951         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
34952         * elf/rtld.c (dl_main): Invert order of assignment in last change,
34953         to avoid a warning.
34954
34955 2011-08-14  David S. Miller  <davem@davemloft.net>
34956
34957         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
34958         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
34959
34960 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
34961
34962         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
34963         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
34964         * elf/rtld.c (dl_main): Set l_name of vDSO.
34965         Call _dl_show_scope when DL_DEBUG_SCOPES.
34966         (process_dl_debug): Recognize scopes flag and also set it for all.
34967         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
34968         Declare _dl_show_scope.
34969
34970         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
34971         (do_dlopen): Pass caller_dlopen to dl_open.
34972         (__libc_dlopen_mode): Initialize caller_dlopen.
34973
34974         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
34975         of libc.  Make tolower call locale-independent.  Optimize a bit by
34976         using isdigit instead of isalnum.
34977         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
34978
34979 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
34980
34981         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
34982         was a dependency or dynamically loaded.
34983
34984 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
34985
34986         * intl/l10nflist.c: Allow architecture-specific pop function.
34987         * sysdeps/x86_64/l10nflist.c: New file.
34988
34989         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
34990         classification.
34991
34992 2011-08-10  Andreas Schwab  <schwab@redhat.com>
34993
34994         * include/dirent.h: Add libc_hidden_proto for scandirat and
34995         scandirat64.  Don't declare __scandirat64.
34996         * dirent/scandirat.c: Add libc_hidden_def.
34997         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
34998         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
34999
35000 2011-08-10  David S. Miller  <davem@davemloft.net>
35001
35002         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
35003         enum.
35004         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35005         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35006         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35007
35008 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
35009
35010         * Versions.def [libc]: Add GLIBC_2.15.
35011         * dirent/Makefile (routines): Add scandirat and scandirat64.
35012         * dirent/Versions [libc]: Export scandirat and scandirat64 for
35013         GLIBC_2.15.
35014         * dirent/dirent.h: Declare scandirat and scandirat64.
35015         * dirent/scandirat.c: New file.
35016         * dirent/scandirat64.c: New file.
35017         * sysdeps/wordsize-64/scandirat.c: New file.
35018         * sysdeps/wordsize-64/scandirat64.c: New file.
35019         * dirent/opendir.c: Define opendirat.
35020         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
35021         using scandirat.
35022         * dirent/scandir64.c: Adjust for scandir.c change.
35023         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
35024         __scandirat64, and __scandir_cancel_handler.
35025         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
35026         additional parameter and use openat instead of open (outside of ld.so).
35027         Add new __opendir as wrapper around __opendirat.
35028         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
35029         here without requiring old scandirat implementation.
35030
35031 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
35032
35033         * dirent/scandir.c (cancel_handler): Renamed to
35034         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
35035         defined.  Adjust users.
35036         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
35037         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
35038
35039 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
35040
35041         * string/test-string.h (IMPL): Use __STRING to expand name and then
35042         stringify it.
35043
35044         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
35045         of cleanups.
35046
35047 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35048
35049         * string/Makefile: Update.
35050         (strop-tests): Append strncat.
35051         * string/test-wcscmp.c: New file.
35052         New comprehensive test for wcscmp.
35053         * string/test-strcmp.c: Update.
35054         (WIDE): New define.
35055
35056 2011-07-22  Andreas Schwab  <schwab@redhat.com>
35057
35058         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
35059         line.
35060
35061 2011-07-26  Andreas Schwab  <schwab@redhat.com>
35062
35063         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
35064         encoding to ACE if AI_IDN.
35065
35066 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
35067
35068         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
35069         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
35070
35071 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35072
35073         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
35074         Fix overflow bug in strncat.
35075         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
35076
35077         * string/test-strncat.c: Update.
35078         Add new tests for checking overflow bugs.
35079
35080 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35081
35082         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35083         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
35084         * sysdeps/i386/i686/multiarch/strcat.S: New file.
35085         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
35086         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
35087         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
35088         * sysdeps/i386/i686/multiarch/strncat.S: New file.
35089         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
35090         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
35091
35092         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
35093         (USE_AS_STRCAT): Define.
35094         Add strcat and strncat support.
35095         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
35096
35097 2011-07-25  Andreas Schwab  <schwab@redhat.com>
35098
35099         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
35100         __n bigger than INT_MAX+1.
35101         (__strncmp_g): Likewise.
35102
35103 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
35104
35105         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
35106         * libio/stido.h: Likewise.
35107
35108         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
35109         (AF_NFC): Define.
35110         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
35111         (AF_NFC): Define.
35112
35113         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
35114         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35115         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35116         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35117         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35118
35119         [BZ #13021]
35120         * scripts/test-installation.pl: Don't expect libnss_test1 to be
35121         installed.
35122
35123         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
35124         typo.
35125         (_dl_x86_64_save_sse): Likewise.
35126
35127 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
35128
35129         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
35130         OSXSAVE.
35131         (_dl_x86_64_save_sse): Likewise.
35132
35133         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
35134
35135         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
35136
35137 2011-07-21  Andreas Schwab  <schwab@redhat.com>
35138
35139         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
35140         change.
35141         (_dl_x86_64_save_sse): Use correct AVX check.
35142
35143 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35144
35145         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
35146         bug in strncpy/strncat.
35147         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
35148
35149 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
35150
35151         * string/tester.c (test_strcat): Add tests for different alignments
35152         of source and destination.
35153         (test_strncat): Likewise.
35154
35155 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35156
35157         [BZ #12852]
35158         * posix/glob.c (glob): Check passed in values before using them in
35159         expressions to avoid some overflows.
35160         (glob_in_dir): Likewise.
35161
35162         [BZ #13007]
35163         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
35164         check for AVX enablement so that we don't crash with old kernels and
35165         new hardware.
35166         * elf/tst-audit4.c: Add same checks here.
35167         * elf/tst-audit6.c: Likewise.
35168
35169         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
35170
35171 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
35172
35173         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
35174
35175 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35176
35177         * po/cs.po: Update from translation team.
35178         * po/bg.po: Likewise.
35179
35180 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
35181
35182         * misc/sys/cdefs.h: Add support for const attribute.
35183         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
35184         to gnu_dev_{major,minor,makedev} functions.
35185
35186 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
35187
35188         * intl/dcigettext.c (get_output_charset): Add missing bracket.
35189
35190 2011-07-20  Andreas Schwab  <schwab@redhat.com>
35191
35192         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
35193         strlen results.
35194
35195 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35196
35197         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
35198         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
35199         register in order to avoid conflicts with the soft frame pointer
35200         being held in r11 when necessary.
35201         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
35202         (INTERNAL_VSYSCALL_NCS): Likewise.
35203
35204 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
35205
35206         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
35207         * elf/dl-fini.c (_dl_fini): Adjust caller.
35208         * elf/dl-close.c (_dl_close_worker): Likewise.
35209         * sysdeps/generic/ldsodefs.h: Adjust declaration.
35210
35211 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35212
35213         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
35214         "aux_cache->nlibs < 0".
35215
35216         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
35217         in the reload-count case.
35218
35219 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35220
35221         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35222         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
35223         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
35224         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
35225         * sysdeps/x86_64/multiarch/strcat.S: New file.
35226         * sysdeps/x86_64/multiarch/strncat.S: New file.
35227         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
35228         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
35229         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
35230         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
35231         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
35232         (USE_AS_STRCAT): Define.
35233         Add strcat and strncat support.
35234         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
35235         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
35236         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
35237         * string/strncat.c: Update.
35238         (USE_AS_STRNCAT): Define.
35239         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35240         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
35241         and i7.
35242         * sysdeps/x86_64/multiarch/init-arch.h
35243         (bit_Prefer_PMINUB_for_stringop): New.
35244         (index_Prefer_PMINUB_for_stringop): Likewise.
35245         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
35246         bit_Prefer_PMINUB_for_stringop.
35247
35248 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35249
35250         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
35251         buffer64.
35252         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
35253         of casting of buffer.
35254         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
35255         buffer32 and buffer64.
35256         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
35257         writes instead of casting of buffer.
35258         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
35259         buffer32.
35260         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
35261         casting of buffer.
35262
35263 2011-07-19  Andreas Schwab  <schwab@redhat.com>
35264
35265         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
35266
35267 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35268
35269         * nscd/nscd.c (termination_handler): Don't do anything for a database
35270         if it has not yet been initialized.
35271
35272 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35273
35274         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35275
35276 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35277
35278         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35279
35280 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35281
35282         * po/nl.po: Update from translation team.
35283         * po/sv.po: Likewise.
35284
35285 2011-07-16  Roland McGrath  <roland@hack.frob.com>
35286
35287         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
35288         now disallowed by GCC.
35289
35290         * configure.in (use-default-link): Default to yes if a test -shared
35291         link meets our qualifications.
35292         * configure: Regenerated.
35293
35294         * config.make.in (output-format): New variable.
35295         * configure.in: Check for ld --print-output-format support.
35296         * configure: Regenerated.
35297         * Makerules ($(common-objpfx)format.lds)
35298         [$(output-format) != unknown]: Just use $(output-format),
35299         instead of the linker-script munging.
35300
35301 2011-07-14  Roland McGrath  <roland@hack.frob.com>
35302
35303         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
35304         of $(common-objpfx)shlib.lds.
35305         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
35306
35307         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
35308         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
35309
35310         * configure.in (-z relro check): Adjust test code to add a large
35311         writable data section after it.
35312         * configure: Regenerated.
35313
35314 2011-07-11  Roland McGrath  <roland@hack.frob.com>
35315
35316         * configure.in (-z relro check): Fix test code to make the variable
35317         truly const.
35318         * configure: Regenerated.
35319
35320 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
35321
35322         * nscd/nscd.h (struct traced_file): Define.
35323         (struct database_dyn): Remove inotify_descr, reset_res, and filename
35324         elements.  Add traced_files.
35325         (inotify_fd): Declare.
35326         (register_traced_file): Declare.
35327         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
35328         (inotify_fd): Export.
35329         (resolv_conf_descr): Remove.
35330         (nscd_init): Move inotify descriptor creation to main.
35331         Don't register files for notification here.
35332         (register_traced_file): New function.
35333         (invalidate_cache): Don't use reset_res to determine whether to call
35334         res_init, go through the list of registered files.
35335         (main_loop_poll): The inotify descriptors are now stored in the
35336         structures for the traced files.
35337         (main_loop_epoll): Likewise
35338         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
35339         to __nss_disable_nscd.
35340         * nscd/cache.c (prune_cache): There is no single inotify descriptor
35341         for a database anymore.  Check the records for all the registered
35342         files instead.
35343         * nss/Makefile (libnss_files-routines): Add files-init.
35344         (libnss_db-routines): Add db-init.
35345         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
35346         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
35347         * nss/nss_db/db-init.c: New file.
35348         * nss/nss_files/files-init.c: New file.
35349         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
35350         __nss_lookup_function.
35351         (__nss_lookup_function): Call nss_load_library.
35352         (nss_load_all_libraries): New function.
35353         (__nss_disable_nscd): Take parameter with callback function for files
35354         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
35355         used for the cached services.
35356         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
35357         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
35358         options for features to all the files in nscd.
35359
35360         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
35361
35362 2011-07-10  Roland McGrath  <roland@hack.frob.com>
35363
35364         * csu/elf-init.c (__libc_csu_init): Comment typo.
35365
35366 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
35367
35368         * po/pl.po: Update from translation team.
35369         * po/ja.po: Likewise.
35370         * po/ru.po: Likewise.
35371         * po/ko.po: Likewise.
35372         * po/fr.po: Likewise.
35373
35374 2011-07-09  Roland McGrath  <roland@hack.frob.com>
35375
35376         * configure.in (.ctors/.dtors header and trailer check):
35377         Use an empirical test on a built program.
35378         * configure: Regenerated.
35379
35380         * configure.in (-z relro check): Use an empirical test on a built DSO.
35381         Detect, but do not require, on ia64.
35382         * configure: Regenerated.
35383
35384         * configure.in (READELF): Find it with AC_CHECK_TOOL.
35385         Update tests that use readelf to use $READELF instead.
35386         * configure: Regenerated.
35387
35388 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
35389
35390         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
35391         if the result is not used.
35392
35393 2011-07-05  Andreas Jaeger  <aj@suse.de>
35394
35395         [BZ#9696]
35396         * stdlib/tst-strtod.c: Add testcase.
35397
35398 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35399
35400         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
35401         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
35402         The latter has a higher limit.  Take additional parameter to pass to
35403         the new function.
35404         (__pathconf): Pass file to __statfs_link_max.
35405         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
35406         __statfs_link_max.
35407         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
35408         __statfs_link_max.
35409
35410         [BZ #12868]
35411         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
35412         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35413         Handle Lustre.
35414         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
35415         (__statfs_filesize_max): Likewise.
35416         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
35417
35418 2011-07-05  Andreas Jaeger  <aj@suse.de>
35419
35420         * resolv/res_comp.c (dn_skipname): Remove unused variable.
35421
35422 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
35423
35424         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
35425         `status' variable.
35426         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
35427         Likewise.
35428
35429 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35430
35431         * Makefile (strop-tests): Add strncat.
35432         * string/test-strncat.c: New file.
35433
35434 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
35435
35436         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
35437
35438 2011-06-21  Andreas Jaeger  <aj@suse.de>
35439
35440         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
35441         Copy rule from iconvdata/Makefile.
35442
35443 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35444
35445         [BZ #12922]
35446         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
35447         but no long options are defined, just return 'W'.
35448
35449 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
35450
35451         [BZ #9696]
35452         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
35453
35454 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35455
35456         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
35457         netgroups to read.
35458         (innetgr): Likewise.
35459
35460 2011-07-05  Roland McGrath  <roland@hack.frob.com>
35461
35462         * config.make.in (install_root): Default to $(DESTDIR).
35463
35464 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
35465
35466         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
35467
35468 2011-07-02  Roland McGrath  <roland@hack.frob.com>
35469
35470         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
35471
35472         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
35473         containing directory rather than embedding absolute directory names.
35474
35475         * scripts/check-local-headers.sh: Rewritten using awk.
35476         Match by word, not by line.  Print error messages for matches.
35477         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
35478
35479         * Makerules [shlib-lds-flags empty]:
35480         ($(common-objpfx)libc_pic.opts): New target.
35481         ($(common-objpfx)libc_pic.os.clean): New target.
35482         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
35483
35484         * config.make.in (OBJCOPY): New variable.
35485         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
35486         * configure: Regenerated.
35487
35488         * config.make.in (use-default-link): New variable.
35489         * configure.in (use_default_link): Grok --with-default-link to set it.
35490         * configure: Regenerated.
35491         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
35492         (shlib-lds, shlib-lds-flags): Define to empty.
35493
35494         * Makerules (shlib-lds): New variable.
35495         (shlib-lds-flags): New variable.
35496         (build-shlib, build-moduile, build-module-asneeded): Use it.
35497         ($(common-objpfx)libc.so): Use $(shlib-lds).
35498         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
35499         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
35500
35501         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
35502         DT_FLAGS/DT_FLAGS_1 with zero flags.
35503
35504         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
35505         linker script munging.
35506
35507 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
35508
35509         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
35510         as 128-bit value.
35511         * crypt/sha512.c (sha512_process_block): Perform total addition using
35512         128-bit if possible.
35513         (__sha512_finish_ctx): Likewise.
35514         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
35515         as 64-bit value.
35516         * crypt/sha256.c (SWAP64): Define.
35517         (sha256_process_block): Perform total addition using 64-bit if
35518         possible.
35519         (__sha256_finish_ctx): Likewise.
35520
35521 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
35522
35523         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
35524         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35525         * nscd/hstcache.c (cache_addhst): Likewise.
35526         * nscd/grpcache.c (cache_addgr): Likewise.
35527         * nscd/aicache.c (addhstaiX): Likewise
35528         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
35529
35530 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
35531
35532         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
35533         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35534         * nscd/hstcache.c (cache_addhst): Likewise.
35535         * nscd/grpcache.c (cache_addgr): Likewise.
35536         * nscd/aicache.c (addhstaiX): Likewise
35537
35538 2011-07-01  Andreas Schwab  <schwab@redhat.com>
35539
35540         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
35541         domain only when needed.
35542
35543 2011-06-30  Andreas Schwab  <schwab@redhat.com>
35544
35545         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
35546         is always restored.
35547
35548 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
35549
35550         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
35551         are re-adding the entry.
35552         * nscd/servicescache.c (cache_addserv): Likewise.
35553
35554 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
35555
35556         * sysdeps/generic/dl-irel.h: fix protection against multiple
35557         inclusions.
35558         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
35559
35560 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
35561
35562         [BZ #12935]
35563         * malloc/memusage.sh: Fix quoting in message.
35564         * debug/xtrace.sh: Likewise.
35565
35566         * configure.in: Remove support for --experimental-malloc option, make
35567         it the default.
35568         * config.make.in: Likewise.
35569         * malloc/Makefile: Likewise.
35570
35571 2011-06-27  Andreas Schwab  <schwab@redhat.com>
35572
35573         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
35574         two-byte characters.
35575
35576 2011-06-27  Roland McGrath  <roland@hack.frob.com>
35577
35578         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
35579         AC_CACHE_CHECK invocation.
35580         * configure: Regenerated.
35581
35582         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
35583
35584 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
35585
35586         [BZ #12350]
35587         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
35588         bit from old_res_options.
35589
35590         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
35591
35592         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
35593         value type for setfct.
35594
35595 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
35596
35597         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35598         __gettimeofday instead of gettimeofday.
35599
35600 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
35601
35602         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
35603
35604 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
35605
35606         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
35607
35608         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
35609         info.
35610
35611 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35612
35613         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35614         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35615         strcpy-sse2-unaligned strncpy-sse2-unaligned
35616         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
35617         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
35618         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
35619         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
35620         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
35621         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
35622         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
35623         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
35624         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
35625         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
35626         (STRCPY): Support SSE2 and SSSE3 versions.
35627
35628 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
35629
35630         [BZ #12874]
35631         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
35632         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
35633         kernels which artificially limit size of requests.
35634
35635 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35636
35637         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35638         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35639         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
35640         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
35641         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
35642         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
35643         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
35644         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
35645         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
35646         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
35647         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
35648         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
35649         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
35650         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
35651         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
35652         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35653         Enable unaligned load optimization for Intel Core i3, i5 and i7
35654         processors.
35655         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
35656         Define.
35657         (index_Fast_Unaligned_Load): Define.
35658         (HAS_FAST_UNALIGNED_LOAD): Define.
35659
35660 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
35661
35662         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
35663
35664 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35665
35666         [BZ #12907]
35667         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
35668         until it is clear that the information is realy needed.
35669         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
35670
35671 2011-06-22  Andreas Schwab  <schwab@redhat.com>
35672
35673         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
35674
35675 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35676
35677         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35678         /sys/devices/system/cpu/online if it is usable.
35679
35680         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
35681         reading the information from the /proc filesystem to once a second.
35682
35683 2011-06-21  Andreas Jaeger  <aj@suse.de>
35684
35685         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
35686         NULL after inclusion of kernel headers.
35687
35688 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
35689
35690         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
35691         calls to internal_setent.
35692
35693         [BZ #12885]
35694         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
35695         addresses using gethostbyname4_r ignore IPv4 addresses.
35696
35697         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
35698         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
35699
35700         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
35701
35702 2011-06-20  David S. Miller  <davem@davemloft.net>
35703
35704         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
35705         inclusions.
35706         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
35707
35708         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
35709         (elf_irel): Use it.
35710         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
35711         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
35712         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
35713         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
35714         * sysdeps/x86_64/dl-irel.h: Likewise.
35715
35716         * elf/dl-runtime.c: Use elf_ifunc_invoke.
35717         * elf/dl-sym.c: Likewise.
35718
35719 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35720
35721         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
35722         need to dereference resplen2.
35723
35724 2011-06-14  Andreas Schwab  <schwab@redhat.com>
35725
35726         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
35727
35728 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35729
35730         * Makeconfig: Define vardbdir and inst_vardbdir.
35731         * nss/Makefile: Add rules to install db-Makefile.
35732
35733         * nss/nss_db/db-XXX.c: Cleanup.
35734
35735         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
35736         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
35737         GLIBC_PRIVATE.
35738         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
35739         * nss/makedb.c: Implement -g option to specify that value strings
35740         are generated and should not be added to table iterated over for
35741         get*ent calls.
35742         * nss/nss_db/db-initgroups.c: New file.
35743
35744         * nss/getent.c: Add support for initgroups lookups through getgrouplist
35745         interface.
35746
35747         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
35748         (internal_getgrouplist): Adjust to name change.
35749         Update use_initgroups_entry if this is not the first call.
35750         * nss/databases.def: Add initgroups entry.
35751
35752         * nss/makedb.c (compute_tables): Check result of multiple hash table
35753         sizes to minimize maximum chain length.
35754
35755 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
35756
35757         * Versions.def: Add entry for libnss_db.
35758         * shlib-versions: Likewise.
35759         * nss/Makefile: Add rules to build libnss_db.
35760         * nss/Versions: Add libnss_db information.  Organize libnss_files
35761         entries better.
35762         * nss/db-Makefile: Add gshadow support.  Change rules for the new
35763         makedb progra.  Some minor improvements to generate smaller files.
35764         * nss/nss_db/nss_db.h: Move NSS database header data structures to
35765         here from...
35766         * nss/makedb.c: ...here.
35767         Improve database format to be smaller and require less memory at
35768         runtime.
35769         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
35770         db anymore.
35771         * nss/nss_db/db-netgrp.c: Likewise.
35772         * nss/nss_db/db-open.c: Likewise.
35773         * nss/nss_files/flies-XXX.x: Adjust comments.
35774         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
35775         * nss/nss_files/files-grp.c: Likewise.
35776         * nss/nss_files/files-hosts.c: Likewise.
35777         * nss/nss_files/files-network.c: Likewise.
35778         * nss/nss_files/files-proto.c: Likewise.
35779         * nss/nss_files/files-pwd.c: Likewise.
35780         * nss/nss_files/files-rpc.c: Likewise.
35781         * nss/nss_files/files-service.c: Likewise.
35782         * nss/nss_files/files-sgrp.c: Likewise.
35783         * nss/nss_files/files-spwd.c: Likewise.
35784         * nss/nss_db/db-alias.c: Removed.
35785         * nss/nss_db/dummy-db.h: Removed.
35786
35787 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
35788
35789         * nss/makedb.c: Rewritten to not use database library.
35790         * nss/Makefile: Update to build new makedb program.
35791
35792 2011-06-14  Andreas Jaeger  <aj@suse.de>
35793
35794         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
35795         memset declaration.
35796
35797 2011-06-10  Andreas Schwab  <schwab@redhat.com>
35798
35799         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
35800         tmpbuf.
35801
35802 2011-06-10  Roland McGrath  <roland@hack.frob.com>
35803
35804         * Makerules (shlib.lds): Fail if the linker script comes out empty.
35805         * elf/Makefile ($(objpfx)ld.so): Likewise.
35806
35807         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
35808         Don't list ld.so twice in dependencies.
35809
35810         * posix/bug-regex31.c: Include <stdlib.h>.
35811
35812         * nscd/hstcache.c (cache_addhst): Remove unused variable.
35813
35814         * nis/nss_compat/compat-spwd.c
35815         (getspent_next_nss_netgr): Remove unused variable.
35816         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
35817
35818         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
35819         nonmembers" output to use the right array.
35820
35821         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
35822
35823         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
35824
35825         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
35826         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
35827         * catgets/gencat.c (read_input_file): Likewise.
35828         * locale/programs/locarchive.c (enlarge_archive): Likewise.
35829
35830         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
35831         variable definition inside #if's controlling its use.
35832
35833         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
35834
35835         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
35836
35837         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
35838
35839         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
35840         unreachable code.
35841
35842         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
35843
35844         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
35845         * configure: Regenerated.
35846
35847         * Makerules: Revert last change.
35848         * elf/Makefile: Likewise.
35849
35850 2011-06-09  Roland McGrath  <roland@hack.frob.com>
35851
35852         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
35853         * elf/Makefile ($(objpfx)librtld.os): Likewise.
35854         (reloc-link): Likewise.
35855
35856 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
35857
35858         * elf/Makefile: Add rules to build pldd.
35859         * elf/pldd.c: New file.
35860         * elf/pldd-xx.c: New file.
35861
35862 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
35863
35864         * version.h: Update for 2.15 development version.
35865
35866 2011-06-07  David S. Miller  <davem@davemloft.net>
35867
35868         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
35869         ifuncs.
35870         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
35871         elf_machine_lazy_rel): Likewise.
35872         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
35873         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
35874         elf_machine_lazy_rel): Likewise.
35875         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
35876         dl_hwcap via passed in argument.
35877         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
35878         Likewise.
35879
35880 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35881
35882         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
35883
35884 2011-06-06  Roland McGrath  <roland@hack.frob.com>
35885
35886         [BZ #12849]
35887         * manual/fdl-1.1.texi: New file, verbatim from:
35888         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
35889         * manual/lgpl-2.1.texi: New file, verbatim from:
35890         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
35891         * manual/Makefile (licenses): New variable, list those new file names.
35892         (texis): Use it.
35893         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
35894
35895         * manual/fdl.texi: File removed.
35896         * manual/lesser.texi: File removed.
35897         * manual/libc.texinfo (Copying, Documentation License):
35898         Use new @include file names, put @appendix directive before @include.
35899
35900 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
35901
35902         [BZ #12841]
35903         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
35904         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
35905         (mq_open): Add __NTH.
35906
35907 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
35908
35909         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35910         Assume Intel Core i3/i5/i7 processor if AVX is available.
35911
35912 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35913
35914         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
35915         typo.
35916
35917 2011-05-31  Andreas Schwab  <schwab@redhat.com>
35918
35919         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
35920         memory.  Use alloca_account.  Fix memory leak when retrying.
35921
35922 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35923
35924         * version.h (RELEASE): Bump for 2.14 release.
35925         * include/features.h (__GLIBC_MINOR__): Bump to 14.
35926
35927         * config.make.in (RANLIB): Remove entry.
35928
35929 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
35930
35931         * po/Makefile (po-sed-cmd): Add ksh to extensions.
35932         (libc.pot): Work around missing support for .ksh extension in xgettext.
35933
35934         [BZ #12684]
35935         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
35936         if both request failed.
35937         (send_dg): In case of server errors clear resplen or *resplen2.
35938
35939         [BZ #12454]
35940         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
35941         when there are multiple maps.
35942         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
35943         (_dl_fini): Remove test here.
35944
35945         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
35946
35947 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
35948
35949         [BZ #12350]
35950         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
35951         bit from old_res_options.
35952         (gaih_inet): Likewise.
35953
35954         [BZ #11099]
35955         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
35956         as signed.
35957
35958         * resolv/res_init.c (res_setoptions): Make the code more compact.
35959
35960         [BZ #11558]
35961         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
35962         set RES_USEVC.
35963
35964         [BZ #11634]
35965         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
35966
35967         * malloc/malloc.h: Mark malloc hook variables as deprecated.
35968
35969         [BZ #11781]
35970         * malloc/malloc.h: Declare malloc hook variables as volatile.
35971
35972         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
35973         in last patch.
35974
35975         [BZ #11799]
35976         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
35977         raise in the comment.
35978         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
35979         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
35980         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
35981
35982 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
35983
35984         [BZ #12811]
35985         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
35986         grow the buffers more if it already has to be sufficient.
35987         (build_wcs_upper_buffer): Likewise.
35988         * posix/regexec.c (check_matching): Likewise.
35989         (clean_state_log_if_needed): Likewise.
35990         (extend_buffers): Don't enlarge buffers beyond size of the input
35991         buffer.
35992         Patches mostly by Emil Wojak <emil@wojak.eu>.
35993         * posix/bug-regex32.c: New file.
35994         * posix/Makefile (tests): Add bug-regex32.
35995
35996         * locale/findlocale.c (_nl_find_locale): Return right away if
35997         _nl_explode_name failed.
35998         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
35999
36000         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
36001
36002         * debug/xtrace.sh: Unify messages.
36003         * malloc/memusage.sh: Likewise.
36004
36005         [BZ #12813]
36006         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
36007         time symbol from vDSO.  Substitute with vsyscall if not available.
36008         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
36009         __vdso_time.
36010
36011         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
36012         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
36013         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
36014         Add sendmmsg and internal_sendmmsg.
36015         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
36016         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
36017         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
36018
36019         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
36020         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
36021         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
36022
36023 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
36024
36025         [BZ #12813]
36026         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
36027         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
36028         available.
36029         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
36030         __vdso_getcpu.
36031
36032         [BZ #12814]
36033         * iconvdata/Makefile (tests): Add bug-iconv9.
36034         * iconvdata/bug-iconv9.c: New file.
36035
36036 2011-05-27  Andreas Schwab  <schwab@redhat.com>
36037
36038         [BZ #12814]
36039         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
36040
36041 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
36042
36043         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36044         (struct user_regs_struct): Change intcs field back to cs.
36045
36046 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
36047
36048         * po/ja.po: Update from translation team.
36049
36050 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
36051
36052         [BZ #12795]
36053         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
36054         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
36055
36056 2011-05-20  Andreas Schwab  <schwab@redhat.com>
36057
36058         * stdlib/longlong.h: Update from GCC.
36059
36060 2011-05-23  Andreas Schwab  <schwab@redhat.com>
36061
36062         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
36063         parameter name.
36064         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
36065         Add parameter name.
36066         (__sysconf): Pass it down.
36067
36068 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
36069
36070         [BZ #12671]
36071         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
36072         some situations.
36073         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36074         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
36075         add in in __libc_use_alloca calls.  Adjust callers.
36076         (glob): Use malloc in some situations.
36077
36078         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
36079         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
36080         pltexit.
36081
36082 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
36083
36084         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
36085         and CLOCK_BOOTTIME_ALARM.
36086
36087         [BZ #12782]
36088         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
36089         is returned.
36090
36091         * string/_strerror.c (__strerror_r): Print negative errors as signed
36092         numbers.
36093
36094         [BZ #12777]
36095         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
36096         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
36097         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
36098
36099         * configure.in: Fix typo in redirection and correct removal of test
36100         files in two cases.
36101
36102         [BZ #12788]
36103         * locale/setlocale.c (new_composite_name): Fix test to check for
36104         identical name of all categories.
36105
36106         [BZ #12792]
36107         * libio/filedoalloc.c (local_isatty): New function.
36108         (_IO_file_doallocate): Use local_isatty.
36109         * stdio-common/perror.c (perror): In case a new stream is used
36110         forward the stream error.
36111         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
36112         error flag.
36113
36114 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
36115
36116         [BZ #11869]
36117         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
36118         alloca.
36119         * include/alloca.h (extend_alloca_account): Define.
36120
36121         [BZ #11857]
36122         * posix/regex.h: Fix comments with documentation of user-accessible
36123         fields after compilation and describe correct free'ing of pattern
36124         after re_compile_pattern.
36125         Patch by Reuben Thomas <rrt@sc3d.org>.
36126
36127 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
36128
36129         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
36130         and -mno-altivec to prevent the compiler from using Altivec and/or
36131         VSX instructions when the corresponding registers are not available.
36132
36133 2011-05-19  Andreas Schwab  <schwab@redhat.com>
36134
36135         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
36136
36137 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
36138
36139         * libio/freopen.c (freopen): Use __dup2, not dup2.
36140         * libio/freopen64.c (freopen64): Likewise.
36141
36142 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
36143
36144         [BZ #12775]
36145         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
36146         * math/Makefile (tests): Add test-powl.
36147         (CFLAGS-test-powl.c): Define.
36148         * math/test-powl.c: New file.
36149
36150 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
36151
36152         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
36153
36154 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
36155
36156         [BZ #11837]
36157         * iconvdata/gb18030.c: Update to GB18020-2005.
36158
36159 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
36160
36161         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
36162         RE_SYNTAX_POSIX_AWK): Update to match recent development.
36163         Patch by Aharon Robbins <arnold@skeeve.com>.
36164
36165         [BZ #11892]
36166         * stdlib/putenv.c (putenv): Don't always create copy of the variable
36167         on the stack.
36168
36169         [BZ #11895]
36170         * misc/pselect.c (__pselect): Handle timeout value errors hidden
36171         through underflows.
36172
36173         [BZ #12766]
36174         * misc/error.c (error_at_line): Ensure file_name and old_file_name
36175         point to strings before performing equality test for error_one_per_line
36176         mode.
36177
36178         [BZ #11697]
36179         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
36180
36181         [BZ #11820]
36182         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36183         (struct user_fpregs_struct): Avoid __uint*_t types.
36184
36185         [BZ #6420]
36186         * malloc/mtrace.c (tr_where): Add additional parameter to point to
36187         symbol info.  Use it instead of calling _dl_addr locally.
36188         (lock_and_info): New function.
36189         (tr_freehook): Call lock_and_info and pass symbol info as additional
36190         parameter to tr_where.
36191         (tr_mallochook): Likewise.
36192         (tr_reallochook): Likewise.
36193         (tr_memalignhook): Likewise.
36194
36195         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
36196         used and couldn't be at all thread-safe.
36197
36198 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
36199
36200         * libio/freopen.c (freopen): Don't close old file descriptor
36201         before the new one is opened.  Instead dup the new file descriptor
36202         to the old one after the new stream is created.
36203         * libio/freopen64.c (freopen64): Likewise.
36204         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
36205         * libio/fileops.c (_IO_new_file_close_it): Handle new
36206         _IO_FLAGS2_NOCLOSE flag.
36207         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
36208         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
36209         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
36210         _IO_FLAGS2_NOCLOSE flag.
36211         * include/unistd.h: Add hidden_proto for dup3.
36212         Define __have_dup3.
36213         * io/dup3.c: Define hidden symbol.
36214         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
36215
36216         [BZ #7101]
36217         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
36218         when an incomplete long option is used.
36219         * posix/tst-getopt_long1.c: New file.
36220         * posix/Makefile (tests): Add tst-getopt_long1.
36221
36222         [BZ #10138]
36223         * scripts/config.guess: Update from autoconf-2.68.
36224         * scripts/config.sub: Likewise.
36225
36226         [BZ #10157]
36227         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
36228         tests into ...
36229         (has_cpuclock): ...this.  New function.
36230         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
36231         macro here based on has_cpuclock code.
36232
36233         [BZ #10149]
36234         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36235         First byte (not low byte) is now always NUL.
36236         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
36237
36238         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36239         Use non-cancelable interfaces.
36240
36241         [BZ #9809]
36242         * locale/iso-639.def: Add entry for Sorani.
36243
36244         [BZ #11901]
36245         * include/stdlib.h: Move include protection to the right place.
36246         Define abort_msg_s.  Declare __abort_msg with it.
36247         * stdlib/abort.c (__abort_msg): Adjust type.
36248         * assert/assert.c (__assert_fail_base): New function.  Majority
36249         of code from __assert_fail.  Allocate memory for __abort_msg with
36250         mmap.
36251         (__assert_fail): Now call __assert_fail_base.
36252         * assert/assert-perr.c: Remove bulk of implementation.  Use
36253         __assert_fail_base.
36254         * include/assert.hL Declare __assert_fail_base.
36255         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
36256         mmap.
36257         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
36258
36259 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
36260
36261         [BZ #11952]
36262         [BZ #12453]
36263         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
36264         until all modules are registered in the DTV.
36265         * elf/Makefile: Add rules to build and run tst-tls19.
36266         * elf/tst-tls19.c: New file.
36267         * elf/tst-tls19mod1.c: New file.
36268         * elf/tst-tls19mod2.c: New file.
36269         * elf/tst-tls19mod3.c: New file.
36270         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
36271
36272         [BZ #12083]
36273         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
36274         correctly.
36275
36276         [BZ #12601]
36277         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
36278         two-byte sequence errors.
36279         * iconvdata/Makefile (tests): Add bug-iconv8.
36280         * iconvdata/bug-iconv8.c: New file.
36281
36282         [BZ #12626]
36283         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
36284         buf2 definition.
36285
36286         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
36287
36288         [BZ #12432]
36289         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
36290         (dummy_getcfa): New function.
36291         (init): Get _Unwind_GetCFA address, use dummy if not found.
36292         (backtrace_helper): In recursion check, also check whether CFA changes.
36293         (__backtrace): Completely initialize arg.
36294
36295         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
36296         storing incomplete byte sequence in state object.  Avoid testing for
36297         guaranteed too small input if we know there is enough data available.
36298
36299 2011-05-11  Andreas Schwab  <schwab@redhat.com>
36300
36301         * Makeconfig (+link-pie): Indent.
36302         * Rules (binaries-pie): Define if $(have-fpie) and
36303         $(build-shared).
36304         (binaries-shared): Also filter out $(binaries-pie).
36305         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
36306         * nscd/Makefile (others-pie): Add nscd.
36307         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
36308         ($(objpfx)nscd): Remove command override.
36309         * login/Makefile (others-pie): Add pt_chown.
36310         ($(objpfx)pt_chown): Remove command override.
36311         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
36312         remove command overrides.
36313
36314 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
36315
36316         * libio/tst_putwc.c: Fix error messages.
36317
36318         [BZ #12724]
36319         * libio/fileops.c (_IO_new_file_close_it): Always flush when
36320         currently writing and seek to current position when not.
36321         * libio/Makefile (tests): Add bug-fclose1.
36322         * libio/bug-fclose1.c: New file.
36323
36324 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
36325
36326         [BZ #12511]
36327         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
36328         don't set DF_1_NODELETE here.
36329         (do_lookup_x): When entering new entry test for copy relocation
36330         and if necessary set DF_1_NODELETE flag.
36331         * elf/tst-unique4.cc: New file.
36332         * elf/tst-unique4.h: New file.
36333         * elf/tst-unique4lib.cc: New file.
36334         * elf/Makefile: Add rules to build and run tst-unique4.
36335         Patch by Piotr Bury <pbury@goahead.com>.
36336
36337 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36338
36339         [BZ #12052]
36340         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
36341
36342         [BZ #12625]
36343         * misc/mntent_r.c (addmntent): Flush the stream after the output
36344
36345         [BZ #12393]
36346         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
36347         (is_trusted_path_normalize): Skip initial colon.  Append slash
36348         to empty buffer.  Duplicate is_trusted_path code but allow
36349         constructed patch to be prefix.
36350         (is_dst): Allow $ORIGIN followed by /.
36351         (_dl_dst_substitute): Correct clearing of check_for_trusted.
36352         Correct testing of result of is_trusted_path_normalize
36353         (decompose_rpath): Fix warning.
36354
36355 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
36356
36357         [BZ #11257]
36358         * grp/initgroups.c (internal_getgrouplist): When we found the service
36359         list through the initgroups entry in nsswitch.conf do not always
36360         continue on a successful lookup.  Don't always use the
36361         __nss_group_database value if it is set.
36362         * nss/nsswitch.conf (initgroups): Change action for successful db
36363         lookup to continue for compatibility.
36364
36365 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
36366
36367         [BZ #11532]
36368         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
36369         and CP774 modules.
36370         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
36371         and CP774 modules.
36372         * iconvdata/tst-tables.sh: Likewise.
36373         * iconvdata/cp770.c: New file.
36374         * iconvdata/cp771.c: New file.
36375         * iconvdata/cp772.c: New file.
36376         * iconvdata/cp773.c: New file.
36377         * iconvdata/cp774.c: New file.
36378         * iconvdata/testdata/CP770: New file.
36379         * iconvdata/testdata/CP770..UTF8: New file.
36380         * iconvdata/testdata/CP771: New file.
36381         * iconvdata/testdata/CP771..UTF8: New file.
36382         * iconvdata/testdata/CP772: New file.
36383         * iconvdata/testdata/CP772..UTF8: New file.
36384         * iconvdata/testdata/CP773: New file.
36385         * iconvdata/testdata/CP773..UTF8: New file.
36386         * iconvdata/testdata/CP774: New file.
36387         * iconvdata/testdata/CP774..UTF8: New file.
36388
36389         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
36390         END CHARMAP line.
36391         * iconvdata/gen-8bit-gap.sh: Likewise.
36392         * iconvdata/gen-8bit.sh: Likewise.
36393
36394         * locale/iso-639.def: Add ary entry.
36395
36396         [BZ #11258]
36397         * locale/C-translit.h.in: Add U20A1 transliteration.
36398
36399         [BZ #12178]
36400         * locale/iso-639.def: Add wae entry.
36401         Patch by Kevin Bortis <bortis@translate-wae.ch>.
36402
36403         [BZ #12545]
36404         * locale/programs/localedef.c (construct_output_path): Use ssize_t
36405         for n.
36406
36407         [BZ #12711]
36408         * locale/C-translit.h.in: Add entry for U20B9.
36409         Patch by pravin.d.s@gmail.com.
36410
36411 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
36412
36413         [BZ #12713]
36414         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
36415         ENAMETOOLONG use generic getcwd.
36416         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
36417         in rtld.  Use *stat64.
36418         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
36419         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
36420         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
36421         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
36422         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
36423         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
36424         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
36425         __fstatat64 macros.
36426         * include/dirent.h: Add libc_hidden_proto for rewinddir.
36427         * dirent/rewinddir.c: Add libc_hidden_def.
36428         * sysdeps/mach/hurd/rewinddir.c: Likewise.
36429         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
36430
36431         * include/dirent.h (__alloc_dir): Add flags parameter.
36432         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
36433         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
36434         __alloc_dir.
36435         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
36436         from fdopendir if O_CLOEXEC is already set.
36437
36438 2011-03-15  Alan Modra  <amodra@gmail.com>
36439
36440         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
36441         l_tls_firstbyte_offset non-zero.  Save padding offset in
36442         l_tls_firstbyte_offset for later use.
36443         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
36444         freeing static tls block.
36445
36446 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
36447
36448         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
36449         where #ifdef was intended.  The intent is to prevent ARG_MAX from
36450         being defined by the kernel headers.
36451
36452 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
36453
36454         [BZ #12734]
36455         * resolv/resolv.h: Define RES_NOTLDQUERY.
36456         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
36457         no-tld-query and set RES_NOTLDQUERY.
36458         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
36459         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
36460         modern BIND to search name as TLD unless forbidden.
36461
36462 2011-05-07  Petr Baudis  <pasky@suse.cz>
36463             Ulrich Drepper  <drepper@gmail.com>
36464
36465         [BZ #12393]
36466         * elf/dl-load.c (fillin_rpath): Move trusted path check...
36467         (is_trusted_path): ...to here.
36468         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
36469         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
36470         using is_trusted_path_normalize() in setuid scripts.
36471
36472 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36473
36474         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
36475         __BEGIN/__END_DECLS.
36476
36477 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
36478
36479         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
36480         NSS_STATUS_NOTFOUND if no record was found.
36481
36482 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36483
36484         * sunrpc/Makefile (headers): Add rpc/netdb.h.
36485         (headers-not-in-tirpc): Remove rpc/netdb.h
36486         * resolv/netdb.h: Revert last change.
36487
36488 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
36489
36490         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
36491         circular dependency between libgcc.a and libc.a.
36492
36493 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36494
36495         * resolv/netdb.h: Don't include <rpc/netdb.h>.
36496         * nis/Makefile: Don't install rpcsvc/*.
36497         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
36498         instead of <rpc/types.h>.
36499         (MAXHOSTNAMELEN): Define.
36500
36501 2011-05-03  Andreas Schwab  <schwab@redhat.com>
36502
36503         * elf/ldconfig.c (add_dir): Don't crash on empty path.
36504
36505 2011-04-28  Maciej Babinski  <mbabinski@google.com>
36506
36507         [BZ #12714]
36508         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
36509         gethostbyname4_r when IPv6 results are possible.
36510
36511 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
36512
36513         [BZ #12723]
36514         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
36515         _PC_PIPE_BUF handling.
36516
36517 2011-04-30  Bruno Haible  <bruno@clisp.org>
36518
36519         [BZ #12717]
36520         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
36521         * resolv/netdb.h (getnameinfo): Change type of flags parameter
36522         to 'int'.
36523         * inet/getnameinfo.c (getnameinfo): Likewise.
36524
36525 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
36526
36527         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
36528         to groups setting in database lookup.
36529         * nss/nsswitch.conf: Add initgroups entry.
36530
36531 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
36532
36533         [BZ #12685]
36534         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
36535         mode string.
36536         Patch by Eric Blake <eblake@redhat.com>.
36537
36538 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
36539
36540         * sunrpc/Makefile (need-export-routines): Add svc_run.
36541         (routines): Remove svc_run.
36542         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
36543         * sunrpc/clnt_perr.c (clnt_perrno): Export.
36544         * sunrpc/svc_run.c (svc_run): Likewise.
36545         * sunrpc/svc_udp.c (svcudp_create): Likewise.
36546
36547 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
36548
36549         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
36550         problem in reallocation in last patch.
36551
36552 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
36553
36554         * sunrpc/Makefile: Move inclusion of Rules.
36555
36556 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36557
36558         * nss/nss_files/files-initgroups.c: New file.
36559         * nss/Makefile (libnss_files-routines): Add files-initgroups.
36560         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
36561         _nss_files_initgroups_dyn.
36562
36563 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
36564
36565         * elf/elf.h (R_ARM_IRELATIVE): Define.
36566
36567 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36568
36569         * po/ru.po: Update from translation team.
36570
36571 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36572
36573         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
36574         dependencies.
36575
36576 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
36577
36578         [BZ #12653]
36579         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
36580         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
36581         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36582         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36583         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
36584
36585 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
36586
36587         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
36588         differing bytes.
36589         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
36590         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
36591         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
36592
36593 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36594
36595         [BZ #12420]
36596         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
36597         storing it.
36598         * stdlib/bug-getcontext.c: New file.
36599         * stdlib/Makefile: Add rules to build and run bug-getcontext.
36600
36601 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36602
36603         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
36604         instructions into .machine "z9-109".
36605         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
36606         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
36607
36608 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36609
36610         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
36611         between environment variables and auxiliary vector.
36612
36613 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
36614
36615         * Makefile: Add rules to build linkobj/libc.so.
36616         * include/libc-symbols.h: Define libc_hidden_nolink.
36617         * include/rpc/auth.h: Mark functions which are to be hidden.
36618         * include/rpc/auth_des.h: Likewise.
36619         * include/rpc/auth_unix.h: Likewise.
36620         * include/rpc/clnt.h: Likewise.
36621         * include/rpc/des_crypt.h: Likewise.
36622         * include/rpc/key_prot.h: Likewise.
36623         * include/rpc/pmap_clnt.h: Likewise.
36624         * include/rpc/pmap_prot.h: Likewise.
36625         * include/rpc/pmap_rmt.h: Likewise.
36626         * include/rpc/rpc_msg.h: Likewise.
36627         * include/rpc/svc.h: Likewise.
36628         * include/rpc/svc_auth.h: Likewise.
36629         * include/rpc/xdr.h: Likewise.
36630         * nis/Makefile: Link all DSOs against linkobj/libc.so.
36631         * nss/Makefile: Likewise.
36632         * sunrpc/Makefile: Don't install headers.  Build library with normal
36633         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
36634         * sunrpc/auth_des.c: Hide exported symbols by default, export some
36635         for the compat linking library.  Remove use of INTDEF/INTUSE.
36636         * sunrpc/auth_none.c: Likewise.
36637         * sunrpc/auth_unix.c: Likewise.
36638         * sunrpc/authdes_prot.c: Likewise.
36639         * sunrpc/authuxprot.c: Likewise.
36640         * sunrpc/clnt_gen.c: Likewise.
36641         * sunrpc/clnt_perr.c: Likewise.
36642         * sunrpc/clnt_raw.c: Likewise.
36643         * sunrpc/clnt_simp.c: Likewise.
36644         * sunrpc/clnt_tcp.c: Likewise.
36645         * sunrpc/clnt_udp.c: Likewise.
36646         * sunrpc/clnt_unix.c: Likewise.
36647         * sunrpc/des_crypt.c: Likewise.
36648         * sunrpc/des_soft.c: Likewise.
36649         * sunrpc/get_myaddr.c: Likewise.
36650         * sunrpc/key_call.c: Likewise.
36651         * sunrpc/key_prot.c: Likewise.
36652         * sunrpc/netname.c: Likewise.
36653         * sunrpc/pm_getmaps.c: Likewise.
36654         * sunrpc/pm_getport.c: Likewise.
36655         * sunrpc/pmap_clnt.c: Likewise.
36656         * sunrpc/pmap_prot.c: Likewise.
36657         * sunrpc/pmap_prot2.c: Likewise.
36658         * sunrpc/pmap_rmt.c: Likewise.
36659         * sunrpc/publickey.c: Likewise.
36660         * sunrpc/rpc_cmsg.c: Likewise.
36661         * sunrpc/rpc_common.c: Likewise.
36662         * sunrpc/rpc_dtable.c: Likewise.
36663         * sunrpc/rpc_prot.c: Likewise.
36664         * sunrpc/rpc_thread.c: Likewise.
36665         * sunrpc/rtime.c: Likewise.
36666         * sunrpc/svc.c: Likewise.
36667         * sunrpc/svc_auth.c: Likewise.
36668         * sunrpc/svc_authux.c: Likewise.
36669         * sunrpc/svc_raw.c: Likewise.
36670         * sunrpc/svc_run.c: Likewise.
36671         * sunrpc/svc_simple.c: Likewise.
36672         * sunrpc/svc_tcp.c: Likewise.
36673         * sunrpc/svc_udp.c: Likewise.
36674         * sunrpc/svc_unix.c: Likewise.
36675         * sunrpc/svcauth_des.c: Likewise.
36676         * sunrpc/xcrypt.c: Likewise.
36677         * sunrpc/xdr.c: Likewise.
36678         * sunrpc/xdr_array.c: Likewise.
36679         * sunrpc/xdr_float.c: Likewise.
36680         * sunrpc/xdr_intXX_t.c: Likewise.
36681         * sunrpc/xdr_mem.c: Likewise.
36682         * sunrpc/xdr_rec.c: Likewise.
36683         * sunrpc/xdr_ref.c: Likewise.
36684         * sunrpc/xdr_sizeof.c: Likewise.
36685         * sunrpc/xdr_stdio.c: Likewise.
36686
36687 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
36688
36689         [BZ #12650]
36690         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
36691         * sysdeps/ia64/dl-tls.h: Likewise.
36692         * sysdeps/powerpc/dl-tls.h: Likewise.
36693         * sysdeps/s390/dl-tls.h: Likewise.
36694         * sysdeps/sh/dl-tls.h: Likewise.
36695         * sysdeps/sparc/dl-tls.h: Likewise.
36696         * sysdeps/x86_64/dl-tls.h: Likewise.
36697         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
36698
36699 2011-03-14  Andreas Schwab  <schwab@redhat.com>
36700
36701         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
36702         rpath element also skip the following colon.
36703         (expand_dynamic_string_token): Add is_path parameter and pass
36704         down to DL_DST_REQUIRED and _dl_dst_substitute.
36705         (decompose_rpath): Call expand_dynamic_string_token with
36706         non-zero is_path.  Ignore empty rpaths.
36707         (_dl_map_object_from_fd): Call expand_dynamic_string_token
36708         with zero is_path.
36709
36710 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
36711
36712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
36713         Make cancelable.
36714
36715 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
36716
36717         [BZ #12655]
36718         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
36719         Patch by Filipe David Manana <fdmanana@apache.org>.
36720
36721 2011-04-07  Andreas Schwab  <schwab@redhat.com>
36722
36723         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
36724         Maintain aligned stack.
36725         (CHECK_RSP): Remove unused macro.
36726
36727 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
36728
36729         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
36730         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
36731
36732 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
36733
36734         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
36735
36736         * include/features.h: Mention __USE_XOPEN2K8 in comment.
36737
36738 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
36739
36740         [BZ #12518]
36741         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
36742         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
36743         * sysdeps/x86_64/memmove.c: New file.
36744         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
36745         (memcpy): Renamed to ...
36746         (__new_memcpy): This.
36747         (memcpy): Provide GLIBC_2_14 memcpy.
36748         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
36749         (memcpy): Provide GLIBC_2_2_5 memcpy.
36750
36751 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36752
36753         [BZ #12631]
36754         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
36755
36756 2011-03-30  Andreas Schwab  <schwab@redhat.com>
36757
36758         * misc/syncfs.c: New file.
36759         * misc/Makefile (routines): Add syncfs.
36760         * posix/unistd.h: Declare syncfs.
36761         * sysdeps/unix/syscalls.list: Add syncfs.
36762
36763 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36764
36765         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
36766         open_by_handle_at.
36767         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
36768         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36769         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36770         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36771         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36772         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
36773         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36774
36775 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36776
36777         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
36778         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36779         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
36780         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36781         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36782         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36783         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36784
36785         * io/Makefile: Compile fallocate.c, fallocate64.c, and
36786         sync_file_range.c with -fexceptions.
36787         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
36788         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
36789         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
36790         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
36791         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
36792         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
36793         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
36794         sync_file_range as cancellation point
36795         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
36796         now a wrapper around __call_sync_file_range with cancellation handling.
36797         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
36798         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
36799         function name to __call_sync_file_range.
36800         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
36801         Add call_sync_file_range.
36802
36803 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36804
36805         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36806         bits/timex.h.
36807
36808 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36809
36810         * iconv/iconv.h: Fix typo in comment.
36811         * io/fcntl.h: Likewise.
36812         * libio/stdio.h: Likewise.
36813         * posix/spawn.h: Likewise.
36814         * posix/unistd.h: Likewise.
36815         * stdlib/stdlib.h: Likewise.
36816         * time/time.h: Likewise.
36817         * wcsmbs/wchar.h: Likewise.
36818
36819         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
36820         open_by_handle): Add.
36821         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
36822         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
36823         Augment a few comments.
36824         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36825         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36826         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36827         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36828         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36829         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
36830         open_by_handle.
36831
36832         * io/fcntl.h (AT_EMPTY_PATH): Define.
36833
36834 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
36835
36836         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
36837         * sysdeps/unix/sysv/linux/bits/time.h: New file.
36838         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
36839         to...
36840         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
36841         * Versions.def: Add GLIBC_2.14.
36842         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
36843         Export.
36844
36845 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
36846
36847         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
36848         round counter.
36849         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36850
36851 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36852
36853         [BZ #12597]
36854         * string/test-strncmp.c (do_page_test): New function.
36855         (check2): Likewise.
36856         (test_main): Call check2.
36857         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
36858
36859 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
36860
36861         [BZ #12587]
36862         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
36863         Handle cache information in CPU leaf 4.
36864         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36865
36866 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
36867
36868         [BZ #12583]
36869         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
36870         character representation.
36871         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
36872
36873 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
36874
36875         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
36876         END(__isnan) to END(__isnanf) to match function entry point/label
36877         EALIGN(__isnanf,...).
36878
36879 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
36880
36881         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
36882
36883 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
36884
36885         [BZ #12510]
36886         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
36887         copy from the symbol referenced in the relocation to initialize the
36888         used variable.
36889         Patch by Piotr Bury <pbury@goahead.com>.
36890         * elf/Makefile: Add rules to build and tst-unique3.
36891         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
36892         * elf/tst-unique3.cc: New file.
36893         * elf/tst-unique3.h: New file.
36894         * elf/tst-unique3lib.cc: New file.
36895         * elf/tst-unique3lib2.cc: New file.
36896
36897         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
36898
36899 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
36900
36901         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
36902         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
36903         to _start.
36904
36905 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
36906
36907         * elf/dl-load.c (_dl_map_object): If we are looking for the first
36908         to-be-loaded object along a path to loader is ld.so.
36909
36910 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36911             Ulrich Drepper  <drepper@gmail.com>
36912
36913         * sysdeps/x86_64/memset.S: After aligning destination, code
36914         branches to different locations depending on the value of
36915         misalignment, when multiarch is enabled. Fix this.
36916
36917 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36918
36919         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
36920         Set _x86_64_preferred_memory_instruction for AMD processsors.
36921         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36922         Set bit_Prefer_SSE_for_memop for AMD processors.
36923
36924 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
36925
36926         * libio/fmemopen.c (fmemopen): Optimize a bit.
36927
36928 2011-03-03  Andreas Schwab  <schwab@redhat.com>
36929
36930         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
36931
36932 2011-03-03  Roland McGrath  <roland@redhat.com>
36933
36934         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
36935
36936 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
36937
36938         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
36939         __bzero_ultra1 instead of __memset_ultra1.
36940
36941 2011-02-23  Andreas Schwab  <schwab@redhat.com>
36942             Ulrich Drepper  <drepper@gmail.com>
36943
36944         [BZ #12509]
36945         * include/link.h (struct link_map): Add l_orig_initfini.
36946         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
36947         returning unsuccessfully.
36948         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
36949         close of a file loaded at startup, restore the original l_initfini
36950         list.
36951         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
36952         list, store the pointer.
36953         * elf/Makefile ($(objpfx)noload-mem): New rule.
36954         (noload-ENV): Define.
36955         (tests): Add $(objpfx)noload-mem.
36956         * elf/noload.c: Include <memcheck.h>.
36957         (main): Call mtrace.  Close all opened handles.
36958
36959 2011-02-17  Andreas Schwab  <schwab@redhat.com>
36960
36961         [BZ #12454]
36962         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
36963         dependencies are missing.
36964
36965 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36966
36967         Fix __if_freereq crash: Unlike the generic version which uses free,
36968         Hurd needs munmap.
36969         * sysdeps/mach/hurd/ifreq.h: New file.
36970
36971 2011-01-27  Petr Baudis  <pasky@suse.cz>
36972             Ulrich Drepper  <drepper@gmail.com>
36973
36974         [BZ 12445]#
36975         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
36976         to extend_alloca().
36977         * stdio-common/bug23.c: New file.
36978         * stdio-common/Makefile (tests): Add bug23.
36979
36980 2010-09-28  Andreas Schwab  <schwab@redhat.com>
36981             Ulrich Drepper  <drepper@gmail.com>
36982
36983         [BZ #12489]
36984         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
36985         before performing relro protection.  At old place add assertion
36986         to make sure nothing changed.
36987
36988 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
36989             Glauber de Oliveira Costa  <glommer@gmail.com>
36990
36991         * elf/elf.h: Add new ARM TLS relocs.
36992
36993 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
36994
36995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
36996         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
36997         cast from r3.
36998         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
36999         'tests' variable.
37000         * sysdeps/wordsize-64/tst-writev.c: New file.
37001
37002 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
37003
37004         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
37005         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
37006         insns in _dl_start to prevent a TOC reference before relocs are
37007         resolved.
37008
37009 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
37010
37011         [BZ #12469]
37012         * Makeconfig: Remove RANLIB definition.
37013         * Makerules: Don't use RANLIB.
37014         * aclocal.m4: Remove ranlib test.
37015         * configure.in: No need to check for ranlib.
37016         * elf/rtld-Rules: Don't use RANLIB.
37017
37018 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37019
37020         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
37021         protection macro.
37022         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
37023         inclusion protection macro.
37024
37025         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
37026         SIGRTMIN and SIGRTMAX and print information in that case only when
37027         SIGRTMIN is defined.
37028
37029 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
37030
37031         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
37032         arginfo fn returning -1.
37033
37034         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
37035         and thousands string is zero terminated.
37036
37037 2011-02-03  Andreas Schwab  <schwab@redhat.com>
37038
37039         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
37040         sysdeps/unix/sysv/linux/bits/socket.h.
37041
37042 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37043
37044         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
37045         (__CPU_COUNT): Remove old macros.
37046         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
37047         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
37048         (__CPU_ALLOC, __CPU_FREE): Add macros.
37049         (__sched_cpualloc, __sched_cpufree): Add declarations.
37050
37051 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
37052
37053         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
37054         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
37055         * nscd/aicache.c (addhstaiX): Return timeout of added value.
37056         (readdhstai): Return value of addhstaiX call.
37057         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
37058         (addgrbyX): Return value returned by cache_addgr.
37059         (readdgrbyname): Return value returned by addgrbyX.
37060         (readdgrbygid): Likewise.
37061         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
37062         (addpwbyX): Return value returned by cache_addpw.
37063         (readdpwbyname): Return value returned by addhstbyX.
37064         (readdpwbyuid): Likewise.
37065         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
37066         (addservbyX): Return value returned by cache_addserv.
37067         (readdservbyname): Return value returned by addservbyX:
37068         (readdservbyport): Likewise.
37069         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
37070         (addhstbyX): Return value returned by cache_addhst.
37071         (readdhstbyname): Return value returned by addhstbyX.
37072         (readdhstbyaddr): Likewise.
37073         (readdhstbynamev6): Likewise.
37074         (readdhstbyaddrv6): Likewise.
37075         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
37076         (readdinitgroups): Return value returned by addinitgroupsX.
37077         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
37078         (prune_cache): Keep track of timeout value of re-added entries.
37079         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
37080         * nscd/nscd.h: Adjust prototypes of readd* functions.
37081
37082 2011-02-04  Roland McGrath  <roland@redhat.com>
37083
37084         * nis/nis_server.c (nis_servstate): Use the right name for 0.
37085         (nis_stats): Likewise.
37086         * nis/nis_modify.c (nis_modify): Likewise.
37087         * nis/nis_remove.c (nis_remove): Likewise.
37088         * nis/nis_add.c (nis_add): Likewise.
37089
37090         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
37091
37092         * posix/fnmatch_loop.c: Add some consts.
37093
37094         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
37095
37096 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
37097
37098         [BZ #12460]
37099         * config.make.in (config-cflags-novzeroupper): Define.
37100         * configure.in: Substitute libc_cv_cc_novzeroupper.
37101         * elf/Makefile (AVX-CFLAGS): Define.
37102         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
37103         (CFLAGS-tst-auditmod4a.c): Likewise.
37104         (CFLAGS-tst-auditmod4b.c): Likewise.
37105         (CFLAGS-tst-auditmod6b.c): Likewise.
37106         (CFLAGS-tst-auditmod6c.c): Likewise.
37107         (CFLAGS-tst-auditmod7b.c): Likewise.
37108         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
37109
37110 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
37111
37112         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
37113         function to the callback.
37114         Patch partly by Jiri Olsa <jolsa@redhat.com>.
37115
37116 2011-02-02  Andreas Schwab  <schwab@redhat.com>
37117
37118         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
37119         of errno.
37120
37121 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
37122
37123         [BZ #11724]
37124         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
37125         of constructors.
37126         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
37127         of destructors.
37128         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
37129
37130         [BZ #11724]
37131         * elf/Makefile: Add rules to build and run new test.
37132         * elf/tst-initorder.c: New file.
37133         * elf/tst-initorder.exp: New file.
37134         * elf/tst-initordera1.c: New file.
37135         * elf/tst-initordera2.c: New file.
37136         * elf/tst-initordera3.c: New file.
37137         * elf/tst-initordera4.c: New file.
37138         * elf/tst-initorderb1.c: New file.
37139         * elf/tst-initorderb2.c: New file.
37140         * elf/tst-order-a1.c: New file.
37141         * elf/tst-order-a2.c: New file.
37142         * elf/tst-order-a3.c: New file.
37143         * elf/tst-order-a4.c: New file.
37144         * elf/tst-order-b1.c: New file.
37145         * elf/tst-order-b2.c: New file.
37146         * elf/tst-order-main.c: New file.
37147         New test case by George Gensure <werkt0@gmail.com>.
37148
37149 2010-10-01  Andreas Schwab  <schwab@redhat.com>
37150
37151         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
37152         decoding ACE if AI_CANONIDN.
37153
37154 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
37155
37156         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
37157
37158 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
37159
37160         * version.h (RELEASE): Bump for 2.13 release.
37161         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
37162
37163         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
37164
37165         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
37166         MADV_NOHUGEPAGE.
37167         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
37168         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
37169         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
37170         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
37171         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
37172         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37173
37174         * posix/getconf.c: Update copyright year.
37175         * catgets/gencat.c: Likewise.
37176         * csu/version.c: Likewise.
37177         * debug/catchsegv.sh: Likewise.
37178         * debug/xtrace.sh: Likewise.
37179         * elf/ldconfig.c: Likewise.
37180         * elf/ldd.bash.in: Likewise.
37181         * elf/sprof.c (print_version): Likewise.
37182         * iconv/iconv_prog.c: Likewise.
37183         * iconv/iconvconfig.c: Likewise.
37184         * locale/programs/locale.c: Likewise.
37185         * locale/programs/localedef.c: Likewise.
37186         * malloc/memusage.sh: Likewise.
37187         * malloc/mtrace.pl: Likewise.
37188         * nscd/nscd.c (print_version): Likewise.
37189         * nss/getent.c: Likewise.
37190
37191         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
37192         PF_CAIF, and PF_ALG.
37193         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37194
37195 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
37196
37197         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
37198         (modules-names): Use them.
37199         (ifunc-test-modules, ifunc-pie-tests): Define.
37200         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
37201         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
37202         (test-extras): Likewise.
37203         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
37204         $(compile-command.c).
37205         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
37206         (all-built-dso): Define.
37207         (check-textrel.out, check-execstack.out): Depend on it.
37208
37209         * configure.in: Don't override --enable-multi-arch.
37210
37211 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
37212
37213         [BZ #6812]
37214         * nscd/hstcache.c (tryagain): Define.
37215         (cache_addhst): Return tryagain not notfound for temporary errors.
37216         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
37217         failed.
37218
37219 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
37220
37221         [BZ #10563]
37222         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
37223         to make the syscall.
37224         * sysdeps/unix/sysv/linux/setgroups.c: New file.
37225
37226         [BZ #12378]
37227         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
37228         and fall back to matching as normal character if the string ends before
37229         the matching ']' is found.  This is what POSIX requires.
37230         * posix/testfnm.c: Adjust test result.
37231         * posix/globtest.sh: Adjust test result.  Add new test.
37232         * posix/tst-fnmatch.input: Likewise.
37233         * posix/tst-fnmatch2.c: Add new test.
37234
37235 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
37236
37237         * elf/Makefile (check-execstack): Revert last change.  Depend on
37238         check-execstack.h.
37239         (check-execstack.h): New target.
37240         (generated): Add check-execstack.h.
37241         * elf/check-execstack.c: Include "check-execstack.h".
37242         (main): Revert last change.
37243         (handle_file): Return zero if GNU_STACK is absent and
37244         DEFAULT_STACK_PERMS doesn't include PF_X.
37245
37246 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
37247
37248         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
37249         in child fails because the descriptor is already closed.
37250         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
37251         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
37252         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
37253
37254         [BZ #12397]
37255         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
37256         syscall.
37257
37258         [BZ #10484]
37259         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
37260         temporary buffer used to handle multi lookups locally.
37261         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
37262
37263 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37264
37265         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
37266         loader is ld.so.
37267
37268 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
37269
37270         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
37271         alignment for SSE2.
37272
37273 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37274
37275         [BZ #12394]
37276         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
37277         characters.  When rounding increased number of integer digits recompute
37278         number of groups.
37279         * stdio-common/tst-grouping.c: New file.
37280         * stdio-common/Makefile: Add rules to build and run tst-grouping.
37281
37282 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
37283
37284         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
37285         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
37286
37287         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
37288         void.
37289         * bits/select.h: Likewise.
37290
37291 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
37292
37293         * po/ja.po: Update from translation team.
37294
37295 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
37296
37297         [BZ #11155]
37298         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
37299         implementation just like for lxstat, fxstatat, et al.
37300
37301 2010-12-27  Jim Meyering  <meyering@redhat.com>
37302
37303         [BZ #12348]
37304         * posix/regexec.c (build_trtable): Return failure indication upon
37305         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
37306
37307 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
37308
37309         [BZ #12201]
37310         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
37311         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
37312         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
37313         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
37314
37315         [BZ #12207]
37316         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
37317
37318         [BZ #12204]
37319         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
37320         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
37321
37322 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
37323
37324         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
37325         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
37326         script has SORT_BY_INIT_PRIORITY.
37327         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
37328         NO_CTORS_DTORS_SECTIONS is defined.
37329         * elf/soinit.c: Likewise.
37330         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
37331         NO_CTORS_DTORS_SECTIONS is defined.
37332         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
37333         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
37334         * sysdeps/sh/init-first.c: Likewise.
37335         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
37336
37337 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
37338
37339         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
37340         always use the slow path.
37341
37342 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
37343
37344         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
37345         similar rule which adds the sysdep directories to the header search in
37346         order to pick up the correct platform stackinfo.h.
37347         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
37348         perform test if it is, otherwise return successfully without testing.
37349         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
37350         DEFAULT_STACK_PERMS define in stackinfo.h.
37351         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
37352         defined in stackinfo.h.
37353         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
37354         DEFAULT_STACK_PERMS defined in stackinfo.h.
37355         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
37356         * sysdeps/ia64/stackinfo.h: Likewise.
37357         * sysdeps/s390/stackinfo.h: Likewise.
37358         * sysdeps/sh/stackinfo.h: Likewise.
37359         * sysdeps/sparc/stackinfo.h: Likewise.
37360         * sysdeps/x86_64/stackinfo.h: Likewise.
37361         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
37362         PF_X for powerpc64.  Retain PF_X for powerpc32.
37363
37364 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
37365
37366         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
37367         accurately.
37368         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
37369         GETDENTS_64BIT_ALIGNED.
37370
37371 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
37372
37373         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
37374
37375 2010-12-10  Andreas Schwab  <schwab@redhat.com>
37376
37377         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
37378         _GNU_SOURCE.
37379
37380         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
37381         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
37382         Remove __restrict.
37383         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
37384         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
37385
37386 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
37387
37388         [BZ #11655]
37389         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
37390         are initialized.
37391
37392 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
37393
37394         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
37395
37396 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
37397
37398         * po/it.po: Update from translation team.
37399
37400 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
37401
37402         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
37403         unused codes.
37404
37405 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
37406
37407         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
37408
37409 2010-11-24  Andreas Schwab  <schwab@redhat.com>
37410
37411         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
37412         specially.
37413         (gaih_getanswer_slice): Likewise.
37414
37415 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
37416
37417         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
37418
37419 2010-05-31  Petr Baudis  <pasky@suse.cz>
37420
37421         [BZ #11149]
37422         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
37423         silently even in the chroot mode.
37424
37425 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
37426
37427         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
37428         last patch a bit.  Pretty printing
37429
37430 2010-05-31  Petr Baudis <pasky@suse.cz>
37431
37432         [BZ #10085]
37433         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
37434         initialization of skip_initgroups_dyn.
37435
37436 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
37437
37438         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
37439         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37440
37441 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
37442
37443         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
37444
37445 2010-11-11  Andreas Schwab  <schwab@redhat.com>
37446
37447         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
37448         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
37449         (tst-fnmatch-ENV): Set MALLOC_TRACE.
37450         ($(objpfx)tst-fnmatch-mem): New rule.
37451         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
37452         * posix/tst-fnmatch.c (main): Call mtrace.
37453
37454 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
37455
37456         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37457         Support Intel processor model 6 and model 0x2c.
37458
37459 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
37460
37461         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
37462           signed comparison.
37463
37464 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
37465
37466         [BZ #12205]
37467         * string/test-strncasecmp.c (check_result): New function.
37468         (do_one_test): Use it.
37469         (check1): New function.
37470         (test_main): Use it.
37471         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
37472         Support strcasecmp and strncasecmp.
37473
37474 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
37475
37476         [BZ #12194]
37477         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
37478         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37479
37480 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
37481
37482         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
37483         IFUNC support.
37484         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37485         memset-x86-64.
37486         * sysdeps/x86_64/multiarch/bzero.S: New file.
37487         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
37488         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
37489         * sysdeps/x86_64/multiarch/memset.S: New file.
37490         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
37491         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37492         Set bit_Prefer_SSE_for_memop for Intel processors.
37493         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
37494         Define.
37495         (index_Prefer_SSE_for_memop): Define.
37496         (HAS_PREFER_SSE_FOR_MEMOP): Define.
37497
37498 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
37499
37500         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
37501         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
37502
37503 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
37504
37505         [BZ #12191]
37506         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37507         (__x86_64_raw_data_cache_size_half): Likewise.
37508         (__x86_64_raw_shared_cache_size): Likewise.
37509         (__x86_64_raw_shared_cache_size_half): Likewise.
37510
37511         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37512         (__x86_64_raw_data_cache_size_half): Likewise.
37513         (__x86_64_raw_shared_cache_size): Likewise.
37514         (__x86_64_raw_shared_cache_size_half): Likewise.
37515         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
37516         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
37517         and __x86_64_raw_shared_cache_size_half.  Round
37518         __x86_64_data_cache_size_half, __x86_64_data_cache_size
37519         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
37520         to multiple of 256 bytes.
37521
37522 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
37523
37524         [BZ #12167]
37525         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
37526         of inacessible symlinks.  Verify result of symlink before returning it.
37527         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37528         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
37529
37530 2010-10-28  Erich Ritz  <erichritz@gmail.com>
37531
37532         * math/math.h (isinf): Fix typo in comment.
37533
37534 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
37535
37536         * po/da.po: Update from translation team.
37537
37538 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
37539
37540         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
37541         is added to the list.
37542
37543 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37544             Ulrich Drepper  <drepper@gmail.com>
37545
37546         * elf/dl-object.c (_dl_new_object): Don't append the new object to
37547         the global list here.  Move code to...
37548         (_dl_add_to_namespace_list): ...here.  New function.
37549         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
37550         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
37551         * elf/dl-load.c (lose): Don't remove the element from the list.
37552         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
37553         (_dl_map_object): Likewise.
37554
37555 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
37556
37557         [BZ #12159]
37558         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
37559         into all bytes of SSE register.
37560         Patch by Richard Li <richardpku@gmail.com>.
37561
37562 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
37563
37564         [BZ #12140]
37565         * malloc/malloc.c (_int_free): Fill correct number of bytes when
37566         perturbing.
37567
37568 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
37569
37570         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
37571         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
37572         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
37573         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
37575         submachine.
37576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
37577
37578 2010-10-22  Andreas Schwab  <schwab@redhat.com>
37579
37580         * include/dlfcn.h (__RTLD_SECURE): Define.
37581         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
37582         mode & __RTLD_SECURE instead.
37583         (open_path): Rename preloaded parameter to secure.
37584         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
37585         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
37586         * elf/dl-deps.c (openaux): Likewise.
37587         * elf/rtld.c (struct map_args): Remove is_preloaded.
37588         (map_doit): Don't use it.
37589         (dl_main): Likewise.
37590         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
37591         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
37592
37593 2010-09-09  Andreas Schwab  <schwab@redhat.com>
37594
37595         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
37596         (sysd-rules-targets): Remove duplicates.
37597         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
37598         rtld-%.$o dependency.
37599
37600 2010-10-18  Andreas Schwab  <schwab@redhat.com>
37601
37602         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
37603         _dl_map_object do it.
37604
37605 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
37606
37607         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
37608         fast fma builtins, define the macros in the C99 standard.
37609         (FP_FAST_FMAF): Likewise.
37610         (FP_FAST_FMAL): Likewise.
37611         * sysdeps/x86_64/bits/mathdef.h: Likewise.
37612
37613         * bits/mathdef.h: Update copyright year.
37614         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37615
37616 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
37617
37618         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
37619         builtins, define the macros in the C99 standard.
37620         (FP_FAST_FMAF): Likewise.
37621         (FP_FAST_FMAL): Likewise.
37622         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
37623         multiply/add.
37624         (FP_FAST_FMAF): Likewise.
37625
37626 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
37627
37628         [BZ #3268]
37629         * math/libm-test.inc (fma_test): Some new testcases.
37630         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
37631         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
37632         y and infinite z.  Do multiplication by C already in long double.
37633         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
37634         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
37635         y and infinite z.  Do bitwise or of inexact bit into u.d.
37636         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
37637         * sysdeps/i386/fpu/s_fmaf.S: Removed.
37638         * sysdeps/i386/fpu/s_fma.S: Removed.
37639         * sysdeps/i386/fpu/s_fmal.S: Removed.
37640
37641 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
37642
37643         [BZ #3268]
37644         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
37645         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
37646         computation is not scheduled after fetestexcept.  Fix value
37647         of minimum denormal long double.
37648
37649 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
37650
37651         [BZ #3268]
37652         * math/libm-test.inc (fma_test): Add some more tests.
37653         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
37654         correctly.
37655
37656 2010-10-15  Andreas Schwab  <schwab@redhat.com>
37657
37658         * scripts/data/localplt-s390-linux-gnu.data: New file.
37659         * scripts/data/localplt-s390x-linux-gnu.data: New file.
37660
37661 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
37662
37663         [BZ #3268]
37664         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
37665         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
37666         instead of dbl-64.
37667         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
37668         inlines.
37669         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
37670         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
37671         if one of x and y is very large and the other is subnormal.
37672         * sysdeps/s390/fpu/s_fmaf.c: New file.
37673         * sysdeps/s390/fpu/s_fma.c: New file.
37674         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
37675         * sysdeps/powerpc/fpu/s_fma.S: New file.
37676         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
37677         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
37678         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
37679
37680 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
37681
37682         [BZ #3268]
37683         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
37684         fma tests.
37685         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
37686         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
37687         * sysdeps/i386/i686/multiarch/s_fma.c: Include
37688         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
37689         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
37690         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
37691         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
37692
37693 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
37694
37695         [BZ #12078]
37696         * posix/regcomp.c (parse_branch): One more memory leak plugged.
37697         * posix/bug-regex31.input: Add test case.
37698
37699 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37700
37701         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
37702         * posix/bug-regex31.input: New file.
37703
37704         [BZ #12078]
37705         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
37706         (parse_sub_exp): Fix last change, use postorder.
37707
37708         * posix/bug-regex31.c: New file.
37709         * posix/Makefile: Add rules to build and run bug-regex31.
37710
37711         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
37712
37713         [BZ #12078]
37714         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
37715
37716         [BZ #12108]
37717         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
37718         to have entries in sys_siglist.
37719
37720         [BZ #12093]
37721         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
37722         be NULL.
37723
37724 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
37725
37726         [BZ #3268]
37727         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
37728         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
37729         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
37730         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
37731         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
37732         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
37733         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
37734         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
37735         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
37736         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
37737         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
37738         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
37739         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
37740         * math/ftestexcept.c (fetestexcept): Likewise.
37741         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
37742         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
37743         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
37744         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
37745         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
37746         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
37747         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
37748
37749 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37750
37751         [BZ #12107]
37752         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
37753         newline.
37754
37755 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
37756
37757         * string/bug-strstr1.c: New file.
37758         * string/Makefile: Add rules to build and run bug-strstr1.
37759
37760 2010-10-05  Eric Blake  <eblake@redhat.com>
37761
37762         [BZ #12092]
37763         * string/str-two-way.h (two_way_long_needle): Always clear memory
37764         when skipping input due to the shift table.
37765
37766 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
37767
37768         [BZ #12005]
37769         * malloc/mcheck.c: Handle large requests.
37770
37771         [BZ #12077]
37772         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
37773         for strncmp and strncasecmp.
37774         * string/stratcliff.c: Add tests for strcmp and strncmp.
37775         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
37776
37777 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37778
37779         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
37780         __set_fpscr.
37781
37782 2010-09-30  Andreas Jaeger  <aj@suse.de>
37783
37784         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
37785         (CGROUP_SUPER_MAGIC): Define.
37786         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37787         Handle btrfs and cgroup file systems.
37788         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
37789         Likewise.
37790
37791 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
37792
37793         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
37794         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
37795
37796 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37797
37798         [BZ #12067]
37799         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
37800         trying to locate the ELF header.
37801
37802 2010-09-27  Andreas Schwab  <schwab@redhat.com>
37803
37804         [BZ #11611]
37805         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
37806         Mask out sign-bit copies when constructing f_fsid.
37807
37808 2010-09-24  Petr Baudis <pasky@suse.cz>
37809
37810         * debug/stack_chk_fail_local.c: Add missing licence exception.
37811         * debug/warning-nop.c: Likewise.
37812
37813 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
37814
37815         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
37816         implementing getdents64 using getdents syscall, set d_type if
37817         __ASSUME_GETDENTS32_D_TYPE.
37818
37819 2010-09-16  Andreas Schwab  <schwab@redhat.com>
37820
37821         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
37822         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
37823
37824 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
37825
37826         [BZ #12037]
37827         * posix/unistd.h: Undo change of feature selection for ftruncate from
37828         2010-01-11.
37829
37830 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
37831
37832         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
37833         detection.
37834
37835 2010-09-20  Andreas Schwab  <schwab@redhat.com>
37836
37837         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
37838         fanotify_mark.
37839         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37840
37841 2010-09-14  Andreas Schwab  <schwab@redhat.com>
37842
37843         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
37844         variables after CHECK_SP call.
37845         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
37846
37847 2010-09-13  Andreas Schwab  <schwab@redhat.com>
37848             Ulrich Drepper  <drepper@redhat.com>
37849
37850         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
37851         re-relocationg ld.so.
37852         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
37853         _dl_init_paths call.
37854         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
37855         here anymore.
37856
37857 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
37858
37859         * resolv/res_init.c (__res_vinit): Count the default server we added.
37860
37861 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
37862             Ulrich Drepper  <drepper@redhat.com>
37863
37864         [BZ #11968]
37865         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
37866         (____longjmp_chk): Use %ebx for saving value across system call.
37867         Add unwind info.
37868
37869 2010-09-06  Andreas Schwab  <schwab@redhat.com>
37870
37871         * manual/Makefile: Don't mix pattern rules with normal rules.
37872
37873 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
37874
37875         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
37876         operation.
37877         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
37878         * libio/iofopncook.c (_IO_cookie_init): Likewise.
37879         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
37880         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
37881         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
37882         Likewise.
37883
37884 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
37885
37886         [BZ #11979]
37887         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
37888         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
37889
37890 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
37891
37892         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
37893         * sysdeps/x86_64/addmul_1.S: Likewise.
37894         * sysdeps/x86_64/lshift.S: Likewise.
37895         * sysdeps/x86_64/mul_1.S: Likewise.
37896         * sysdeps/x86_64/rshift.S: Likewise.
37897         * sysdeps/x86_64/sub_n.S: Likewise.
37898         * sysdeps/x86_64/submul_1.S: Likewise.
37899
37900 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37901
37902         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
37903         Define __sched_param instead of SCHED_* and sched_param when
37904         <bits/sched.h> is included with __need_schedparam defined.
37905         * bits/sched.h [__need_schedparam]
37906         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
37907         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
37908         (__defined_schedparam): Define to 1.
37909         (__sched_param): New structure, identical to sched_param.
37910         (__need_schedparam): Undefine.
37911
37912 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
37913
37914         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
37915         (epoll_create1): Declare.
37916
37917         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
37918
37919 2010-08-31  Andreas Schwab  <schwab@redhat.com>
37920
37921         [BZ #7066]
37922         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
37923         shifting retval into place.
37924
37925 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
37926
37927         * nis/rpcsvc/nis.h: Update copyright notice.
37928         * nis/rpcsvc/nis.x: Likewise.
37929         * nis/rpcsvc/nis_callback.h: Likewise.
37930         * nis/rpcsvc/nis_callback.x: Likewise.
37931         * nis/rpcsvc/nis_object.x: Likewise.
37932         * nis/rpcsvc/nis_tags.h: Likewise.
37933         * nis/rpcsvc/yp.h: Likewise.
37934         * nis/rpcsvc/yp.x: Likewise.
37935         * nis/rpcsvc/ypupd.h: Likewise.
37936         * nis/yp_xdr.c: Likewise.
37937         * nis/ypupdate_xdr.c: Likewise.
37938
37939         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
37940         mainly the body of pmap_getport.  Add parameters to specify timeouts.
37941         (pmap_getport): Use __libc_rpc_getport.
37942         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
37943         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
37944         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
37945
37946 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
37947
37948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
37949         fanotify_mark.
37950
37951 2010-08-27  Roland McGrath  <roland@redhat.com>
37952
37953         * sysdeps/i386/i686/multiarch/Makefile
37954         (CFLAGS-varshift.c): New variable.
37955
37956 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
37957
37958         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
37959         * sysdeps/i386/i686/multiarch/varshift.c: New file.
37960
37961         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
37962
37963         * sysdeps/x86_64/strlen.S: Minimal code improvement.
37964
37965 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
37966
37967         * sysdeps/x86_64/strlen.S: Unroll the loop.
37968         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37969         strlen-sse2 strlen-sse2-bsf.
37970         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
37971         __strlen_no_bsf if bit_Slow_BSF is set.
37972         (__strlen_sse42): Removed.
37973         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
37974         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
37975
37976 2010-08-25  Roland McGrath  <roland@redhat.com>
37977
37978         * sysdeps/x86_64/multiarch/varshift.S: File removed.
37979         * sysdeps/x86_64/multiarch/varshift.c: New file.
37980         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
37981         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
37982         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
37983         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
37984
37985 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
37986
37987         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37988         strlen-sse2 strlen-sse2-bsf.
37989         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
37990         __strlen_sse2_bsf if bit_Slow_BSF is unset.
37991         (__strlen_sse2): Removed.
37992         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
37993         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
37994         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
37995         bit_Slow_BSF for Atom.
37996         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
37997         (index_Slow_BSF): Define.
37998         (HAS_SLOW_BSF): Define.
37999
38000 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
38001
38002         [BZ #10851]
38003         * resolv/res_init.c (__res_vinit): When no server address at all
38004         is given default to loopback.
38005
38006 2010-08-24  Roland McGrath  <roland@redhat.com>
38007
38008         * configure.in: Remove config-name.h generation.
38009         * configure: Regenerated.
38010         * config-name.in: File removed.
38011         * scripts/config-uname.sh: New file.
38012         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
38013         ($(objdir)config-name.h): New target.
38014
38015         * sunrpc/rpc_parse.h: Avoid nested comment.
38016
38017 2010-08-24  Richard Henderson  <rth@redhat.com>
38018             Ulrich Drepper  <drepper@redhat.com>
38019             H.J. Lu  <hongjiu.lu@intel.com>
38020
38021         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
38022         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
38023         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
38024         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
38025         _mm_alignr_epi8 with _mm_loadu_si128.
38026         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
38027         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
38028         (__m128i_shift_right): Removed.
38029         * sysdeps/i386/i686/multiarch/varshift.h: New file.
38030         * sysdeps/i386/i686/multiarch/varshift.S: New file.
38031         * sysdeps/x86_64/multiarch/varshift.h: New file.
38032         * sysdeps/x86_64/multiarch/varshift.S: New file.
38033
38034 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
38035
38036         * configure.in: Move assembler checks to before sysdep dir checking.
38037
38038 2010-08-20  Petr Baudis  <pasky@suse.cz>
38039
38040         * LICENSES: Sync the sunrpc license.
38041
38042 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
38043
38044         * sunrpc/auth_des.c: Update copyright notice once again.
38045         * sunrpc/auth_none.c: Likewise.
38046         * sunrpc/auth_unix.c: Likewise.
38047         * sunrpc/authdes_prot.c: Likewise.
38048         * sunrpc/authuxprot.c: Likewise.
38049         * sunrpc/bindrsvprt.c: Likewise.
38050         * sunrpc/clnt_gen.c: Likewise.
38051         * sunrpc/clnt_perr.c: Likewise.
38052         * sunrpc/clnt_raw.c: Likewise.
38053         * sunrpc/clnt_simp.c: Likewise.
38054         * sunrpc/clnt_tcp.c: Likewise.
38055         * sunrpc/clnt_udp.c: Likewise.
38056         * sunrpc/clnt_unix.c: Likewise.
38057         * sunrpc/des_crypt.c: Likewise.
38058         * sunrpc/des_soft.c: Likewise.
38059         * sunrpc/get_myaddr.c: Likewise.
38060         * sunrpc/getrpcport.c: Likewise.
38061         * sunrpc/key_call.c: Likewise.
38062         * sunrpc/key_prot.c: Likewise.
38063         * sunrpc/openchild.c: Likewise.
38064         * sunrpc/pm_getmaps.c: Likewise.
38065         * sunrpc/pm_getport.c: Likewise.
38066         * sunrpc/pmap_clnt.c: Likewise.
38067         * sunrpc/pmap_prot.c: Likewise.
38068         * sunrpc/pmap_prot2.c: Likewise.
38069         * sunrpc/pmap_rmt.c: Likewise.
38070         * sunrpc/rpc/auth.h: Likewise.
38071         * sunrpc/rpc/auth_unix.h: Likewise.
38072         * sunrpc/rpc/clnt.h: Likewise.
38073         * sunrpc/rpc/des_crypt.h: Likewise.
38074         * sunrpc/rpc/key_prot.h: Likewise.
38075         * sunrpc/rpc/netdb.h: Likewise.
38076         * sunrpc/rpc/pmap_clnt.h: Likewise.
38077         * sunrpc/rpc/pmap_prot.h: Likewise.
38078         * sunrpc/rpc/pmap_rmt.h: Likewise.
38079         * sunrpc/rpc/rpc.h: Likewise.
38080         * sunrpc/rpc/rpc_des.h: Likewise.
38081         * sunrpc/rpc/rpc_msg.h: Likewise.
38082         * sunrpc/rpc/svc.h: Likewise.
38083         * sunrpc/rpc/svc_auth.h: Likewise.
38084         * sunrpc/rpc/types.h: Likewise.
38085         * sunrpc/rpc/xdr.h: Likewise.
38086         * sunrpc/rpc_clntout.c: Likewise.
38087         * sunrpc/rpc_cmsg.c: Likewise.
38088         * sunrpc/rpc_common.c: Likewise.
38089         * sunrpc/rpc_cout.c: Likewise.
38090         * sunrpc/rpc_dtable.c: Likewise.
38091         * sunrpc/rpc_hout.c: Likewise.
38092         * sunrpc/rpc_main.c: Likewise.
38093         * sunrpc/rpc_parse.c: Likewise.
38094         * sunrpc/rpc_parse.h: Likewise.
38095         * sunrpc/rpc_prot.c: Likewise.
38096         * sunrpc/rpc_sample.c: Likewise.
38097         * sunrpc/rpc_scan.c: Likewise.
38098         * sunrpc/rpc_scan.h: Likewise.
38099         * sunrpc/rpc_svcout.c: Likewise.
38100         * sunrpc/rpc_tblout.c: Likewise.
38101         * sunrpc/rpc_util.c: Likewise.
38102         * sunrpc/rpc_util.h: Likewise.
38103         * sunrpc/rpcinfo.c: Likewise.
38104         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
38105         * sunrpc/rpcsvc/key_prot.x: Likewise.
38106         * sunrpc/rpcsvc/klm_prot.x: Likewise.
38107         * sunrpc/rpcsvc/mount.x: Likewise.
38108         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
38109         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
38110         * sunrpc/rpcsvc/rex.x: Likewise.
38111         * sunrpc/rpcsvc/rstat.x: Likewise.
38112         * sunrpc/rpcsvc/rusers.x: Likewise.
38113         * sunrpc/rpcsvc/sm_inter.x: Likewise.
38114         * sunrpc/rpcsvc/spray.x: Likewise.
38115         * sunrpc/rpcsvc/yppasswd.x: Likewise.
38116         * sunrpc/rtime.c: Likewise.
38117         * sunrpc/svc.c: Likewise.
38118         * sunrpc/svc_auth.c: Likewise.
38119         * sunrpc/svc_authux.c: Likewise.
38120         * sunrpc/svc_raw.c: Likewise.
38121         * sunrpc/svc_run.c: Likewise.
38122         * sunrpc/svc_simple.c: Likewise.
38123         * sunrpc/svc_tcp.c: Likewise.
38124         * sunrpc/svc_udp.c: Likewise.
38125         * sunrpc/svc_unix.c: Likewise.
38126         * sunrpc/svcauth_des.c: Likewise.
38127         * sunrpc/xcrypt.c: Likewise.
38128         * sunrpc/xdr.c: Likewise.
38129         * sunrpc/xdr_array.c: Likewise.
38130         * sunrpc/xdr_float.c: Likewise.
38131         * sunrpc/xdr_mem.c: Likewise.
38132         * sunrpc/xdr_rec.c: Likewise.
38133         * sunrpc/xdr_ref.c: Likewise.
38134         * sunrpc/xdr_sizeof.c: Likewise.
38135         * sunrpc/xdr_stdio.c: Likewise.
38136
38137         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
38138         handling.
38139
38140 2010-08-19  Andreas Schwab  <schwab@redhat.com>
38141
38142         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
38143
38144 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
38145
38146         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
38147         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
38148         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
38149         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
38150         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
38151         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
38152         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
38153         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
38154         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
38155         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
38156         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
38157         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
38158         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
38159         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
38160
38161 2010-07-26  Anton Blanchard  <anton@samba.org>
38162
38163         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
38164         * malloc/arena.c (heap_trim): Likewise.
38165
38166 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
38167
38168         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
38169         here.  Not...
38170         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
38171         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
38172
38173 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
38174
38175         * sysdeps/i386/elf/Makefile: New file.
38176
38177 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38178
38179         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
38180         from fanotify_init.
38181         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
38182         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38183
38184 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
38185
38186         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
38187         of strncasecmp_l.
38188         * sysdeps/multiarch/strcmp.S: Likewise.
38189
38190 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
38191
38192         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38193         strncase_l-nonascii.
38194         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38195         Add strncase_l-ssse3.
38196         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
38197         * sysdeps/x86_64/strcmp.S: Likewise.
38198         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
38199         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
38200         * sysdeps/x86_64/strncase.S: New file.
38201         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
38202         * sysdeps/x86_64/strncase_l.S: New file.
38203         * string/Makefile (strop-tests): Add strncasecmp.
38204         * string/test-strncasecmp.c: New file.
38205
38206         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
38207         warning.
38208
38209         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
38210         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
38211
38212 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38213
38214         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
38215
38216 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
38217
38218         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
38219         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
38220         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
38221
38222 2010-05-01  Alan Modra  <amodra@gmail.com>
38223
38224         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
38225         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
38226         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
38227         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
38228         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
38229         tidying.  Don't tail-call __sigjmp_save for static lib.
38230         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
38231         save location.
38232         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
38233         (CALL_MCOUNT): Add eh info, and nop after bl.
38234         (TAIL_CALL_SYSCALL_ERROR): New macro.
38235         (PSEUDO_RET): Use it.
38236         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
38237         Correct save location of integer regs and cr.
38238         (_dl_profile_resolve): Correct cr save location.  Delete nops
38239         after bl when SHARED.  Reduce cfi size a little by better
38240         placement of cfi directives.
38241         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
38242         make a stack frame.  Instead use parm save area as a temp.
38243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
38244         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
38245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
38246         Don't make a stack frame for parent, use parm save area.
38247         Increase child stack frame to 112 bytes.  Don't save unused reg,
38248         and adjust reg usage.  Set up cfi on error recovery and
38249         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
38250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
38251         (__makecontext): Add dummy nop after jump to exit.
38252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
38253         Use correct parm save area and cr save, reduce stack frame.
38254         Correct cfi for possible PSEUDO_RET frame setup.
38255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
38256         Branch to local label emitted by PSEUDO_RET rather than
38257         __syscall_error.
38258
38259 2010-08-12  Andreas Schwab  <schwab@redhat.com>
38260
38261         [BZ #11904]
38262         * locale/programs/locale.c (print_assignment): New function.
38263         (show_locale_vars): Use it.
38264
38265 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
38266
38267         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
38268         field.
38269         (struct statfs64): Likewise.
38270         (_STATFS_F_FLAGS): Define.
38271         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
38272         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38273         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
38274         (ST_VALID): Define locally.
38275         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
38276         __statvfs_getflags, use the provided value.
38277         * sysdeps/unix/sysv/linux/kernel-features.h: Define
38278         __ASSUME_STATFS_F_FLAGS.
38279
38280         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
38281
38282         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
38283         Add sys/fanotify.h.
38284         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
38285         fanotify_mask for GLIBC_2.13.
38286         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
38287         fanotify_init and fanotify_mark.
38288         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38289         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
38290
38291         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
38292         Add prlimit.
38293         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
38294         prlimit64 for GLIBC_2.13.
38295         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
38296         prlimit64.
38297         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
38298         syscall.
38299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
38300         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
38301         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
38302         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
38303         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
38304         add prlimit alias.
38305         * sysdeps/unix/sysv/linux/prlimit.c: New file.
38306
38307         [BZ #11903]
38308         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
38309         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
38310
38311         * nss/Makefile: Add rules to build and run tst-nss-test1.
38312         * shlib-versions: Add entry for libnss_test1.
38313         * nss/nss_test1.c: New file.
38314         * nss/tst-nss-test1.c: New file.
38315
38316         * nss/nsswitch.c (__nss_database_custom): Define new variable.
38317         (__nss_configure_lookup): Set appropriate entry in
38318         __nss_configure_lookup to true.
38319         * nss/nsswitch.h: Define enum with indeces of databases in
38320         databases and __nss_database_custom arrays.  Declare
38321         __nss_database_custom.
38322         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
38323         to avoid using nscd when custom rules are installed.
38324         * nss/getXXbyYY_r.c: Likewise.
38325         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
38326
38327         * nss/nss_files/files-parse.c: Whitespace fixes.
38328
38329 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
38330
38331         [BZ #11883]
38332         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
38333         * posix/fnmatch_loop.c: Likewise.
38334
38335 2010-07-17  Andi Kleen  <ak@linux.intel.com>
38336
38337         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
38338         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
38339         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
38340         * Versions.def [GLIBC_2.13]: Add.
38341
38342 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
38343
38344         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38345         Also fail if tpwd after pwuid call is NULL.
38346
38347 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38348
38349         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
38350         when converting to ms.
38351
38352 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38353
38354         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
38355         EOPNOTSUPP errors with ENOTTY.
38356         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
38357         EOPNOTSUPP errors with ENOTTY.
38358
38359 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
38360
38361         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38362         Add strcasecmp_l-ssse3.
38363         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
38364         strcasecmp.
38365         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
38366         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
38367         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
38368
38369 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
38370
38371         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
38372
38373         * string/Makefile (strop-tests): Add strcasecmp.
38374         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38375         strcasecmp_l-nonascii.
38376         (gen-as-const-headers): Add locale-defines.sym.
38377         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
38378         * sysdeps/x86_64/strcasecmp.S: New file.
38379         * sysdeps/x86_64/strcasecmp_l.S: New file.
38380         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
38381         * sysdeps/x86_64/locale-defines.sym: New file.
38382         * string/test-strcasecmp.c: New file.
38383
38384         * string/test-strcasestr.c: Test both ends of the range of characters.
38385         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
38386
38387 2010-07-29  Roland McGrath  <roland@redhat.com>
38388
38389         [BZ #11856]
38390         * manual/locale.texi (Yes-or-No Questions): Fix example code.
38391
38392 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
38393
38394         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
38395         for ld.so.
38396
38397 2010-07-27  Andreas Schwab  <schwab@redhat.com>
38398
38399         * manual/memory.texi (Malloc Tunable Parameters): Document
38400         M_PERTURB.
38401
38402 2010-07-26  Roland McGrath  <roland@redhat.com>
38403
38404         [BZ #11840]
38405         * configure.in (-fgnu89-inline check): Set and substitute
38406         gnu89_inline, not libc_cv_gnu89_inline.
38407         * configure: Regenerated.
38408         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
38409
38410 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
38411
38412         * string/test-strnlen.c: New file.
38413         * string/Makefile (strop-tests): Add strnlen.
38414         * string/tester.c (test_strnlen): Add a few more test cases.
38415         * string/tst-strlen.c: Better error reporting.
38416
38417         * sysdeps/x86_64/strnlen.S: New file.
38418
38419 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
38420
38421         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
38422         lower-latency instructions.
38423
38424 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
38425
38426         * string/test-strcasestr.c: New file.
38427         * string/test-strstr.c: New file.
38428         * string/Makefile (strop-tests): Add strstr and strcasestr.
38429         * string/str-two-way.h: Don't undefine MAX.
38430         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
38431
38432 2010-07-21  Andreas Schwab  <schwab@redhat.com>
38433
38434         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38435         strcasestr-nonascii.
38436         (CFLAGS-strcasestr-nonascii.c): Define.
38437         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
38438         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
38439         Remove unused attribute.
38440
38441 2010-07-20  Roland McGrath  <roland@redhat.com>
38442
38443         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
38444         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
38445         ld.so.cache was broken.  With it, there is no way to disable dsocaps
38446         like LD_HWCAP_MASK can disable hwcaps.
38447
38448 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38449
38450         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
38451
38452 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
38453
38454         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
38455         call in strcasestr.
38456         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
38457         __strcasestr_sse42_nonascii.
38458         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
38459         strcasestr-nonascii.c.
38460         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
38461
38462 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
38463
38464         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
38465         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
38466         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
38467         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
38468
38469 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
38470
38471         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
38472         fcntl.
38473
38474 2010-07-06  Andreas Schwab  <schwab@redhat.com>
38475
38476         [BZ #11577]
38477         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
38478         dl_signal_cerror.
38479
38480 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
38481
38482         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
38483         _PC_PIPE_BUF using F_GETPIPE_SZ.
38484
38485 2010-07-05  Roland McGrath  <roland@redhat.com>
38486
38487         * manual/arith.texi (Rounding Functions): Fix rint description
38488         implicit in round description.
38489
38490 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
38491
38492         * elf/Makefile: Fix linking for a few tests to make recent linker
38493         happy.
38494
38495 2010-06-30  Andreas Schwab  <schwab@redhat.com>
38496
38497         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
38498         $(common-objpfx)libc_nonshared.a.
38499
38500 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
38501
38502         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
38503         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
38504         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38505         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38506         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
38507         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
38508         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38509         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
38511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
38512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
38513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
38515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
38517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
38518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
38519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
38520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
38522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
38524         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
38525         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
38526         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
38527         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
38528         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
38529         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
38530         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
38531         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
38532         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
38533         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
38534         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
38535         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
38536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
38537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
38538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
38539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
38540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
38541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
38542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
38543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
38544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
38545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
38546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
38547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
38548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
38549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
38550
38551 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
38552
38553         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
38554         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
38555         * string/memmove.c (memmove): Renamed to ...
38556         (MEMMOVE): ...this.  Default to memmove.
38557         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
38558         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
38559         (END_CHK): Define.
38560         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38561         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
38562         mempcpy-ssse3-back memmove-ssse3-back.
38563         * sysdeps/x86_64/multiarch/bcopy.S: New file .
38564         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
38565         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
38566         * sysdeps/x86_64/multiarch/memcpy.S: New file.
38567         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
38568         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
38569         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
38570         * sysdeps/x86_64/multiarch/memmove.c: New file.
38571         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
38572         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
38573         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
38574         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
38575         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
38576         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
38577         Define.
38578         (index_Fast_Copy_Backward): Define.
38579         (HAS_ARCH_FEATURE): Define.
38580         (HAS_FAST_REP_STRING): Define.
38581         (HAS_FAST_COPY_BACKWARD): Define.
38582
38583 2010-06-21  Andreas Schwab  <schwab@redhat.com>
38584
38585         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38586         Restore proper fallback handling.
38587
38588 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
38589
38590         [BZ #11701]
38591         * posix/group_member.c (__group_member): Correct checking loop.
38592
38593         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
38594         OOM in getpwuid_r correctly.  Return error number when the caller
38595         should return, otherwise -1.
38596         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
38597         call returning > 0 value.
38598         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
38599
38600 2010-06-07  Andreas Schwab  <schwab@redhat.com>
38601
38602         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
38603         libc_nonshared.a from targets in modules-names.
38604
38605 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
38606
38607         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
38608         requires it.
38609
38610 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
38611
38612         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
38613         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
38614         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
38615         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
38616
38617 2010-06-02  Andreas Schwab  <schwab@redhat.com>
38618
38619         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
38620
38621 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
38622
38623         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
38624         and F_GETPIPE_SZ.
38625         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
38626         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
38627         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
38628         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
38629         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
38630         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
38631
38632 2010-06-14  Roland McGrath  <roland@redhat.com>
38633
38634         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
38635
38636 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
38637
38638         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
38639         __REDIRECT followed by __THROW.
38640         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
38641         * posix/getopt.h (getopt): Likewise.
38642
38643 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38644
38645         * hurd/lookup-at.c (__file_name_lookup_at): Accept
38646         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
38647         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
38648         in AT_FLAGS.
38649         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
38650         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
38651
38652 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
38653
38654         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
38655
38656 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
38657
38658         [BZ #11640]
38659         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38660         Properly check family and model.
38661
38662 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
38663
38664         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
38665
38666 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
38667
38668         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
38669
38670 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
38671
38672         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
38673         symbol reference.
38674
38675 2010-05-19  Andreas Schwab  <schwab@redhat.com>
38676
38677         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
38678         symbol reference.
38679
38680 2010-05-21  Andreas Schwab  <schwab@redhat.com>
38681
38682         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
38683         and internal_recvmmsg.
38684         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
38685         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
38686         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
38687         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
38688
38689         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
38690         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
38691         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
38692
38693 2010-05-20  Andreas Schwab  <schwab@redhat.com>
38694
38695         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
38696
38697 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
38698
38699         POWER7 optimizations.
38700         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
38701         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
38702
38703 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
38704
38705         * version.h: Update for 2.13 development version.
38706
38707 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
38708
38709         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
38710         exceptions.  Return 0.
38711
38712 2010-05-07  Roland McGrath  <roland@redhat.com>
38713
38714         * elf/ldconfig.c (main): Add a const.
38715
38716 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
38717
38718         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
38719         (args_options): Add no-idn option.
38720         (ahosts_keys_int): Add idn_flags to ai_flags.
38721         (parse_option): Handle 'i' option to clear idn_flags.
38722
38723         * malloc/malloc.c (_int_free): Possible race in the most recently
38724         added check.  Only act on the data if no current modification
38725         happened.
38726
38727 See ChangeLog.17 for earlier changes.