Fix manual build warnings.
[jlayton/glibc.git] / ChangeLog
1 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
2
3         * manual/startup.texi: Add next, previous, and top entries for
4         the `Program Arguments' and `Environment Variables' nodes.
5
6 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
7
8         * manual/macros.texi: Add comments before MTASC-safety macros.
9
10 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
11
12         * manual/users.texi: Document MTASC-safety properties.
13
14 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
15
16         * manual/threads.texi (pthread_key_create, pthread_key_delete,
17         pthread_getspecific, pthread_setspecific): Format with
18         @deftypefun, and add @safety note.
19         * manual/signal.texi: Move comments that analyze the above
20         functions to their home place.
21
22 2014-02-03  Allan McRae  <allan@archlinux.org>
23
24         * po/sl.po: Update Slovenian translation from translation project.
25
26 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
27
28         * manual/time.texi (timegm): Add missing blank after @c.
29         Reported by Joseph Myers <joseph@codesourcery.com>.
30
31 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
32
33         * manual/check-safety.sh: New.
34         * manual/Makefile ($(objpfx)stamp-summary): Run it.
35
36 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
37
38         * manual/terminal.texi: Document MTASC-safety properties.
39
40 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
41
42         * manual/filesys.texi: Document MTASC-safety properties.
43
44 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
45
46         * manual/errno.texi: Document MTASC-safety properties.
47
48 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
49
50         * manual/intro.texi: Document safety identifiers and
51         conditionals.
52
53 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
54
55         * manual/string.texi (wcstok): Fix prototype.
56         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
57
58 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
59
60         * manual/time.texi: Document MTASC-safety properties.
61
62 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
63
64         * manual/string.texi: Document MTASC-safety properties.
65
66 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
67
68         * manual/threads.texi: Document MTASC-safety properties.
69
70 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
71
72         * manual/stdio.texi: Document MTASC-safety properties.
73
74 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
75
76         * manual/syslog.texi: Document MTASC-safety properties.
77
78 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
79
80         * manual/sysinfo.texi: Document MTASC-safety properties.
81
82 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
83
84         * manual/startup.texi: Document MTASC-safety properties.
85
86 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
87
88         * manual/socket.texi: Document MTASC-safety properties.
89
90 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
91
92         * manual/signal.texi: Document MTASC-safety properties.
93
94 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
95
96         * manual/setjmp.texi: Document MTASC-safety properties.
97
98 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
99
100         * manual/search.texi: Document MTASC-safety properties.
101
102 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
103
104         * manual/resource.texi: Document MTASC-safety properties.
105
106 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
107
108         * manual/process.texi: Document MTASC-safety properties.
109
110 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
111
112         * manual/platform.texi: Document MTASC-safety properties.
113
114 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
115
116         * manual/pipe.texi: Document MTASC-safety properties.
117
118 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
119
120         * manual/pattern.texi: Document MTASC-safety properties.
121
122 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
123
124         * manual/message.texi: Document MTASC-safety properties.
125
126 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
127
128         [BZ #12751]
129         * manual/memory.texi: Document MTASC-safety properties.
130
131 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
132
133         * manual/math.texi: Document MTASC-safety properties.
134
135 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
136
137         * manual/locale.texi: Document MTASC-safety properties.
138
139 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
140
141         * manual/llio.texi: Document MTASC-safety properties.
142
143 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
144
145         * manual/libdl.texi: New.
146
147 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
148
149         * manual/lang.texi: Document MTASC-safety properties.
150
151 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
152
153         * manual/job.texi: Document MTASC-safety properties.
154
155 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
156
157         * manual/getopt.texi: Document MTASC-safety properties.
158
159 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
160
161         * manual/ctype.texi: Document MTASC-safety properties.
162
163 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
164
165         [BZ #16046]
166         * csu/libc-tls.c (static_map): Remove variable.
167         (__libc_setup_tls): Use main executable's link map for TLS data.
168         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
169         casing for LM_ID_BASE and GL(dl_nns).
170         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
171         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
172         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
173         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
174         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
175         member.
176         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
177         l_phnum members.
178
179 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
180
181         * manual/debug.texi: Document MTASC-safety properties.
182
183 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
184
185         [BZ #16510]
186         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
187         of __x86_64__ when disabling x87 inline functions.
188
189 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
190
191         * manual/charset.texi: Document MTASC-safety properties.
192
193 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
194
195         * manual/crypt.texi: Document MTASC-safety properties.
196
197 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
198
199         * manual/conf.texi: Document MTASC-safety properties.
200
201 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
202
203         * manual/arith.texi: Document MTASC-safety properties.
204
205 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
206
207         * manual/argp.texi: Document MTASC-safety properties.
208
209 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
210
211         * manual/macros.texi: Introduce macros to document multi
212         thread, asynchronous signal and asynchronous cancellation
213         safety properties.
214         * manual/intro.texi: Introduce the properties themselves.
215
216 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
217
218         * sysdeps/sh/sh4/Makefile: New file.
219
220 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
221
222         * math/gen-libm-test.pl ($srcdir): New variable.
223         ($auto_input): Use it.
224
225 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
226
227         [BZ #16506]
228         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
229         access beyond array bounds when parsing netgroups file.
230
231         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
232         the old buffer before realloc.
233
234 2014-01-27  Allan McRae  <allan@archlinux.org>
235
236         * po/fr.po: Update French translation from translation project.
237
238 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
239
240         * sysdeps/sh/libm-test-ulps: Regenerate.
241
242 2014-01-24  David S. Miller  <davem@davemloft.net>
243
244         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
245
246 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
247
248         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
249         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
250
251 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
252
253         [BZ #16474]
254         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
255         string pointers after reallocation.
256
257 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
258
259         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
260         __SH4A__ instead of __SH_FPU_ANY__.
261
262 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
263
264         * sysdeps/sh/fpu_control.h: New file.
265         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
266         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
267         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
268         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
269         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
270         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
271         * sysdeps/sh/sys/ucontext.h: Remove.
272         * sysdeps/sh/sys: Remove directory.
273
274 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
275
276         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
277         s390/sys/ucontext.h.
278         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
279         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
280
281 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
282
283         [BZ #15605]
284         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
285
286 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
287
288         [BZ#16431]
289         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
290         Adjust the vDSO correctly for internal calls.
291         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
292
293 2014-01-20  Allan McRae  <allan@archlinux.org>
294
295         * po/ca.po: Update Catalan translation from translation project.
296
297 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
298
299         * sysdeps/s390/sotruss-lib.c: New file.
300
301 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
302
303         [BZ#16430]
304         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
305         (__GI___gettimeofday): Alias for a different internal symbol to avoid
306         local calls issues by not having a PLT stub required for IFUNC calls.
307         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
308
309 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
310
311         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
312         * math/test-fpucw-static.c: Likewise.
313
314 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
315
316         [BZ #16453]
317         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
318
319 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
320
321         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
322         implementation for powerpc.
323
324 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
325
326         [BZ #14782]
327         * sysdeps/posix/system.c (__libc_system): Do not enable
328         asynchronous cancellation.
329
330 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
331
332         [BZ #16427]
333         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
334         handling only for numbers special also in the IEEE case.
335
336 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
337
338         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
339
340 2014-01-11  Allan McRae  <allan@archlinux.org>
341
342         * po/bg.po: Update Bulgarian translation from translation project.
343
344         * po/de.po: Update German translation from translation project.
345
346 2014-01-10  Roland McGrath  <roland@hack.frob.com>
347
348         * sysdeps/generic/gcc-compat.h: New file.
349
350 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
351
352         * benchtests/asin-inputs: Correct slow inputs.
353         * benchtests/acos-inputs: Likewise.
354
355 2014-01-10  Allan McRae  <allan@archlinux.org>
356
357         * po:sv.po: Update Swedish translation from translation project.
358
359         * po/vi.po: Update Vietnamese translation from translation project.
360
361         * po/eo.po: Update Esperanto translation from translation project.
362
363         * po/cs.po: Update Czech translation from translation project.
364
365         * po/nl.po: Update Dutch translation from translation project.
366
367         * po/pl.po: Update Polish translation from translation project.
368
369         * po/ru.po: Update Russian translation from translation project.
370
371         * po/uk.po: Update Ukrainian translation from translation project.
372
373 2014-01-08  Brooks Moses  <bmoses@google.com>
374
375         * elf/dl-load.c: Fix comment typo.
376
377 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
378
379         * po/header.pot: Rename to...
380         * po/pot.header: ... this.
381         * po/Makefile: Use pot.header.
382
383 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
384             Maxim Kuvyrkov  <maxim@kugelworks.com>
385
386         [BZ #16394]
387         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
388         SRC and DEST against LEN.
389
390 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
391
392         [BZ #16414]
393         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
394         implementation.
395         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
396
397 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
398
399         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
400
401 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
402
403         [BZ #16408]
404         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
405         for large positive arguments.
406
407 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
408
409         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
410
411         * math/auto-libm-test-in: Mark various tests with
412         xfail-rounding:ldbl-128ibm.
413         * math/auto-libm-test-out: Regenerated.
414
415         [BZ #16407]
416         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
417         Increase overflow threshold.
418
419 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
420
421         [BZ #14286]
422         * stdio-common/vfprintf.c: Check for integer overflow.
423
424 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
425
426         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
427         the first argument and return value of __tls_get_addr_internal.
428
429 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
430
431         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
432         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
433
434 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
435
436         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
437         * sysdeps/s390/rtld-global-offsets.sym: New file.
438         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
439         GLIBC_2.19 symbol.
440         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
441         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
442         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
443         ... this.
444         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
445         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
446         ... this.
447         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
448         Regenerate.
449         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
450         Regenerate.
451         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
452         halfs of GPRs for high_gprs contexts.
453         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
454         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
455         field.
456         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
457         uc_flags field.
458         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
459         64 bit versions:
460         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
461         for high GPRs (uc_high_gprs) and for future extensions
462         (__reserved).
463         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
464         for future extensions (__reserved).
465         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
466         64 bit versions:
467         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
468         SC_HIGHGPRS offset definition.
469         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
470         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
471
472 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
473
474         * Versions.def: Add GLIBC_2.19 for libpthread.
475         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
476         siglongjmp for libpthread with GLIBC_2.19 symver.
477         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
478         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
479         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
480         * sysdeps/s390/__longjmp.c: New file.
481         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
482         * sysdeps/s390/longjmp.c: New file.
483         * sysdeps/s390/setjmp.S: New file.
484         * sysdeps/s390/sigjmp.S: New file.
485         * sysdeps/s390/v1-longjmp.c: New file.
486         * sysdeps/s390/v1-setjmp.h: New file.
487         * sysdeps/s390/v1-sigjmp.c: New file.
488         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
489         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
490         GLIBC_2.19 version.
491         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
492         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
493         versioned symbols for ____longjmp_chk.
494         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
495         Likewise.
496         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
497         Regenerate.
498         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
499         Regenerate.
500         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
501         Regenerate.
502         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
503         Regenerate.
504         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
505         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
506         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
507         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
508         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
509         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
510         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
511         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
512         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
513         * sysdeps/s390/rtld-__longjmp.c: New file.
514         * sysdeps/s390/rtld-setjmp.S: New file.
515
516 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
517
518         [BZ #16400]
519         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
520         Return -__logl (x) for small positive arguments without evaluating
521         a polynomial.
522
523 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
524
525         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
526         Rename to ...
527         (__ptrace_peeksiginfo_args): ... this.
528         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
529         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
530         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
531
532 2014-01-06  Allan McRae  <allan@archlinux.org>
533
534         * inet/netinet/in.h: Fix typo in comment.
535
536 2014-01-05  Andreas Jaeger  <aj@suse.de>
537
538         * sysdeps/i386/fpu/libm-test-ulps: Update.
539
540 2014-01-05  Allan McRae  <allan@archlinux.org>
541
542         * po/libc.pot: Regenerated.
543
544         * malloc/memusagestat.c: Fix gettext call formatting.
545
546 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
547
548         * nscd/nscd.c: Improve usage() output.
549
550 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
551
552         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
553         * sysdeps/unix/sysv/linux/configure: Regenerated.
554         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
555         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
556
557 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
558
559         [BZ #16390]
560         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
561         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
562
563 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
564
565         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
566         extra tokens at end of #undef directive.
567         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
568         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
569         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
570
571 2014-01-03  Andrew Hunter  <ahh@google.com>
572
573         * elf/dl-open.c (dl_open_worker): New comment.
574         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Use
575         atomic_compare_and_exchange_bool_acq
576         (_dl_allocate_static_tls): Block signals.
577         * elf/dl-tls.c (allocate_and_init): Return void.
578         (_dl_update_slotinfo): Block signals, use atomic update.
579
580 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
581
582         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
583
584         * math/auto-libm-test-in: Mark various tests with
585         xfail-rounding:ldbl-128ibm.
586         * math/auto-libm-test-out: Regenerated.
587
588 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
589
590         [BZ #16386]
591         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
592         numbers with subnormal high part when calculating exponent.
593
594         [BZ #16385]
595         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
596         fabs.
597
598         [BZ #16384]
599         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
600         M_LN2l.
601         (__ieee754_acoshl): Use __log1pl not __log1p.
602
603 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
604
605         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all,
606         ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry,
607         __failing_morecore, ptmalloc_init, dump_heap, new_heap, grow_heap,
608         heap_trim, _int_new_arena, get_free_list, reused_arena, arena_get2):
609         Convert to GNU style.
610         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init,
611         mem2mem_check, mem2chunk_check, top_check, realloc_check,
612         memalign_check, __malloc_set_state): Likewise.
613         * malloc/mallocbug.c (main): Likewise.
614         * malloc/malloc.c (__malloc_assert, malloc_init_state, free_perturb,
615         do_check_malloced_chunk, do_check_malloc_state, sysmalloc, systrim,
616         mremap_chunk, __libc_malloc, __libc_free, __libc_realloc, _mid_memalign,
617         _int_malloc, malloc_consolidate, _int_realloc, _int_memalign, mtrim,
618         musable, __libc_mallopt, __posix_memalign, malloc_info): Likewise.
619         * malloc/malloc.h: Likewise.
620         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook, mallochook,
621         memalignhook, reallochook, mabort): Likewise.
622         * malloc/mcheck.h: Likewise.
623         * malloc/memusage.c (update_data, me, malloc, realloc, calloc, free, mmap,
624         mmap64, mremap, munmap, dest): Likewise.
625         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
626         * malloc/morecore.c (__default_morecore): Likewise.
627         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
628         * malloc/obstack.c (_obstack_begin, _obstack_newchunk,
629         _obstack_allocated_p, obstack_free, _obstack_memory_used,
630         print_and_abort): Likewise.
631         * malloc/obstack.h: Likewise.
632         * malloc/set-freeres.c (__libc_freeres): Likewise.
633         * malloc/tst-mallocstate.c (main): Likewise.
634         * malloc/tst-mtrace.c (main): Likewise.
635         * malloc/tst-realloc.c (do_test): Likewise.
636
637 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
638
639         [BZ #16366]
640         * nscd/netgroupcache.c (do_notfound): New function.
641         (addgetnetgrentX): Use it.
642
643         [BZ # 16365]
644         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
645         NSS_STATUS_NOTFOUND.
646
647 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
648
649         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
651
652 2014-01-01  Allan McRae  <allan@archlinux.org>
653
654         * scripts/update-copyrights: Update configure input file suffix.
655
656         * NEWS: Update copyright year.
657         * catgets/gencat.c: Likewise.
658         * csu/version.c: Likewise.
659         * debug/catchsegv.sh: Likewise.
660         * debug/pcprofiledump.c: Likewise.
661         * debug/xtrace.sh: Likewise.
662         * elf/ldconfig.c: Likewise.
663         * elf/ldd.bash.in: Likewise.
664         * elf/pldd.c: Likewise.
665         * elf/sotruss.ksh: Likewise.
666         * elf/sprof.c: Likewise.
667         * iconv/iconv_prog.c: Likewise.
668         * iconv/iconvconfig.c: Likewise.
669         * locale/programs/locale.c: Likewise.
670         * locale/programs/localedef.c: Likewise.
671         * login/programs/pt_chown.c: Likewise.
672         * malloc/memusage.sh: Likewise.
673         * malloc/memusagestat.c: Likewise.
674         * malloc/mtrace.pl: Likewise.
675         * manual/libc.texinfo: Likewise.
676         * nscd/nscd.c: Likewise.
677         * nss/getent.c: Likewise.
678         * nss/makedb.c: Likewise.
679         * posix/getconf.c: Likewise.
680         * scripts/test-installation.pl: Likewise.
681
682         * All files with FSF copyright notices: Update copyright dates
683         using scripts/update-copyrights.
684         * intl/plural.c: Regenerated.
685         * locale/programs/charmap-kw.h: Likewise.
686         * locale/programs/locfile-kw.h: Likewise.
687
688 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
689
690         * sysdeps/unix/sysv/linux/configure: Regenerated.
691         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
692         the linux/fanotify.h header.
693         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
694         HAVE_LINUX_FANOTIFY_H is defined.
695
696 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
697
698         * benchtests/cos-inputs: New inputs.
699         * benchtests/sin-inputs: Likewise.
700
701         * benchtests/atan-inputs: New inputs. Fix name of multiple
702         precision fallback inputs.
703
704         * benchtests/atanh-inputs: New inputs.
705         * benchtests/tanh-inputs: Likewise.
706
707         * benchtests/acosh-inputs: New inputs.
708         * benchtests/asinh-inputs: Likewise.
709
710         * benchtests/cosh-inputs: New inputs.
711         * benchtests/sinh-inputs: Likewise.
712
713         * benchtests/acos-inputs: Add more inputs.
714         * benchtests/asin-inputs: Likewise.
715
716 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
717
718         [BZ #16375]
719         * manual/arith.texi: Fix spelling.
720         * manual/charset.texi: Likewise.
721         * manual/errno.texi: Likewise.
722         * manual/filesys.texi: Likewise.
723         * manual/lang.texi: Likewise.
724         * manual/llio.texi: Likewise.
725         * manual/locale.texi: Likewise.
726         * manual/message.texi: Likewise.
727         * manual/resource.texi: Likewise.
728         * manual/search.texi: Likewise.
729         * manual/setjmp.texi: Likewise.
730         * manual/stdio.texi: Likewise.
731         * manual/string.texi: Likewise.
732         * manual/sysinfo.texi: Likewise.
733         * manual/time.texi: Likewise.
734
735 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
736
737         * po/sl.po: New file.
738
739 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
740
741         * .gitignore: Add core/.gdbinit/.gdb_history.
742
743 2013-12-27  Allan McRae  <allan@archlinux.org>
744
745         [BZ #16369]
746         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
747         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
748
749 2013-12-24  Brooks Moses  <bmoses@google.com>
750
751         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
752         all compilers that claim C++98 compliance, not just GCC.
753         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
754         Likewise.
755
756 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
757
758         * NEWS: Restore accidentally deleted bug-fix entries.
759
760 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
761             Ondřej Bílka  <neleai@seznam.cz>
762
763         [BZ #15073]
764         * malloc/malloc.c (_int_free): Perform sanity check only if we
765         have_lock.
766
767 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
768
769         [BZ #12986]
770         * manual/stdio.texi (String Input Conversions): Clarify that character
771         classes are not supported.
772
773 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
774
775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
776
777 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
778
779         [BZ #16337]
780         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
781         Calculate results for small negative arguments directly rather
782         than using reflection formula with special underflow handling.
783
784         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
785         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
786         sysdeps/unix/bsd/bsd4.4/syscalls.list.
787         (fchflags): Likewise.
788         (revoke): Likewise.
789         (setlogin): Likewise.
790         (sigaltstack): Likewise.
791         (wait4): Likewise.
792         (sigblock): Remove.
793         (sigsetmask): Likewise.
794         (wait3): Likewise.
795         (waitpid): Likewise.
796         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
797         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
798         file.
799         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
800         * sysdeps/unix/bsd/Makefile: ... here.
801         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
802         * sysdeps/unix/bsd/Versions: ... here.
803         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
804         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
805         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
806         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
807         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
808         * sysdeps/unix/bsd/sigblock.c: ... here.
809         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
810         * sysdeps/unix/bsd/sigsetmask.c: ... here.
811         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
812         * sysdeps/unix/bsd/sigvec.c: ... here.
813         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
814         * sysdeps/unix/bsd/tcdrain.c: ... here.
815         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
816         * sysdeps/unix/bsd/tcgetattr.c: ... here.
817         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
818         * sysdeps/unix/bsd/tcsetattr.c: ... here.
819         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
820         * sysdeps/unix/bsd/wait.c: ... here.
821         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
822         * sysdeps/unix/bsd/wait3.c: ... here.
823         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
824         * sysdeps/unix/bsd/waitpid.c: ... here.
825
826 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
827
828         [BZ #16356]
829         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
830         round-to-nearest for [!USE_AS_EXPM1L].
831         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
832         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
833         more tests of exp and exp10.  Expect some exp10 tests to miss
834         exceptions or fail in directed rounding modes.
835         * math/auto-libm-test-out: Regenerated.
836         * math/libm-test.inc (exp10_tonearest_test_data): New array.
837         (exp10_test_tonearest): New function.
838         (exp10_towardzero_test_data): New array.
839         (exp10_test_towardzero): New function.
840         (exp10_downward_test_data): New array.
841         (exp10_test_downward): New function.
842         (exp10_upward_test_data): New array.
843         (exp10_test_upward): New function.
844         (main): Call the new functions.
845         * sysdeps/i386/fpu/libm-test-ulps: Update.
846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
847
848 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
849
850         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
851         asinh, atan, atan2, atanh, cbrt, cos and cosh.
852         * math/auto-libm-test-out: Regenerated.
853         * math/libm-test.inc (acosh_test_data): Add more tests.
854         (atanh_test_data): Likewise.
855         (ceil_test_data): Likewise.
856         (copysign_test_data): Likewise.
857         * sysdeps/i386/fpu/libm-test-ulps: Update.
858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
859
860         * timezone/checktab.awk: Update from tzcode 2013i.
861         * timezone/private.h: Likewise.
862         * timezone/scheck.c: Likewise.
863         * timezone/tzfile.h: Likewise.
864         * timezone/tzselect.ksh: Likewise.
865         * timezone/zdump.c: Likewise.
866         * timezone/zic.c: Likewise.
867
868         * math/auto-libm-test-in: Add tests of cpow.
869         * math/auto-libm-test-out: Regenerated.
870         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
871         * * math/gen-auto-libm-tests.c (func_calc_method): Add value
872         mpc_cc_c.
873         (func_calc_desc): Add mpc_cc_c union field.
874         (test_functions): Add cpow.
875         (special_fill_2pi): New function.
876         (special_real_inputs): Add 2pi.
877         (calc_generic_results): Handle mpc_cc_c.
878         * sysdeps/i386/fpu/libm-test-ulps: Update.
879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
880
881         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
882         csqrt, ctan and ctanh.
883         * math/auto-libm-test-out: Regenerated.
884         * math/libm-test.inc (TEST_COND_x86_64): New macro.
885         (TEST_COND_x86): Likewise.
886         (ccos_test_data): Use AUTO_TESTS_c_c.
887         (ccosh_test_data): Likewise.
888         (cexp_test_data): Likewise.
889         (clog_test_data): Likewise.
890         (csqrt_test_data): Likewise.
891         (ctan_test_data): Likewise.
892         (ctan_tonearest_test_data): Likewise.
893         (ctan_towardzero_test_data): Likewise.
894         (ctan_downward_test_data): Likewise.
895         (ctan_upward_test_data): Likewise.
896         (ctanh_test_data): Likewise.
897         (ctanh_tonearest_test_data): Likewise.
898         (ctanh_towardzero_test_data): Likewise.
899         (ctanh_downward_test_data): Likewise.
900         (ctanh_upward_test_data): Likewise.
901         * math/gen-auto-libm-tests.c (func_calc_method): Add value
902         mpc_c_c.
903         (func_calc_desc): Add mpc_c_c union field.
904         (FUNC_mpc_c_c): New macro.
905         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
906         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
907         ctanh.
908         (special_fill_min_subnorm_p120): New function.
909         (special_real_inputs): Add min_subnorm_p120.
910         (calc_generic_results): Handle mpc_c_c.
911         * sysdeps/i386/fpu/libm-test-ulps: Update.
912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
913
914 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
915
916         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin,
917         do_sin_slow): New functions.
918         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2,
919         cslow2, csloww1, csloww2): Use the new functions.
920
921         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
922         Use M to change sign of result instead of X.  Assume X is
923         positive.
924         (csloww1): Likewise.
925         (__sin): Adjust.
926         (__cos): Adjust.
927
928         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
929         arguments A and DA.
930         (__sin): Adjust.
931         (__cos): Likewise.
932
933         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
934         (__cos): Likewise.
935         (sloww1): Don't adjust sign of DX.
936         (csloww1): Likewise.
937         (sloww2): Use X directly and don't adjust sign of DX.
938         (csloww2): Likewise.
939
940 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
941
942         * math/auto-libm-test-in: Add tests of cabs and carg.
943         * math/auto-libm-test-out: Regenerated.
944         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
945         (carg_test_data): Likewise.
946         * math/gen-auto-libm-tests.c (func_calc_method): Add value
947         mpc_c_f.
948         (func_calc_desc): Add mpc_c_f union field.
949         (test_functions): Add cabs and carg.
950         (calc_generic_results): Handle mpc_c_f.
951
952         * sysdeps/powerpc/powerpc32/libgcc-compat.S
953         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
954         as a macro and a compat symbol.
955         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
956         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
957         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
958         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
959         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
960         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
961         not use .hidden.
962         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
963         Likewise.
964         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
965         Likewise.
966         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
967         Likewise.
968         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
969         Likewise.
970         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
971         Likewise.
972         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
973         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
974         from GLIBC_2.3.2.
975
976 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
977
978         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
979
980 2013-12-19  Paul Pluzhnikov  <ppluzhnikov@google.com>
981
982         * elf/dl-misc.c (ptr_to_signal_safe_allocator_header): New function.
983         (__signal_safe_memalign, __signal_safe_free): Use it.
984         (__signal_safe_realloc): Likewise.
985
986 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
987
988         * manual/texinfo.tex: Update to version 2013-11-26.10 with
989         trailing whitespace removed.
990         * scripts/config.guess: Update to version 2013-11-29.
991         * scripts/config.sub: Update to version 2013-10-01.
992
993         * math/auto-libm-test-in: Add tests of sincos.
994         * math/auto-libm-test-out: Regenerated.
995         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
996         * math/gen-auto-libm-tests.c (func_calc_method): Add value
997         mpfr_f_11.
998         (func_calc_desc): Add mpfr_f_11 union field.
999         (test_functions): Add sincos.
1000         (calc_generic_results): Handle mpfr_f_11.
1001         * sysdeps/i386/fpu/libm-test-ulps: Update.
1002         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1003
1004 2013-12-19  Andreas Schwab  <schwab@suse.de>
1005
1006         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
1007         CALL_MCOUNT.
1008         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
1009         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
1010         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
1011
1012 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
1013
1014         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
1015         * sysdeps/i386/fpu/libm-test-ulps: Update.
1016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1017
1018         [BZ #16293]
1019         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
1020         round-to-nearest mode when using frndint.
1021         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
1022         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
1023         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
1024         Likewise.
1025         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
1026         sinh test to fail.
1027         * math/auto-libm-test-out: Regenerated.
1028         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
1029         (TEST_COND_x86): Likewise.
1030         (expm1_tonearest_test_data): New array.
1031         (expm1_test_tonearest): New function.
1032         (expm1_towardzero_test_data): New array.
1033         (expm1_test_towardzero): New function.
1034         (expm1_downward_test_data): New array.
1035         (expm1_test_downward): New function.
1036         (expm1_upward_test_data): New array.
1037         (expm1_test_upward): New function.
1038         (main): Run the new test functions.
1039         * sysdeps/i386/fpu/libm-test-ulps: Update.
1040         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1041
1042         * include/features.h: Update comment documenting feature test
1043         macros.  Mention _DEFAULT_SOURCE in comment.
1044         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
1045         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
1046         _BSD_SOURCE and _SVID_SOURCE.
1047         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
1048         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
1049         !_SVID_SOURCE]: Likewise.
1050         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1051         (__USE_POSIX_IMPLICITLY): Define.
1052         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1053         (_POSIX_SOURCE): Undefine and redefine.
1054         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1055         (_POSIX_C_SOURCE): Likewise.
1056         * manual/creature.texi (_DEFAULT_SOURCE): Document.
1057         (Feature Test Macros): Update documentation of default features.
1058
1059 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1060
1061         * benchtests/Makefile: Add bench-strtok.
1062         * benchtests/bench-strtok.c: New file: strtok benchtest.
1063
1064 2013-12-19  Allan McRae  <allan@archlinux.org>
1065
1066         * manual/install.texi: Suppress menu for plain text output.
1067         * INSTALL: Regenerated.
1068
1069 2013-12-18  Andrew Hunter  <ahh@google.com>
1070
1071         * sysdeps/generic/ldsodefs.h (__signal_safe_memalign): New prototype.
1072         (__signal_safe_malloc, __signal_safe_free): Likewise.
1073         (__signal_safe_realloc, __signal_safe_calloc): Likewise.
1074         * elf/dl-misc.c (__signal_safe_allocator_header): New struct.
1075         (__signal_safe_memalign, __signal_safe_malloc): New function.
1076         (__signal_safe_free, __signal_safe_realloc): Likewise.
1077         (__signal_safe_calloc): Likewise.
1078         * elf/dl-tls.c (allocate_dtv, _dl_clear_dtv): Call signal-safe
1079         functions.
1080         (_dl_deallocate_tls, _dl_update_slotinfo): Likewise.
1081
1082 2013-12-18  Andrew Hunter  <ahh@google.com>
1083
1084         * elf/Versions (ld): Add _dl_clear_dtv.
1085         * sysdeps/generic/ldsodefs.h (_dl_clear_dtv): New prototype.
1086         * elf/dl-tls.c (_dl_clear_dtv): New function.
1087         * nptl/allocatestack.c (get_cached_stack): Call _dl_clear_dtv.
1088
1089 2013-12-18  Andrew Hunter  <ahh@google.com>
1090
1091         * sysdeps/generic/ldsodefs.h (_dl_mask_all_signals): New prototype.
1092         (_dl_unmask_signals): Likewise.
1093         * sysdeps/mach/hurd/dl-sysdep.h (_dl_mask_all_signals): New stub.
1094         (_dl_unmask_all_signals): Likewise.
1095         * sysdeps/unix/sysv/linux/dl-sysdep.h (_dl_mask_all_signals): New prototype.
1096         (_dl_unmask_all_signals): Likewise.
1097         * sysdeps/unix/sysv/linux/dl-sysdep.c (_dl_mask_all_signals): New function.
1098         (_dl_unmask_signals): Likewise.
1099
1100 2013-12-18  Brooks Moses  <bmoses@google.com>
1101
1102         [BZ #15846]
1103         * misc/getauxval.c: Include errno.h.
1104         (__getauxval): Set errno to ENOENT if the requested type is not
1105         found.
1106         * misc/sys/auxv.h (getauxval): Document that it may set errno;
1107         don't declare with __attribute_const__.
1108         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
1109         * manual/startup.texi: Document that getauxval sets errno.
1110
1111 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
1112
1113         * math/auto-libm-test-in: Add tests of jn and yn.
1114         * math/auto-libm-test-out: Regenerated.
1115         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
1116         (yn_test_data): Likewise.
1117         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1118         mpfr_if_f.
1119         (func_calc_desc): Add mpfr_if_f union field.
1120         (FUNC_mpfr_if_f): New macro.
1121         (test_functions): Add jn and yn.
1122         (calc_generic_results): Assert type of second input for
1123         mpfr_ff_f.  Handle mpfr_if_f.
1124         (output_for_one_input_case): Disable all checking for arguments
1125         fitting floating-point types in case of an integer argument.
1126         * sysdeps/i386/fpu/libm-test-ulps: Update.
1127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1128
1129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
1130         Don't expect fegetround reference in libm.so.
1131
1132 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1133
1134         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
1135         $(config-cflags-nofma).
1136
1137 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
1138
1139         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
1140         * math/auto-libm-test-out: Regenerated.
1141
1142         [BZ #16338]
1143         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
1144         to determine exponent and adjust argument to have exponent of -1.
1145         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
1146         log2.
1147         * math/auto-libm-test-out: Regenerated.
1148         * sysdeps/i386/fpu/libm-test-ulps: Update.
1149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1150
1151 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
1152
1153         * manual/probes.texi: Remove cases when per-thread arenas are
1154         disabled.
1155
1156 2013-12-18  Andreas Schwab  <schwab@suse.de>
1157
1158         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
1159         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
1160         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
1161         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
1162         * sysdeps/i386/i686/multiarch/Makefile: Update.
1163         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
1164
1165 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1166
1167         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
1168         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
1169
1170 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1171
1172         Support TZ transition times < 00:00:00.
1173         This is needed for version-3 tz-format files; it supports time
1174         stamps past 2037 for America/Godthab (the only entry in the tz
1175         database for which this change is relevant).
1176         * manual/time.texi (TZ Variable): Document transition times
1177         from -167:59:59 through -00:00:01.
1178         * time/tzset.c (tz_rule): Time of day is now signed.
1179         (__tzset_parse_tz): Parse negative time of day.
1180
1181         Document TZ transition times >= 25:00:00.
1182         * manual/time.texi (TZ Variable): Document transition times from
1183         25:00:00 through 167:59:59.  These are already supported, and this
1184         support will help with version-3 tz-format files.
1185
1186         * manual/time.texi (TZ Variable): Modernize North America example
1187         to reflect current (i.e., 2007-and-later) daylight saving rules.
1188
1189         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
1190
1191 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1192
1193         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
1194         * sysdeps/unix/bsd/bits/stat.h: Likewise.
1195         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
1196         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
1197         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
1198         * sysdeps/unix/bsd/bsdstat.h: Likewise.
1199         * sysdeps/unix/bsd/clock.c: Likewise.
1200         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
1201         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
1202         * sysdeps/unix/bsd/init-posix.c: Likewise.
1203         * sysdeps/unix/bsd/poll.c: Likewise.
1204         * sysdeps/unix/bsd/ptsname.c: Likewise.
1205         * sysdeps/unix/bsd/seekdir.c: Likewise.
1206         * sysdeps/unix/bsd/setegid.c: Likewise.
1207         * sysdeps/unix/bsd/seteuid.c: Likewise.
1208         * sysdeps/unix/bsd/setgid.c: Likewise.
1209         * sysdeps/unix/bsd/setrgid.c: Likewise.
1210         * sysdeps/unix/bsd/setruid.c: Likewise.
1211         * sysdeps/unix/bsd/setsid.c: Likewise.
1212         * sysdeps/unix/bsd/setuid.c: Likewise.
1213         * sysdeps/unix/bsd/sigaction.c: Likewise.
1214         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
1215         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
1216         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
1217         * sysdeps/unix/bsd/telldir.c: Likewise.
1218         * sysdeps/unix/bsd/times.c: Likewise.
1219         * sysdeps/unix/bsd/usleep.c: Likewise.
1220
1221         * misc/Makefile (install-lib): Remove libbsd-compat.a.
1222         ($(objpfx)libbsd-compat.a): Remove rule.
1223
1224         * include/features.h (__FAVOR_BSD): Do not define.
1225         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
1226         features conflicting with POSIX.
1227         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
1228         (_BSD_SOURCE): Remove description of not being a subset of other
1229         feature test macros.
1230         * manual/job.texi (getpgrp): Do not document BSD version.
1231         (getpgid): Do not document by reference to BSD getpgrp.
1232         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
1233         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
1234         * signal/signal.h [__FAVOR_BSD]: Likewise.
1235         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
1236         instead of making contents conditional on [__FAVOR_BSD].
1237         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
1238
1239 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1240
1241         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1242
1243 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1244
1245         [BZ #16314]
1246         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
1247         values below 2**-450, not 2**-500.
1248         * math/auto-libm-test-in: Don't allow spurious underflow from
1249         hypot.
1250         * math/auto-libm-test-out: Regenerated.
1251
1252         [BZ #16316]
1253         [BZ #16330]
1254         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
1255         values of ha and hb and sort them after adjusting subnormal
1256         arguments.
1257         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
1258         Likewise.
1259         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
1260         values of ea and eb and sort them after adjusting subnormal
1261         arguments.
1262         * math/auto-libm-test-in: Do not expect some hypot tests of
1263         subnormals to fail.  Add more hypot tests.
1264         * math/auto-libm-test-out: Regenerated.
1265
1266 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1267
1268         [BZ #13304]
1269         * sysdeps/sh/s_fma.c: New file.
1270         * sysdeps/sh/s_fmaf.c: New file.
1271         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
1272         version.
1273         * sysdeps/sh/Implies: Add sh/soft-fp.
1274
1275 2013-12-16  Roland McGrath  <roland@hack.frob.com>
1276
1277         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
1278         level of indirection to members `objname', `errstring', `malloced'.
1279         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
1280         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
1281         it as the __longjmp argument (just pass 1 instead).
1282         (_dl_catch_error): Initialize C with argument pointers and address of
1283         volatile local ERRCODE rather than copying values out of C at return.
1284
1285 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
1286
1287         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
1288         * math/auto-libm-test-out: Regenerated.
1289         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
1290         (hypot_test_data): Likewise.
1291         (pow_test_data): Likewise.
1292         (pow_tonearest_test_data): Likewise.
1293         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1294         mpfr_ff_f.
1295         (func_calc_desc): Add mpfr_ff_f union field.
1296         (FUNC_mpfr_ff_f): New macro.
1297         (test_functions): Add atan2, hypot and pow.
1298         (special_fill_min): New function.
1299         (special_fill_minus_min): Likewise.
1300         (special_fill_min_subnorm): Likewise.
1301         (special_fill_minus_min_subnorm): Likewise.
1302         (special_real_inputs): Add min, -min, min_subnorm and
1303         -min_subnorm.
1304         (calc_generic_results): Handle mpfr_ff_f.
1305         * sysdeps/i386/fpu/libm-test-ulps: Update.
1306         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1307
1308 2013-12-16  Will Newton  <will.newton@linaro.org>
1309
1310         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
1311         (Aligned Memory Blocks): Add documentation for aligned_alloc
1312         and suggest it as an alternative to posix_memalign.
1313         (Hooks for Malloc): Document __memalign_hook is also called
1314         for aligned_alloc.  (Summary of Malloc): Add summary for
1315         aligned alloc.  Document __memalign_hook is also called
1316         for aligned_alloc.
1317
1318 2013-12-16  Will Newton  <will.newton@linaro.org>
1319
1320         * manual/memory.texi (Malloc Examples): Clarify default
1321         alignment documentation.  Suggest posix_memalign rather
1322         than memalign or valloc.
1323         (Aligned Memory Blocks): Remove suggestion to use memalign
1324         or valloc.  Remove obsolete comment about BSD.
1325         Document memalign errno values and mark the function obsolete.
1326         Document posix_memalign returned error codes.  Mark valloc
1327         as obsolete.  (Hooks for Malloc): __memalign_hook is also
1328         called for posix_memalign and valloc.
1329         (Summary of Malloc): Add posix_memalign to function summary.
1330         __memalign_hook is also called for posix_memalign and valloc.
1331
1332 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1333
1334         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
1335         TAYLOR_SIN.
1336         (__sin): Adjust.
1337         (__cos): Likewise.
1338         (sloww): Use mynumber union.  Expand ternary operator into
1339         if-else statements.
1340         (cslow): use mynumber union.
1341
1342 2013-12-16  Allan McRae  <allan@archlinux.org>
1343
1344         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
1345         * configure: Regenerated.
1346
1347         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
1348
1349         [BZ #14120]
1350         * configure.ac: Added --enable-maintainer-mode. Check for
1351         autoconf when enabled.
1352         * configure: Regenerated.
1353
1354         * nscd/nscd.service: New file.
1355         * nscd/nscd.tmpfiles: New file.
1356
1357 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
1358
1359         [BZ #12100]
1360         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
1361         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
1362         * sysdeps/x86_64/multiarch/strstr.c: ... here.
1363         (strstr): Add __strstr_sse2_unaligned ifunc.
1364         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
1365         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
1366         (strcasestr): Remove __strcasestr_sse42 ifunc.
1367         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
1368         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1369         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1370
1371 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1372
1373         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
1374         * sysdeps/sh/bits/fenv.h: ... here.
1375         * sysdeps/sh/sh4/fpu/bits: Remove directory.
1376
1377 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1378
1379         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
1380
1381 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1382
1383         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
1384         hypotf multiarch implementations.
1385         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
1386         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
1387         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
1388         multiarch hypot for PPC64.
1389         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
1390         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
1391         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
1392         multiarch hypotf for PPC64.
1393
1394 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1395
1396         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
1397         modff multiarch implementations.
1398         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
1399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
1400         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
1401         multiarch modf for PPC64.
1402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
1403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
1404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
1405         multiarch modff for PPC64.
1406
1407 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1408
1409         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
1410         and logl multiarch implementations.
1411         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
1412         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
1413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
1414         multiarch logb for PPC64.
1415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
1416         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
1417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
1418         multiarch logb for PPC64.
1419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
1420         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
1421         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
1422         multiarch logb for PPC64.
1423
1424 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1425
1426         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
1427         isinff multiarch implementation.
1428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
1429         file.
1430         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
1431         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
1432         multiarch isinf for PPC64.
1433         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
1434         file.
1435         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
1436         multiarch isinff for PPC64.
1437
1438 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1439
1440         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
1441         finitef multiarch implementation.
1442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
1443         file.
1444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
1445         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
1446         multiarch finite for PPC64.
1447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
1448         file.
1449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
1450         multiarch finitef for PPC64.
1451
1452 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1453
1454         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
1455         lrint multiarch implementation.
1456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
1457         file.
1458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
1459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
1460         multiarch llrint for PPC64.
1461         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
1462         multiarch lrint for PPC64.
1463
1464 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1465
1466         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
1467         copysignf multiarch implementation.
1468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
1469         file.
1470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
1471         file.
1472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
1473         multiarch copysign for PPC64.
1474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
1475         multiarch copysignf for PPC64.
1476
1477 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1478
1479         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
1480         multiarch implementation.
1481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
1482         file.
1483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
1484         file.
1485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
1486         file.
1487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
1488         file.
1489         multiarch llround for PPC64.
1490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
1491         multiarch trunc for PPC64.
1492         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
1493         multiarch truncf for PPC64.
1494
1495 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1496
1497         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
1498         multiarch implementation.
1499         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
1500         file.
1501         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
1502         file.
1503         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
1504         file.
1505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
1506         file.
1507         multiarch llround for PPC64.
1508         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
1509         multiarch round for PPC64.
1510         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
1511         multiarch roundf for PPC64.
1512
1513 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1514
1515         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
1516         multiarch implementation.
1517         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
1518         file.
1519         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
1520         file.
1521         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
1522         file.
1523         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
1524         file.
1525         multiarch llround for PPC64.
1526         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
1527         multiarch floor for PPC64.
1528         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
1529         multiarch floorf for PPC64.
1530
1531 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1532
1533         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
1534         multiarch implementation.
1535         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
1536         file.
1537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
1538         file.
1539         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
1540         file.
1541         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
1542         file.
1543         multiarch llround for PPC64.
1544         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
1545         multiarch ceil for PPC64.
1546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
1547         multiarch ceilf for PPC64.
1548
1549 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1550
1551         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
1552         multiarch implementation.
1553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
1554         file.
1555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
1556         file.
1557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
1558         file.
1559         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
1560         multiarch llround for PPC64.
1561         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
1562         multiarch lround for PPC64.
1563
1564 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1565
1566         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
1567         multiarch implementation.
1568         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
1569         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
1570         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
1571         file.
1572         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
1573         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
1574         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
1575         multiarch isnan for PPC64.
1576         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
1577         multiarch isnanf for PPC64.
1578
1579 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1580
1581         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
1582         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
1583         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
1584         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
1585         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
1586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
1587
1588 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1589
1590         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
1591         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
1592         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1593         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1594
1595 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1596
1597         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
1598         multiarch implementations.
1599         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1600         (__libc_ifunc_impl_list): Likewise.
1601         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
1602         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
1603         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
1604         multiarch stpcpy for PPC64.
1605
1606 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1607
1608         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
1609         multiarch implementations.
1610         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1611         (__libc_ifunc_impl_list): Likewise.
1612         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
1613         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
1614         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
1615         multiarch strcpy for PPC64.
1616
1617 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1618
1619         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
1620         redefine function name.
1621         (_wordcopy_fwd_dest_aligned): Likewise.
1622         (_wordcopy_bwd_aligned): Likewise.
1623         (_wordcopy_bwd_dest_aligned): Likewise.
1624         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
1625         multiarch implementations.
1626         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1627         (__libc_ifunc_impl_list): Likewise.
1628         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
1629         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
1630         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
1631         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
1632         multiarch wcscpy for PPC64.
1633
1634 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1635
1636         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
1637         multiarch implementations.
1638         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1639         (__libc_ifunc_impl_list): Likewise.
1640         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
1641         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
1642         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
1643         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
1644         multiarch wcscpy for PPC64.
1645
1646 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1647
1648         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
1649         multiarch implementations.
1650         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1651         (__libc_ifunc_impl_list): Likewise.
1652         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
1653         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
1654         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
1655         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
1656         multiarch wcsrchr for PPC64.
1657
1658 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1659
1660         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
1661         multiarch implementations.
1662         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1663         (__libc_ifunc_impl_list): Likewise.
1664         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
1665         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
1666         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
1667         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
1668         multiarch wcschr for PPC64.
1669
1670 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1671
1672         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
1673         multiarch implementations.
1674         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1675         (__libc_ifunc_impl_list): Likewise.
1676         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
1677         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
1678         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
1679         multiarch strchrnul for PPC64.
1680
1681 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1682
1683         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
1684         implementations.
1685         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1686         (__libc_ifunc_impl_list): Likewise.
1687         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
1688         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
1689         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
1690         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
1691         strchr for PPC64.
1692
1693 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1694
1695         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
1696         implementations.
1697         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1698         (__libc_ifunc_impl_list): Likewise.
1699         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
1700         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
1701         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
1702         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
1703         strncmp for PPC64.
1704
1705 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1706
1707         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
1708         multiarch implementations.
1709         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1710         (__libc_ifunc_impl_list): Likewise.
1711         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
1712         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
1713         strncasecmp for PPC64.
1714         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
1715         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
1716         multiarch strncasecmp_l for PPC64.
1717
1718 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1719
1720         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
1721         multiarch implementations.
1722         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1723         (__libc_ifunc_impl_list): Likewise.
1724         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
1725         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
1726         multiarch strcasecmp for PPC64.
1727         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
1728         file.
1729         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
1730         multiarch strcasecmp_l for PPC64.
1731
1732 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1733
1734         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
1735         implementations.
1736         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1737         (__libc_ifunc_impl_list): Likewise.
1738         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
1739         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
1740         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
1741         strnlen for PPC64.
1742
1743 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1744
1745         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
1746         implementations.
1747         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1748         (__libc_ifunc_impl_list): Likewise.
1749         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
1750         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
1751         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
1752         strlen for PPC64.
1753
1754 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1755
1756         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
1757         implementations.
1758         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1759         (__libc_ifunc_impl_list): Likewise.
1760         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
1761         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
1762         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
1763         rawmemrchr for PPC64.
1764
1765 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1766
1767         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
1768         implementation.
1769         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1770         (__libc_ifunc_impl_list): Likewise.
1771         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
1772         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
1773         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
1774         memrchr for PPC64.
1775
1776 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1777
1778         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
1779         implementation.
1780         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1781         (__libc_ifunc_impl_list): Likewise.
1782         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
1783         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
1784         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
1785         memchr for PPC64.
1786
1787 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1788
1789         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
1790         implementation.
1791         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1792         (__libc_ifunc_impl_list): Likewise.
1793         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
1794         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
1795         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
1796         mempcpy for PPC64.
1797
1798 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1799
1800         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
1801         avoid cretion of __bzero symbol.
1802         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
1803         Likewise.
1804         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
1805         Likewise.
1806         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
1807         Likewise.
1808         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
1809         multiarch implementations.
1810         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1811         (__libc_ifunc_impl_list): Likewise.
1812         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
1813         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
1814         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
1815         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
1816         bzero for PPC32.
1817         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
1818         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
1819         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
1820         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
1821         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
1822         memset for PPC64.
1823         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
1824
1825 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1826
1827         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
1828         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
1829         implementations.
1830         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1831         (__libc_ifunc_impl_list): Likewise.
1832         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
1833         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
1834         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
1835         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
1836         memcmp for PPC64.
1837
1838 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1839
1840         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
1841         multiarch for POWER/PPC64.
1842         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1843         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
1844         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
1845         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
1846         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
1847         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
1848         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
1849         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
1850         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
1851         memcpy for PPC64.
1852
1853 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1854
1855         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
1856         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
1857         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
1858         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
1859         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
1860         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
1861         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
1862         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
1863         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
1864         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
1865         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
1866         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
1867         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
1868         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
1869         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
1870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
1871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
1872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
1873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
1874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
1875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
1876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
1877
1878 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1879
1880         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
1881
1882 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1883
1884         * benchtests/Makefile (bench): Add exp2 and log2.
1885         (LDLIBS-bench-exp2): Add -lm.
1886         (LDLIBS-bench-log2): Likewise.
1887         * benchtests/exp2-inputs: New inputs file.
1888         * benchtests/log2-inputs: New inputs file.
1889         * benchtests/log-inputs: Add new inputs.
1890         * benchtests/tan-inputs: Likewise.
1891
1892 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1893
1894         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
1895         definition...
1896         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
1897         csloww1, csloww2): ... from here.
1898
1899         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
1900         instead of structures.
1901         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
1902         (POLYNOMIAL): Likewise.
1903         (TAYLOR_SLOW): Likewise.
1904         (__sin): Likewise.
1905         (__cos): Likewise.
1906         (slow1): Likewise.
1907         (slow2): Likewise.
1908         (sloww): Likewise.
1909         (sloww1); Likewise.
1910         (sloww2): Likewise.
1911         (bsloww1): Likewise.
1912         (bsloww2): Likewise.
1913         (cslow2): Likewise.
1914         (csloww): Likewise.
1915         (csloww1): Likewise.
1916         (csloww2): Likewise.
1917
1918 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1919
1920         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
1921         (__malloc_assert, __libc_realloc, __libc_calloc,
1922         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
1923         memcpy and memset.
1924         * malloc/hooks.c (realloc_check): Likewise.
1925
1926 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1927
1928         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
1929         * malloc/arena.c: Remove PER_THREAD conditional.
1930         [!PER_THREAD]: Remove code.
1931         (ptmalloc_unlock_all2): Likewise.
1932         (ptmalloc_init): Likewise.
1933         (_int_new_arena): Likewise.
1934         (arena_get2): Likewise.
1935         * malloc/hooks.c (__malloc_get_state): Likewise.
1936         (__malloc_set_state): Likewise.
1937         * malloc/malloc.c: Likewise.
1938         (struct malloc_state): Likewise.
1939         (struct malloc_par): Likewise.
1940         (__libc_realloc): Likewise.
1941         (__libc_mallopt): Likewise.
1942
1943 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1944
1945         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
1946
1947 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1948
1949         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
1950         macro to a function.  Check for zero perturb_byte.
1951         (_int_malloc, _int_free): Remove zero perturb_byte checks.
1952
1953 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1954
1955         * malloc/malloc.c: (force_reg): Remove.
1956         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
1957         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
1958         force_reg by atomic_forced_read.
1959         * malloc/arena.c (ptmalloc_init): Likewise.
1960         * malloc/hooks.c (top_check): Likewise.
1961
1962 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1963
1964         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1965
1966 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
1967
1968         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1969
1970 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
1971
1972         * math/auto-libm-test-in: Add tests of lgamma.
1973         * math/auto-libm-test-out: Regenerated.
1974         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
1975         (M_LOG_2_SQRT_PIl): Likewise.
1976         (lgamma_test_data): Use AUTO_TESTS_f_f1.
1977         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1978         mpfr_f_f1.
1979         (func_calc_desc): Add mpfr_f_f1 union field.
1980         (ARGS1): New macro.
1981         (ARGS2): Likewise.
1982         (ARGS3): Likewise.
1983         (ARGS4): Likewise.
1984         (RET1): Likewise.
1985         (RET2): Likewise.
1986         (CALC): Likewise.
1987         (FUNC): Likewise.
1988         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
1989         (test_functions): Add lgamma.
1990         (calc_generic_results): Handle mpfr_f_f1.
1991         * sysdeps/i386/fpu/libm-test-ulps: Update.
1992         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1993
1994 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1995
1996         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
1997         __mpn_add_n for PowerPC64/POWER7.
1998         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
1999         __mpn_sub_n for PowerPC64/POWER7.
2000
2001 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2002
2003         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
2004         __mpn_addmul_1 for PowerPC64.
2005         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
2006         __mpn_submul_1 for PowerPC64.
2007         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
2008         for PowerPC64.
2009         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
2010         for PowerPC64.
2011
2012 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
2013
2014         [BZ #15089]
2015         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
2016
2017 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2018
2019         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
2020
2021 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2022
2023         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
2024         add multiarch folders.
2025         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
2026         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
2027         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
2028         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
2029         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
2030         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
2031         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
2032         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
2033         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
2034         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
2035         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
2036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
2037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
2038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
2039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
2040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
2041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
2042
2043 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2044
2045         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
2046         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
2047         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
2048         New file.
2049         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
2050         New file.
2051         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
2052         multiarch __ieee754_hypot for PowerPC32.
2053         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
2054         New file.
2055         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
2056         New file.
2057         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
2058         multiarch __ieee754_hypotf for PowerPC32.
2059
2060 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2061
2062         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
2063         long_double_symbol only if __logbl is defined.
2064         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
2065         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
2066         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
2067         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
2068         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
2069         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
2070         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
2071         path for implementation.
2072         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2073         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
2075         logb, and logbl multiarch implementations for PowerPC32.
2076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
2077         file.
2078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
2079         file.
2080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
2081         multiarch logb for PowerPC32.
2082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
2083         file.
2084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
2085         file.
2086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
2087         multiarch logbf for PowerPC32.
2088         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
2089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
2090         file.
2091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
2092         multiarch logbl implementation for PowerPC32.
2093
2094 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2095
2096         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
2097         and modff multiarch implementations.
2098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2099         New file.
2100         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
2101         New file.
2102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
2103         multiarch modf for PowerPC32.
2104         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2105         New file.
2106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
2107         New file.
2108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
2109         multiarch modff for PowerPC32.
2110
2111 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2112
2113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
2114         and lrintf multiarch implementations.
2115         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
2116         New file.
2117         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
2118         New file.
2119         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
2120         multiarch lrint for PowerPC32.
2121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
2122         file: multiarch lrintf for PowerPC32.
2123
2124 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2125
2126         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
2127         and lroundf multiarch implementations.
2128         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2129         New file.
2130         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
2131         New file.
2132         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2133         New file.
2134         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
2135         multiarch lround for PowerPC32.
2136         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
2137         file: multiarch lroundf for PowerPC32.
2138
2139 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2140
2141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
2142         copysign and copysignf multiarch implementations.
2143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
2144         New file.
2145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
2146         New file.
2147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
2148         file: multiarch copysign for PowerPC32.
2149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
2150         file: multiarch copysignf for PowerPC32.
2151
2152 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2153
2154         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
2155         and truncf multiarch implementations.
2156         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
2157         New file.
2158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
2159         file.
2160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
2161         multiarch trunc for PowerPC32.
2162         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
2163         New file.
2164         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
2165         New file.
2166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
2167         multiarch truncf for PowerPC32.
2168
2169 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2170
2171         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
2172         and roundf multiarch implementations.
2173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
2174         New file.
2175         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
2176         file.
2177         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
2178         multiarch round for PowerPC32.
2179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
2180         New file.
2181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
2182         New file.
2183         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
2184         multiarch roundf for PowerPC32.
2185
2186 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2187
2188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
2189         and floorf multiarch implementations.
2190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
2191         New file.
2192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
2193         file.
2194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
2195         multiarch floor for PowerPC32.
2196         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
2197         New file.
2198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
2199         New file.
2200         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
2201         multiarch floorf for PowerPC32.
2202
2203 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2204
2205         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
2206         and ceilf multiarch implementations.
2207         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
2208         New file.
2209         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
2210         file.
2211         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
2212         multiarch ceil for PowerPC32.
2213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
2214         New file.
2215         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
2216         file.
2217         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
2218         multiarch ceilf for PowerPC32.
2219
2220 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2221
2222         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
2223         is defined.
2224         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
2225         FINITEF is defined.
2226         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
2227         and finitef multiarch implementations.
2228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2229         New file.
2230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
2231         file.
2232         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
2233         multiarch finite for PowerPC32.
2234         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2235         New file.
2236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
2237         file: multiarch finitef for PowerPC32.
2238
2239 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2240
2241         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
2242         and isinff multiarch implementations.
2243         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
2244         file.
2245         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
2246         file.
2247         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
2248         multiarch isinf for PowerPC32.
2249         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2250         New file.
2251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
2252         multiarch isinff for PowerPC32.
2253
2254 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2255
2256         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
2257         alias when __isnan is defined.
2258         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
2259         and isnanf multiarch implementations.
2260         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
2261         file.
2262         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
2263         file.
2264         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
2265         file.
2266         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
2267         file.
2268         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
2269         multiarch isnan for PowerPC32.
2270         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2271         New file.
2272         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
2273         New file.
2274         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
2275         multiarch isnanf for PowerPC32.
2276
2277 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2278
2279         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
2280         and sqrtf multiarch implementations.
2281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
2282         file.
2283         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
2284         file.
2285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
2286         multiarch sqrt for PowerPC32.
2287         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
2288         file.
2289         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
2290         file.
2291         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
2292         multiarch sqrtf for PowerPC32.
2293
2294 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2295
2296         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
2297         and llroundf multiarch implementations.
2298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2299         New file.
2300         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2301         New file.
2302         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2303         New file.
2304         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
2305         file: multiarch llround for PowerPC32.
2306         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
2307         file: multiarch llroundf for PowerPC32.
2308
2309 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2310
2311         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
2312         multiarch PowerPC32 fpu implementations.
2313         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2314         New file.
2315         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2316         New file.
2317         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
2318         multiarch llrint for PowerPC32.
2319         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2320         New file.
2321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2322         New file.
2323         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
2324         file.
2325
2326 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2327
2328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
2329
2330 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2331
2332         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
2333         file.
2334         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
2335         file.
2336         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
2337         file.
2338         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
2339         multiarch wordcopy for PPC32.
2340         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2341         wordcopy objects.
2342         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2343         (__libc_ifunc_impl_list): Likewise.
2344         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
2345         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
2346         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
2347         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
2348         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
2349         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
2350
2351 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2352
2353         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
2354         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
2355         file.
2356         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
2357         file.
2358         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
2359         file.
2360         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
2361         multiarch wcscpy for PPC32.
2362         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2363         multiarch objects.
2364         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2365         (__libc_ifunc_impl_list): Likewise.
2366         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2367         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2368         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
2369         sysdeps/powerpc/power6/wcscpy.c.
2370
2371 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2372
2373         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
2374         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
2375         file.
2376         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
2377         file.
2378         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
2379         file.
2380         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
2381         multiarch wcsrchr for PPC32.
2382         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2383         multiarch objects.
2384         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2385         (__libc_ifunc_impl_list): Likewise.
2386         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2387         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2388         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
2389         sysdeps/powerpc/power6/wcsrchr.c.
2390
2391 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2392
2393         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
2394         file.
2395         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
2396         file.
2397         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
2398         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
2399         multiarch wcschr for PPc32.
2400         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2401         multiarch objects.
2402         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2403         (__libc_ifunc_impl_list): Likewise.
2404         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
2405         * sysdeps/powerpc/power6/wcschr.c: ... to here.
2406         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
2407         sysdeps/powerpc/power6/wcschr.c.
2408
2409 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2410
2411         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
2412         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
2413         file.
2414         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
2415         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
2416         file: multiarch strchr for PPC32.
2417         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
2418         multiarch objects.
2419         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2420         (__libc_ifunc_impl_list): Likewise.
2421
2422 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2423
2424         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
2425         name.
2426         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
2427         file.
2428         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
2429         file.
2430         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
2431         multiarch strchrnul for PPC32.
2432         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
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         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
2440         file.
2441         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
2442         multiarch strncasecmp for PPC32.
2443         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
2444         file.
2445         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
2446         multiarch strncasecmp_l for PPC32.
2447         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
2448         strncasecmp multiarch objects.
2449         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2450         (__libc_ifunc_impl_list): Likewise.
2451
2452 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2453
2454         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
2455         file.
2456         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
2457         multiarch strncasecmp for PPC32.
2458         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
2459         New file.
2460         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
2461         multiarch strcasecmp_l for PPC32.
2462         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
2463         multiarch objects.
2464         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2465         (__libc_ifunc_impl_list): Likewise.
2466
2467 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2468
2469         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
2470         file.
2471         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
2472         file.
2473         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
2474         multiarch strncmp for PPC32.
2475         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
2476         multiarch objects.
2477         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2478         (__libc_ifunc_impl_list): Likewise.
2479
2480 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2481
2482         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
2483         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
2484         file.
2485         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
2486         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
2487         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
2488         multiarch objects.
2489         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2490         (__libc_ifunc_impl_list): Likewise.
2491
2492 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2493
2494         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
2495         file.
2496         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
2497         file.
2498         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
2499         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
2500         multiarch objects.
2501         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2502         (__libc_ifunc_impl_list): Likewise.
2503
2504 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2505
2506         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
2507         file.
2508         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
2509         file.
2510         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
2511         multiarch rawmemchr for PPC32.
2512         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
2513         multiarch objects.
2514         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2515         (__libc_ifunc_impl_list): Likewise.
2516
2517 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2518
2519         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
2520         file.
2521         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
2522         file.
2523         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
2524         file: memrchr multiarch for PPC32.
2525         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
2526         multiarch objects.
2527         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2528         (__libc_ifunc_impl_list): Likewise.
2529
2530 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2531
2532         * string/memchr.c (__memchr): Using macro to redefine symbol name.
2533         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
2534         file.
2535         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
2536         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
2537         multiarch memchr for PPC32.
2538         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
2539         multiarch objects.
2540         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2541         (__libc_ifunc_impl_list): Likewise.
2542
2543 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2544
2545         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
2546         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
2547         file.
2548         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
2549         file.
2550         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
2551         file: multiarch mempcpy for PPC32.
2552         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
2553         multiarch objects.
2554         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2555         (__libc_ifunc_impl_list): Likewise.
2556
2557 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2558
2559         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
2560         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
2561         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
2562         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
2563         multiarch bzero for PPC32.
2564         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
2565         file.
2566         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
2567         file.
2568         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
2569         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
2570         file: multiarch memset for PPC32.
2571         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
2572         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
2573         memset multiarch objects.
2574         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2575         (__libc_ifunc_impl_list): Likewise.
2576
2577 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2578
2579         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
2580         file.
2581         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
2582         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
2583         memcmp for PPC32.
2584         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
2585         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
2586         multiarch objects.
2587         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2588         (__libc_ifunc_impl_list): Likewise.
2589
2590 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2591
2592         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
2593         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
2594         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
2595         file.
2596         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
2597         file.
2598         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
2599         file.
2600         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
2601         multiarch memcpy for PPC32.
2602         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
2603         multiarch objects.
2604         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2605         (__libc_ifunc_impl_list): Likewise.
2606
2607 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2608
2609         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
2610         support multiarch for POWER/PPC32.
2611         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2612         Likewise.
2613         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
2614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
2615         Implies file to make multiarch folder appers before the fpu and
2616         default folder for power4 configuration.
2617
2618 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2619
2620         * scripts/bench.pl: Append volatile keyword to type.
2621
2622 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2623
2624         * sysdeps/sh/sotruss-lib.c: New file.
2625         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
2626
2627 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2628
2629         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2630
2631 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
2632
2633         [BZ #6810]
2634         * math/w_tgamma.c: Include <errno.h>.
2635         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
2636         * math/w_tgammaf.c: Include <errno.h>.
2637         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
2638         * math/w_tgammal.c: Include <errno.h>.
2639         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
2640         * math/auto-libm-test-in: Do not allow missing errno on tgamma
2641         underflow.  Add more tgamma tests.
2642         * math/auto-libm-test-out: Regenerated.
2643         * sysdeps/i386/fpu/libm-test-ulps: Update.
2644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2645
2646         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
2647         sin, sinh, tan, tanh, tgamma, y0 and y1.
2648         * math/auto-libm-test-out: Regenerated.
2649         * math/libm-test.inc (TEST_COND_x86_64): New macro.
2650         (TEST_COND_x86): Likewise.
2651         (M_E2l): Remove macro.
2652         (M_E3l): Likewise.
2653         (M_2_SQRT_PIl): Likewise.
2654         (M_SQRT_PIl): Likewise.
2655         (M_1_DIV_El): Likewise.
2656         (log_test_data): Use AUTO_TESTS_f_f.
2657         (log10_test_data): Likewise.
2658         (log1p_test_data): Likewise.
2659         (log2_test_data): Likewise.
2660         (sin_test_data): Likewise.
2661         (sin_tonearest_test_data): Likewise.
2662         (sin_towardzero_test_data): Likewise.
2663         (sin_downward_test_data): Likewise.
2664         (sin_upward_test_data): Likewise.
2665         (sinh_test_data): Likewise.
2666         (sinh_tonearest_test_data): Likewise.
2667         (sinh_towardzero_test_data): Likewise.
2668         (sinh_downward_test_data): Likewise.
2669         (sinh_upward_test_data): Likewise.
2670         (tan_test_data): Likewise.
2671         (tan_tonearest_test_data): Likewise.
2672         (tan_towardzero_test_data): Likewise.
2673         (tan_downward_test_data): Likewise.
2674         (tan_upward_test_data): Likewise.
2675         (tanh_test_data): Likewise.
2676         (tgamma_test_data): Likewise.
2677         (y0_test_data): Likewise.
2678         (y1_test_data): Likewise.
2679         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
2680         (special_real_inputs): Add pi/4.
2681         * sysdeps/i386/fpu/libm-test-ulps: Update.
2682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2683
2684 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2685
2686         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
2687         "longjmp_target" static probes.
2688         (__longjmp): Rename to __longjmp_symbol.
2689         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2690         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
2691         on which longjmp to generate.
2692         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2693         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
2694         probe.
2695         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2696         (__sigjmp_save): Rename to __sigjmp_save_symbol.
2697         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2698         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
2699         and __sigjmp_save_symbol based on which sigsetjmp to generated.
2700         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
2701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
2702         __longjmp_symbol based on which __longjmp to generate.
2703         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
2704         probe.
2705         (setjmp): Rename to setjmp_symbol.
2706         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2707         (_setjmp): Rename to _setjmp_symbol.
2708         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2709         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
2710         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
2711         which setjmp to generate.
2712         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
2713         "longjmp_target" static probes.
2714
2715 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2716
2717         * benchtests/README: Add note about output arguments.
2718         * benchtests/bench-sincos.c: Remove file.
2719         * benchtests/sincos-inputs: New file.
2720         * scripts/bench.pl: Identify output arguments and define
2721         static variables for them.
2722
2723         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
2724
2725         [BZ #15941]
2726         * Makefile (INSTALL): Add install-plain.texi as the primary
2727         dependency.
2728         * manual/install-plain.texi: New file.
2729         * manual/install.texi: Include node directive only for
2730         non-plaintext output.
2731
2732 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2733
2734         * stdlib/longlong.h: Update from GCC.
2735
2736         [BZ #6807]
2737         [BZ #15901]
2738         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
2739         * math/w_j0f.c (y0f): Likewise.
2740         * math/w_j0l.c (__y0l): Likewise.
2741         * math/w_j1.c (y1): Likewise.
2742         * math/w_j1f.c (y1f): Likewise.
2743         * math/w_j1l.c (__y1l): Likewise
2744         * math/w_jn.c (yn): Likewise.
2745         * math/w_jnf.c (ynf): Likewise.
2746         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
2747         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
2748         value for Bessel function domain errors outside _SVID_ mode.
2749         Adjust sign of return value for yn (negative integer, 0).
2750         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
2751         by zero in return for negative x and set sign appropriately for
2752         negative n.
2753         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
2754         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2755         * math/libm-test.inc (y0_test_data): Add more tests and adjust
2756         expectations in error cases.
2757         (y1_test_data): Likewise.
2758         (yn_test_data): Likewise.
2759         * sysdeps/i386/fpu/libm-test-ulps: Update.
2760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2761
2762 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2763
2764         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
2765         "64" to "64-v1".  Add "64-v2".
2766         (abi-64-options): Rename to ...
2767         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
2768         (abi-64-condition): Rename to ...
2769         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
2770         (abi-64-ld-soname): Rename to ...
2771         (abi-64-v1-ld-soname): ... this.
2772         (abi-64-v2-options): Define.
2773         (abi-64-v2-condition): Likewise.
2774         (abi-64-v2-ld-soname): Likewise.
2775         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
2776         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
2777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
2778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
2779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
2780
2781 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2782             Alan Modra  <amodra@gmail.com>
2783
2784         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
2785         New versions for use with the ELFv2 ABI.
2786         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
2787         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
2788         declaration.
2789         (struct La_ppc64v2_retval): Likewise.
2790         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
2791         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
2792         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
2793         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
2794         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
2795         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
2796         Do not save or restore CR.
2797         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
2798         (_dl_profile_resolve): Do no save or restore CR.  Support extended
2799         return values for ELFv2 ABI.  Fix location of FPR return registers.
2800         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
2801         updated values for _CALL_ELF == 2.
2802         (La_regs, La_retval, int_retval): Likewise.
2803
2804 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2805
2806         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
2807         (FRAME_MIN_SIZE_PARM): Likewise.
2808         (FRAME_BACKCHAIN): Likewise.
2809         (FRAME_CR_SAVE): Likewise.
2810         (FRAME_LR_SAVE): Likewise.
2811         (FRAME_TOC_SAVE): Likewise.
2812         (FRAME_PARM_SAVE): Likewise.
2813         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2814         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2815         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2816         (call_mcount_parm_offset): New macro.
2817         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
2818         (PROF): Use symbolic stack frame offsets.
2819         (TAIL_CALL_SYSCALL_ERROR): Likewise.
2820         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
2821         Redefine in terms of FRAME_MIN_SIZE.
2822         (_dl_runtime_resolve): Use symbolic stack frame offsets.
2823         (_dl_profile_resolve): Likewise.  Update comment.
2824         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
2825         symbols stack frame offsets.
2826         (__sigsetjmp): Likewise.
2827         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2828         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
2829         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
2830         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
2831
2832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
2833         (FRAME_BACKCHAIN): Remove.
2834         (FRAME_CR_SAVE): Likewise.
2835         (FRAME_LR_SAVE): Likewise.
2836         (FRAME_COMPILER_DW): Likewise.
2837         (FRAME_LINKER_DW): Likewise.
2838         (FRAME_TOC_SAVE): Likewise.
2839         (FRAME_PARM_SAVE): Likewise.
2840         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2841         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2842         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
2844         (CHECK_SP): Use symbolic stack frame offsets.
2845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
2846         zone" instead of caller's parameter save area for temp storage.
2847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2848         Likewise.  Also, use symbolic stack frame offsets.
2849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
2850         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
2851         our own stack frame instead of the caller's.
2852         (__socket): Use symbolic stack frame offsets.
2853
2854 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2855             Alan Modra  <amodra@gmail.com>
2856
2857         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
2858         Define.
2859         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
2860         PPC64_LOCAL_ENTRY_OFFSET): Define.
2861         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
2862         New function.
2863         (elf_machine_fixup_plt): Call it.
2864         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
2865         reloc arguments.
2866         (elf_machine_rela): Update call to elf_machine_plt_conflict.
2867         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2868         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
2869         r2 before calling target.
2870
2871 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2872             Alan Modra  <amodra@gmail.com>
2873
2874         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
2875         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
2876         versions of macros to support ELFv2 ABI.
2877         (LOCALENTRY): New macro.
2878         (ENTRY, EALIGN): Use it.
2879         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
2880         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
2881         fall through into ENTRY entry point.
2882         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
2883         Only define if _CALL_ELF != 2.
2884
2885         (elf_machine_matches_host): Verify ABI version matches.
2886         (RTLD_START): Use LOCALENTRY.
2887         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
2888         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
2889         (PLT_ENTRY_WORDS): New macro.
2890         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
2891         (elf_machine_runtime_setup): Support ELFv2 ABI.
2892         (elf_machine_fixup_plt): Likewise.
2893         (elf_machine_plt_conflict): Likewise.
2894         (resolve_ifunc): Likewise.
2895         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
2896         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2897         Likewise.
2898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2899         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
2900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2901         (makecontext): Support ELFv2 ABI.
2902         * elf/elf.h (EF_PPC64_ABI): Define.
2903
2904 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2905
2906         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
2907         New assembler macro.
2908         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
2909         [ASSEMBLER] (ENTRY): ... but instead here ...
2910         [ASSEMBLER] (EALIGN): ... and here.
2911         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
2912         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
2913         [!ASSEMBLER] (ENTRY_2): Use it.
2914         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
2915         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
2916         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2917         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
2918         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
2919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
2920         Use PPC64_LOAD_FUNCPTR.
2921
2922 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2923
2924         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
2925
2926 2013-12-04  Alan Modra  <amodra@gmail.com>
2927
2928         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
2929         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
2930         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
2931         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
2932
2933         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
2934         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
2935         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
2936         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
2937         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
2938         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
2939
2940 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2941
2942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2943         (__makecontext): Fix incorrect CFI when backtracing out of
2944         context created via makecontext.
2945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
2946         (__setcontext): Fix incorrect CFI during switch to new context.
2947         (__novec_setcontext): Likewise.
2948
2949 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2950
2951         [BZ #4772]
2952         * time/strptime_l.c (__strptime_internal): Allow modifiers
2953         in strptime.
2954         * time/tst-strptime.c (day_tests): Add testcase.
2955
2956
2957 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2958
2959         * scripts/bench.pl: Skip over blank lines.
2960
2961 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2962
2963         [BZ #926]
2964         * manual/time.texi (Calendar Time): Clarify what timezone functions
2965         use.
2966
2967 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2968
2969         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2970
2971 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2972
2973         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
2974         implementation.
2975         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
2976         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
2977         * debug/memset_chk.c (__memset_chk): Likewise.
2978         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
2979         * debug/strncpy_chk.c: Likewise.
2980
2981 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2982
2983         [BZ #15268]
2984         [BZ #15425]
2985         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
2986         (__ieee754_exp): For possibly underflowing results, check size of
2987         result and force underflow exception if required.
2988         * math/auto-libm-test-in: Add more tests of exp.
2989         * math/auto-libm-test-out: Regenerated.
2990         * sysdeps/i386/fpu/libm-test-ulps: Update.
2991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2992
2993         [BZ #16283]
2994         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
2995         * math/w_exp2f.c (__exp2f): Likewise.
2996         * math/w_exp2l.c (__exp2l): Likewise.
2997         * math/auto-libm-test-in: Do not allow missing errno on exp2
2998         underflow.
2999         * math/auto-libm-test-out: Regenerated.
3000
3001 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
3002
3003         [BZ #16274]
3004         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
3005         handle filename validation.
3006         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
3007         (do_open): Delete.
3008
3009 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
3010
3011         [BZ #6786]
3012         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
3013         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
3014         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
3015         <float.h>.
3016         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
3017         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
3018         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3019         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
3020         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3021         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
3022         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3023         * math/auto-libm-test-in: Don't allow missing errno from erfc.
3024         Add more erfc tests.
3025         * math/auto-libm-test-out: Regenerated.
3026         * sysdeps/i386/fpu/libm-test-ulps: Update.
3027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3028
3029         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
3030         exp2, expm1, j0 and j1.
3031         * math/auto-libm-test-out: Regenerated.
3032         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
3033         (erfc_test_data): Likewise.
3034         (exp_test_data): Likewise.
3035         (exp_tonearest_test_data): Likewise.
3036         (exp_towardzero_test_data): Likewise.
3037         (exp_downward_test_data): Likewise.
3038         (exp_upward_test_data): Likewise.
3039         (exp10_test_data): Likewise.
3040         (exp2_test_data): Likewise.
3041         (expm1_test_data): Likewise.
3042         (j0_test_data): Likewise.
3043         (j1_test_data): Likewise.
3044         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
3045         (input_flag_type): Add flag_xfail_rounding.
3046         (input_flags): Add xfail-rounding.
3047         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
3048         (output_for_one_input_case): Handle flag_xfail_rounding.
3049         * sysdeps/i386/fpu/libm-test-ulps: Update.
3050         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3051
3052 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
3053
3054         [BZ #16289]
3055         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
3056         division by 0.
3057
3058 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
3059
3060         [BZ #16195]
3061         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3062         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
3063         (STAP_PROBE0): New macro.
3064         (STAP_PROBE1): Likewise.
3065         (STAP_PROBE2): Likewise.
3066         (STAP_PROBE3): Likewise.
3067         (STAP_PROBE4): Likewise.
3068
3069 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
3070
3071         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
3072
3073 2013-12-02  Steve Ellcey  <sellcey@mips.com>
3074
3075         * benchtests/Makefile (bench): Add sqrt.
3076         (LDLIBS-bench-sqrt): New.
3077         * benchtests/sqrt-input: New.
3078
3079 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
3080
3081         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
3082         (GAIH_EAI): Likewise.
3083         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
3084         (gaih_inet): Likewise.
3085         (getaddrinfo): Don't use GAIH_EAI.
3086
3087         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
3088         (struct gaih): Remove definition.
3089
3090 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
3091
3092         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
3093         Use HERRNOP directly.
3094
3095 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3096
3097         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3098
3099 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
3100
3101         * math/gen-auto-libm-tests.c (test_functions): Add more
3102         single-argument functions.
3103         (special_fill_pi_2): New function.
3104         (special_fill_minus_pi_2): Likewise.
3105         (special_fill_pi_6): Likewise.
3106         (special_fill_minus_pi_6): Likewise.
3107         (special_fill_pi_3): Likewise.
3108         (special_fill_2pi_3): Likewise.
3109         (special_fill_e): Likewise.
3110         (special_fill_1_e): Likewise.
3111         (special_fill_e_minus_1): Likewise.
3112         (special_real_inputs): Add more special inputs.
3113         (output_for_one_input_case): Do not require ERANGE on underflow to
3114         zero if round-to-nearest result does not underflow to zero, unless
3115         exact results required.
3116         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
3117         atan, atanh, cbrt, cos and cosh.
3118         * math/auto-libm-test-out: Regenerated.
3119         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
3120         (acos_tonearest_test_data): Likewise.
3121         (acos_towardzero_test_data): Likewise.
3122         (acos_downward_test_data): Likewise.
3123         (acos_upward_test_data): Likewise.
3124         (acosh_test_data): Likewise.
3125         (asin_test_data): Likewise.
3126         (asin_tonearest_test_data): Likewise.
3127         (asin_towardzero_test_data): Likewise.
3128         (asin_upward_test_data): Likewise.
3129         (asinh_test_data): Likewise.
3130         (atan_test_data): Likewise.
3131         (atanh_test_data): Likewise.
3132         (cbrt_test_data): Likewise.
3133         (cos_test_data): Likewise.
3134         (cos_tonearest_test_data): Likewise.
3135         (cos_towardzero_test_data): Likewise.
3136         (cos_downward_test_data): Likewise.
3137         (cos_upward_test_data): Likewise.
3138         (cosh_test_data): Likewise.
3139         (cosh_tonearest_test_data): Likewise.
3140         (cosh_towardzero_test_data): Likewise.
3141         (cosh_downward_test_data): Likewise.
3142         (cosh_upward_test_data): Likewise.
3143         * sysdeps/i386/fpu/libm-test-ulps: Update.
3144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3145
3146 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
3147
3148         [BZ #6787]
3149         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
3150         * math/w_exp10f.c (__exp10f): Likewise.
3151         * math/w_exp10l.c (__exp10l): Likewise.
3152         * math/libm-test.inc (exp10_test_data): Add more tests and expect
3153         errno settings in existing tests.
3154
3155         [BZ #14032]
3156         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
3157         precision control set to double precision.
3158         * sysdeps/i386/fpu/w_sqrt.c: New file.
3159         * math/auto-libm-test-in: Add more tests.
3160         * math/auto-libm-test-out: Update.
3161
3162         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
3163         (sqrt_test_tonearest): New function.
3164         (sqrt_towardzero_test_data): New variable.
3165         (sqrt_test_towardzero): New function.
3166         (sqrt_downward_test_data): New variable.
3167         (sqrt_test_downward): New function.
3168         (sqrt_upward_test_data): New variable.
3169         (sqrt_test_upward): New function.
3170         (main): Call the new functions.
3171
3172         * math/gen-auto-libm-tests.c: New file.
3173         * math/auto-libm-test-in: Likewise.
3174         * math/auto-libm-test-out: New generated file.
3175         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
3176         variables.
3177         (%beautify): Add generated representations of zero.
3178         (top level): Set $auto_input and call parse_auto_input.
3179         (beautify): Remove trailing "f" from hex float constants.
3180         (parse_args): Handle XFAIL_TEST.
3181         (convert_condition): New function.
3182         (or_value): Likewise.
3183         (or_cond_value): Likewise.
3184         (generate_testfile): Handle AUTO_TESTS_* lines.
3185         (parse_auto_input): New function.
3186         * math/libm-test.inc (XFAIL_TEST): New macro.
3187         (ERRNO_UNCHANGED): Update value.
3188         (ERRNO_EDOM): Likewise.
3189         (ERRNO_ERANGE): Likewise.
3190         (IGNORE_RESULT): Likewise.
3191         (TEST_COND_flt_32): New macro.
3192         (TEST_COND_dbl_64): Likewise.
3193         (TEST_COND_ldbl_96_intel): Likewise.
3194         (TEST_COND_ldbl_96_m68k): Likewise.
3195         (TEST_COND_ldbl_128): Likewise.
3196         (TEST_COND_ldbl_128ibm): Likewise.
3197         (TEST_COND_long32): Likewise.
3198         (TEST_COND_long64): Likewise.
3199         (TEST_COND_before_rounding): Likewise.
3200         (TEST_COND_after_rounding): Likewise.
3201         (enable_test): Handle XFAIL_TEST flag.
3202         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
3203         with finite results.
3204         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
3205         auto-libm-test-out.
3206
3207 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3208             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3209
3210         [BZ #16214]
3211         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
3212         __tls_get_addr_internal instead of __tls_get_offset in order to
3213         avoid GOT pointer dependency.  Make rtld export
3214         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
3215         __tls_get_addr since we are a __tls_get_offset platform.
3216         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
3217         GOT pointer being set up before.
3218         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
3219
3220 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
3221
3222         * manual/math.texi (Errors in Math Functions): Document accuracy
3223         goals.
3224
3225         [BZ #15004]
3226         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
3227         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
3228         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3229         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3230         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3231         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3232         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3233         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3234         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3235         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3236         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3237         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3238         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3239         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3240         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3241         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3242
3243         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
3244         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
3245         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
3246         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
3247         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
3248         Likewise.
3249         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
3250         Likewise.
3251         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
3252         Likewise.
3253         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
3254         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
3255         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
3256         atomic-feupdateenv and flt-rounds.
3257         * sysdeps/powerpc/nofpu/Versions (libc): Add
3258         __atomic_feholdexcept, __atomic_feclearexcept,
3259         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
3260         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
3261         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
3262         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
3263         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
3264         here.
3265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
3266         Update.
3267
3268         * manual/arith.texi (FP Exceptions): Document that exceptions may
3269         not be raised when matherr is used.
3270         (Math Error Reporting): Document overflow in directed rounding
3271         modes.  Document that errno may not be set when finite values are
3272         returned on overflow.  Document intent to set errno on underflow
3273         only for underflow to zero.
3274
3275         [BZ #16271]
3276         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
3277         round-to-nearest then adjust result for other rounding modes.
3278         * include/fenv.h (fegetround): Use libm_hidden_proto.
3279         * math/fegetround.c (fegetround): Use libm_hidden_def.
3280         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
3281         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
3282         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3283         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
3284         Likewise.
3285         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
3286         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3287         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
3288         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
3289
3290 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3291
3292         [BZ #16077]
3293         * nss/Versions (libnss_files): Add
3294         _nss_files_gethostbyname3_r.
3295         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
3296         New function.
3297         (HOST_DB_LOOKUP): Remove macro.
3298         (_nss_files_gethostbyname_r): Implement function without the
3299         HOST_DB_LOOKUP macro.
3300         (_nss_files_gethostbyname2_r): Likewise.
3301
3302 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
3303
3304         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
3305
3306 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
3307
3308         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
3309         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
3310         warning.
3311
3312 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3313
3314         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
3315         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
3316         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3317         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
3318         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
3319         __fe_nomask_env_priv and attribute_hidden.
3320         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
3321         (libc_feupdateenv_test_ppc): Likewise.
3322         (libc_feresetround_ppc): Likewise.
3323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3324         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
3325         compat_symbol macro.
3326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3327         (__fe_nomask_env): Likewise.
3328         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
3329
3330 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3331
3332         * string/Makefile: Remove ifunc tests.
3333         * string/test-string.h: Define TEST_IFUNC.
3334         * string/test-bcopy-ifunc.c: Remove.
3335         * string/test-bzero-ifunc.c: Likewise.
3336         * string/test-memccpy-ifunc.c: Likewise.
3337         * string/test-memchr-ifunc.c: Likewise.
3338         * string/test-memcmp-ifunc.c: Likewise.
3339         * string/test-memcpy-ifunc.c: Likewise.
3340         * string/test-memmem-ifunc.c: Likewise.
3341         * string/test-memmove-ifunc.c: Likewise.
3342         * string/test-mempcpy-ifunc.c: Likewise.
3343         * string/test-memrchr-ifunc.c: Likewise.
3344         * string/test-memset-ifunc.c: Likewise.
3345         * string/test-rawmemchr-ifunc.c: Likewise.
3346         * string/test-stpcpy-ifunc.c: Likewise.
3347         * string/test-stpncpy-ifunc.c: Likewise.
3348         * string/test-strcasecmp-ifunc.c: Likewise.
3349         * string/test-strcasestr-ifunc.c: Likewise.
3350         * string/test-strcat-ifunc.c: Likewise.
3351         * string/test-strchr-ifunc.c: Likewise.
3352         * string/test-strchrnul-ifunc.c: Likewise.
3353         * string/test-strcmp-ifunc.c: Likewise.
3354         * string/test-strcpy-ifunc.c: Likewise.
3355         * string/test-strcspn-ifunc.c: Likewise.
3356         * string/test-strlen-ifunc.c: Likewise.
3357         * string/test-strncasecmp-ifunc.c: Likewise.
3358         * string/test-strncat-ifunc.c: Likewise.
3359         * string/test-strncmp-ifunc.c: Likewise.
3360         * string/test-strncpy-ifunc.c: Likewise.
3361         * string/test-strnlen-ifunc.c: Likewise.
3362         * string/test-strpbrk-ifunc.c: Likewise.
3363         * string/test-strrchr-ifunc.c: Likewise.
3364         * string/test-strspn-ifunc.c: Likewise.
3365         * string/test-strstr-ifunc.c: Likewise.
3366
3367 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3368
3369         * benchtests/Makefile: Remove ifunc tests.
3370         * benchtests/bench-string.h: Define TEST_IFUNC.
3371         * benchtests/bench-bcopy-ifunc.c: Remove.
3372         * benchtests/bench-bzero-ifunc.c: Likewise.
3373         * benchtests/bench-memccpy-ifunc.c: Likewise.
3374         * benchtests/bench-memchr-ifunc.c: Likewise.
3375         * benchtests/bench-memcmp-ifunc.c: Likewise.
3376         * benchtests/bench-memcpy-ifunc.c: Likewise.
3377         * benchtests/bench-memmem-ifunc.c: Likewise.
3378         * benchtests/bench-memmove-ifunc.c: Likewise.
3379         * benchtests/bench-mempcpy-ifunc.c: Likewise.
3380         * benchtests/bench-memrchr-ifunc.c: Likewise.
3381         * benchtests/bench-memset-ifunc.c: Likewise.
3382         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
3383         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
3384         * benchtests/bench-stpcpy-ifunc.c: Likewise.
3385         * benchtests/bench-stpncpy-ifunc.c: Likewise.
3386         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
3387         * benchtests/bench-strcasestr-ifunc.c: Likewise.
3388         * benchtests/bench-strcat-ifunc.c: Likewise.
3389         * benchtests/bench-strchr-ifunc.c: Likewise.
3390         * benchtests/bench-strchrnul-ifunc.c: Likewise.
3391         * benchtests/bench-strcmp-ifunc.c: Likewise.
3392         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
3393         * benchtests/bench-strcpy-ifunc.c: Likewise.
3394         * benchtests/bench-strcspn-ifunc.c: Likewise.
3395         * benchtests/bench-strlen-ifunc.c: Likewise.
3396         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
3397         * benchtests/bench-strncat-ifunc.c: Likewise.
3398         * benchtests/bench-strncmp-ifunc.c: Likewise.
3399         * benchtests/bench-strncpy-ifunc.c: Likewise.
3400         * benchtests/bench-strnlen-ifunc.c: Likewise.
3401         * benchtests/bench-strpbrk-ifunc.c: Likewise.
3402         * benchtests/bench-strrchr-ifunc.c: Likewise.
3403         * benchtests/bench-strsep-ifunc.c: Likewise.
3404         * benchtests/bench-strspn-ifunc.c: Likewise.
3405         * benchtests/bench-strstr-ifunc.c: Likewise.
3406
3407 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3408
3409         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
3410
3411 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3412
3413         * resolv/netdb.h: Use __glibc_reserved instead __unused.
3414         * rt/aio.h: Likewise.
3415         * sysdeps/gnu/bits/utmp.h: Likewise.
3416         * sysdeps/gnu/bits/utmpx.h: Likewise.
3417         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
3418         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
3419         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
3420         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
3421         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3422         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3423         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
3424         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
3425         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
3426         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
3427         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
3428         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3429         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
3431         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3432         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
3433         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
3434         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
3435         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3436         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3437         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
3438         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
3439         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
3440         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
3441         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3442         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3443         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
3444         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
3445         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
3446         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3447         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3448         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
3449         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
3450         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
3451         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3452         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
3453         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
3454         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
3455         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
3456         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
3457         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
3458         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
3459
3460 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
3461
3462         [BZ #16245]
3463         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
3464         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
3465
3466 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
3467
3468         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
3469         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
3470         Likewise.
3471
3472 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3473
3474         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3475         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
3476         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
3477         (__fesetround): Remove define.
3478         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
3479         rounding and exceptions handling.
3480         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
3481         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
3482         (__fe_nomask_env): Likewise.
3483         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
3484         __fegetround instead of fegetround.
3485         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
3486         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
3487
3488 2013-11-21  Roland McGrath  <roland@hack.frob.com>
3489
3490         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
3491         it's there.
3492
3493         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
3494
3495 2013-11-21  Meador Inge  <meadori@codesourcery.com>
3496
3497         [BZ #11157]
3498         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
3499         (encrypt_r): Likewise.
3500         * malloc/obstack.h (obstack_free): Likewise.
3501         * posix/unistd.h (encrypt): Likewise.
3502
3503 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
3504
3505         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
3506         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
3507         DL_CALL_DT_FINI() that call the functions directly.
3508         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
3509         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
3510         * elf/dl-fini.c: Likewise.
3511
3512 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
3513
3514         * malloc/hooks.c (memalign_check): Add alignment rounding.
3515         * malloc/malloc.c (_mid_memalign): New function.
3516         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
3517         Implement by calling _mid_memalign.
3518         * manual/probes.texi (Memory Allocation Probes): Remove
3519         memory_valloc_retry and memory_pvalloc_retry.
3520
3521 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3522
3523         * locale/programs/locarchive.c (open_archive): Add const
3524         qualifier to ARCHIVEFNAME and copy default fname to
3525         DEFAULT_FNAME.
3526
3527         [BZ #15601]
3528         * libio/tst-widetext.input: Rename Oriya to Odia.
3529         * locale/iso-639.def: Likewise.
3530
3531         * manual/probes.texi (Mathematical Function Probes): Add
3532         documentation for sin, cos, asin and acos probes.
3533         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
3534         (__sin32): Add slowasin probe.
3535         (__cos32): Add slowacos probe.
3536         (__mpsin): Add slowsin probe.
3537         (__mpcos): Add slowcos probe.
3538
3539 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3540
3541         [BZ #15483]
3542         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
3543         thread-local __sim_exceptions_thread and global
3544         __sim_exceptions_global.
3545         (__sim_disabled_exceptions): Change to thread-local
3546         __sim_disabled_exceptions_thread and global
3547         __sim_disabled_exceptions_global.
3548         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3549         and global __sim_round_mode_global.
3550         (__simulate_exceptions): Use thread-local floating-point state and
3551         set global state from it as needed.
3552         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
3553         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
3554         __sim_round_mode_thread.
3555         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
3556         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
3557         and global __sim_exceptions_global.
3558         (__sim_disabled_exceptions): Change to thread-local
3559         __sim_disabled_exceptions_thread and global
3560         __sim_disabled_exceptions_global.
3561         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3562         and global __sim_round_mode_global.
3563         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
3564         (SIM_SET_GLOBAL): Likewise.
3565         * sysdeps/powerpc/soft-fp/sfp-machine.h
3566         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
3567         __sim_round_mode_thread.
3568         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
3569         __sim_disabled_exceptions_thread.
3570         (__sim_exceptions): Change to __sim_exceptions_thread.
3571         (__sim_disabled_exceptions): Change to
3572         __sim_disabled_exceptions_thread.
3573         (__sim_round_mode): Change to __sim_round_mode_thread.
3574         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
3575         thread-local floating-point state and set global state from it as
3576         needed.
3577         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
3578         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
3579         (__sim_disabled_exceptions): Remove extern declaration.
3580         (feenableexcept): Use thread-local floating-point state and set
3581         global state from it as needed.
3582         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
3583         extern declaration.
3584         (__sim_disabled_exceptions): Likewise.
3585         (__sim_round_mode): Likewise.
3586         (__fegetenv): Use thread-local floating-point state.
3587         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
3588         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3589         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
3590         floating-point state and set global state from it as needed.
3591         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
3592         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
3593         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
3594         Likewise.
3595         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
3596         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
3597         Likewise.
3598         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
3599         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
3600         Use __sim_round_mode_thread.
3601         * math/test-fenv-tls.c: New file.
3602         * math/Makefile (tests): Add test-fenv-tls.
3603         ($(objpfx)test-fenv-tls): Depend on
3604         $(common-objpfx)nptl/libpthread.so.
3605
3606 2013-11-19  Andreas Schwab  <schwab@suse.de>
3607
3608         * locale/programs/locale.c (show_info): Decode wordarray elements.
3609         * locale/categories.def (LC_MONETARY): Add element for
3610         _NL_MONETARY_CRNCYSTR.
3611         * locale/C-monetary.c (conversion_rate): New variable.
3612         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
3613         element.
3614
3615 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
3616
3617         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
3618         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
3619
3620 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3621
3622         * elf/Makefile (tst-auxv): New test.
3623         * elf/tst-auxv.c: New
3624         * elf/rtld.c (dl_main): Adjust AT_EXECFN
3625
3626 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
3627
3628         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
3629         (hidden_proto): Caller changed.
3630         (hidden_tls_proto): New macro.
3631         (libc_hidden_tls_proto): Likewise.
3632         (rtld_hidden_tls_proto): Likewise.
3633         (libm_hidden_tls_proto): Likewise.
3634         (libresolv_hidden_tls_proto): Likewise.
3635         (librt_hidden_tls_proto): Likewise.
3636         (libdl_hidden_tls_proto): Likewise.
3637         (libnss_files_hidden_tls_proto): Likewise.
3638         (libnsl_hidden_tls_proto): Likewise.
3639         (libnss_nisplus_hidden_tls_proto): Likewise.
3640         (libutil_hidden_tls_proto): Likewise.
3641
3642 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
3643
3644         [BZ #10253]
3645         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
3646         (decompose_rpath): Defer expansion to fillin_rpath.
3647         (_dl_init_paths): Pass linkmap to fillin_rpath.
3648
3649 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3650
3651         * benchtests/Makefile: Add strsep.
3652         * benchtests/bench-strsep.c: New file: strsep benchtest.
3653         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
3654
3655 2013-11-18  Andreas Schwab  <schwab@suse.de>
3656
3657         * locale/programs/locale.c (show_info) [case byte]: Check for
3658         '\377' instead of '\177'.
3659         * locale/C-monetary.c (not_available): Always use "\377".
3660         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
3661         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
3662         detect unavailable sign_posn locale elements.
3663         * locale/localeconv.c (__localeconv): For grouping and
3664         mon_grouping handle "\177" and "\377" like no grouping.
3665         (INT_ELEM): New macro.  Use it to set all numeric members.
3666         * locale/programs/ld-monetary.c (monetary_read)
3667         <tok_mon_grouping>: Normalize single -1 to the empty string.
3668         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
3669         Likewise.
3670
3671 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3672
3673         [BZ #16055]
3674         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
3675         when we match (nil).
3676         * stdio-common/tst-sscanf.c (struct test): Add testcase.
3677
3678 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
3679
3680         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
3681         (NO_TEST_INLINE): Update value.
3682         (ERRNO_UNCHANGED): Likewise.
3683         (ERRNO_EDOM): Likewise.
3684         (ERRNO_ERANGE): Likewise.
3685         (IGNORE_RESULT): Likewise.
3686         (check_float_internal): Check signs of NaN results if
3687         TEST_NAN_SIGN used.
3688         (check_complex): Pass TEST_NAN_SIGN flag through to second
3689         check_float_internal call.
3690         (copysign_test_data): Add tests with quiet NaNs as second
3691         argument.  Use TEST_NAN_SIGN.
3692         (fabs_test_data): Add test of negative quiet NaN argument.  Use
3693         TEST_NAN_SIGN.
3694         (signbit_test_data): Add tests of quiet NaN argument.
3695         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
3696
3697         * math/gen-libm-test.pl (show_exceptions): Take extra argument
3698         $ignore_result.
3699         (parse_args): Handle function results specified as IGNORE.
3700         * math/libm-test.inc (IGNORE_RESULT): New macro.
3701         (check_float_internal): Do not check numerical result if flag
3702         IGNORE_RESULT set.
3703         (check_complex): Pass through IGNORE_RESULT to second
3704         check_float_internal call.
3705         (check_int): Do not check numerical result if flag IGNORE_RESULT
3706         set.
3707         (check_long): Likewise.
3708         (check_bool): Likewise.
3709         (check_longlong): Likewise.
3710         (lrint_test_data): Add tests of infinite and NaN arguments.
3711         (lrint_tonearest_test_data): Likewise.
3712         (lrint_towardzero_test_data): Likewise.
3713         (lrint_downward_test_data): Likewise.
3714         (lrint_upward_test_data): Likewise.
3715         (llrint_test_data): Likewise.
3716         (llrint_tonearest_test_data): Likewise.
3717         (llrint_towardzero_test_data): Likewise.
3718         (llrint_downward_test_data): Likewise.
3719         (llrint_upward_test_data): Likewise.
3720         (lround_test_data): Likewise.
3721         (llround_test_data): Likewise.
3722
3723         * math/libm-test.inc (NO_TEST_INLINE): New macro.
3724         (ERRNO_UNCHANGED): Update value.
3725         (ERRNO_EDOM): Likewise.
3726         (ERRNO_ERANGE): Likewise.
3727         (NO_TEST_INLINE_FLOAT): New macro.
3728         (NO_TEST_INLINE_DOUBLE): Likewise.
3729         (enable_test): New function.
3730         (RUN_TEST_f_f): Check enable_test before running test.
3731         (RUN_TEST_2_f): Likewise.
3732         (RUN_TEST_fff_f): Likewise.
3733         (RUN_TEST_c_f): Likewise.
3734         (RUN_TEST_f_f1): Likewise.
3735         (RUN_TEST_fF_f1): Likewise.
3736         (RUN_TEST_fI_f1): Likewise.
3737         (RUN_TEST_ffI_f1): Likewise.
3738         (RUN_TEST_c_c): Likewise.
3739         (RUN_TEST_cc_c): Likewise.
3740         (RUN_TEST_f_i): Likewise.
3741         (RUN_TEST_f_i_tg): Likewise.
3742         (RUN_TEST_ff_i_tg): Likewise.
3743         (RUN_TEST_f_b): Likewise.
3744         (RUN_TEST_f_b_tg): Likewise.
3745         (RUN_TEST_f_l): Likewise.
3746         (RUN_TEST_f_L): Likewise.
3747         (RUN_TEST_fFF_11): Likewise.
3748         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
3749         conditionals.
3750         (cosh_test_data): Likewise.
3751         (exp_test_data): Likewise.
3752         (expm1_test_data): Likewise.
3753         (hypot_test_data): Likewise.
3754         (pow_test_data): Likewise.
3755         (sinh_test_data): Likewise.
3756         (tanh_test_data): Likewise.
3757         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
3758         flags argument.
3759
3760         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
3761         tests with quiet NaN input and output.
3762         (acosh_test_data): Likewise.
3763         (asin_test_data): Likewise.
3764         (asinh_test_data): Likewise.
3765         (atan_test_data): Likewise.
3766         (atanh_test_data): Likewise.
3767         (atan2_test_data): Likewise.
3768         (cbrt_test_data): Likewise.
3769         (cos_test_data): Likewise.
3770         (cosh_test_data): Likewise.
3771         (erf_test_data): Likewise.
3772         (erfc_test_data): Likewise.
3773         (exp_test_data): Likewise.
3774         (exp10_test_data): Likewise.
3775         (exp2_test_data): Likewise.
3776         (expm1_test_data): Likewise.
3777         (hypot_test_data): Likewise.
3778         (j0_test_data): Likewise.
3779         (j1_test_data): Likewise.
3780         (jn_test_data): Likewise.
3781         (lgamma_test_data): Likewise.
3782         (log_test_data): Likewise.
3783         (log10_test_data): Likewise.
3784         (log1p_test_data): Likewise.
3785         (log2_test_data): Likewise.
3786         (pow_test_data): Likewise.
3787         (scalb_test_data): Likewise.
3788         (sin_test_data): Likewise.
3789         (sincos_test_data): Likewise.
3790         (sinh_test_data): Likewise.
3791         (tan_test_data): Likewise.
3792         (tanh_test_data): Likewise.
3793         (tgamma_test_data): Likewise.
3794         (y0_test_data): Likewise.
3795         (y1_test_data): Likewise.
3796         (yn_test_data): Likewise.
3797
3798         [BZ #16167]
3799         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
3800         argument being NaN and avoid computations with second argument in
3801         that case.
3802         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3803         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3804         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3805
3806 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
3807
3808         * locale/iso-639.def: Add Chitwani Tharu (the).
3809
3810 2013-11-14  Andreas Schwab  <schwab@suse.de>
3811
3812         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
3813         word instead of empty string.
3814
3815 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3816
3817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3818         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
3819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3820         (__fe_nomask_env): Likewise.
3821
3822 2013-11-13  Steve Ellcey  <sellcey@mips.com>
3823
3824         * benchtests/bench-timing.h: Include time.h.
3825
3826 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
3827
3828         [BZ #15997]
3829         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
3830         to 3.4.0 for x32.
3831         * sysdeps/unix/sysv/linux/configure: Regenerated.
3832
3833 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3834
3835         [BZ #16151]
3836         * stdlib/strtod_l.c (round_and_return): Do not consider
3837         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
3838         exponent one less than half the least subnormal exponent.
3839         * stdlib/test-strtod-round-data: Add more tests.
3840         * stdlib/tst-strtod-round.c (tests): Regenerated.
3841
3842 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3843
3844         [BZ #14143]
3845         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
3846         (__fe_mask_env): Likewise.
3847         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
3848         libm_hidden_proto and add function prototype.
3849         (__fe_mask_env): Add function prototype.
3850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3851         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
3852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3853         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
3854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3855         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
3856
3857 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3858
3859         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
3860         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
3861
3862 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3863
3864         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
3865         of htab_find_slot().
3866
3867 2013-11-11  David S. Miller  <davem@davemloft.net>
3868
3869         [BZ #16150]
3870         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
3871         symbol in the non-vis3 case in static builds.
3872         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
3873         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
3874         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
3875         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
3876
3877 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3878
3879         [BZ #387]
3880         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
3881         it is empty.
3882
3883 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3884
3885         * benchtests/Makefile: Add bench-strtod.
3886         * benchtests/bench-strtod.c: New file: strtod benchtest
3887
3888 2013-11-11  Andreas Schwab  <schwab@suse.de>
3889
3890         [BZ #16153]
3891         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
3892         terminating NUL in key length.
3893
3894 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3895
3896         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
3897         Add artificial ODP entry for vDSO symbol for PPC64.
3898         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
3899         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
3900
3901 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3902
3903         [BZ #15374]
3904         * nss/getent.c (services_keys): Recognize services starting with digit.
3905
3906 2013-11-06  David S. Miller  <davem@davemloft.net>
3907
3908         [BZ #15985]
3909         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
3910         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
3911
3912 2013-11-06  Will Newton  <will.newton@linaro.org>
3913
3914         * manual/memory.texi (Malloc Examples): Remove register
3915         keyword from examples.
3916
3917 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
3918
3919         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
3920
3921 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
3922
3923         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
3924         depending on [__GCC_IEC_559 > 0].
3925         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
3926         depending on [__GCC_IEC_559_COMPLEX > 0].
3927
3928 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
3929
3930         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
3931         to iso-639.def.
3932
3933 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
3934
3935         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
3936
3937 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
3938
3939         [BZ #16112]
3940         * malloc/malloc (malloc_info): Do not handle first bin as
3941         special case.
3942
3943 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
3944
3945         * locale/iso-639.def: Add Central Nahuatl (nhn).
3946
3947 2013-11-01  Bruno Haible  <bruno@clisp.org>
3948
3949         [BZ #7003]
3950         * manual/math.texi (BSD Random): Specify range upper bound as
3951         in POSIX.
3952
3953 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
3954
3955         * locale/iso-639.def: Add Meadow Mari (mhr).
3956
3957 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
3958
3959         [BZ #14752], [BZ #15763]
3960         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
3961         Validate name.
3962         * rt/tst_shm.c: Add test for escaping directory.
3963
3964 2013-10-31  Andreas Schwab  <schwab@suse.de>
3965
3966         [BZ #15917]
3967         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
3968         followed by 'x' as part of digit sequence.
3969         * stdio-common/tst-sscanf.c (double_tests2): New tests.
3970
3971 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
3972
3973         [BZ #16037]
3974         * configure.ac: allow GNU Make 4.0 and greater.
3975         * configure: Regenerated.
3976
3977 2013-10-30  Will Newton  <will.newton@linaro.org>
3978
3979         [BZ #16038]
3980         * malloc/hooks.c (memalign_check): Limit alignment to the
3981         maximum representable power of two.
3982         * malloc/malloc.c (__libc_memalign): Likewise.
3983         * malloc/tst-memalign.c (do_test): Add test for very
3984         large alignment values.
3985         * malloc/tst-posix_memalign.c (do_test): Likewise.
3986
3987 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3988
3989         [BZ #11087]
3990         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
3991         (munmap_chunk): Likewise.
3992         (mremap_chunk): Likewise.
3993
3994 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3995
3996         [BZ #15799]
3997         * stdlib/div.c (div): Remove obsolete code.
3998         * stdlib/ldiv.c (ldiv): Likewise.
3999         * stdlib/lldiv.c (lldiv): Likewise.
4000
4001 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4002
4003         [BZ #16071]
4004         * nss/nss_files/files-XXX.c (get_contents_ret): New
4005         enumerator.
4006         (get_contents): New function.
4007         (internal_getent): Use it.  Expand size of LINEBUFLEN.
4008
4009 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
4010
4011         * configure.in: Moved to ...
4012         * configure.ac: ... here. Change reference to configure.in
4013         to configure.ac.
4014         * sysdeps/arm/preconfigure.ac: ... here.
4015         configure.in to configure.ac.
4016         * sysdeps/gnu/configure.in: Moved to ...
4017         * sysdeps/gnu/configure.ac: ... here.
4018         * sysdeps/i386/configure.in: Moved to ...
4019         * sysdeps/i386/configure.ac: ... here.
4020         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
4021         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
4022         * sysdeps/mach/configure.in: Moved to ...
4023         * sysdeps/mach/configure.ac: ... here.
4024         * sysdeps/mach/hurd/configure.in: Moved to ...
4025         * sysdeps/mach/hurd/configure.ac: ... here.
4026         * sysdeps/powerpc/configure.in: Moved to ...
4027         * sysdeps/powerpc/configure.ac: ... here.
4028         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
4029         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
4030         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
4031         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
4032         * sysdeps/s390/s390-32/configure.in: Moved to ...
4033         * sysdeps/s390/s390-32/configure.ac: ... here.
4034         * sysdeps/s390/s390-64/configure.in: Moved to ...
4035         * sysdeps/s390/s390-64/configure.ac: ... here.
4036         * sysdeps/sh/configure.in: Moved to ...
4037         * sysdeps/sh/configure.ac: ... here.
4038         * sysdeps/sparc/configure.in: Moved to ...
4039         * sysdeps/sparc/configure.ac: ... here.
4040         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
4041         * sysdeps/unix/sysv/linux/configure.ac: ... here.
4042         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
4043         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
4044         * sysdeps/x86_64/configure.in: Moved to ...
4045         * sysdeps/x86_64/configure.ac: ... here.
4046         * sysdeps/x86_64/preconfigure.in: Moved to ...
4047         * sysdeps/x86_64/preconfigure.ac: ... here.
4048         * aclocal.m4: Change reference to configure.in to configure.ac.
4049         * config.h.in: Likewise.
4050         * manual/install.texi: Likewise.
4051         * manual/maint.texi: Likewise.
4052         * Makefile: Likewise.
4053         * malloc/Makefile: Likewise.
4054         * nscd/Makefile: Likewise.
4055         * Makeconfig: Change reference to configure.in and
4056         preconfigure.in to configure.ac and preconfigure.ac
4057         respectively.
4058         * INSTALL: Regenerated.
4059         * configure: Likewise.
4060         * sysdeps/gnu/configure: Likewise.
4061         * sysdeps/i386/configure: Likewise.
4062         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
4063         * sysdeps/mach/configure: Likewise.
4064         * sysdeps/mach/hurd/configure: Likewise.
4065         * sysdeps/powerpc/configure: Likewise.
4066         * sysdeps/powerpc/powerpc32/configure: Likewise.
4067         * sysdeps/powerpc/powerpc64/configure: Likewise.
4068         * sysdeps/s390/s390-32/configure: Likewise.
4069         * sysdeps/s390/s390-64/configure: Likewise.
4070         * sysdeps/sh/configure: Likewise.
4071         * sysdeps/sparc/configure: Likewise.
4072         * sysdeps/unix/sysv/linux/configure: Likewise.
4073         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
4074         * sysdeps/x86_64/configure: Likewise.
4075         * sysdeps/x86_64/preconfigure: Likewise.
4076
4077 2013-10-29  Andreas Schwab  <schwab@suse.de>
4078
4079         * stdio-common/Makefile (tst-swscanf-ENV): Define.
4080
4081 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4082
4083         * benchtests/pow-inputs: Add new inputs.
4084
4085         * benchtests/exp-inputs: Add new inputs.
4086
4087         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
4088         conditional check for return value.
4089         (__cos32): Likewise.
4090
4091 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4092
4093         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
4094         to provide a boost for large inputs with word alignment.
4095         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
4096         implementation based on optimized PPC64 strcpy.
4097         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
4098         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
4099         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
4100         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
4101
4102 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4103
4104         [BZ #2801]
4105         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
4106
4107 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4108
4109         [BZ #14876]
4110         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
4111         * time/tst-strptime.c (day_tests): Add testcase.
4112
4113 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4114
4115         [BZ #14029]
4116         * manual/pattern.texi: Acknowledge that fnmatch can fail.
4117
4118 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
4119
4120         [BZ #16074]
4121         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
4122         MAP_FAILED on error.
4123
4124 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4125
4126         [BZ #16072]
4127         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
4128         heap for large requests.
4129
4130 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
4131
4132         [BZ #9954]
4133         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
4134         result if the result has no associated interface.
4135         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
4136         interface for all 127.X.Y.Z addresses.
4137
4138 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
4139
4140         * locale/iso-639.def: Add Ligurian (lij)
4141
4142 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
4143
4144         [BZ #15825]
4145         * sunrpc/rpc_main.c: Document rpcgen -5.
4146
4147 2013-10-19  Michael Stahl  <mstahl@redhat.com>
4148
4149         * elf/rtld.c (do_preload): Print the reason why preloading failed.
4150
4151 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4152
4153         [BZ #10278]
4154         * posix/glob.c: Match only directories when trailing slash is present.
4155         * posix/tst-gnuglob.c (my_opendir): Do not open files.
4156         (main): Add testcase.
4157
4158 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4159
4160         [BZ #15670]
4161         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
4162
4163 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
4164
4165         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
4166         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
4167         AUTH_DES and cindex for FIPS 140-2.
4168         (DES Encryption): Add cindex FIPS 46-3.
4169
4170         * locale/locarchive.h (struct locarhandle): Add fname.
4171         * locale/programs/localedef.c (main): Pass ARGV[remaining]
4172         if an optional argument was specified to --list-archive,
4173         otherwise NULL.
4174         * locale/programs/locarchive.c (show_archive_content): Take new
4175         argument fname and pass it via ah.fname to open_archive.
4176         * locale/programs/localedef.h: Update decl.
4177         (open_archive): If AH->fname is non-null, open that file
4178         rather than the default file name, and don't ignore ENOENT.
4179         (create_archive): Set AH.fname to NULL.
4180         (delete_locales_from_archive): Likewise.
4181         (add_locales_to_archive): Likewise.
4182         * locale/programs/locfile.c (write_all_categories): Likewise.
4183
4184 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
4185             Aldy Hernandez  <aldyh@redhat.com>
4186
4187         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
4188         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
4189         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
4190         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
4191         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
4192         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
4193         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
4194         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
4195         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
4196         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
4197         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
4198         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
4199         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
4200         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
4201         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
4202         Likewise.
4203         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
4204         Likewise.
4205         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
4206         Likewise.
4207         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
4208         Likewise.
4209         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
4210         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
4211         Likewise.
4212         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
4213         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
4214         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
4215         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
4216         Likewise.
4217         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
4218         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
4219         * sysdeps/powerpc/preconfigure: Likewise.
4220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
4221         Likewise.
4222         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
4223         Replace contents of file by #include of <fenv_libc.h>.
4224         * sysdeps/powerpc/soft-fp/sfp-machine.h
4225         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
4226         and <sys/prctl.h>.
4227         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
4228         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
4229         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
4230         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
4231         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
4232         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
4233         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
4234         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
4235         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
4236         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
4237         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
4238         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
4239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
4240         Allow copysignl PLT reference to be missing.
4241
4242 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
4243             Joseph Myers  <joseph@codesourcery.com
4244
4245         [BZ #15948]
4246         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
4247         single character.
4248         (add_to_tablewc): Assert sequence of wide characters is nonempty.
4249
4250 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4251
4252         * elf/tst-tls-dlinfo.c: Don't include tls.h.
4253         * elf/tst-tls1.c: Likewise.
4254         * elf/tst-tls10.h: Likewise.
4255         * elf/tst-tls14.c: Likewise.
4256         * elf/tst-tls2.c: Likewise.
4257         * elf/tst-tls3.c: Likewise.
4258         * elf/tst-tls4.c: Likewise.
4259         * elf/tst-tls5.c: Likewise.
4260         * elf/tst-tls6.c: Likewise.
4261         * elf/tst-tls7.c: Likewise.
4262         * elf/tst-tls8.c: Likewise.
4263         * elf/tst-tls9.c: Likewise.
4264         * elf/tst-tlsmod1.c: Likewise.
4265         * elf/tst-tlsmod13.c: Likewise.
4266         * elf/tst-tlsmod13a.c: Likewise.
4267         * elf/tst-tlsmod14a.c: Likewise.
4268         * elf/tst-tlsmod16a.c: Likewise.
4269         * elf/tst-tlsmod16b.c: Likewise.
4270         * elf/tst-tlsmod2.c: Likewise.
4271         * elf/tst-tlsmod3.c: Likewise.
4272         * elf/tst-tlsmod4.c: Likewise.
4273         * elf/tst-tlsmod5.c: Likewise.
4274         * elf/tst-tlsmod6.c: Likewise.
4275
4276 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
4277
4278         [BZ #12486]
4279         * malloc/malloc.c: remove checks for statistics.
4280
4281 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4282
4283         [BZ #15277]
4284         * inet/inet_net.c (inet_network): Detect additional invalid strings.
4285         * inet/tst-network.c: Add testcase.
4286
4287 2013-10-17  Andreas Schwab  <schwab@suse.de>
4288
4289         [BZ #15218]
4290         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
4291         to determine canonical name.
4292
4293 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4294
4295         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
4296         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
4297         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4298         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4299         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4300         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4301         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4302         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4303         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4304         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4305         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4306         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4307         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4308         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4309         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4310         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4311         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4312         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4313         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4314         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4315         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4316         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4317         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4318         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
4319         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
4320         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4321         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4322         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
4323         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4324         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
4325         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4326         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4327         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4328         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4329         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4330         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4331         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4332         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4333         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4334         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4335         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4336         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4337         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
4338         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4339         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4340         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4341         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4342         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4343         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
4344         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4345         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
4346         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4347         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
4348         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
4349         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4350         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4351         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4352         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4353
4354 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
4355
4356         [BZ #16041]
4357         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
4358         make result into a quiet NaN.
4359
4360 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
4361
4362         * soft-fp/adddf3.c: Fix horizontal whitespace.
4363         * soft-fp/addsf3.c: Likewise.
4364         * soft-fp/addtf3.c: Likewise.
4365         * soft-fp/divdf3.c: Likewise.
4366         * soft-fp/divsf3.c: Likewise.
4367         * soft-fp/divtf3.c: Likewise.
4368         * soft-fp/double.h: Likewise.
4369         * soft-fp/eqdf2.c: Likewise.
4370         * soft-fp/eqsf2.c: Likewise.
4371         * soft-fp/eqtf2.c: Likewise.
4372         * soft-fp/extenddftf2.c: Likewise.
4373         * soft-fp/extended.h: Likewise.
4374         * soft-fp/extendsfdf2.c: Likewise.
4375         * soft-fp/extendsftf2.c: Likewise.
4376         * soft-fp/extendxftf2.c: Likewise.
4377         * soft-fp/fixdfdi.c: Likewise.
4378         * soft-fp/fixdfsi.c: Likewise.
4379         * soft-fp/fixdfti.c: Likewise.
4380         * soft-fp/fixsfdi.c: Likewise.
4381         * soft-fp/fixsfsi.c: Likewise.
4382         * soft-fp/fixsfti.c: Likewise.
4383         * soft-fp/fixtfdi.c: Likewise.
4384         * soft-fp/fixtfsi.c: Likewise.
4385         * soft-fp/fixtfti.c: Likewise.
4386         * soft-fp/fixunsdfdi.c: Likewise.
4387         * soft-fp/fixunsdfsi.c: Likewise.
4388         * soft-fp/fixunsdfti.c: Likewise.
4389         * soft-fp/fixunssfdi.c: Likewise.
4390         * soft-fp/fixunssfsi.c: Likewise.
4391         * soft-fp/fixunssfti.c: Likewise.
4392         * soft-fp/fixunstfdi.c: Likewise.
4393         * soft-fp/fixunstfsi.c: Likewise.
4394         * soft-fp/fixunstfti.c: Likewise.
4395         * soft-fp/floatdidf.c: Likewise.
4396         * soft-fp/floatdisf.c: Likewise.
4397         * soft-fp/floatditf.c: Likewise.
4398         * soft-fp/floatsidf.c: Likewise.
4399         * soft-fp/floatsisf.c: Likewise.
4400         * soft-fp/floatsitf.c: Likewise.
4401         * soft-fp/floattidf.c: Likewise.
4402         * soft-fp/floattisf.c: Likewise.
4403         * soft-fp/floattitf.c: Likewise.
4404         * soft-fp/floatundidf.c: Likewise.
4405         * soft-fp/floatundisf.c: Likewise.
4406         * soft-fp/floatunditf.c: Likewise.
4407         * soft-fp/floatunsidf.c: Likewise.
4408         * soft-fp/floatunsisf.c: Likewise.
4409         * soft-fp/floatunsitf.c: Likewise.
4410         * soft-fp/floatuntidf.c: Likewise.
4411         * soft-fp/floatuntisf.c: Likewise.
4412         * soft-fp/floatuntitf.c: Likewise.
4413         * soft-fp/fmadf4.c: Likewise.
4414         * soft-fp/fmasf4.c: Likewise.
4415         * soft-fp/fmatf4.c: Likewise.
4416         * soft-fp/gedf2.c: Likewise.
4417         * soft-fp/gesf2.c: Likewise.
4418         * soft-fp/getf2.c: Likewise.
4419         * soft-fp/ledf2.c: Likewise.
4420         * soft-fp/lesf2.c: Likewise.
4421         * soft-fp/letf2.c: Likewise.
4422         * soft-fp/muldf3.c: Likewise.
4423         * soft-fp/mulsf3.c: Likewise.
4424         * soft-fp/multf3.c: Likewise.
4425         * soft-fp/negdf2.c: Likewise.
4426         * soft-fp/negsf2.c: Likewise.
4427         * soft-fp/negtf2.c: Likewise.
4428         * soft-fp/op-1.h: Likewise.
4429         * soft-fp/op-2.h: Likewise.
4430         * soft-fp/op-4.h: Likewise.
4431         * soft-fp/op-8.h: Likewise.
4432         * soft-fp/op-common.h: Likewise.
4433         * soft-fp/quad.h: Likewise.
4434         * soft-fp/single.h: Likewise.
4435         * soft-fp/soft-fp.h: Likewise.
4436         * soft-fp/sqrtdf2.c: Likewise.
4437         * soft-fp/sqrtsf2.c: Likewise.
4438         * soft-fp/sqrttf2.c: Likewise.
4439         * soft-fp/subdf3.c: Likewise.
4440         * soft-fp/subsf3.c: Likewise.
4441         * soft-fp/subtf3.c: Likewise.
4442         * soft-fp/truncdfsf2.c: Likewise.
4443         * soft-fp/trunctfdf2.c: Likewise.
4444         * soft-fp/trunctfsf2.c: Likewise.
4445         * soft-fp/trunctfxf2.c: Likewise.
4446         * soft-fp/unorddf2.c: Likewise.
4447         * soft-fp/unordsf2.c: Likewise.
4448         * soft-fp/unordtf2.c: Likewise.
4449
4450 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
4451
4452         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
4453         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
4454
4455 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
4456
4457         * elf/dl-libc.c: Clear initfini list after freeing.
4458
4459 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
4460
4461         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
4462         * soft-fp/addsf3.c: Likewise.
4463         * soft-fp/addtf3.c: Likewise.
4464         * soft-fp/divdf3.c: Likewise.
4465         * soft-fp/divsf3.c: Likewise.
4466         * soft-fp/divtf3.c: Likewise.
4467         * soft-fp/double.h: Likewise.
4468         * soft-fp/eqdf2.c: Likewise.
4469         * soft-fp/eqsf2.c: Likewise.
4470         * soft-fp/eqtf2.c: Likewise.
4471         * soft-fp/extenddftf2.c: Likewise.
4472         * soft-fp/extended.h: Likewise.
4473         * soft-fp/extendsfdf2.c: Likewise.
4474         * soft-fp/extendsftf2.c: Likewise.
4475         * soft-fp/extendxftf2.c: Likewise.
4476         * soft-fp/fixdfdi.c: Likewise.
4477         * soft-fp/fixdfsi.c: Likewise.
4478         * soft-fp/fixdfti.c: Likewise.
4479         * soft-fp/fixsfdi.c: Likewise.
4480         * soft-fp/fixsfsi.c: Likewise.
4481         * soft-fp/fixsfti.c: Likewise.
4482         * soft-fp/fixtfdi.c: Likewise.
4483         * soft-fp/fixtfsi.c: Likewise.
4484         * soft-fp/fixtfti.c: Likewise.
4485         * soft-fp/fixunsdfdi.c: Likewise.
4486         * soft-fp/fixunsdfsi.c: Likewise.
4487         * soft-fp/fixunsdfti.c: Likewise.
4488         * soft-fp/fixunssfdi.c: Likewise.
4489         * soft-fp/fixunssfsi.c: Likewise.
4490         * soft-fp/fixunssfti.c: Likewise.
4491         * soft-fp/fixunstfdi.c: Likewise.
4492         * soft-fp/fixunstfsi.c: Likewise.
4493         * soft-fp/fixunstfti.c: Likewise.
4494         * soft-fp/floatdidf.c: Likewise.
4495         * soft-fp/floatdisf.c: Likewise.
4496         * soft-fp/floatditf.c: Likewise.
4497         * soft-fp/floatsidf.c: Likewise.
4498         * soft-fp/floatsisf.c: Likewise.
4499         * soft-fp/floatsitf.c: Likewise.
4500         * soft-fp/floattidf.c: Likewise.
4501         * soft-fp/floattisf.c: Likewise.
4502         * soft-fp/floattitf.c: Likewise.
4503         * soft-fp/floatundidf.c: Likewise.
4504         * soft-fp/floatundisf.c: Likewise.
4505         * soft-fp/floatunsidf.c: Likewise.
4506         * soft-fp/floatunsisf.c: Likewise.
4507         * soft-fp/floatuntidf.c: Likewise.
4508         * soft-fp/floatuntisf.c: Likewise.
4509         * soft-fp/floatuntitf.c: Likewise.
4510         * soft-fp/fmadf4.c: Likewise.
4511         * soft-fp/fmasf4.c: Likewise.
4512         * soft-fp/fmatf4.c: Likewise.
4513         * soft-fp/gedf2.c: Likewise.
4514         * soft-fp/gesf2.c: Likewise.
4515         * soft-fp/getf2.c: Likewise.
4516         * soft-fp/ledf2.c: Likewise.
4517         * soft-fp/lesf2.c: Likewise.
4518         * soft-fp/letf2.c: Likewise.
4519         * soft-fp/muldf3.c: Likewise.
4520         * soft-fp/mulsf3.c: Likewise.
4521         * soft-fp/multf3.c: Likewise.
4522         * soft-fp/negdf2.c: Likewise.
4523         * soft-fp/negsf2.c: Likewise.
4524         * soft-fp/negtf2.c: Likewise.
4525         * soft-fp/op-1.h: Likewise.
4526         * soft-fp/op-2.h: Likewise.
4527         * soft-fp/op-4.h: Likewise.
4528         * soft-fp/op-8.h: Likewise.
4529         * soft-fp/op-common.h: Likewise.
4530         * soft-fp/quad.h: Likewise.
4531         * soft-fp/single.h: Likewise.
4532         * soft-fp/soft-fp.h: Likewise.
4533         * soft-fp/sqrtdf2.c: Likewise.
4534         * soft-fp/sqrtsf2.c: Likewise.
4535         * soft-fp/sqrttf2.c: Likewise.
4536         * soft-fp/subdf3.c: Likewise.
4537         * soft-fp/subsf3.c: Likewise.
4538         * soft-fp/subtf3.c: Likewise.
4539         * soft-fp/truncdfsf2.c: Likewise.
4540         * soft-fp/trunctfdf2.c: Likewise.
4541         * soft-fp/trunctfsf2.c: Likewise.
4542         * soft-fp/trunctfxf2.c: Likewise.
4543         * soft-fp/unorddf2.c: Likewise.
4544         * soft-fp/unordsf2.c: Likewise.
4545         * soft-fp/unordtf2.c: Likewise.
4546
4547 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
4548
4549         [BZ #15672]
4550         * misc/error.c (error_tail): Fix possible buffer overflow.
4551
4552 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
4553
4554         [BZ #13028]
4555         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
4556         address.
4557
4558 2013-10-14  P. J. McDermott  <pj@pehjota.net>
4559
4560         [BZ #832]
4561         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
4562         testing pipefail option.
4563
4564 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4565
4566         * soft-fp/double.h: Indent preprocessor directives inside #if.
4567         * soft-fp/extended.h: Likewise.
4568         * soft-fp/op-2.h: Likewise.
4569         * soft-fp/op-4.h: Likewise.
4570         * soft-fp/op-common.h: Likewise.
4571         * soft-fp/quad.h: Likewise.
4572         * soft-fp/single.h: Likewise.
4573         * soft-fp/soft-fp.h: Likewise.
4574
4575 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
4576
4577         * iconv/iconv_prog.c: Fix typos.
4578         * stdio-common/psiginfo-data.h: Likewise.
4579
4580 2013-10-12   Reuben Thomas <rrt@sc3d.org>
4581
4582         [BZ #15764]
4583         * locale/setlocale.c: Fix typo.
4584
4585 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4586
4587         [BZ #16036]
4588         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
4589         signaling NaN arguments.
4590         * soft-fp/unordsf2.c (__unordsf2): Likewise.
4591         * soft-fp/unordtf2.c (__unordtf2): Likewise.
4592
4593         [BZ #14910]
4594         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
4595         unordered operands.
4596         * soft-fp/gesf2.c (__gesf2): Likewise.
4597         * soft-fp/getf2.c (__getf2): Likewise.
4598         * soft-fp/ledf2.c (__ledf2): Likewise.
4599         * soft-fp/lesf2.c (__lesf2): Likewise.
4600         * soft-fp/letf2.c (__letf2): Likewise.
4601
4602         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
4603         * soft-fp/eqsf2.c (__eqsf2): Likewise.
4604         * soft-fp/eqtf2.c (__eqtf2): Likewise.
4605         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
4606         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
4607         * soft-fp/fixdfti.c (__fixdfti): Likewise.
4608         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
4609         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
4610         * soft-fp/fixsfti.c (__fixsfti): Likewise.
4611         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
4612         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
4613         * soft-fp/fixtfti.c (__fixtfti): Likewise.
4614         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
4615         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
4616         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
4617         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
4618         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
4619         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
4620         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
4621         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
4622         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
4623         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
4624         * soft-fp/floatdisf.c (__floatdisf): Likewise.
4625         * soft-fp/floatsisf.c (__floatsisf): Likewise.
4626         * soft-fp/floattidf.c (__floattidf): Likewise.
4627         * soft-fp/floattisf.c (__floattisf): Likewise.
4628         * soft-fp/floattitf.c (__floattitf): Likewise.
4629         * soft-fp/floatundidf.c (__floatundidf): Likewise.
4630         * soft-fp/floatundisf.c (__floatundisf): Likewise.
4631         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
4632         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
4633         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
4634         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
4635         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
4636         * soft-fp/gesf2.c (__gesf2): Likewise.
4637         * soft-fp/getf2.c (__getf2): Likewise.
4638         * soft-fp/ledf2.c (__ledf2): Likewise.
4639         * soft-fp/lesf2.c (__lesf2): Likewise.
4640         * soft-fp/letf2.c (__letf2): Likewise.
4641
4642         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
4643         Undefine and redefine.
4644         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
4645         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
4646         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
4647         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
4648         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4649         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
4650         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4651         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
4652         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4653         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
4654         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4655         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
4656         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4657         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
4658         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4659
4660         [BZ #16032]
4661         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
4662         without decrementing exponent if mantissa >= that for the
4663         denominator, not >.
4664         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
4665         denominator, not >.  Decrement exponent in < case instead of
4666         incrementing in >= case.
4667         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
4668         without decrementing exponent if mantissa >= that for the
4669         denominator, not >.
4670
4671         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
4672         computing saturated result for unsigned overflow.
4673
4674 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4675             Jeff Law  <law@redhat.com>
4676
4677         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
4678         (atan2Mp): Add systemtap probe marker.
4679         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
4680         (__ieee754_log): Add systemtap probe marker.
4681         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
4682         (atanMp): Add systemtap probe marker.
4683         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
4684         (tanMp): Add systemtap probe marker.
4685         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
4686         (__slowexp): Add systemtap probe marker.
4687         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
4688         (__slowpow): Add systemtap probe marker.
4689         * manual/probes.texi: Document probes.
4690
4691 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
4692
4693         [BZ #15362]
4694         * libio/fileops.c (_IO_new_file_write): Return count of bytes
4695         written.
4696         (_IO_new_file_xsputn): Don't return EOF if nothing has been
4697         written.
4698         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
4699         written to buffer but not flushed.
4700         * libio/iofwrite_u.c:  Likewise.
4701         * libio/iopadn.c:  Return bytes returned even if EOF was
4702         encountered.
4703         * libio/iowpadn.c:  Likewise.
4704         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
4705         if _IO_padn does not write the whole buffer.
4706         [!COMPILE_WPRINTF] (PAD): Likewise.
4707
4708 2013-10-10  David S. Miller  <davem@davemloft.net>
4709
4710         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
4711         directory block.
4712
4713 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4714
4715         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
4716         instead of FSF address.
4717         * soft-fp/fixdfti.c: Likewise.
4718         * soft-fp/fixsfti.c: Likewise.
4719         * soft-fp/fixtfti.c: Likewise.
4720         * soft-fp/fixunsdfti.c: Likewise.
4721         * soft-fp/fixunssfti.c: Likewise.
4722         * soft-fp/fixunstfti.c: Likewise.
4723         * soft-fp/floattidf.c: Likewise.
4724         * soft-fp/floattisf.c: Likewise.
4725         * soft-fp/floattitf.c: Likewise.
4726         * soft-fp/floatuntidf.c: Likewise.
4727         * soft-fp/floatuntisf.c: Likewise.
4728         * soft-fp/floatuntitf.c: Likewise.
4729         * soft-fp/trunctfxf2.c: Likewise.
4730
4731         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
4732         * soft-fp/fixdfti.c: Likewise.
4733         * soft-fp/fixsfti.c: Likewise.
4734         * soft-fp/fixtfti.c: Likewise.
4735         * soft-fp/fixunsdfti.c: Likewise.
4736         * soft-fp/fixunssfti.c: Likewise.
4737         * soft-fp/fixunstfti.c: Likewise.
4738         * soft-fp/floattidf.c: Likewise.
4739         * soft-fp/floattisf.c: Likewise.
4740         * soft-fp/floattitf.c: Likewise.
4741         * soft-fp/floatuntidf.c: Likewise.
4742         * soft-fp/floatuntisf.c: Likewise.
4743         * soft-fp/floatuntitf.c: Likewise.
4744         * soft-fp/trunctfxf2.c: Likewise.
4745
4746 2013-10-10  David S. Miller  <davem@davemloft.net>
4747
4748         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4749
4750 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
4751
4752         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4753         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
4754         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
4755         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
4756         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
4757         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
4758         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
4759
4760         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
4761         for NaNs before doing comparisons on argument.
4762         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
4763         Likewise.
4764
4765 2013-10-10  Will Newton  <will.newton@linaro.org>
4766
4767         * malloc/hooks.c (memalign_check): Ensure the value of bytes
4768         passed to _int_memalign does not overflow.
4769
4770 2013-10-10  Torvald Riegel  <triegel@redhat.com>
4771
4772         * scripts/bench.pl: Add include-sources directive.
4773         * benchtests/README: Update documentation.
4774
4775 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4776
4777         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
4778         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
4779         instead of FP_INIT_ROUNDMODE.
4780         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
4781         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
4782
4783         [BZ #16034]
4784         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
4785         copy class of input value.
4786         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
4787         not handle exceptions.
4788         * soft-fp/negsf2.c (__negsf2): Likewise.
4789         * soft-fp/negtf2.c (__negtf2): Likewise.
4790         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
4791
4792 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
4793
4794         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
4795         semicolon.  From Linux kernel.
4796
4797 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
4798
4799         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
4800
4801 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
4802
4803         [BZ #156]
4804         * manual/socket.texi: Added statement about buffer
4805         for gethostbyname2_r.
4806
4807 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
4808
4809         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
4810         Use .p2align directive instead, throughout.
4811         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4812         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4813         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4814         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4815         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4816         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
4817         * sysdeps/x86_64/strchr.S: Likewise.
4818         * sysdeps/x86_64/strrchr.S: Likewise.
4819
4820 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4821
4822         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
4823
4824         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
4825
4826         * sysdeps/generic/math_private.h (__mpsin1): Remove
4827         declaration.
4828         (__mpcos1): Likewise.
4829         (__mpsin): New argument __range_reduce.
4830         (__mpcos): Likewise.
4831         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4832         (slow): Use __mpsin and __mpcos.
4833         (slow1): Likewise.
4834         (slow2): Likewise.
4835         (sloww): Likewise.
4836         (sloww1): Likewise.
4837         (sloww2): Likewise.
4838         (bsloww): Likewise.
4839         (bsloww1): Likewise.
4840         (bsloww2): Likewise.
4841         (cslow2): Likewise.
4842         (csloww): Likewise.
4843         (csloww1): Likewise.
4844         (csloww2): Likewise.
4845         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
4846         range_reduce.  Merge in __mpsin1.
4847         (__mpcos): Likewise.
4848         (__mpsin1): Remove.
4849         (__mpcos1): Likewise.
4850
4851 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
4852
4853         * locale/loadlocale.c (_nl_intern_locale_data): Use
4854         LOCFILE_ALIGNED_P.
4855         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
4856         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
4857         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
4858         obstack data is appropriately aligned.
4859         (obstack_int32_grow_fast): Likewise.
4860         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
4861         * locale/programs/locfile.c (add_locale_uint32): Likewise.
4862         (add_locale_uint32_array): Likewise.
4863
4864 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4865
4866         * benchtests/Makefile: Remove ARGLIST and RET variables.
4867         ($(objpfx)bench-%.c): Pass only function name to the script.
4868         * benchtests/README: Update documentation.
4869         * benchtests/acos-inputs: Add new directives.
4870         * benchtests/acosh-inputs: Likewise.
4871         * benchtests/asin-inputs: Likewise.
4872         * benchtests/asinh-inputs: Likewise.
4873         * benchtests/atan-inputs: Likewise.
4874         * benchtests/atanh-inputs: Likewise.
4875         * benchtests/cos-inputs: Likewise.
4876         * benchtests/cosh-inputs: Likewise.
4877         * benchtests/exp-inputs: Likewise.
4878         * benchtests/log-inputs: Likewise.
4879         * benchtests/pow-inputs: Likewise.
4880         * benchtests/rint-inputs: Likewise.
4881         * benchtests/sin-inputs: Likewise.
4882         * benchtests/sinh-inputs: Likewise.
4883         * benchtests/tan-inputs: Likewise.
4884         * benchtests/tanh-inputs: Likewise.
4885         * scripts/bench.pl: Add support for new directives.
4886
4887 2013-10-07  Alan Modra  <amodra@gmail.com>
4888
4889         * README: Fix careless merge.
4890
4891 2013-10-05  Alan Modra  <amodra@gmail.com>
4892
4893         * NEWS: Mention powerpc64le support and bugs fixed.
4894         * README: Both big-endian and little-endian powerpc64 supported.
4895
4896 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4897
4898         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
4899         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
4900         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
4901         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
4902
4903 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
4904
4905         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
4906         match prototype.
4907
4908 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
4909
4910         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
4911         Move -mhard-float appending from
4912         ports/sysdeps/powerpc/powerpc32/Makefile.
4913         [$(with-fp) = yes] (ASFLAGS): Likewise.
4914         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
4915         * sysdeps/powerpc/nofpu: Move directory from
4916         ports/sysdeps/powerpc/nofpu.
4917         * sysdeps/powerpc/soft-fp: Move directory from
4918         ports/sysdeps/powerpc/soft-fp.
4919         * sysdeps/powerpc/powerpc32/405: Move directory from
4920         ports/sysdeps/powerpc/powerpc32/405.
4921         * sysdeps/powerpc/powerpc32/440: Move directory from
4922         ports/sysdeps/powerpc/powerpc32/440.
4923         * sysdeps/powerpc/powerpc32/464: Move directory from
4924         ports/sysdeps/powerpc/powerpc32/464.
4925         * sysdeps/powerpc/powerpc32/476: Move directory from
4926         ports/sysdeps/powerpc/powerpc32/476.
4927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
4928         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
4929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
4930         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
4931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
4932         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
4933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
4934         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
4935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
4936         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
4937         * README: Update for powerpc-*-linux-gnu software floating point
4938         support in libc.
4939
4940         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
4941         case to powerpc/powerpc32*.
4942         * sysdeps/unix/sysv/linux/configure: Regenerated.
4943
4944         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
4945         (_FPU_MASK_OM): Define as 0x04.
4946         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
4947         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
4948         0x00c10080.
4949         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
4950         0x0000003c.
4951         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
4952
4953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4954         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4955         getcontext_e500.
4956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4957         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4958         setcontext_e500.
4959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4960         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
4961         and setcontext_e500.
4962
4963 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
4964
4965         * locale/iso-3166.def: Update iso-1366.def and related occurrences
4966
4967 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4968
4969         * manual/threads.texi (Default Thread Attributes): Fix typo.
4970
4971 2013-10-04  Will Newton  <will.newton@linaro.org>
4972
4973         * malloc/Makefile: Add tst-memalign.
4974         * malloc/tst-memalign.c: New file.
4975
4976         * malloc/tst-posix_memalign.c: Add comments.
4977         (do_test): Add comments and call free on all potentially
4978         allocated pointers. Add space after cast.
4979
4980         * malloc/tst-pvalloc.c: Add comments.
4981         (do_test): Add comments and call free on all potentially
4982         allocated pointers. Remove duplicate check for NULL pointer.
4983         Add space after cast.
4984
4985         * malloc/tst-valloc.c: Add comments.
4986         (do_test): Add comments and call free on all potentially
4987         allocated pointers. Remove duplicate check for NULL pointer.
4988         Add space after cast.
4989
4990 2013-10-04  Alan Modra  <amodra@gmail.com>
4991
4992         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4993         Use stdint types in rather than __attribute__((mode())).
4994         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4995
4996 2013-10-04  Alan Modra  <amodra@gmail.com>
4997
4998         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4999         Correct handling of unaligned relocs for little-endian.
5000         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5001
5002 2013-10-04  Alan Modra  <amodra@gmail.com>
5003
5004         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
5005         * configure: Regenerate.
5006         * nptl/shlib-versions: Powerpc*le starts at 2.18.
5007         * shlib-versions: Likewise.
5008
5009 2013-10-04  Alan Modra  <amodra@gmail.com>
5010
5011         * string/tester.c (test_memrchr): Increment reported test cycle.
5012
5013 2013-10-04  Alan Modra  <amodra@gmail.com>
5014
5015         * string/test-memcpy.c (do_one_test): When reporting errors, print
5016         string address and don't overrun end of string.
5017
5018 2013-10-04  Alan Modra  <amodra@gmail.com>
5019
5020         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
5021         insrdi.  Make better use of reg selection to speed exit slightly.
5022         Schedule entry path a little better.  Remove useless "are we done"
5023         checks on entry to main loop.  Handle wrapping around zero address.
5024         Correct main loop count.  Handle single left-over word from main
5025         loop inline rather than by using loop_small.  Remove extra word
5026         case in loop_small caused by wrong loop count.  Add little-endian
5027         support.
5028         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5029         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
5030         cache hint.
5031         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5032         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
5033         support.  Avoid rlwimi.
5034         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
5035
5036 2013-10-04  Alan Modra  <amodra@gmail.com>
5037
5038         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
5039         insrdi.  Formatting.
5040         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5041         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5042         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
5043         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
5044         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
5045         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
5046
5047 2013-10-04  Alan Modra  <amodra@gmail.com>
5048
5049         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
5050         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5051         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
5052         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
5053         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5054         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5055         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5056         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
5057         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
5058         use of regs.  Use power7 mtocrf.  Tidy function tails.
5059
5060 2013-10-04  Alan Modra  <amodra@gmail.com>
5061
5062         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
5063         Formatting.  Consistently use rXXX register defines or rN defines.
5064         Use early exit labels that avoid restoring unused non-volatile regs.
5065         Make cr field use more consistent with rWORDn compares.  Rename
5066         regs used as shift registers for unaligned loop, using rN defines
5067         for short lifetime/multiple use regs.
5068         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5069         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
5070         addi 1,1,64 to pop stack frame.  Simplify return value code.
5071         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5072
5073 2013-10-04  Alan Modra  <amodra@gmail.com>
5074
5075         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
5076         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
5077         rather than rlwimi.
5078         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
5079         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
5080         little-endian support.  Correct typos.
5081         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
5082         rather than rlwimi.
5083         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
5084         in loop and entry code to keep "and." results.
5085         (strchr): Add little-endian support.  Comment.  Move cntlzd
5086         earlier in tail.
5087         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
5088
5089 2013-10-04  Alan Modra  <amodra@gmail.com>
5090
5091         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
5092         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
5093         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
5094         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
5095
5096 2013-10-04  Alan Modra  <amodra@gmail.com>
5097
5098         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
5099         (rTMP): Define as r11.
5100         (strcmp): Add little-endian support.  Optimise tail.
5101         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
5102         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5103         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5104         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5105         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5106         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5107         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5108
5109 2013-10-04  Alan Modra  <amodra@gmail.com>
5110
5111         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
5112         little-endian support.  Remove unnecessary "are we done" tests.
5113         Handle "s" wrapping around zero and extremely large "size".
5114         Correct main loop count.  Handle single left-over word from main
5115         loop inline rather than by using small_loop.  Correct comments.
5116         Delete "zero" tail, use "end_max" instead.
5117         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
5118
5119 2013-10-04  Alan Modra  <amodra@gmail.com>
5120
5121         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
5122         support.  Don't branch over align.
5123         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
5124         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
5125         support.  Rearrange tmp reg use to suit.  Comment.
5126         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
5127
5128 2013-10-04  Alan Modra  <amodra@gmail.com>
5129
5130         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
5131
5132 2013-10-04  Alan Modra  <amodra@gmail.com>
5133
5134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
5135         conditional form of branch and link when obtaining pc.
5136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
5137
5138 2013-10-04  Alan Modra  <amodra@gmail.com>
5139
5140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
5141         HIWORD/LOWORD.
5142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
5143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
5144
5145 2013-10-04  Alan Modra  <amodra@gmail.com>
5146
5147         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
5148         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
5149         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5150         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
5151         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5152         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5153         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
5154         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5155         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5156         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
5157
5158 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5159             Alistair Popple <alistair@ozlabs.au.ibm.com>
5160             Alan Modra <amodra@gmail.com>
5161
5162         [BZ #15723]
5163         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
5164         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
5165         _dl_hwcap access for little-endian.
5166         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
5167         destroy vmx regs when saving unaligned.
5168         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
5169         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
5170         destroy vmx regs when saving unaligned.
5171
5172 2013-10-04  Alan Modra  <amodra@gmail.com>
5173
5174         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
5175         Don't use a union to pack hi/low value.
5176
5177 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5178
5179         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
5180         for little-endian.
5181         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
5182         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
5183         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
5184         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
5185         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
5186
5187 2013-10-04  Alan Modra  <amodra@gmail.com>
5188
5189         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
5190         constants to usual value for .cst8 section, and remove redundant
5191         high address load.
5192         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
5193         constant for 0x1p52.  Load little-endian words of double from
5194         correct stack offsets.
5195
5196 2013-10-04  Alan Modra  <amodra@gmail.com>
5197
5198         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
5199         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
5200         words of double from correct stack offsets.
5201         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
5202         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
5203         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
5204         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
5205         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
5206         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
5207         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
5208         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
5209         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
5210         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
5211         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
5212         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
5213         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5214         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5215         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5216         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
5217         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
5218
5219 2013-10-04  Alan Modra  <amodra@gmail.com>
5220
5221         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
5222         64-bit int/double union.
5223         (_FPU_SETCW): Likewise.
5224         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5225         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
5226
5227 2013-10-04  Alan Modra  <amodra@gmail.com>
5228
5229         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
5230         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
5231
5232 2013-10-04  Alan Modra  <amodra@gmail.com>
5233
5234         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
5235         use vector int constants.
5236         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
5237
5238 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5239
5240         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
5241         array with long long.
5242         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
5243         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
5244         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
5245         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
5246         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
5247         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
5248         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
5249         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
5250         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
5251         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
5252         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
5253         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
5254         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
5255
5256 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5257
5258         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
5259         (__signbit): Likewise.  Correct for little-endian.
5260         (__signbitl): Call __signbit.
5261         (lrint): Correct for little-endian.
5262         (lrintf): Call lrint.
5263
5264 2013-10-04  Alan Modra  <amodra@gmail.com>
5265
5266         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
5267         union 32-bit int array member with 64-bit int array.
5268         (t515, tm256): Double rather than long double.
5269         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
5270
5271 2013-10-04  Alan Modra  <amodra@gmail.com>
5272
5273         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
5274         Delete.
5275         (IEEE854_LONG_DOUBLE_BIAS): Delete.
5276         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
5277         version of math_ldbl.h.
5278
5279 2013-10-04  Alan Modra  <amodra@gmail.com>
5280
5281         [BZ #15734], [BZ #15735]
5282         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
5283         all uses of ieee875 long double macros and unions.  Simplify test
5284         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
5285         ldbl_extract_mantissa value for ix,iy exponents.  Properly
5286         normalize after ldbl_extract_mantissa, and don't add hidden bit
5287         already handled.  Don't treat low word of ieee854 mantissa like
5288         low word of IBM long double and mask off bit when testing for
5289         zero.
5290         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
5291         all uses of ieee875 long double macros and unions.  Simplify tests
5292         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
5293         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
5294         two1022, instead use their values.  Recognise that tests for large
5295         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
5296         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
5297         Rewrite all uses of ieee875 long double macros and unions.  Simplify
5298         test for 0.0L and nan.  Correct negation.
5299         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
5300         ieee875 long double macros and unions.  Correct output for large
5301         magnitude x.  Correct absolute value calculation.
5302         (__erfcl): Likewise.
5303         * math/libm-test.inc: Add tests for errors discovered in IBM long
5304         double versions of fmodl, remainderl, erfl and erfcl.
5305
5306 2013-10-04  Alan Modra  <amodra@gmail.com>
5307
5308         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
5309         all uses of ieee854 long double macros and unions.  Simplify tests
5310         for long doubles that are fully specified by the high double.
5311         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5312         Likewise.
5313         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
5314         Remove dead code too.
5315         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5316         (__ieee754_ynl): Likewise.
5317         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5318         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
5319         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
5320         Remove dead code too.
5321         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
5322         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
5323         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
5324         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
5325         Simplify.
5326         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
5327         Simplify.
5328         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
5329         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
5330         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
5331         Comment on variable precision.
5332         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
5333         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5334         Likewise.
5335         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5336         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5337         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5338         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
5339         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
5340
5341 2013-10-04  Alan Modra  <amodra@gmail.com>
5342
5343         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
5344         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
5345         all uses of ieee854 long double macros and unions.
5346         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
5347         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5348         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
5349         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
5350         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5351         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5352         Likewise.
5353         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
5354         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5355         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
5356         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5357         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
5358         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
5359         Simplify sign and nan test too.
5360         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
5361         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
5362         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
5363         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
5364         Likewise.
5365         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5366         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
5367         Likewise.
5368         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5369         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
5370         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
5371         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
5372         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
5373         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
5374
5375 2013-10-04  Alan Modra  <amodra@gmail.com>
5376
5377         * stdio-common/printf_size.c (__printf_size): Don't use
5378         union ieee854_long_double in fpnum union.
5379         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
5380         signbit macro to retrieve sign from long double.
5381         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
5382         retrieve sign from long double.
5383         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
5384         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
5385         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
5386         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5387         * math/test-misc.c (main): Don't use union ieee854_long_double.
5388
5389 2013-10-04  Alan Modra  <amodra@gmail.com>
5390
5391         [BZ #15680]
5392         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
5393         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5394         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
5395         calculation.  Remove unnecessary test for denormal exponent.
5396         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
5397         Correct handling of denormals.  Avoid undefined shift behaviour.
5398         Correct normalisation of low mantissa when low double is denormal.
5399         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
5400         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
5401         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
5402         Correct normalisation of low mantissa.  Test for overflow of high
5403         mantissa and normalise.
5404         (ldbl_nearbyint): Use more readable constant for two52.
5405         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5406         (__mpn_construct_long_double): Fix test for overflow of high
5407         mantissa and correct normalisation.  Avoid undefined shift.
5408
5409 2013-10-04  Alan Modra  <amodra@gmail.com>
5410
5411         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5412         (union ibm_extended_long_double): Define as an array of ieee754_double.
5413         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
5414         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
5415         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
5416         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5417         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5418         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
5419         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5420         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5421         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5422         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
5423         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
5424
5425 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
5426
5427         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
5428         page size instead of calling getpagesize.
5429
5430         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
5431         (LOCFILE_ALIGN_MASK): Likewise.
5432         (LOCFILE_ALIGN_UP): Likewise.
5433         (LOCFILE_ALIGNED_P): Likewise.
5434         * locale/programs/ld-collate.c (collate_output): Use the new
5435         macros instead of __alignof__ (int32_t).
5436         * locale/weight.h (findidx): Likewise.
5437
5438 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
5439
5440         [BZ #431]
5441         * manual/string.texi: Fix strncat and wcsncat.
5442
5443 2013-10-03  Brooks Moses  <bmoses@google.com>
5444
5445         [BZ #15915]
5446         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
5447         * Makerules: ...here, and adjust associated comments.
5448
5449 2013-10-02  Will Newton  <will.newton@linaro.org>
5450
5451         * malloc/Makefile: Add tst-pvalloc.
5452         * malloc/tst-pvalloc.c: New file.
5453
5454 2013-10-02  Will Newton  <will.newton@linaro.org>
5455
5456         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
5457         improve test coverage.
5458
5459 2013-10-02  Will Newton  <will.newton@linaro.org>
5460
5461         * malloc/Makefile: Add tst-posix_memalign.
5462         * malloc/tst-posix_memalign.c: New file.
5463
5464 2013-10-01  Eric Blake  <eblake@redhat.com>
5465
5466         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
5467         Use __THROWNL rather than __THROW on static functions.
5468
5469 2013-09-30  Petr Machata  <pmachata@redhat.com>
5470
5471         * elf/elf.h (R_AARCH64_ABS16): New macro.
5472         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
5473         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
5474         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
5475         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
5476         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
5477         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
5478         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
5479         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
5480         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
5481         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
5482         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
5483         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
5484         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
5485         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
5486         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
5487         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
5488         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
5489         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
5490         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
5491         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
5492         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
5493         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
5494         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
5495         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
5496         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
5497         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
5498         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
5499         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
5500         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
5501         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
5502         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
5503         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
5504         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
5505         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
5506         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
5507         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
5508         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
5509         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
5510         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
5511         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
5512         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
5513         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
5514         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
5515         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
5516         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
5517         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
5518         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
5519         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
5520         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
5521         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
5522         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
5523         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
5524         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
5525         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
5526         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
5527         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
5528         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
5529         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
5530         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
5531         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
5532         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
5533         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
5534         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
5535         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
5536         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
5537         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
5538         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
5539         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
5540         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
5541         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
5542         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
5543         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
5544         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
5545         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
5546         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
5547         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
5548         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
5549         (R_AARCH64_TLSDESC_LDR): Likewise.
5550         (R_AARCH64_TLSDESC_ADD): Likewise.
5551         (R_AARCH64_TLSDESC_CALL): Likewise.
5552
5553 2013-09-30  Andreas Schwab  <schwab@suse.de>
5554
5555         [BZ #15048]
5556         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
5557         the nss database lookup.
5558         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5559         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5560
5561 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
5562
5563         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
5564
5565 2013-09-28  P. J. McDermott  <pj@pehjota.net>
5566
5567         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
5568         ${Bash-specific parameter/pattern/string} parameter expansion.
5569         * sysdeps/unix/make-syscalls.sh: Likewise.
5570
5571 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5572
5573         * sysdeps/sh/stackguard-macros.h: New file.
5574
5575 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
5576
5577         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
5578         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
5579         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
5580         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
5581         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5582         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
5583
5584 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5585
5586         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
5587         Fix thread ID register.
5588
5589 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
5590
5591         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
5592         [POSIX || UNIX98]: Require rather than permitting all symbols from
5593         <time.h>.
5594         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
5595         element of struct sched_param.
5596         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
5597         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
5598         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
5599         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
5600         constant.
5601
5602 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
5603
5604         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
5605         argument calculation.
5606
5607 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5608
5609         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
5610         Expect macro.
5611         [POSIX] (pthread_attr_t): Do not require type.
5612         [POSIX] (pthread_cond_t): Likewise.
5613         [POSIX] (pthread_condattr_t): Likewise.
5614         [POSIX] (pthread_key_t): Likewise.
5615         [POSIX] (pthread_mutex_t): Likewise.
5616         [POSIX] (pthread_mutexattr_t): Likewise.
5617         [POSIX] (pthread_once_t): Likewise.
5618         [POSIX] (pthread_t): Likewise.
5619         [POSIX-based standards] (pthread_atfork): Expect function.
5620
5621 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5622             Richard Sandiford  <richard@codesourcery.com>
5623
5624         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
5625         (swap_endianness_p): New extern variable.
5626         (set_big_endian): New inline function.
5627         (maybe_swap_uint32): Likewise.
5628         (maybe_swap_uint32_array): Likewise.
5629         (maybe_swap_uint32_obstack): Likewise.
5630         * locale/programs/locfile.c: Include <stdbool.h>.
5631         (swap_endianness_p): New variable.
5632         (add_locale_uint32): Call maybe_swap_uint32.
5633         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
5634         (write_locale_data): Call maybe_swap_uint32_array.
5635         * locale/programs/ld-collate.c (obstack_int32_grow): Call
5636         maybe_swap_uint32.
5637         (obstack_int32_grow_fast): Likewise.
5638         (output_weightwc): Call maybe_swap_uint32_obstack.
5639         (collate_output): Likewise.
5640         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
5641         (OPT_LITTLE_ENDIAN): Likewise.
5642         (options): Add --little-endian and --big-endian options.
5643         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
5644         * locale/programs/locarchive.c: Include "locfile.h".
5645         (GET): New macro.
5646         (SET): Likewise.
5647         (INC): Likewise.
5648         (create_archive): Use the new macros to access fields of
5649         structures directly mapped from or written to locale archives.
5650         (oldlocrecentcmp): Likewise.
5651         (enlarge_archive): Likewise.
5652         (insert_name): Likewise.
5653         (add_alias): Likewise.
5654         (add_locale): Likewise.
5655         (delete_locales_from_archive): Likewise.
5656         (show_archive_content): Likewise.
5657         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
5658         locale data.
5659
5660 2013-09-24  Roland McGrath  <roland@hack.frob.com>
5661
5662         * manual/freemanuals.texi: Updated from (newly) canonical copy at
5663         http://www.gnu.org/doc/freemanuals.texi.
5664         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
5665
5666 2013-09-24  Will Newton  <will.newton@linaro.org>
5667
5668         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
5669         macro.
5670
5671 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
5672
5673         * locale/hashval.h (compute_hashval): Interpret bytes of key as
5674         unsigned char.
5675
5676 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
5677
5678         * manual/threads.texi (POSIX Threads): Fix a typo.
5679
5680 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5681
5682         [BZ #14547]
5683         * string/tst-strcoll-overflow.c: New test case.
5684         * string/Makefile (xtests): Add tst-strcoll-overflow.
5685         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
5686         cache if string sizes may cause integer overflow.
5687
5688         [BZ #14547]
5689         * string/strcoll_l.c (coll_seq): New members rule, idx,
5690         save_idx and back_us.
5691         (get_next_seq_nocache): New function.
5692         (do_compare_nocache): New function.
5693         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
5694         when malloc fails.
5695
5696 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
5697
5698         [BZ #15754]
5699         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
5700         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
5701         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
5702
5703         [BZ #15754]
5704         * elf/Makefile (tests): Add tst-ptrguard1.
5705         (tests-static): Add tst-ptrguard1-static.
5706         (tst-ptrguard1-ARGS): Define.
5707         (tst-ptrguard1-static-ARGS): Define.
5708         * elf/tst-ptrguard1.c: New file.
5709         * elf/tst-ptrguard1-static.c: New file.
5710         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
5711         * sysdeps/i386/stackguard-macros.h: Likewise.
5712         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5713         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5714         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5715         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5716         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5717         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5718
5719 2013-09-23  Hector Marco  <hecmargi@upv.es>
5720             Ismael Ripoll  <iripoll@disca.upv.es>
5721             Carlos O'Donell  <carlos@redhat.com>
5722
5723         [BZ #15754]
5724         * sysdeps/generic/stackguard-macros.h: Define
5725         __pointer_chk_guard_local and POINTER_CHK_GUARD.
5726         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
5727         Define __pointer_chk_guard_local.
5728         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
5729         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
5730
5731 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
5732
5733         [BZ #15859]
5734         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
5735
5736 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
5737
5738         * include/string.h (__ffs): Declare as hidden.
5739         * string/ffs.c (__ffs): Define as hidden.
5740         * sysdeps/i386/ffs.c (__ffs): Likewise.
5741         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
5742         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
5743         * sysdeps/s390/ffs.c (__ffs): Likewise.
5744         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
5745
5746 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
5747
5748         * NEWS: Mention malloc probes.
5749
5750         * malloc/arena.c (new_heap): New memory_heap_new probe.
5751         (grow_heap): New memory_heap_more probe.
5752         (shrink_heap): New memory_heap_less probe.
5753         (heap_trim): New memory_heap_free probe.
5754         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
5755         (systrim): New memory_sbrk_less probe.
5756         * manual/probes.texi: Document them.
5757
5758         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
5759         * manual/probes.texi: Document it.
5760
5761         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
5762         (__libc_realloc): Add memory_realloc_retry probe.
5763         (__libc_memalign): Add memory_memalign_retry probe.
5764         (__libc_valloc): Add memory_valloc_retry probe.
5765         (__libc_pvalloc): Add memory_pvalloc_retry probe.
5766         (__libc_calloc): Add memory_calloc_retry probe.
5767         * manual/probes.texi: Document them.
5768
5769         * malloc/arena.c (get_free_list): Add probe
5770         memory_arena_reuse_free_list.
5771         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
5772         and memory_arena_reuse.
5773         (arena_get2) [!PER_THREAD]: Likewise.
5774         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
5775         memory_arena_reuse_realloc.
5776         * manual/probes.texi: Document them.
5777
5778         * malloc/malloc.c (__libc_free): Add
5779         memory_mallopt_free_dyn_thresholds probe.
5780         (__libc_mallopt): Add multiple memory_mallopt probes.
5781         * manual/probes.texi: Document them.
5782
5783         * malloc/malloc.c: Include stap-probe.h.
5784         (__libc_mallopt): Add memory_mallopt probe.
5785         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
5786         * manual/probes.texi: New.
5787         * manual/Makefile (chapters): Add probes.
5788         * manual/threads.texi: Set next node.
5789
5790 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
5791
5792         [BZ #15963, #13985]
5793         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
5794         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
5795         Add `Chinese' to `nan' entry name.
5796
5797 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5798
5799         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
5800         (POLYNOMIAL): Likewise.
5801         (TAYLOR_SINCOS): Likewise.
5802         (TAYLOR_SLOW): Likewise.
5803         (__sin): Use TAYLOR_SINCOS.
5804         (__cos): Likewise.
5805         (slow): Use TAYLOR_SLOW.
5806         (sloww): Likewise.
5807         (bsloww): Likewise.
5808         (csloww): Likewise.
5809
5810 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5811
5812         * stdlib/strtod_l.c: Fix buffer overrun.
5813
5814 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5815
5816         * benchtests/Makefile (bench): Add sincos.
5817         * benchtests/bench-sincos.c: New file.
5818
5819         * math/libm-test.inc (cos_test_data): New test inputs.
5820         (sin_test_data): Likewise.
5821
5822         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
5823         macro.
5824         (__sin): Use it.
5825         (__cos): Likewise.
5826         (slow1): Likewise.
5827         (slow2): Likewise.
5828         (sloww1): Likewise.
5829         (sloww2): Likewise.
5830         (bsloww1): Likewise.
5831         (bsloww2): Likewise.
5832         (cslow2): Likewise.
5833         (csloww1): Likewise.
5834         (csloww2): Likewise.
5835
5836         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
5837         function.
5838         (__sin): Use it.
5839         (__cos): Likewise.
5840
5841         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
5842         gotos.
5843         (__cos): Likewise.
5844
5845 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
5846
5847         * config.h.in (HAVE_MIPS_NAN2008): New macro.
5848         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
5849         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
5850         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
5851         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
5852         * elf/cache.c (print_entry): Handle the new cache flags.
5853
5854 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5855             Aldy Hernandez  <aldyh@redhat.com>
5856
5857         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
5858         Change condition to [_SOFT_FLOAT].
5859         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
5860         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
5861         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
5862         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
5863         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
5864         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
5865         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
5866         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
5867         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
5868         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
5869         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
5870         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
5871         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
5872         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
5873         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
5874         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
5875         declaration.
5876
5877 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5878
5879         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
5880         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5881         (__longjmp): Use LOAD_GP to load saved GPRs.
5882         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
5883         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5884         (__sigsetjmp): Use SAVE_GP to save GPRs.
5885
5886         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
5887         Do not append -msoft-float.
5888         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
5889
5890 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5891
5892         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
5893
5894 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
5895
5896         [BZ #15966]
5897         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
5898         (_FPU_GETCW): Use initial "__" on variable and field names but not
5899         on macro parameter name.
5900         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
5901         parentheses around reference to macro parameter.
5902
5903 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
5904
5905         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
5906         prototype.
5907         (ctype_startup): Use uint32_t in cast and sizeof for
5908         ctype->charnames.
5909
5910 2013-09-11  Jia Liu  <proljc@gmail.com>
5911
5912         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
5913         __daddr_t_defined.
5914         [__FreeBSD__]: Likewise.
5915
5916 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
5917
5918         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
5919         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
5920         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
5921         (strchr): Remove __strchr_sse42 ifunc selection.
5922         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
5923         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
5924
5925 2013-09-11  Will Newton  <will.newton@linaro.org>
5926
5927         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
5928         parameter to RES. Remove hardcoded 1000 value.
5929         * benchtests/bench-skeleton.c (main): Pass RES parameter
5930         to TIMING_INIT and multiply result by 1000.
5931
5932 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5933
5934         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5935
5936 2013-09-11  Andreas Schwab  <schwab@suse.de>
5937
5938         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
5939         if not defined.
5940         (O_TMPFILE) [__USE_GNU]: Define.
5941         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
5942         Define.
5943
5944 2013-09-11  Will Newton  <will.newton@linaro.org>
5945
5946         [BZ #15857]
5947         * malloc/malloc.c (__libc_memalign): Check the value of bytes
5948         does not overflow.
5949
5950 2013-09-11  Will Newton  <will.newton@linaro.org>
5951
5952         [BZ #15856]
5953         * malloc/malloc.c (__libc_valloc): Check the value of bytes
5954         does not overflow.
5955
5956 2013-09-11  Will Newton  <will.newton@linaro.org>
5957
5958         [BZ #15855]
5959         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
5960         does not overflow.
5961
5962 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
5963
5964         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
5965         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5966         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5967         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5968         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5969
5970 2013-09-10  Allan McRae  <allan@archlinux.org>
5971
5972         [BZ #15748]
5973         * manual/arith.texi (Parsing of Floats): Clarify
5974         cross-reference.
5975
5976         [BZ #15849]
5977         * manual/install.texi (Running make install): Mention
5978         --enable-pt-chown.
5979         * INSTALL: Regenerated.
5980
5981 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
5982
5983         * csu/init-first.c (_init): Remove the !SHARED condition around
5984         FPU control word initialization.
5985         * elf/dl-support.c (_dl_fpu_control): New variable.
5986         (_dl_aux_init) <AT_FPUCW>: Initialize it.
5987         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
5988         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
5989         * math/test-fpucw-static.c: New file.
5990         * math/test-fpucw-ieee.c: New file.
5991         * math/test-fpucw-ieee-static.c: New file.
5992         * math/Makefile (tests): Add `test-fpucw-ieee' and
5993         `$(tests-static)'.
5994         (tests-static): New variable.
5995         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
5996         dependency to...
5997         [($(build-shared),yes)]
5998         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
5999         ... this.
6000         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
6001         New dependency.
6002
6003 2013-09-09  Allan McRae  <allan@archlinux.org>
6004
6005         [BZ #15939]
6006         * manual/string.texi (Collation Functions): Fix typo in
6007         strcoll example.
6008         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
6009
6010         [BZ #15893]
6011         * stdlib/isomac.c (get_null_defines): Fix memory leak.
6012
6013         [BZ #15892]
6014         * libio/memstream.c (open_memstream): Fix memory leak.
6015         * libio/wmemstream.c (open_wmemstream): Likewise.
6016
6017         [BZ #15895]
6018         * nscd/netgroupcache.c: Fix nesting of ifdefs.
6019
6020 2013-09-09  Will Newton  <will.newton@linaro.org>
6021
6022         * malloc/Makefile: Add tst-realloc to tests.
6023         * malloc/tst-realloc.c: New file.
6024
6025 2013-09-09  Allan McRae  <allan@archlinux.org>
6026
6027         [BZ #15844]
6028         * COPYING: Update from GNU website to fix FSF address.
6029         * COPYING.LIB: Likewise.
6030
6031 2013-09-06  David S. Miller  <davem@davemloft.net>
6032
6033         * po/zh_TW.po: Update Chinese (traditional) translation from
6034         translation project.
6035
6036 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
6037             Joseph Myers  <joseph@codesourcery.com>
6038
6039         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
6040         "localeinfo.h".
6041         (obstack_chunk_alloc): New macro.
6042         (obstack_chunk_free): Likewise.
6043         (record_offset): New function.
6044         (init_locale_data): Likewise.
6045         (align_locale_data): Likewise.
6046         (add_locale_empty): Likewise.
6047         (add_locale_raw_data): Likewise.
6048         (add_locale_raw_obstack): Likewise.
6049         (add_locale_string): Likewise.
6050         (add_locale_wstring): Likewise.
6051         (add_locale_uint32): Likewise.
6052         (add_locale_uint32_array): Likewise.
6053         (add_locale_char): Likewise.
6054         (start_locale_structure): Likewise.
6055         (end_locale_structure): Likewise.
6056         (start_locale_prelude): Likewise.
6057         (end_locale_prelude): Likewise.
6058         (write_locale_data): Take locale_file structure rather than an
6059         iovec.
6060         * locale/programs/locfile.h: Include "obstack.h".
6061         (struct locale_file): Change to store locale file contents instead
6062         of header.
6063         (init_locale_data): New prototype.
6064         (align_locale_data): Likewise.
6065         (add_locale_empty): Likewise.
6066         (add_locale_raw_data): Likewise.
6067         (add_locale_raw_obstack): Likewise.
6068         (add_locale_string): Likewise.
6069         (add_locale_wstring): Likewise.
6070         (add_locale_uint32): Likewise.
6071         (add_locale_uint32_array): Likewise.
6072         (add_locale_char): Likewise.
6073         (start_locale_structure): Likewise.
6074         (end_locale_structure): Likewise.
6075         (start_locale_prelude): Likewise.
6076         (end_locale_prelude): Likewise.
6077         (write_locale_data): Update prototype.
6078         * locale/programs/3level.h (struct TABLE): Remove result field.
6079         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
6080         Use new locale_file interface.
6081         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
6082         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
6083         * locale/programs/ld-address.c (address_output): Use new
6084         locale_file interface.
6085         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
6086         NO_ADD_LOCALE.
6087         (collate_finish): Don't call collseq_table_finalize.
6088         (collate_output): Use new locale_file interface.
6089         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
6090         in file.
6091         (NO_FINALIZE): Change to NO_ADD_LOCALE.
6092         (TABLE): Move defines earlier in file.
6093         (ELEMENT): Likewise.
6094         (DEFAULT): Likewise.
6095         (wctrans_table_add): Move macro and inline function earlier in
6096         file.
6097         (struct wctype_table): Move type earlier in file.
6098         (add_locale_wctype_table): New static prototype.
6099         (struct locale_ctype_t): Use logical types instead of struct iovec
6100         pointers for members.
6101         (ctype_output): Use new locale_file interface.
6102         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
6103         new locale_file interface.
6104         (allocate_arrays): Update for use of new locale_file interface.
6105         * locale/programs/ld-identification.c (identification_output): Use
6106         new locale_file interface.
6107         * locale/programs/ld-measurement.c (measurement_output): Likewise.
6108         * locale/programs/ld-messages.c (messages_output): Likewise.
6109         * locale/programs/ld-monetary.c (monetary_output): Likewise.
6110         * locale/programs/ld-name.c (name_output): Likewise.
6111         * locale/programs/ld-numeric.c (numeric_output): Likewise.
6112         * locale/programs/ld-paper.c (paper_output): Likewise.
6113         * locale/programs/ld-telephone.c (telephone_output): Likewise.
6114         * locale/programs/ld-time.c (time_output): Likewise.
6115
6116 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6117
6118         * benchtests/Makefile: Add memrchr benchmark.
6119         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
6120         benchmark as memrchr.
6121         * benchtests/bench-memrchr-ifunc.c: New file.
6122         * benchtests/bench-memrchr.c: New file.
6123
6124 2013-09-06   Will Newton  <will.newton@linaro.org>
6125
6126         * benchtests/Makefile (string-bench): Add memcpy.
6127
6128 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
6129             Cong Wang  <amwang@redhat.com>
6130
6131         [BZ #15850]
6132         * sysdeps/unix/sysv/linux/bits/in.h
6133         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
6134         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
6135         before __USE_KERNEL_IPV6_DEFS uses.
6136         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
6137         IPPROTO_BEETPH.
6138         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
6139         sockaddr_in6, or ipv6_mreq.
6140
6141 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6142
6143         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
6144         memory access for final bytes in some large inputs.
6145         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
6146
6147 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6148
6149         * string/test-memrchr.c: New file.
6150         * string/test-memrchr-ifunc.c: New file.
6151         * string/Makefile: Add new memrchr testcase.
6152
6153 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
6154
6155         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
6156         fanotify_init returns EPERM.
6157
6158 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6159
6160         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
6161         errors.
6162         (top level): Treat second token from macro or constant entries for
6163         allowed headers as allowed.
6164         * include/complex.h: Condition internal declarations on
6165         [!_ISOMAC].
6166         * include/fenv.h: Condition include of <stdbool.h> and internal
6167         declarations on [!_ISOMAC].
6168
6169 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
6170
6171         [BZ #15923]
6172         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
6173
6174 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6175
6176         * configure.in (--enable-versioning): Remove configure option.
6177         (libc_cv_asm_symver_directive): Remove configure test.
6178         (libc_cv_ld_version_script_option): Likewise.
6179         (VERSIONING): Remove variable and AC_SUBST.
6180         (DO_VERSIONING): Remove AC_DEFINE.
6181         * configure: Regenerated.
6182         * config.h.in (DO_VERSIONING): Remove macro.
6183         * Makerules [$(versioning) = yes]: Change conditionals to
6184         [$(build-shared) = yes].
6185         * config.make.in (versioning): Remove variable.
6186         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
6187         [$(build-shared) = yes].
6188         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
6189         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
6190         * elf/Makefile [$(versioning) = yes]: Change conditionals to
6191         [$(build-shared) = yes].
6192         * extra-lib.mk [$(versioning) = yes]: Likewise.
6193         * hurd/Makefile [$(versioning) = yes]: Likewise.
6194         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
6195         [SHARED].
6196         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
6197         [SHARED].
6198         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6199         [SHARED && !NO_HIDDEN].
6200         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
6201         [SHARED].
6202         [SHARED && DO_VERSIONING]: Likewise..
6203         * libio/Makefile [$(versioning) = yes]: Change conditionals to
6204         [$(build-shared) = yes].
6205         * manual/install.texi (--disable-versioning): Remove
6206         documentation.
6207         * INSTALL: Regenerated.
6208         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
6209         to [SHARED].
6210         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
6211         [$(build-shared) = yes].
6212         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
6213         * sysdeps/i386/i686/multiarch/strstr-c.c
6214         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6215         [SHARED && !NO_HIDDEN].
6216         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
6217         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
6218         * sysdeps/powerpc/powerpc32/dl-machine.c
6219         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
6220         * sysdeps/powerpc/powerpc32/sysdep.h
6221         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
6222         to [SHARED && PIC && !NO_HIDDEN].
6223         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
6224         conditional to [SHARED].
6225
6226 2013-09-04   Will Newton  <will.newton@linaro.org>
6227
6228         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
6229         * benchtests/bench-string.h: Include bench-timing.h instead
6230         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
6231         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
6232         call to HP_TIMING_DIFF_INIT.
6233         * benchtests/bench-memccpy.c: Use bench-timing.h macros
6234         instead of hp-timing.h macros.
6235         * benchtests/bench-memchr.c: Likewise.
6236         * benchtests/bench-memcmp.c: Likewise.
6237         * benchtests/bench-memcpy.c: Likewise.
6238         * benchtests/bench-memmem.c: Likewise.
6239         * benchtests/bench-memmove.c: Likewise.
6240         * benchtests/bench-memset.c: Likewise.
6241         * benchtests/bench-rawmemchr.c: Likewise.
6242         * benchtests/bench-strcasecmp.c: Likewise.
6243         * benchtests/bench-strcasestr.c: Likewise.
6244         * benchtests/bench-strcat.c: Likewise.
6245         * benchtests/bench-strchr.c: Likewise.
6246         * benchtests/bench-strcmp.c: Likewise.
6247         * benchtests/bench-strcpy.c: Likewise.
6248         * benchtests/bench-strcpy_chk.c: Likewise.
6249         * benchtests/bench-strlen.c: Likewise.
6250         * benchtests/bench-strncasecmp.c: Likewise.
6251         * benchtests/bench-strncat.c: Likewise.
6252         * benchtests/bench-strncmp.c: Likewise.
6253         * benchtests/bench-strncpy.c: Likewise.
6254         * benchtests/bench-strnlen.c: Likewise.
6255         * benchtests/bench-strpbrk.c: Likewise.
6256         * benchtests/bench-strrchr.c: Likewise.
6257         * benchtests/bench-strspn.c: Likewise.
6258         * benchtests/bench-strstr.c: Likewise.
6259
6260 2013-09-04  Will Newton  <will.newton@linaro.org>
6261
6262         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
6263
6264 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
6265
6266         [BZ #15427]
6267         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
6268         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
6269         * math/libm-test.inc (lgamma_test_data): Add more tests.
6270         * sysdeps/i386/fpu/libm-test-ulps: Update.
6271         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6272
6273 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
6274
6275         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
6276         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
6277         Add ifunc.
6278         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
6279         Add strcmp-sse2-unaligned
6280         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
6281
6282 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6283
6284         * Versions.def (libc): Add GLIBC_2.19.
6285
6286 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6287
6288         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
6289         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
6290
6291 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
6292
6293         [BZ #14155]
6294         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
6295         intermediate calculations in recurrence.
6296         (__ieee754_ynf): Likewise.
6297         * math/libm-test.inc (jn_test_data): Do not allow spurious
6298         underflow exception.  Add more tests.
6299         (yn_test_data): Add more tests.
6300         * sysdeps/i386/fpu/libm-test-ulps: Update.
6301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6302
6303 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
6304
6305         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
6306
6307 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6308
6309         * csu/init-first.c: Fix then/than typos.
6310         * locale/programs/ld-collate.c: Likewise.
6311         * locale/programs/linereader.h: Likewise.
6312         * manual/charset.texi: Likewise.
6313         * manual/filesys.texi: Likewise.
6314         * manual/stdio.texi: Likewise.
6315         * manual/string.texi: Likewise.
6316         * stdlib/fmtmsg.c: Likewise.
6317         * sysdeps/i386/stpncpy.S: Likewise.
6318         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6319         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
6320         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6321         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6322
6323 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6324
6325         * elf/dl-open.c: Fix typos.
6326         * iconvdata/gbbig5.c: Likewise.
6327         * iconvdata/iso-2022-jp.c: Likewise.
6328         * iconv/gconv_int.h: Likewise.
6329         * iconv/loop.c: Likewise.
6330         * nis/rpcsvc/nis.h: Likewise.
6331         * resolv/ns_name.c: Likewise.
6332         * stdio-common/vfscanf.c: Likewise.
6333         * streams/stropts.h: Likewise.
6334         * sunrpc/rpc_thread.c: Likewise.
6335         * sysdeps/i386/strpbrk.S: Likewise.
6336         * sysdeps/ieee754/k_standard.c: Likewise.
6337         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6338         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6339         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6340         * sysdeps/mach/hurd/profil.c: Likewise.
6341         * sysdeps/s390/dl-procinfo.h: Likewise.
6342         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6343         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6344         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6345         * sysdeps/x86_64/dl-trampoline.S: Likewise.
6346         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6347
6348 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
6349
6350         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
6351         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
6352
6353 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
6354
6355         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
6356         aix specific files.
6357         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
6358         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
6359         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
6360         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
6361         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
6362         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
6363         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
6364         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
6365
6366 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6367             Roland McGrath  <roland@hack.frob.com>
6368
6369         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
6370         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6371
6372 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6373
6374         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
6375         __executable_start symbol instead of _start.
6376
6377 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6378
6379         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
6380         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
6381         Move macros to...
6382         * sysdeps/gnu/ldsodefs.h: ... this new file.
6383
6384         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
6385         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
6386         instead of ELFOSABI_LINUX.
6387
6388         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
6389         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
6390         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
6391         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
6392         Likewise.
6393         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
6394         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
6395         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
6396         Likewise.
6397         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
6398         (ibm_extended_long_double): Add ieee_nan member.
6399         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
6400         (do_test): New function.
6401
6402         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
6403         TEST_TRUNC.
6404         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
6405         functions, renamed from truncdfsf_test, trunctfsf_test,
6406         trunctfdf_test.
6407         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
6408         functions.
6409         (do_test): Run all these.
6410
6411 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
6412
6413         * argp/argp-help.c: Fix typos.
6414         * argp/argp-parse.c: Likewise.
6415         * debug/backtracesyms.c: Likewise.
6416         * elf/elf.h: Likewise.
6417         * malloc/malloc.c: Likewise.
6418         * nis/nis_print.c: Likewise.
6419         * resolv/res_comp.c: Likewise.
6420         * stdlib/stdlib.h: Likewise.
6421         * sunrpc/clnt_tcp.c: Likewise.
6422         * sunrpc/clnt_udp.c: Likewise.
6423         * sunrpc/clnt_unix.c: Likewise.
6424         * sysdeps/unix/bsd/ptsname.c: Likewise.
6425         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6426         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
6427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
6428         Likewise.
6429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
6430         Likewise.
6431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
6432         Likewise.
6433         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6434
6435 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6436
6437         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
6438         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
6439
6440 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
6441
6442         [BZ #15897]
6443         * dlfcn/Makefile (tests): Add bug-dl-leaf.
6444         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
6445         ($(objpfx)bug-dl-leaf): New rule.
6446         ($(objpfx)bug-dl-leaf.so): Likewise.
6447         ($(objpfx)bug-dl-leaf.out): Likewise.
6448         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
6449         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
6450         * dlfcn/bug-dl-leaf.c: New test.
6451         * dlfcn/bug-dl-leaf-lib.c: Likewise.
6452         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
6453         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
6454         (dlclose): Likewise.
6455         (dlmopen): Likewise.
6456
6457 2013-08-27  Roland McGrath  <roland@hack.frob.com>
6458
6459         * include/netdb.h [!_ISOMAC]:
6460         Don't include <tls.h>.
6461         (h_errno, __libc_h_errno): Move declaration and macros out of
6462         [_LIBC_REENTRANT].
6463
6464         * include/resolv.h [_RESOLV_H_]:
6465         Don't include <tls.h>.
6466         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
6467         * resolv/res_libc.c: Don't include <tls.h>.
6468         (_res): Use __attribute__ ((nocommon)) in place of
6469         __attribute__ ((section (".bss"))).
6470
6471         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
6472         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
6473
6474         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
6475
6476         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
6477         only under [SIOCGIFCONF && SIOCGIFNETMASK].
6478
6479         * resolv/res_mkquery.c: Include <sys/time.h>.
6480
6481         * inet/ifreq.c: Moved to ...
6482         * sysdeps/unix/ifreq.c: ... here.
6483         * inet/ifreq.c: New file, true stub version.
6484
6485         * socket/sa_len.c: New file.
6486         * socket/Makefile (aux): Add it.
6487         * sysdeps/unix/sysv/linux/Makefile
6488         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
6489         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
6490         and #include <socket/sa_len.c>.
6491         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
6492         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
6493
6494         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
6495         * bits/socket.h: ... here.
6496
6497         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
6498         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
6499         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
6500
6501 2013-08-27  Andreas Schwab  <schwab@suse.de>
6502
6503         [BZ #15736]
6504         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
6505         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
6506         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
6507         * string/test-strcasecmp.c (test_main): Run tests in several
6508         locales.
6509         * string/test-strncasecmp.c (test_main): Likewise.
6510
6511         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
6512         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
6513         to __strcasecmp_nonascii and __strncasecmp_nonascii.
6514         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
6515         (__strncasecmp_ssse3) [PIC]: Likewise.
6516
6517 2013-08-26  Roland McGrath  <roland@hack.frob.com>
6518
6519         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
6520
6521         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
6522         instead of explicitly declaring xdecrypt.
6523         * nis/nss_nis/nis-publickey.c: Likewise.
6524
6525 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6526
6527         [BZ #15890]
6528         * nscd/aicache.c: Include res_hconf.h.
6529         (addhstaiX): Initialize res_hconf.
6530
6531 2013-08-26  Andreas Schwab  <schwab@suse.de>
6532
6533         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
6534         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
6535
6536 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6537
6538         * nscd/aicache.c (addhstaiX): Fix indentation.
6539
6540 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
6541
6542         * configure.ac: Quote $build_pt_chown test.
6543         * configure: Regenerated.
6544
6545 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
6546
6547         [BZ #15532]
6548         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
6549         * math/s_cexpf.c (__cexpf): Likewise.
6550         * math/s_cexpl.c (__cexpl): Likewise.
6551         * math/libm-test.inc (cexp_test_data): Correct expected return
6552         value for NaN + i0.  Add another test.
6553
6554 2013-08-22  David S. Miller  <davem@davemloft.net>
6555
6556         * po/ca.po: Update Catalan translation from translation project.
6557         * po/uk.po: Add Ukrainian translations from translation project.
6558
6559 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
6560
6561         [BZ #15797]
6562         * math/s_fdim.c (__fdim): Check for infinite arguments if result
6563         is infinite, not alongside NaN test.
6564         * math/s_fdimf.c (__fdimf): Likewise.
6565         * math/s_fdiml.c (__fdiml): Likewise.
6566         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
6567         errno is unchanged.
6568
6569 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
6570
6571         * argp/argp-help.c: Fix typos.
6572         * crypt/speeds.c: Likewise.
6573         * csu/check_fds.c: Likewise.
6574         * elf/dl-load.c: Likewise.
6575         * elf/dl-open.c: Likewise.
6576         * elf/reldep3.c: Likewise.
6577         * elf/reldep.c: Likewise.
6578         * elf/sprof.c: Likewise.
6579         * iconv/iconv_charmap.c: Likewise.
6580         * iconv/skeleton.c: Likewise.
6581         * iconv/strtab.c: Likewise.
6582         * io/lockf64.c: Likewise.
6583         * libio/libioP.h: Likewise.
6584         * resolv/gai_notify.c: Likewise.
6585         * resolv/ns_name.c: Likewise.
6586         * resolv/ns_samedomain.c: Likewise.
6587         * resolv/res_send.c: Likewise.
6588         * stdlib/random.c: Likewise.
6589         * sunrpc/rpc/xdr.h: Likewise.
6590         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
6591         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6592         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6593         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6594         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6595         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6596         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6597         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6598         * sysdeps/mach/hurd/check_fds.c: Likewise.
6599         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6600         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6601         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6602         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6603         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6604         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6605         * sysdeps/pthread/aio_notify.c: Likewise.
6606         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6607         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
6608         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
6609         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6610         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
6611
6612 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6613
6614         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
6615         version if bit_Slow_SSE4_2 is set.
6616         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6617         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6618
6619 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6620
6621         [BZ #15867]
6622         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
6623         trampoline stack frame information.
6624         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
6625         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
6626         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
6627         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
6628         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
6629         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6630         (_libc_vdso_platform_setup): Initialize the signal trampolines.
6631         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
6632         sa_flags value.
6633         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
6634         interrupting a syscall and set with option SA_SIGINFO.
6635
6636 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6637
6638         [BZ #15531]
6639         * math/s_cproj.c (__cproj): Only return an infinity if one part of
6640         argument is infinite.
6641         * math/s_cprojf.c (__cprojf): Likewise.
6642         * math/s_cprojl.c (__cprojl): Likewise.
6643         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
6644         * math/libm-test.inc (cproj_test_data): Add more tests.
6645
6646         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
6647
6648         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
6649         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
6650         size.  Use __ffs to determine corresponding shift.
6651
6652 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6653             Roland McGrath  <roland@hack.frob.com>
6654
6655         * Makefile (INSTALL): Remove trailing blank lines from output of
6656         makeinfo.
6657
6658 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6659
6660         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
6661         Align 32 bit compat elf_greg to 8 bytes.
6662
6663 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6664
6665         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
6666
6667 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6668
6669         * string/strcoll_l.c (coll_seq): New structure.
6670         (get_next_seq_cached): New function.
6671         (get_next_seq): New function.
6672         (do_compare): New function.
6673         (STRCOLL): Use GNU style definition.  Simplify implementation
6674         by using get_next_seq, get_next_seq_cached and do_compare.
6675
6676 2013-08-16  Florian Weimer  <fweimer@redhat.com>
6677
6678         [BZ #14699]
6679         CVE-2013-4237
6680         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
6681         member.
6682         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
6683         member.
6684         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
6685         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
6686         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
6687         conditional.
6688         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
6689         GETDENTS_64BIT_ALIGNED.
6690         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6691         * manual/filesys.texi (Reading/Closing Directory): Document
6692         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
6693         strongly.
6694         * manual/conf.texi (Limits for Files): Add portability note to
6695         NAME_MAX, PATH_MAX.
6696         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
6697
6698 2013-08-13  Andreas Schwab  <schwab@suse.de>
6699
6700         [BZ #15749]
6701         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
6702         of fabs.
6703         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
6704         LDBL_MAX_EXP >= 16384]: Add tests for it.
6705
6706 2013-08-12  David S. Miller  <davem@davemloft.net>
6707
6708         * version.h (RELEASE): Set to "development".
6709         (VERSION): Set to "2.18.90".
6710         * NEWS: Add 2.19 section.
6711
6712 2013-08-03  David S. Miller  <davem@davemloft.net>
6713
6714         * po/ko.po: Update Korean translation from translation project.
6715
6716 2013-08-01  David S. Miller  <davem@davemloft.net>
6717
6718         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
6719         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
6720         Bilka.
6721
6722 2013-07-30  David S. Miller  <davem@davemloft.net>
6723
6724         * po/fr.po: Update French translation from translation project.
6725
6726 2013-07-28  David S. Miller  <davem@davemloft.net>
6727
6728         * po/cs.po: Update Czech translation from translation project.
6729
6730         * po/sv.po: Update Swedish translation from translation project.
6731
6732 2013-07-27  David S. Miller  <davem@davemloft.net>
6733
6734         * po/eo.po: Update Esperanto translation from translation project.
6735
6736         * po/vi.po: Update Vietnamese translation from translation project.
6737
6738         * po/de.po: Update German translation from translation project.
6739
6740 2013-07-26  David S. Miller  <davem@davemloft.net>
6741
6742         * po/bg.po: Update Bulgarian translation from translation project.
6743
6744         * po/nl.po: Update Dutch translation from translation project.
6745         * po/pl.po: Update Polish translation from translation project.
6746         * po/ru.po: Update Russian translation from translation project.
6747
6748 2013-07-24  David S. Miller  <davem@davemloft.net>
6749
6750         * po/libc.pot: Update.
6751
6752 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6753
6754         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
6755         variable page size.
6756         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
6757         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
6758         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
6759
6760 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6761
6762         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
6763
6764 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6765             Andreas Schwab  <schwab@suse.de>
6766             Roland McGrath  <roland@hack.frob.com>
6767             Joseph Myers  <joseph@codesourcery.com>
6768             Carlos O'Donell  <carlos@redhat.com>
6769
6770         [BZ #15755]
6771         * config.h.in: Define HAVE_PT_CHOWN.
6772         * config.make.in (build-pt-chown): New variable.
6773         * configure.in (--enable-pt_chown): New configure option.
6774         * configure: Regenerate.
6775         * login/Makefile: Include Makeconfig.  Build pt_chown only if
6776         build-pt-chown is enabled.
6777         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
6778         pt_chown to fix pty ownership.
6779         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
6780         CLOSE_ALL_FDS.
6781         * manual/install.texi (Configuring and compiling): Mention
6782         --enable-pt_chown. Add @findex for grantpt.
6783         * INSTALL: Regenerate.
6784
6785 2013-07-20  David S. Miller  <davem@davemloft.net>
6786
6787         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
6788         difference between 32-bit and 64-bit.
6789
6790 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
6791
6792         [BZ #15711]
6793         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
6794         Avoid system header dependency with -ffreestanding.
6795         ($(objpfx)bits/syscall%d): Likewise.
6796
6797 2013-07-13  David S. Miller  <davem@davemloft.net>
6798
6799         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
6800         underflows from atanl/atan2l due to bug 15319.
6801         (casinh_test_data): Likewise.
6802
6803 2013-07-07  David S. Miller  <davem@davemloft.net>
6804
6805         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
6806
6807 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
6808
6809         * sysdeps/i386/fpu/libm-test-ulps: Update.
6810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6811
6812 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6813
6814         * configure.in (--enable-lock-elision): Fix message text.
6815         * INSTALL: Regenerate.
6816         * configure: Regenerate.
6817
6818 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6819
6820         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6821
6822 2013-07-03  Andreas Jaeger  <aj@suse.de>
6823
6824         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
6825         define.
6826         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
6827         (ptrace_peeksiginfo_args): Add.
6828         (__ptrace_peeksiginfo_flags): Add.
6829         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6830         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6831         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6832
6833 2013-07-03  Allan McRae  <allan@archlinux.org>
6834
6835         * sysdeps/i386/fpu/libm-test-ulps: Update.
6836
6837 2013-07-02  David S. Miller  <davem@davemloft.net>
6838
6839         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6840
6841 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
6842
6843         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6844
6845 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6846
6847         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6849
6850 2013-07-02  Andi Kleen <ak@linux.intel.com>
6851
6852         * config.h.in (ENABLE_LOCK_ELISION): Add.
6853         * configure.in (--enable-lock-elision): Add option.
6854         * manual/install.texi: Document --enable lock elision.
6855         * configure: Regenerate
6856         * INSTALL: Regenerate.
6857
6858 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
6859
6860         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
6861         SSE4.2 strcasecmp for libc.a.
6862         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
6863
6864 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6865
6866         [BZ #13304]
6867         * soft-fp/op-common.h (_FP_FMA): New macro.
6868         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
6869         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
6870         (_FP_MUL_MEAT_1_imm): ... here.
6871         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
6872         (_FP_MUL_MEAT_1_wide): ... here.
6873         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
6874         (_FP_MUL_MEAT_1_hard): ... here.
6875         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
6876         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
6877         (_FP_MUL_MEAT_2_wide): ... here.
6878         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
6879         (_FP_MUL_MEAT_2_wide_3mul): ... here.
6880         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
6881         (_FP_MUL_MEAT_2_gmp): ... here.
6882         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
6883         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
6884         (_FP_MUL_MEAT_4_wide): ... here.
6885         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
6886         (_FP_MUL_MEAT_4_gmp): ... here.
6887         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
6888         (_FP_WFRACBITS_DW_S): Likewise.
6889         (_FP_WFRACXBITS_DW_S): Likewise.
6890         (_FP_HIGHBIT_DW_S): Likewise.
6891         (FP_FMA_S): Likewise.
6892         (_FP_FRAC_HIGH_DW_S): Likewise.
6893         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
6894         (_FP_WFRACBITS_DW_D): Likewise.
6895         (_FP_WFRACXBITS_DW_D): Likewise.
6896         (_FP_HIGHBIT_DW_D): Likewise.
6897         (FP_FMA_D): Likewise.
6898         (_FP_FRAC_HIGH_DW_D): Likewise.
6899         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
6900         (_FP_WFRACBITS_DW_E): Likewise.
6901         (_FP_WFRACXBITS_DW_E): Likewise.
6902         (_FP_HIGHBIT_DW_E): Likewise.
6903         (FP_FMA_E): Likewise.
6904         (_FP_FRAC_HIGH_DW_E): Likewise.
6905         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
6906         (_FP_WFRACBITS_DW_Q): Likewise.
6907         (_FP_WFRACXBITS_DW_Q): Likewise.
6908         (_FP_HIGHBIT_DW_Q): Likewise.
6909         (FP_FMA_Q): Likewise.
6910         (_FP_FRAC_HIGH_DW_Q): Likewise.
6911         * soft-fp/fmasf4.c: New file.
6912         * soft-fp/fmadf4.c: Likewise.
6913         * soft-fp/fmatf4.c: Likewise.
6914
6915 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6916
6917         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
6918         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
6919         Silvermont.
6920         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
6921         macro.
6922         (index_Slow_SSE4_2): Likewise.
6923         (index_Prefer_PMINUB_for_stringop): Likewise.
6924         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
6925         bit_Slow_SSE4_2 is set.
6926         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6927         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6928
6929 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6930
6931         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
6932         rtld_global._dl_hwcap2.
6933         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
6934         POWER8.
6935         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
6936         POWER8 feature descriptions defined in _dl_hwcap2.
6937         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
6938         string handling for POWER8 feature bits.
6939         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
6940         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
6941         _dl_powerpc_cap_flags.
6942         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
6943         * sysdeps/powerpc/rtld-global-offsets.sym
6944         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
6945         _dl_hwcap2 in the rtld_global_ro structure.
6946
6947 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6948
6949         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
6950         hardware capabilities in support of AT_HWCAP2.
6951         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
6952         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
6953         GLRO(dl_hwcap2).
6954         (_dl_show_auxv): Add support for calling _dl_procinfo to display
6955         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
6956         explicitly the unknown a_type display mechanism is used.
6957         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
6958         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
6959         struct member.
6960         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
6961         to macro prototype for AT_HWCAP2 support.
6962         * sysdeps/i386/dl-procinfo.h: Likewise.
6963         * sysdeps/s390/dl-procinfo.h: Likewise.
6964         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
6965         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
6966         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
6967         return -1 for unknown a_type display fallback.
6968         * sysdeps/sparc/dl-procinfo.h: Likewise.
6969         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6970         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
6971
6972 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
6973
6974         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
6975         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
6976
6977 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
6978
6979         [BZ #12492]
6980         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
6981         mprotect making __stack_prot writable.
6982
6983 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6984             Joseph Myers  <joseph@codesourcery.com>
6985
6986         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
6987         as being properly aligned.
6988
6989 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
6990
6991         * dlfcn/modstatic5.c: New file.
6992         * dlfcn/tststatic5.c: New file.
6993         * dlfcn/Makefile (tests): Add tststatic5.
6994         (tests-static): Likewise.
6995         (modules-names): Add modstatic5.
6996         (tststatic5-ENV): New variable.
6997         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
6998
6999         [BZ #15022]
7000         * elf/dl-support.c (_dl_main_map): New variable.
7001         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
7002         (_dl_nns, _dl_load_adds): Set to 1.
7003         (_dl_initial_searchlist): Refer to _dl_main_map.
7004         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
7005         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
7006         call to _dl_get_origin.
7007         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
7008         around call_map.
7009         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
7010         * dlfcn/modstatic3.c: New file.
7011         * dlfcn/tststatic3.c: New file.
7012         * dlfcn/tststatic4.c: New file.
7013         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
7014         (tests-static): Likewise.
7015         (modules-names): Add modstatic3.
7016         (tststatic3-ENV, tststatic4-ENV): New variables.
7017         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
7018         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
7019
7020 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
7021
7022         * configure.in (CC): Require GCC version 4.4 or later.
7023         * configure: Regenerated.
7024         * manual/install.texi (Tools for Compilation): Update GCC version
7025         requirement.
7026         * INSTALL: Regenerated.
7027
7028 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7029
7030         [BZ #15674]
7031         * string/test-memcmp.c (check2): New.
7032         (main): Call check2.
7033
7034         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
7035
7036 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
7037
7038         [BZ #15022]
7039         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
7040         over to...
7041         (dl_open_worker) [!SHARED]: ... here.
7042
7043 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7044
7045         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
7046
7047 2013-06-25  Richard Henderson  <rth@redhat.com>
7048
7049         * locale/programs/locarchive.c: Include <libc-internal.h>
7050
7051 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
7052
7053         * manual/texinfo.tex: Update to version 2013-06-21.17, with
7054         trailing whitespace removed.
7055
7056 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
7057
7058         [BZ #10283]
7059         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
7060         * locale/programs/locarchive.c: Include libc-mmap.h.
7061         (prepare_address_space): Take two new outputs (the mmap base and len).
7062         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
7063         values.
7064         (create_archive): Declare new mmap base and len values for
7065         prepare_address_space, and store the result in ah.
7066         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
7067         (enlarge_archive): If ah->mmap_base is not NULL, use that and
7068         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
7069         Declare new mmap base and len values for
7070         prepare_address_space, and store the result in new_ah.
7071         (open_archive): Declare new mmap base and len values for
7072         prepare_address_space, and store the result in ah.
7073         (close_archive): If ah->mmap_base is not NULL, use that and
7074         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
7075         * sysdeps/generic/libc-mmap.h: New file.
7076
7077 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
7078
7079         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
7080         (ALIGN_UP): Likewise.
7081         (PTR_ALIGN_DOWN): Likewise.
7082         (PTR_ALIGN_UP): Likewise.
7083
7084 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7085
7086         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
7087         entry mapped to PPC_PLATFORM_POWER8.
7088         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
7089         POWER8.
7090         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
7091         (_dl_string_platform): Add case for exporting platform position for
7092         POWER8.
7093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
7094         search path to sysdeps/powerpc/powerpc32/power8 directory.
7095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
7096         search path to sysdeps/powerpc/powerpc64/power8 directory.
7097         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
7098         power7 directories.
7099         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
7100         power7 directories.
7101
7102 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7103
7104         * INSTALL: Regenerate.
7105
7106         * nscd/connections.c (nscd_init): Fix comment.
7107
7108 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
7109
7110         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
7111
7112         [BZ #15667]
7113         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
7114         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
7115
7116 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
7117
7118         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
7119         DL_DST_REQ_STATIC.
7120         (DL_DST_REQ_STATIC): Remove macro.
7121
7122 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
7123
7124         [BZ #7006]
7125         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
7126         with a shift of 0 bits.
7127
7128 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
7129
7130         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
7131         $(tststatic-ENV).
7132
7133 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7134
7135         [BZ #15655]
7136         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
7137
7138 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7139
7140         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
7141         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
7142         accepts -fno-tree-loop-distribute-patterns.
7143         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
7144         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
7145         recursive call.
7146         * string/memset.c (memset): Likewise.
7147         * string/test-memmove.c (simple_memmove): Disable loop transformation
7148         to library calls.
7149         * string/test-memset.c (simple_memset): Likewise.
7150         * benchtests/bench-memmove.c (simple_memmove): Likewise.
7151         * benchtests/bench-memset.c (simple_memset): Likewise.
7152         * configure: Regenerated.
7153
7154 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
7155
7156         * math/test-misc.c (main): Ignore fesetround failure when failures
7157         of subsequent rounding tests would be ignored.
7158
7159         [BZ #15654]
7160         * math/fedisblxcpt.c (fedisableexcept): Return 0.
7161         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
7162         * math/fegetenv.c (__fegetenv): Return 0.
7163         * math/fegetexcept.c (fegetexcept): Return 0.
7164         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
7165         FE_TONEAREST.
7166         * math/feholdexcpt.c (feholdexcept): Return 0.
7167         * math/fesetenv.c (__fesetenv): Return 0.
7168         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
7169         argument FE_TONEAREST.
7170         * math/feupdateenv.c (__feupdateenv): Return 0.
7171         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
7172
7173 2013-06-18  Roland McGrath  <roland@hack.frob.com>
7174
7175         * elf/rtld-Rules (rtld-compile-command.S): New variable.
7176         (rtld-compile-command.s, rtld-compile-command.c): New variables.
7177         ($(objpfx)rtld-%.os rules): Use them.
7178
7179 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7180
7181         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
7182         fields.
7183
7184 2013-06-17  Roland McGrath  <roland@hack.frob.com>
7185
7186         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
7187         length of target pattern, then descending length of dependency pattern.
7188         * configure.in (AWK): Require gawk 3.1.2 or newer.
7189         * manual/install.texi (Tools for Compilation): Say that we do.
7190         * configure: Regenerated.
7191
7192         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
7193         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
7194         * scripts/sysd-rules.awk: ... this new script.
7195         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
7196         than a glob-style pattern.
7197
7198 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
7199
7200         * math/test-misc.c (main): Do not treat incorrectly rounded
7201         conversions as failure unless ROUNDING_TESTS passes.
7202
7203 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
7204
7205         [BZ #15631]
7206         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
7207         restore exception state around main square root computation, then
7208         check for inexactness explicitly.
7209
7210         * math/libm-test.inc (fma_test_data): Add another test.
7211
7212 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7213
7214         * manual/threads.texi (Non-POSIX Extensions): New document
7215         node.  Document pthread_getattr_default_np and
7216         pthread_setattr_default_np.
7217
7218         * Versions.def (libpthread): Add GLIBC_2.18.
7219         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
7220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7221         Likewise.
7222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7223         Likewise.
7224         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7225         Likewise.
7226         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7227         Likewise.
7228         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
7229         Likewise.
7230         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7231         Likewise.
7232         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7233         Likewise.
7234         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7235         Likewise.
7236         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7237         Likewise.
7238
7239 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7240
7241         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7242         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
7243
7244 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7245             H.J. Lu  <hjl.tools@gmail.com>
7246
7247         [BZ #15627]
7248         * sysdeps/x86_64/rtld-memset.c: Remove file.
7249         * sysdeps/x86_64/rtld-memset.S: New file.
7250
7251 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
7252
7253         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
7254         (test_in_one_mode): Take arguments for whether the rounding mode
7255         is supported for each floating-point type.
7256         (do_test): Pass new arguments to test_in_one_mode using
7257         ROUNDING_TESTS.
7258
7259 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7260
7261         * posix/tst-waitid.c (do_test): Distinguish different instances of
7262         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
7263         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
7264         before entering the kernel for waitpid.
7265
7266 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7267
7268         * NEWS: Fix note on clock function precision.  Text by Roland
7269         McGrath.
7270
7271 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7272
7273         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
7274         it into place only when and if the sanity check passes.
7275
7276 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
7277
7278         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
7279         output for whether conversion result is exact.  Take argument
7280         indicating whether type is IBM long double.
7281         (round_for_all): Change need_exact field to ibm_ld.
7282         * stdlib/tst-strtod-round.c (struct exactness): New type.
7283         (struct test): Change bool ld_ok field to struct exactness exact.
7284         (TEST): Update all definitions for change to field.
7285         (tests): Regenerate array contents.
7286         (test_in_one_mode): Take pointer to new field instead of old ld_ok
7287         field value.  Check for IBM long double here.
7288         (do_test): Update calls to test_in_one_mode.
7289
7290 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7291
7292         [BZ #12515]
7293         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
7294         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
7295
7296 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7297
7298         [BZ #15605]
7299         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
7300         generated by the compiler on loop optimizations.
7301         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
7302         general definitions.
7303
7304 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
7305
7306         * math/bug-nextafter.c: Include <math-tests.h>.
7307         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7308         the relevant type.
7309         * math/bug-nexttoward.c: Include <math-tests.h>.
7310         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7311         the relevant type.
7312         * math/test-misc.c: Include <math-tests.h>.
7313         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7314         the relevant type.
7315
7316 2013-06-12  Andreas Jaeger  <aj@suse.de>
7317
7318         * po/ia.po: Update Interlingua translation from translation
7319         project.
7320
7321 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7322
7323         * include/fenv.h: Include stdbool.h.
7324         (struct rm_ctx): New structure.
7325         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
7326         Define macro.
7327         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
7328         (SET_RESTORE_ROUNDF): Likewise.
7329         (SET_RESTORE_ROUNDL): Likewise.
7330         (SET_RESTORE_ROUND_NOEX): Likewise.
7331         (SET_RESTORE_ROUND_NOEXF): Likewise.
7332         (SET_RESTORE_ROUND_NOEXL): Likewise.
7333         (SET_RESTORE_ROUND_53BIT): Likewise.
7334         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
7335         (libc_feresetround_noexf_ctx): Likewise.
7336         (libc_feresetround_noexl_ctx): Likewise.
7337         (libc_feholdsetround_53bit_ctx): Likewise.
7338         (libc_feresetround_53bit_ctx): Likewise.
7339         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
7340         (libc_feholdexcept_setround_sse_ctx): New function.
7341         (libc_fesetenv_sse_ctx): Likewise.
7342         (libc_feupdateenv_sse_ctx): Likewise.
7343         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
7344         (libc_feholdexcept_setround_387_ctx): Likewise.
7345         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
7346         (libc_feholdsetround_387_prec_ctx): Likewise.
7347         (libc_feholdsetround_387_ctx): Likewise.
7348         (libc_feholdsetround_387_53bit_ctx): Likewise.
7349         (libc_feholdsetround_sse_ctx): Likewise.
7350         (libc_feresetround_sse_ctx): Likewise.
7351         (libc_feresetround_387_ctx): Likewise.
7352         (libc_feupdateenv_387_ctx): Likewise.
7353         (libc_feholdexcept_setroundf_ctx): Define macro.
7354         (libc_fesetenvf_ctx): Likewise.
7355         (libc_feupdateenvf_ctx): Likewise.
7356         (libc_feholdsetroundf_ctx): Likewise.
7357         (libc_feresetroundf_ctx): Likewise.
7358         (libc_feholdexcept_setround_ctx): Likewise.
7359         (libc_fesetenv_ctx): Likewise.
7360         (libc_feupdateenv_ctx): Likewise.
7361         (libc_feholdsetround_ctx): Likewise.
7362         (libc_feresetround_ctx): Likewise.
7363         (libc_feholdexcept_setroundl_ctx): Likewise.
7364         (libc_feupdateenvl_ctx): Likewise.
7365         (libc_feholdsetroundl_ctx): Likewise.
7366         (libc_feresetroundl_ctx): Likewise.
7367         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
7368         (libc_feresetround_53bit_ctx): Likewise.
7369
7370 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7371
7372         * locale/iso-639.def: Convert to UTF-8.
7373
7374 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
7375
7376         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
7377         (EXCEPTION_TESTS_double): Likewise.
7378         (EXCEPTION_TESTS_long_double): Likewise.
7379         (EXCEPTION_TESTS): Likewise.
7380         * math/libm-test.inc (test_exceptions): Only test exceptions if
7381         EXCEPTION_TESTS (FLOAT).
7382
7383 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7384
7385         * benchtests/Makefile (string-bench): Add strcpy_chk and
7386         stpcpy_chk.
7387         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
7388         * benchtests/bench-stpcpy_chk.c: New file.
7389         * benchtests/bench-strcpy_chk-ifunc.c: New file.
7390         * benchtests/bench-strcpy_chk.c: New file.
7391         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
7392         code.
7393         (do_test): Likewise.
7394
7395 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7396
7397         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
7398         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
7399         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
7400         with tabs where appropriate.
7401         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
7402         dl-procinfo.h.
7403         [PPC_PLATFORM_PPC440]: Likewise.
7404         [PPC_PLATFORM_PPC464]: Likewise.
7405         [PPC_PLATFORM_PPC476]: Likewise.
7406         (_dl_string_platform): Add support for detecting ppc405, ppc440,
7407         ppc464, and ppc476 platform strings merging from ports/
7408         dl-procinfo.h.
7409
7410 2013-06-11  Andreas Schwab  <schwab@suse.de>
7411
7412         [BZ #14991]
7413         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
7414         (from_ucs4_idx): Regenerate.
7415         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
7416         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
7417         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
7418         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
7419         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
7420         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
7421         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
7422         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
7423         from FROM_LOOP and TO_LOOP specific macros.
7424         (BODY): Handle combining characters.
7425         * iconvdata/BIG5HKSCS.irreversible: Update.
7426         * iconvdata/BIG5HKSCS.precomposed: New file.
7427         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
7428         characters.
7429         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
7430
7431 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7432
7433         * include/sys/time.h: Fix indentation and add copyright header.
7434
7435         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
7436         (do_test): Likewise.
7437         * string/test-memchr.c (do_one_test): Likewise.
7438         (do_test): Likewise.
7439         * string/test-memcmp.c (do_one_test): Likewise.
7440         (do_test): Likewise.
7441         * string/test-memcpy.c (do_one_test): Likewise.
7442         (do_test): Likewise.
7443         * string/test-memmem.c (do_one_test): Likewise.
7444         (do_test): Likewise.
7445         (do_random_tests): Likewise.
7446         * string/test-memmove.c (do_one_test): Likewise.
7447         (do_test): Likewise.
7448         * string/test-memset.c (do_one_test): Likewise.
7449         (do_test): Likewise.
7450         * string/test-rawmemchr.c (do_one_test): Likewise.
7451         (do_test): Likewise.
7452         * string/test-strcasecmp.c (do_one_test): Likewise.
7453         (do_test): Likewise.
7454         * string/test-strcasestr.c (do_one_test): Likewise.
7455         (do_test): Likewise.
7456         * string/test-strcat.c (do_one_test): Likewise.
7457         (do_test): Likewise.
7458         * string/test-strchr.c (do_one_test): Likewise.
7459         (do_test): Likewise.
7460         * string/test-strcmp.c (do_one_test): Likewise.
7461         (do_test): Likewise.
7462         * string/test-strcpy.c (do_one_test): Likewise.
7463         (do_test): Likewise.
7464         * string/test-string.h: Likewise.
7465         (test_init): Likewise.
7466         * string/test-strlen.c (do_one_test): Likewise.
7467         (do_test): Likewise.
7468         * string/test-strncasecmp.c (do_one_test): Likewise.
7469         (do_test): Likewise.
7470         * string/test-strncat.c (do_one_test): Likewise.
7471         (do_test): Likewise.
7472         * string/test-strncmp.c (do_one_test): Likewise.
7473         (do_test_limit): Likewise.
7474         (do_test): Likewise.
7475         * string/test-strncpy.c (do_one_test): Likewise.
7476         (do_test): Likewise.
7477         * string/test-strnlen.c (do_one_test): Likewise.
7478         (do_test): Likewise.
7479         * string/test-strpbrk.c (do_one_test): Likewise.
7480         (do_test): Likewise.
7481         * string/test-strrchr.c (do_one_test): Likewise.
7482         (do_test): Likewise.
7483         * string/test-strspn.c (do_one_test): Likewise.
7484         (do_test): Likewise.
7485         * string/test-strstr.c (do_one_test): Likewise.
7486         (do_test): Likewise.
7487
7488         * benchtests/Makefile (string-bench): Add string benchmarks.
7489         * benchtests/bench-bcopy-ifunc.c: New file.
7490         * benchtests/bench-bcopy.c: New file.
7491         * benchtests/bench-bzero-ifunc.c: New file.
7492         * benchtests/bench-bzero.c: New file.
7493         * benchtests/bench-memccpy-ifunc.c: New file.
7494         * benchtests/bench-memccpy.c: New file.
7495         * benchtests/bench-memchr-ifunc.c: New file.
7496         * benchtests/bench-memchr.c: New file.
7497         * benchtests/bench-memcmp-ifunc.c: New file.
7498         * benchtests/bench-memcmp.c: New file.
7499         * benchtests/bench-memmem-ifunc.c: New file.
7500         * benchtests/bench-memmem.c: New file.
7501         * benchtests/bench-memmove-ifunc.c: New file.
7502         * benchtests/bench-memmove.c: New file.
7503         * benchtests/bench-mempcpy-ifunc.c: New file.
7504         * benchtests/bench-mempcpy.c: New file.
7505         * benchtests/bench-memset-ifunc.c: New file.
7506         * benchtests/bench-memset.c: New file.
7507         * benchtests/bench-rawmemchr-ifunc.c: New file.
7508         * benchtests/bench-rawmemchr.c: New file.
7509         * benchtests/bench-stpcpy-ifunc.c: New file.
7510         * benchtests/bench-stpcpy.c: New file.
7511         * benchtests/bench-stpncpy-ifunc.c: New file.
7512         * benchtests/bench-stpncpy.c: New file.
7513         * benchtests/bench-strcasecmp-ifunc.c: New file.
7514         * benchtests/bench-strcasecmp.c: New file.
7515         * benchtests/bench-strcasestr-ifunc.c: New file.
7516         * benchtests/bench-strcasestr.c: New file.
7517         * benchtests/bench-strcat-ifunc.c: New file.
7518         * benchtests/bench-strcat.c: New file.
7519         * benchtests/bench-strchr-ifunc.c: New file.
7520         * benchtests/bench-strchr.c: New file.
7521         * benchtests/bench-strchrnul-ifunc.c: New file.
7522         * benchtests/bench-strchrnul.c: New file.
7523         * benchtests/bench-strcmp-ifunc.c: New file.
7524         * benchtests/bench-strcmp.c: New file.
7525         * benchtests/bench-strcpy-ifunc.c: New file.
7526         * benchtests/bench-strcpy.c: New file.
7527         * benchtests/bench-strcspn-ifunc.c: New file.
7528         * benchtests/bench-strcspn.c: New file.
7529         * benchtests/bench-strlen-ifunc.c: New file.
7530         * benchtests/bench-strlen.c: New file.
7531         * benchtests/bench-strncasecmp-ifunc.c: New file.
7532         * benchtests/bench-strncasecmp.c: New file.
7533         * benchtests/bench-strncat-ifunc.c: New file.
7534         * benchtests/bench-strncat.c: New file.
7535         * benchtests/bench-strncmp-ifunc.c: New file.
7536         * benchtests/bench-strncmp.c: New file.
7537         * benchtests/bench-strncpy-ifunc.c: New file.
7538         * benchtests/bench-strncpy.c: New file.
7539         * benchtests/bench-strnlen-ifunc.c: New file.
7540         * benchtests/bench-strnlen.c: New file.
7541         * benchtests/bench-strpbrk-ifunc.c: New file.
7542         * benchtests/bench-strpbrk.c: New file.
7543         * benchtests/bench-strrchr-ifunc.c: New file.
7544         * benchtests/bench-strrchr.c: New file.
7545         * benchtests/bench-strspn-ifunc.c: New file.
7546         * benchtests/bench-strspn.c: New file.
7547         * benchtests/bench-strstr-ifunc.c: New file.
7548         * benchtests/bench-strstr.c: New file.
7549
7550         * benchtests/Makefile: Disable parallel execution of targets.
7551         (string-bench): Add memcpy.
7552         (benchset): New variable to store a list of benchmark sets.
7553         (bench-func): Renamed from bench.
7554         (bench-set): New target.
7555         (bench): Depend on bench-func and bench-set.
7556         * benchtests/README: Add section on benchmark sets.
7557         * benchtests/bench-memcpy-ifunc.c: New file.
7558         * benchtests/bench-memcpy.c: New file.
7559         * benchtests/bench-string.h: New file.
7560
7561 2013-06-11  Andreas Schwab  <schwab@suse.de>
7562
7563         [BZ #15577]
7564         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
7565         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
7566         values in the triple.
7567         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
7568         terminator in the group key.
7569
7570 2013-06-11  Andreas Jaeger  <aj@suse.de>
7571
7572         * po/zh_TW.po: Update Chinese (traditional) translation from
7573         translation project.
7574
7575 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7576
7577         * include/time.h (__clock_gettime): Add libc_hidden_proto.
7578         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
7579         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
7580         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7581         (clock_getcpuclockid): Likewise.
7582         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
7583         Add weak_alias and libc_hidden_def.
7584         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
7585         * rt/clock_gettime.c (clock_gettime): Rename to
7586         __clock_gettime.  Add weak_alias and libc_hidden_def.
7587         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
7588         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
7589         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
7590         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
7591         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
7592         Likewise.
7593         * rt/clock_settime.c (clock_settime): Rename to
7594         __clock_settime.  Add weak_alias and libc_hidden_def.
7595         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
7596
7597 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
7598
7599         * mach/err_boot.sub: Remove trailing whitespace.
7600         * mach/err_ipc.sub: Likewise.
7601         * mach/err_mach.sub: Likewise.
7602
7603         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
7604         (ROUNDING_TESTS_double): Likewise.
7605         (ROUNDING_TESTS_long_double): Likewise.
7606         (ROUNDING_TESTS): Likewise.
7607         * math/libm-test.inc: Include <math-tests.h>.
7608         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
7609         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
7610         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7611         (IF_ROUND_INIT_FE_UPWARD): Likewise.
7612
7613 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7614
7615         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
7616         of assigning.
7617
7618 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
7619
7620         * sysdeps/gnu/errlist.awk: Do not generate space at end of
7621         otherwise empty TRANS lines.
7622         * sysdeps/gnu/errlist.c: Regenerated.
7623
7624         * catgets/gencat.c (error_print): Use (void) in function
7625         definition.
7626         * crypt/crypt_util.c (__init_des): Likewise.
7627         * crypt/speeds.c (Stop): Likewise.
7628         (main): Likewise.
7629         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
7630         * inet/ruserpass.c (token): Likewise.
7631         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
7632         * intl/localealias.c (extend_alias_table): Likewise.
7633         * intl/plural-exp.c (init_germanic_plural): Likewise.
7634         * libio/fcloseall.c (__fcloseall): Likewise.
7635         * libio/genops.c (_IO_flush_all): Likewise.
7636         (_IO_flush_all_linebuffered): Likewise.
7637         (_IO_cleanup): Likewise.
7638         (_IO_iter_begin): Likewise.
7639         (_IO_iter_end): Likewise.
7640         (_IO_list_lock): Likewise.
7641         (_IO_list_unlock): Likewise.
7642         (_IO_list_resetlock): Likewise.
7643         * libio/getchar.c (getchar): Likewise.
7644         * libio/getchar_u.c (getchar_unlocked): Likewise.
7645         * libio/getwchar.c (getwchar): Likewise.
7646         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7647         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
7648         * login/getpt.c (__getpt): Likewise.
7649         * login/tst-utmp.c (main): Likewise.
7650         * malloc/hooks.c (__malloc_check_init): Likewise.
7651         * malloc/malloc.c (__malloc_stats): Likewise.
7652         * malloc/mtrace.c (tr_break): Likewise.
7653         (mtrace): Likewise.
7654         (muntrace): Likewise.
7655         * misc/fstab.c (endfsent): Likewise.
7656         * misc/getclktck.c (__getclktck): Likewise.
7657         * misc/getdtsz.c (__getdtablesize): Likewise.
7658         * misc/gethostid.c (gethostid): Likewise.
7659         * misc/getpagesize.c (__getpagesize): Likewise.
7660         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
7661         (__get_nprocs): Likewise.
7662         (__get_phys_pages): Likewise.
7663         (__get_avphys_pages): Likewise.
7664         * misc/getttyent.c (getttyent): Likewise.
7665         (setttyent): Likewise.
7666         (endttyent): Likewise.
7667         * misc/getusershell.c (getusershell): Likewise.
7668         (endusershell): Likewise.
7669         (setusershell): Likewise.
7670         (initshells): Likewise.
7671         * misc/hsearch.c (__hdestroy): Likewise.
7672         * misc/sync.c (sync): Likewise.
7673         * misc/syslog.c (closelog_internal): Likewise.
7674         (closelog): Likewise.
7675         * misc/ttyslot.c (ttyslot): Likewise.
7676         * misc/vhangup.c (vhangup): Likewise.
7677         * posix/fork.c (__fork): Likewise.
7678         * posix/getegid.c (__getegid): Likewise.
7679         * posix/geteuid.c (__geteuid): Likewise.
7680         * posix/getgid.c (__getgid): Likewise.
7681         * posix/getpid.c (__getpid): Likewise.
7682         * posix/getppid.c (__getppid): Likewise.
7683         * posix/getuid.c (__getuid): Likewise.
7684         * posix/pause.c (pause): Likewise.
7685         * posix/setpgrp.c (setpgrp): Likewise.
7686         * posix/setsid.c (__setsid): Likewise.
7687         * posix/test-vfork.c (noop): Likewise.
7688         * resolv/gethnamaddr.c (_endhtent): Likewise.
7689         (_gethtent): Likewise.
7690         (ht_endhostent): Likewise.
7691         (gethostent): Likewise.
7692         (dns_service): Likewise.
7693         * stdlib/drand48.c (drand48): Likewise.
7694         * stdlib/lrand48.c (lrand48): Likewise.
7695         * stdlib/mrand48.c (mrand48): Likewise.
7696         * stdlib/rand.c (rand): Likewise.
7697         * stdlib/random.c (__random): Likewise.
7698         * stdlib/setenv.c (clearenv): Likewise.
7699         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
7700         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
7701         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
7702         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
7703         (__get_nprocs): Likewise.
7704         (__get_phys_pages): Likewise.
7705         (__get_avphys_pages): Likewise.
7706         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
7707         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
7708         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
7709         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
7710         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
7711         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
7712         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
7713         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
7714         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
7715         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
7716         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
7717         * sysdeps/mach/hurd/sync.c (sync): Likewise.
7718         * sysdeps/posix/clock.c (clock): Likewise.
7719         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
7720         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
7721         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
7722         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7723         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
7724         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7725         (__get_nprocs_conf): Likewise.
7726         (__get_phys_pages): Likewise.
7727         (__get_avphys_pages): Likewise.
7728         * time/clock.c (clock): Likewise.
7729         * time/tzset.c (__tzname_max): Likewise.
7730
7731 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
7732
7733         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
7734         (__bswap_32): Do not use "register".
7735         * crypt/crypt.c (_ufc_doit_r): Likewise.
7736         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7737         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7738         * gmon/gmon.c (__monstartup): Likewise.
7739         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
7740         * hurd/hurdmalloc.c (more_memory): Likewise.
7741         (malloc): Likewise.
7742         (free): Likewise.
7743         (realloc): Likewise.
7744         (malloc_fork_prepare): Likewise.
7745         (malloc_fork_parent): Likewise.
7746         (malloc_fork_child): Likewise.
7747         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
7748         (_svcauth_des): Likewise.
7749         * inet/inet_lnaof.c (inet_lnaof): Likewise.
7750         * inet/inet_net.c (inet_network): Likewise.
7751         * inet/inet_netof.c (inet_netof): Likewise.
7752         * inet/rcmd.c (__validuser2_sa): Likewise.
7753         * io/fts.c (fts_open): Likewise.
7754         (fts_load): Likewise.
7755         (fts_close): Likewise.
7756         (fts_read): Likewise.
7757         (fts_children): Likewise.
7758         (fts_build): Likewise.
7759         (fts_stat): Likewise.
7760         (fts_sort): Likewise.
7761         (fts_alloc): Likewise.
7762         (fts_lfree): Likewise.
7763         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
7764         (_IO_file_xsgetn): Likewise.
7765         (_IO_file_xsgetn_mmap): Likewise.
7766         * libio/iofopncook.c (_IO_cookie_read): Likewise.
7767         (_IO_cookie_write): Likewise.
7768         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
7769         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
7770         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
7771         * malloc/obstack.c (_obstack_begin): Likewise.
7772         (_obstack_begin_1): Likewise.
7773         (_obstack_newchunk): Likewise.
7774         (_obstack_allocated_p): Likewise.
7775         (obstack_free): Likewise.
7776         (_obstack_memory_used): Likewise.
7777         * misc/getttyent.c (getttynam): Likewise.
7778         (getttyent): Likewise.
7779         (skip): Likewise.
7780         (value): Likewise.
7781         * misc/getusershell.c (initshells): Likewise.
7782         * misc/syslog.c (__vsyslog_chk): Likewise.
7783         * misc/ttyslot.c (ttyslot): Likewise.
7784         * nis/nis_hash.c (__nis_hash): Likewise.
7785         * posix/fnmatch_loop.c (FCT): Likewise.
7786         * posix/getconf.c (print_all): Likewise.
7787         (main): Likewise.
7788         * posix/getopt.c (exchange): Likewise.
7789         * posix/glob.c (globfree): Likewise.
7790         (prefix_array): Likewise.
7791         (__glob_pattern_type): Likewise.
7792         * resolv/arpa/nameser.h (NS_GET16): Likewise.
7793         (NS_GET32): Likewise.
7794         (NS_PUT16): Likewise.
7795         (NS_PUT32): Likewise.
7796         * resolv/gethnamaddr.c (getanswer): Likewise.
7797         (gethostbyname2): Likewise.
7798         (gethostbyaddr): Likewise.
7799         (_gethtent): Likewise.
7800         (_gethtbyname2): Likewise.
7801         (_gethtbyaddr): Likewise.
7802         * resolv/ns_print.c (dst_s_get_int16): Likewise.
7803         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
7804         * resolv/res_init.c (__res_vinit): Likewise.
7805         (net_mask): Likewise.
7806         * resolv/res_mkquery.c (outchar): Likewise.
7807         (PRINT): Likewise.
7808         * stdio-common/printf_fp.c (outchar): Likewise.
7809         (PRINT): Likewise.
7810         * stdio-common/printf_fphex.c (outchar): Likewise.
7811         (PRINT): Likewise.
7812         * stdio-common/printf_size.c (outchar): Likewise.
7813         (PRINT): Likewise.
7814         * stdio-common/test_rdwr.c (main): Likewise.
7815         * stdio-common/tfformat.c (matches): Likewise.
7816         * stdio-common/vfprintf.c (outchar): Likewise.
7817         (printf_unknown): Likewise.
7818         (buffered_vfprintf): Likewise.
7819         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7820         * stdio-common/xbug.c (AppendToBuffer): Likewise.
7821         (ReadFile): Likewise.
7822         * stdlib/qsort.c (SWAP): Likewise.
7823         (_quicksort): Likewise.
7824         * stdlib/setenv.c (__add_to_environ): Likewise.
7825         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7826         * stdlib/strtol_l.c (__strtol_l): Likewise.
7827         * stdlib/tst-strtod.c (main): Likewise.
7828         * stdlib/tst-strtol.c (main): Likewise.
7829         * stdlib/tst-strtoll.c (main): Likewise.
7830         * string/bits/string2.h (__strcmp_cc): Likewise.
7831         (__strcmp_cg): Likewise.
7832         (__strcspn_c1): Likewise.
7833         (__strcspn_c2): Likewise.
7834         (__strcspn_c3): Likewise.
7835         (__strspn_c1): Likewise.
7836         (__strspn_c2): Likewise.
7837         (__strspn_c3): Likewise.
7838         (__strsep_1c): Likewise.
7839         (__strsep_2c): Likewise.
7840         (__strsep_3c): Likewise.
7841         * string/memccpy.c (__memccpy): Likewise.
7842         * string/stpcpy.c (__stpcpy): Likewise.
7843         * string/strcmp.c (strcmp): Likewise.
7844         * string/strrchr.c (strrchr): Likewise.
7845         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
7846         Likewise.
7847         * sysdeps/mach/hurd/getcwd.c
7848         (_hurd_canonicalize_directory_name_internal): Likewise.
7849         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
7850         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
7851         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
7852         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
7853         Likewise, in both definitions.
7854         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
7855         definitions.
7856         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
7857         64] (__bswap_64): Likewise.
7858         * time/test_time.c (main): Likewise.
7859         * time/tzfile.c (__tzfile_read): Likewise.
7860         (__tzfile_compute): Likewise.
7861         * time/tzset.c (__tzset_parse_tz): Likewise.
7862         (tzset_internal): Likewise.
7863         (compute_change): Likewise.
7864         * wcsmbs/wcscat.c (__wcscat): Likewise.
7865         * wcsmbs/wcschr.c (wcschr): Likewise.
7866         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
7867         * wcsmbs/wcscspn.c (wcscspn): Likewise.
7868         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
7869         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
7870         * wcsmbs/wcsspn.c (wcsspn): Likewise.
7871         * wcsmbs/wcsstr.c (wcsstr): Likewise.
7872         * wcsmbs/wmemchr.c (wmemchr): Likewise.
7873         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7874         * wcsmbs/wmemset.c (wmemset): Likewise.
7875
7876 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
7877
7878         * scripts/config.guess: Update to version 2013-05-16.
7879         * scripts/config.sub: Update to version 2013-04-24.
7880         * scripts/install-sh: Update to version 2011-11-20.07.
7881         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
7882         * scripts/move-if-change: Update to version 2012-01-06 07:23.
7883
7884 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
7885
7886         * debug/fgetws_u_chk.c: Fix leading whitespaces.
7887         * elf/sln.c: Likewise.
7888         * hurd/hurd/ioctl.h: Likewise.
7889         * hurd/hurdmalloc.c: Likewise.
7890         * hurd/xattr.c: Likewise.
7891         * include/shlib-compat.h: Likewise.
7892         * inet/ruserpass.c: Likewise.
7893         * libio/iofgets_u.c: Likewise.
7894         * libio/iofgetws_u.c: Likewise.
7895         * locale/programs/ld-identification.c: Likewise.
7896         * locale/programs/ld-time.c: Likewise.
7897         * mach/msg-destroy.c: Likewise.
7898         * nss/nss_files/files-netgrp.c: Likewise.
7899         * resolv/res_data.c: Likewise.
7900         * soft-fp/op-1.h: Likewise.
7901         * soft-fp/op-2.h: Likewise.
7902         * soft-fp/op-4.h: Likewise.
7903         * soft-fp/op-common.h: Likewise.
7904         * stdio-common/printf_fphex.c: Likewise.
7905         * stdlib/strtod_l.c: Likewise.
7906         * sunrpc/rpc/clnt.h: Likewise.
7907         * sysdeps/generic/framestate.c: Likewise.
7908         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7909         * sysdeps/i386/bsd-setjmp.S: Likewise.
7910         * sysdeps/i386/__longjmp.S: Likewise.
7911         * sysdeps/i386/setjmp.S: Likewise.
7912         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7913         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7914         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7915         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7916         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7917         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7918         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7919         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7920         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7921         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
7922         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7923         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7924         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7925         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7926         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7927         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7928         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7929         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
7930         * sysdeps/ieee754/support.c: Likewise.
7931         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7932         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
7933         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
7934         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
7935         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
7936         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
7937         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
7938         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
7939         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
7940         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
7941         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
7942         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
7943         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
7944         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
7945         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
7946         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
7947         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
7949
7950 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
7951
7952         * posix/transbug.c: Remove executable mode.
7953
7954 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
7955
7956         * crypt/speeds.c: Remove trailing whitespace.
7957         * dlfcn/default.c: Likewise.
7958         * elf/ifuncdep2.c: Likewise.
7959         * elf/ifuncmain1.c: Likewise.
7960         * elf/ifuncmain1vis.c: Likewise.
7961         * elf/testobj.h: Likewise.
7962         * elf/tst-stackguard1.c: Likewise.
7963         * gmon/sys/gmon.h: Likewise.
7964         * hurd/hurdmsg.c: Likewise.
7965         * hurd/new-fd.c: Likewise.
7966         * hurd/ports-get.c: Likewise.
7967         * iconvdata/ibm1008_420.c: Likewise.
7968         * inet/tst-getni1.c: Likewise.
7969         * inet/tst-getni2.c: Likewise.
7970         * libio/ioungetc.c: Likewise.
7971         * libio/wfiledoalloc.c: Likewise.
7972         * manual/libm-err-tab.pl: Likewise.
7973         * math/w_dremf.c: Likewise.
7974         * misc/ftruncate.c: Likewise.
7975         * posix/bug-glob2.c: Likewise.
7976         * posix/tst-pcre.c: Likewise.
7977         * posix/wait4.c: Likewise.
7978         * resolv/README: Likewise.
7979         * resolv/res_debug.h: Likewise.
7980         * resolv/tst-inet_ntop.c: Likewise.
7981         * setjmp/bug269-setjmp.c: Likewise.
7982         * soft-fp/extended.h: Likewise.
7983         * soft-fp/op-1.h: Likewise.
7984         * soft-fp/op-2.h: Likewise.
7985         * soft-fp/op-4.h: Likewise.
7986         * soft-fp/op-8.h: Likewise.
7987         * soft-fp/testit.c: Likewise.
7988         * stdio-common/bug16.c: Likewise.
7989         * stdlib/random.c: Likewise.
7990         * sunrpc/rpcsvc/rquota.x: Likewise.
7991         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
7992         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7993         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7994         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7995         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7996         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7997         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7998         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7999         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8000         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8001         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8002         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
8003         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8004         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8005         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8006         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8007         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8008         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8009         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
8010         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8011         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8012         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8013         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
8014         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
8015         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8016         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8017         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
8018         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8019         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8020         * sysdeps/ieee754/s_lib_version.c: Likewise.
8021         * sysdeps/mach/hurd/check_fds.c: Likewise.
8022         * sysdeps/mach/hurd/getsockname.c: Likewise.
8023         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
8024         * sysdeps/mach/hurd/recvfrom.c: Likewise.
8025         * sysdeps/powerpc/bits/link.h: Likewise.
8026         * sysdeps/powerpc/dl-procinfo.c: Likewise.
8027         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
8028         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
8029         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
8030         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
8031         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8032         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
8033         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
8034         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
8035         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8036         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
8037         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
8038         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
8039         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8040         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8041         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8042         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
8043         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
8044         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8045         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8046         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8047         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
8048         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
8049         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
8050         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8051         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
8052         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
8053         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8054         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8055         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
8056         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
8057         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
8058         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8059         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8060         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
8061         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
8062         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
8063         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
8064         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
8065         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
8066         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
8067         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
8068         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
8069         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
8070         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
8071         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
8072         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
8073         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
8074         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
8075         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
8076         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8077         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8078         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8079         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8080         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
8081         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
8082         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
8083         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
8084         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
8085         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
8086         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
8087         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
8088         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
8089         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
8090         * sysdeps/powerpc/sysdep.h: Likewise.
8091         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
8092         * sysdeps/s390/s390-64/sub_n.S: Likewise.
8093         * sysdeps/sh/dl-trampoline.S: Likewise.
8094         * sysdeps/sh/memset.S: Likewise.
8095         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
8096         * sysdeps/sh/strlen.S: Likewise.
8097         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
8098         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
8099         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
8100         * sysdeps/sparc/sparc32/rem.S: Likewise.
8101         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
8102         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
8103         * sysdeps/sparc/sparc32/strchr.S: Likewise.
8104         * sysdeps/sparc/sparc32/udiv.S: Likewise.
8105         * sysdeps/sparc/sparc32/urem.S: Likewise.
8106         * sysdeps/sparc/sparc64/add_n.S: Likewise.
8107         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8108         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
8109         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
8110         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
8111         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
8112         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
8113         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
8114         * sysdeps/unix/bsd/times.c: Likewise.
8115         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
8116         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
8117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
8118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
8119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
8120         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8121         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
8122         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8123         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
8124         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
8125         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
8126         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
8127         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
8128         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8129         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
8130         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8131         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8132         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
8133         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
8134         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
8135         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8136         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
8137         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8138         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
8139         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
8140         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8141         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
8142         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8143         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
8144         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
8145         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
8146         * sysdeps/x86_64/strcspn.S: Likewise.
8147
8148 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8149
8150         * locale/C-translit.h: Revert #include <stdint.h> because this is a
8151         generated file.  Regenerate properly from gen-translit.pl.
8152         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
8153         locale/C-translit.h.
8154
8155 2013-06-05  Andreas Schwab  <schwab@suse.de>
8156
8157         [BZ #15100]
8158         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
8159         week as 6 instead of -1.
8160         * time/tst-strptime.c (day_tests): Add test case.
8161
8162 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8163
8164         * sysdeps/generic/math_private.h
8165         (libc_feholdexcept_setround_53bit): Replace with
8166         libc_feholdsetround_53bit.
8167         (libc_feupdateenv_53bit): Replace with
8168         libc_feresetround_53bit.
8169         (SET_RESTORE_ROUND_53BIT): Adjust.
8170
8171 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
8172
8173         * string/test-strchrnul.c: Add copyright header.
8174
8175         * posix/tst-getaddrinfo4.c: Increase test timeout.
8176
8177 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
8178
8179         [BZ #15536]
8180         * math/libm-test.inc (MAX_EXP): Remove
8181         (MIN_EXP): Define.
8182         (ulp): Use MIN_EXP - MANT_DIG.
8183         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
8184
8185 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
8186
8187         * po/be.po: Revert last change.
8188         * po/zh_CN.po: Likewise.
8189         * po/header.pot: Likewise.
8190
8191 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
8192
8193         * Makefile ($(common-objpfx)linkobj/libc.so): Define
8194         link-libc-deps to empty as target-specific variable.
8195         * Makerules (link-libc-args): New variable.
8196         (libc-for-link): Likewise.
8197         (link-libc-deps): Likewise.
8198         (lib%.so): Depend on $(link-libc-deps).  Link with
8199         $(link-libc-args).
8200         (build-module): Link with $(link-libc-args).
8201         (build-module-asneeded): Likewise.
8202         (build-module-helper-objlist): Filter out $(link-libc-deps) from
8203         list of objects.
8204         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
8205         target-specific variable.
8206         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
8207         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
8208         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
8209         libc.
8210         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
8211         libc and ld.so.
8212         ($(objpfx)libpcprofile.so): Likewise.
8213         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
8214         libc_nonshared.a.
8215         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
8216         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
8217         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
8218         $(link-libc-deps).
8219         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
8220         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
8221         * login/Makefile ($(objpfx)libutil.so): Likewise.
8222         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
8223         * math/Makefile ($(objpfx)libm.so): Likewise.
8224         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
8225         $(objpfx)libnsl.so): Define libc-for-link as target-specific
8226         variable instead of depending directly on libc.
8227         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
8228         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
8229         $(link-libc-deps).
8230         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
8231         libc.
8232         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
8233         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
8234         ($(objpfx)libanl.so): Likewise.
8235         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
8236         ld.so.
8237         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
8238         $(link-libc-deps).
8239         * sysdeps/i386/fpu/Makefile: Remove file.
8240         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
8241         ($(objpfx)libm.so): Remove dependency on ld.so.
8242
8243 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
8244
8245         [BZ # 15553]
8246         * nis/yp_xdr.c (XDRMAXNAME): Define.
8247         (XDRMAXRECORD): Define.
8248         (xdr_domainname): Use XDRMAXNAME.
8249         (xdr_mapname): Likewise.
8250         (xdr_peername): Likewise.
8251         (xdr_keydat): Use XDRMAXRECORD.
8252         (xdr_valdat): Likewise.
8253
8254 2013-05-30  Jeff Law  <law@redhat.com>
8255
8256         [BZ #14256]
8257         * manual/errno.texi (ESTALE): Update to account for more than
8258         just NFS file systems.
8259         * sysdeps/gnu/errlist.c: Regenerated.
8260
8261 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
8262
8263         [BZ #15465]
8264         * elf/Makefile (tests): Add tst-null-argv.
8265         (modules-names):  Add tst-null-argv-lib.
8266         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
8267         (tst-null-argv-ENV): Set environment for tst-null-argv.
8268         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
8269         (RTLD_PROGNAME): New macro.
8270         * elf/tst-null-argv.c: New test case.
8271         * elf/tst-null-argv-lib.c: Library for test case.
8272         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
8273         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8274         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
8275         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
8276         * elf/dl-init.c (call_init): Likewise.
8277         (_dl_init): Likewise.
8278         * elf/dl-load.c (print_search_path): Likewise.
8279         (_dl_map_object): Likewise.
8280         * elf/dl-lookup.c (do_lookup_x): Likewise.
8281         (add_dependency): Likewise.
8282         (_dl_lookup_symbol_x): Likewise.
8283         (_dl_debug_bindings): Likewise.
8284         * elf/dl-open.c (_dl_show_scope): Likewise.
8285         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8286         * elf/dl-version.c (match_symbol): Likewise.
8287         (_dl_check_map_versions): Likewise.
8288         * elf/rtld.c (dl_main): Likewise.
8289         (print_unresolved): Use RTLD_PROGNAME.
8290         (print_missing_version): Likewise.
8291         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8292         (elf_machine_rela): Likewise.
8293         * sysdeps/powerpc/powerpc32/dl-machine.c
8294         (__process_machine_rela): Likewise.
8295         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8296         Likewise.
8297         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8298         Likewise.
8299         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
8300         Likewise.
8301         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8302         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
8303         Likewise.
8304         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8305         Likewise.
8306         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8307
8308 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
8309
8310         * po/be.po: Add descriptive title.
8311         * po/zh_CN.po: Likewise.
8312         * po/header.pot: Likewise.
8313
8314 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
8315
8316         * locale/programs/locarchive.c (create_archive): Inlucde fname in
8317         error message.
8318         (enlarge_archive): Likewise.
8319
8320 2013-05-28  Ben North  <ben@redfrontdoor.org>
8321
8322         * manual/arith.texi (frexp): It is the magnitude of the return
8323         value which lies in [0.5, 1), not the return value itself.
8324
8325 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8326
8327         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8328
8329 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
8330
8331         * stdio-common/bug26.c (main): Correct fscanf template.
8332
8333         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
8334         declare _dl_skip_args.
8335
8336         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
8337         Don't declare.
8338
8339         * manual/platform.texi: Add missing @end deftypefun.
8340
8341 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8342
8343         [BZ #15529]
8344         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
8345         bit of mantissa of 2^16382.
8346         * math/libm-test.inc (hypot_test_data): Add more tests.
8347
8348         * math/libm-test.inc: Add drem and pow10 to list of tested
8349         functions.
8350         (pow10_test): New function.
8351         (drem_test): Likewise.
8352         (drem_test_tonearest): Likewise.
8353         (drem_test_towardzero): Likewise.
8354         (drem_test_downward): Likewise.
8355         (drem_test_upward): Likewise.
8356         (main): Call the new functions.
8357
8358         * math/libm-test.inc (finite_test_data): Remove.
8359         (finite_test): Run tests from isfinite_test_data.
8360         (gamma_test_data): Remove.
8361         (gamma_test): Run tests from lgamma_test_data.
8362         * sysdeps/i386/fpu/libm-test-ulps: Update.
8363         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8364
8365 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8366
8367         * manual/platform.texi: Add PowerPC PPR function set documentation.
8368         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
8369         implementation.
8370
8371 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
8372
8373         * math/libm-test.inc (MAX_EXP): Define.
8374         (ULPDIFF): Define.
8375         (ulp): New function.
8376         (check_float_internal): Use ULPDIFF.
8377         (cpow_test): Disable failing test.
8378         (check_ulp): Test ulp() implemetnation.
8379         (main): Call check_ulp before starting tests.
8380
8381 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8382
8383         * math/gen-libm-test.pl (generate_testfile): Do not handle
8384         START_DATA and END_DATA.
8385         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
8386         END_DATA.
8387         (acos_tonearest_test_data): Likewise.
8388         (acos_towardzero_test_data): Likewise.
8389         (acos_downward_test_data): Likewise.
8390         (acos_upward_test_data): Likewise.
8391         (acosh_test_data): Likewise.
8392         (asin_test_data): Likewise.
8393         (asin_tonearest_test_data): Likewise.
8394         (asin_towardzero_test_data): Likewise.
8395         (asin_downward_test_data): Likewise.
8396         (asin_upward_test_data): Likewise.
8397         (asinh_test_data): Likewise.
8398         (atan_test_data): Likewise.
8399         (atanh_test_data): Likewise.
8400         (atan2_test_data): Likewise.
8401         (cabs_test_data): Likewise.
8402         (cacos_test_data): Likewise.
8403         (cacosh_test_data): Likewise.
8404         (carg_test_data): Likewise.
8405         (casin_test_data): Likewise.
8406         (casinh_test_data): Likewise.
8407         (catan_test_data): Likewise.
8408         (catanh_test_data): Likewise.
8409         (cbrt_test_data): Likewise.
8410         (ccos_test_data): Likewise.
8411         (ccosh_test_data): Likewise.
8412         (ceil_test_data): Likewise.
8413         (cexp_test_data): Likewise.
8414         (cimag_test_data): Likewise.
8415         (clog_test_data): Likewise.
8416         (clog10_test_data): Likewise.
8417         (conj_test_data): Likewise.
8418         (copysign_test_data): Likewise.
8419         (cos_test_data): Likewise.
8420         (cos_tonearest_test_data): Likewise.
8421         (cos_towardzero_test_data): Likewise.
8422         (cos_downward_test_data): Likewise.
8423         (cos_upward_test_data): Likewise.
8424         (cosh_test_data): Likewise.
8425         (cosh_tonearest_test_data): Likewise.
8426         (cosh_towardzero_test_data): Likewise.
8427         (cosh_downward_test_data): Likewise.
8428         (cosh_upward_test_data): Likewise.
8429         (cpow_test_data): Likewise.
8430         (cproj_test_data): Likewise.
8431         (creal_test_data): Likewise.
8432         (csin_test_data): Likewise.
8433         (csinh_test_data): Likewise.
8434         (csqrt_test_data): Likewise.
8435         (ctan_test_data): Likewise.
8436         (ctan_tonearest_test_data): Likewise.
8437         (ctan_towardzero_test_data): Likewise.
8438         (ctan_downward_test_data): Likewise.
8439         (ctan_upward_test_data): Likewise.
8440         (ctanh_test_data): Likewise.
8441         (ctanh_tonearest_test_data): Likewise.
8442         (ctanh_towardzero_test_data): Likewise.
8443         (ctanh_downward_test_data): Likewise.
8444         (ctanh_upward_test_data): Likewise.
8445         (erf_test_data): Likewise.
8446         (erfc_test_data): Likewise.
8447         (exp_test_data): Likewise.
8448         (exp_tonearest_test_data): Likewise.
8449         (exp_towardzero_test_data): Likewise.
8450         (exp_downward_test_data): Likewise.
8451         (exp_upward_test_data): Likewise.
8452         (exp10_test_data): Likewise.
8453         (exp2_test_data): Likewise.
8454         (expm1_test_data): Likewise.
8455         (fabs_test_data): Likewise.
8456         (fdim_test_data): Likewise.
8457         (finite_test_data): Likewise.
8458         (floor_test_data): Likewise.
8459         (fma_test_data): Likewise.
8460         (fma_towardzero_test_data): Likewise.
8461         (fma_downward_test_data): Likewise.
8462         (fma_upward_test_data): Likewise.
8463         (fmax_test_data): Likewise.
8464         (fmin_test_data): Likewise.
8465         (fmod_test_data): Likewise.
8466         (fpclassify_test_data): Likewise.
8467         (frexp_test_data): Likewise.
8468         (gamma_test_data): Likewise.
8469         (hypot_test_data): Likewise.
8470         (ilogb_test_data): Likewise.
8471         (isfinite_test_data): Likewise.
8472         (isgreater_test_data): Likewise.
8473         (isgreaterequal_test_data): Likewise.
8474         (isinf_test_data): Likewise.
8475         (isless_test_data): Likewise.
8476         (islessequal_test_data): Likewise.
8477         (islessgreater_test_data): Likewise.
8478         (isnan_test_data): Likewise.
8479         (isnormal_test_data): Likewise.
8480         (issignaling_test_data): Likewise.
8481         (isunordered_test_data): Likewise.
8482         (j0_test_data): Likewise.
8483         (j1_test_data): Likewise.
8484         (jn_test_data): Likewise.
8485         (ldexp_test_data): Likewise.
8486         (lgamma_test_data): Likewise.
8487         (lrint_test_data): Likewise.
8488         (lrint_tonearest_test_data): Likewise.
8489         (lrint_towardzero_test_data): Likewise.
8490         (lrint_downward_test_data): Likewise.
8491         (lrint_upward_test_data): Likewise.
8492         (llrint_test_data): Likewise.
8493         (llrint_tonearest_test_data): Likewise.
8494         (llrint_towardzero_test_data): Likewise.
8495         (llrint_downward_test_data): Likewise.
8496         (llrint_upward_test_data): Likewise.
8497         (log_test_data): Likewise.
8498         (log10_test_data): Likewise.
8499         (log1p_test_data): Likewise.
8500         (log2_test_data): Likewise.
8501         (logb_test_data): Likewise.
8502         (logb_downward_test_data): Likewise.
8503         (lround_test_data): Likewise.
8504         (llround_test_data): Likewise.
8505         (modf_test_data): Likewise.
8506         (nearbyint_test_data): Likewise.
8507         (nextafter_test_data): Likewise.
8508         (nexttoward_test_data): Likewise.
8509         (pow_test_data): Likewise.
8510         (pow_tonearest_test_data): Likewise.
8511         (pow_towardzero_test_data): Likewise.
8512         (pow_downward_test_data): Likewise.
8513         (pow_upward_test_data): Likewise.
8514         (remainder_test_data): Likewise.
8515         (remainder_tonearest_test_data): Likewise.
8516         (remainder_towardzero_test_data): Likewise.
8517         (remainder_downward_test_data): Likewise.
8518         (remainder_upward_test_data): Likewise.
8519         (remquo_test_data): Likewise.
8520         (rint_test_data): Likewise.
8521         (rint_tonearest_test_data): Likewise.
8522         (rint_towardzero_test_data): Likewise.
8523         (rint_downward_test_data): Likewise.
8524         (rint_upward_test_data): Likewise.
8525         (round_test_data): Likewise.
8526         (scalb_test_data): Likewise.
8527         (scalbn_test_data): Likewise.
8528         (scalbln_test_data): Likewise.
8529         (signbit_test_data): Likewise.
8530         (sin_test_data): Likewise.
8531         (sin_tonearest_test_data): Likewise.
8532         (sin_towardzero_test_data): Likewise.
8533         (sin_downward_test_data): Likewise.
8534         (sin_upward_test_data): Likewise.
8535         (sincos_test_data): Likewise.
8536         (sinh_test_data): Likewise.
8537         (sinh_tonearest_test_data): Likewise.
8538         (sinh_towardzero_test_data): Likewise.
8539         (sinh_downward_test_data): Likewise.
8540         (sinh_upward_test_data): Likewise.
8541         (sqrt_test_data): Likewise.
8542         (tan_test_data): Likewise.
8543         (tan_tonearest_test_data): Likewise.
8544         (tan_towardzero_test_data): Likewise.
8545         (tan_downward_test_data): Likewise.
8546         (tan_upward_test_data): Likewise.
8547         (tanh_test_data): Likewise.
8548         (tgamma_test_data): Likewise.
8549         (trunc_test_data): Likewise.
8550         (y0_test_data): Likewise.
8551         (y1_test_data): Likewise.
8552         (yn_test_data): Likewise.
8553         (significand_test_data): Likewise.
8554
8555         * math/gen-libm-test.pl (@functions): Remove variable.
8556         (generate_testfile): Don't handle START and END lines.
8557         * math/libm-test.inc (START): New macro.
8558         (END): Likewise.
8559         (END_COMPLEX): Likewise.
8560         (acos_test): Use END macro without arguments.
8561         (acos_test_tonearest): Likewise.
8562         (acos_test_towardzero): Likewise.
8563         (acos_test_downward): Likewise.
8564         (acos_test_upward): Likewise.
8565         (acosh_test): Likewise.
8566         (asin_test): Likewise.
8567         (asin_test_tonearest): Likewise.
8568         (asin_test_towardzero): Likewise.
8569         (asin_test_downward): Likewise.
8570         (asin_test_upward): Likewise.
8571         (asinh_test): Likewise.
8572         (atan_test): Likewise.
8573         (atanh_test): Likewise.
8574         (atan2_test): Likewise.
8575         (cabs_test): Likewise.
8576         (cacos_test): Use END_COMPLEX macro without arguments.
8577         (cacosh_test): Likewise.
8578         (carg_test): Use END macro without arguments.
8579         (casin_test): Use END_COMPLEX macro without arguments.
8580         (casinh_test): Likewise.
8581         (catan_test): Likewise.
8582         (catanh_test): Likewise.
8583         (cbrt_test): Use END macro without arguments.
8584         (ccos_test): Use END_COMPLEX macro without arguments.
8585         (ccosh_test): Likewise.
8586         (ceil_test): Use END macro without arguments.
8587         (cexp_test): Use END_COMPLEX macro without arguments.
8588         (cimag_test): Use END macro without arguments.
8589         (clog_test): Use END_COMPLEX macro without arguments.
8590         (clog10_test): Likewise.
8591         (conj_test): Likewise.
8592         (copysign_test): Use END macro without arguments.
8593         (cos_test): Likewise.
8594         (cos_test_tonearest): Likewise.
8595         (cos_test_towardzero): Likewise.
8596         (cos_test_downward): Likewise.
8597         (cos_test_upward): Likewise.
8598         (cosh_test): Likewise.
8599         (cosh_test_tonearest): Likewise.
8600         (cosh_test_towardzero): Likewise.
8601         (cosh_test_downward): Likewise.
8602         (cosh_test_upward): Likewise.
8603         (cpow_test): Use END_COMPLEX macro without arguments.
8604         (cproj_test): Likewise.
8605         (creal_test): Use END macro without arguments.
8606         (csin_test): Use END_COMPLEX macro without arguments.
8607         (csinh_test): Likewise.
8608         (csqrt_test): Likewise.
8609         (ctan_test): Likewise.
8610         (ctan_test_tonearest): Likewise.
8611         (ctan_test_towardzero): Likewise.
8612         (ctan_test_downward): Likewise.
8613         (ctan_test_upward): Likewise.
8614         (ctanh_test): Likewise.
8615         (ctanh_test_tonearest): Likewise.
8616         (ctanh_test_towardzero): Likewise.
8617         (ctanh_test_downward): Likewise.
8618         (ctanh_test_upward): Likewise.
8619         (erf_test): Use END macro without arguments.
8620         (erfc_test): Likewise.
8621         (exp_test): Likewise.
8622         (exp_test_tonearest): Likewise.
8623         (exp_test_towardzero): Likewise.
8624         (exp_test_downward): Likewise.
8625         (exp_test_upward): Likewise.
8626         (exp10_test): Likewise.
8627         (exp2_test): Likewise.
8628         (expm1_test): Likewise.
8629         (fabs_test): Likewise.
8630         (fdim_test): Likewise.
8631         (finite_test): Likewise.
8632         (floor_test): Likewise.
8633         (fma_test): Likewise.
8634         (fma_test_towardzero): Likewise.
8635         (fma_test_downward): Likewise.
8636         (fma_test_upward): Likewise.
8637         (fmax_test): Likewise.
8638         (fmin_test): Likewise.
8639         (fmod_test): Likewise.
8640         (fpclassify_test): Likewise.
8641         (frexp_test): Likewise.
8642         (gamma_test): Likewise.
8643         (hypot_test): Likewise.
8644         (ilogb_test): Likewise.
8645         (isfinite_test): Likewise.
8646         (isgreater_test): Likewise.
8647         (isgreaterequal_test): Likewise.
8648         (isinf_test): Likewise.
8649         (isless_test): Likewise.
8650         (islessequal_test): Likewise.
8651         (islessgreater_test): Likewise.
8652         (isnan_test): Likewise.
8653         (isnormal_test): Likewise.
8654         (issignaling_test): Likewise.
8655         (isunordered_test): Likewise.
8656         (j0_test): Likewise.
8657         (j1_test): Likewise.
8658         (jn_test): Likewise.
8659         (ldexp_test): Likewise.
8660         (lgamma_test): Likewise.
8661         (lrint_test): Likewise.
8662         (lrint_test_tonearest): Likewise.
8663         (lrint_test_towardzero): Likewise.
8664         (lrint_test_downward): Likewise.
8665         (lrint_test_upward): Likewise.
8666         (llrint_test): Likewise.
8667         (llrint_test_tonearest): Likewise.
8668         (llrint_test_towardzero): Likewise.
8669         (llrint_test_downward): Likewise.
8670         (llrint_test_upward): Likewise.
8671         (log_test): Likewise.
8672         (log10_test): Likewise.
8673         (log1p_test): Likewise.
8674         (log2_test): Likewise.
8675         (logb_test): Likewise.
8676         (logb_test_downward): Likewise.
8677         (lround_test): Likewise.
8678         (llround_test): Likewise.
8679         (modf_test): Likewise.
8680         (nearbyint_test): Likewise.
8681         (nextafter_test): Likewise.
8682         (nexttoward_test): Likewise.
8683         (pow_test): Likewise.
8684         (pow_test_tonearest): Likewise.
8685         (pow_test_towardzero): Likewise.
8686         (pow_test_downward): Likewise.
8687         (pow_test_upward): Likewise.
8688         (remainder_test): Likewise.
8689         (remainder_test_tonearest): Likewise.
8690         (remainder_test_towardzero): Likewise.
8691         (remainder_test_downward): Likewise.
8692         (remainder_test_upward): Likewise.
8693         (remquo_test): Likewise.
8694         (rint_test): Likewise.
8695         (rint_test_tonearest): Likewise.
8696         (rint_test_towardzero): Likewise.
8697         (rint_test_downward): Likewise.
8698         (rint_test_upward): Likewise.
8699         (round_test): Likewise.
8700         (scalb_test): Likewise.
8701         (scalbn_test): Likewise.
8702         (scalbln_test): Likewise.
8703         (signbit_test): Likewise.
8704         (sin_test): Likewise.
8705         (sin_test_tonearest): Likewise.
8706         (sin_test_towardzero): Likewise.
8707         (sin_test_downward): Likewise.
8708         (sin_test_upward): Likewise.
8709         (sincos_test): Likewise.
8710         (sinh_test): Likewise.
8711         (sinh_test_tonearest): Likewise.
8712         (sinh_test_towardzero): Likewise.
8713         (sinh_test_downward): Likewise.
8714         (sinh_test_upward): Likewise.
8715         (sqrt_test): Likewise.
8716         (tan_test): Likewise.
8717         (tan_test_tonearest): Likewise.
8718         (tan_test_towardzero): Likewise.
8719         (tan_test_downward): Likewise.
8720         (tan_test_upward): Likewise.
8721         (tanh_test): Likewise.
8722         (tgamma_test): Likewise.
8723         (trunc_test): Likewise.
8724         (y0_test): Likewise.
8725         (y1_test): Likewise.
8726         (yn_test): Likewise.
8727         (significand_test): Likewise.
8728
8729 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
8730
8731         [BZ #15381]
8732         * libio/genops.c (_IO_no_init): Initialize wide struct info.
8733
8734 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8735
8736         [BZ #14894]
8737         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
8738         __ppc_mdoio and __ppc_mdoom.
8739         * manual/platform.texi: Document new functions __ppc_yield,
8740         __ppc_mdoio and __ppc_mdoom.
8741
8742 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
8743
8744         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
8745         (main): Mention "tls" pseudo-hwcap is legacy.
8746         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
8747
8748 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8749
8750         * math/gen-libm-test.pl (parse_args): Output only string of
8751         arguments as text for test name, not full call or descriptions of
8752         tests for extra outputs.
8753         (generate_testfile): Do not pass function name to parse_args.
8754         Generate this_func variable from START.
8755         * math/libm-test.inc (struct test_f_f_data): Rename test_name
8756         field to arg_str.
8757         (struct test_ff_f_data): Likewise.
8758         (test_ff_f_data_nexttoward): Likewise.
8759         (struct test_fi_f_data): Likewise.
8760         (struct test_fl_f_data): Likewise.
8761         (struct test_if_f_data): Likewise.
8762         (struct test_fff_f_data): Likewise.
8763         (struct test_c_f_data): Likewise.
8764         (struct test_f_f1_data): Likewise.  Remove field extra_name.
8765         (struct test_fF_f1_data): Likewise.
8766         (struct test_ffI_f1_data): Likewise.
8767         (struct test_c_c_data): Rename test_name field to arg_str.
8768         (struct test_cc_c_data): Likewise.
8769         (struct test_f_i_data): Likewise.
8770         (struct test_ff_i_data): Likewise.
8771         (struct test_f_l_data): Likewise.
8772         (struct test_f_L_data): Likewise.
8773         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
8774         and extra2_name.
8775         (COMMON_TEST_SETUP): New macro.
8776         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
8777         (COMMON_TEST_CLEANUP): Likewise.
8778         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
8779         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
8780         macros.
8781         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
8782         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
8783         macros.
8784         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
8785         (RUN_TEST_fff_f): Take argument string.  Call new setup and
8786         cleanup macros.
8787         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
8788         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
8789         macros.
8790         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
8791         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
8792         macros.
8793         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8794         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
8795         cleanup macros.
8796         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8797         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
8798         cleanup macros.
8799         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8800         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
8801         cleanup macros.
8802         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8803         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
8804         macros.
8805         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
8806         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
8807         macros.
8808         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
8809         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
8810         macros.
8811         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
8812         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
8813         cleanup macros.
8814         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
8815         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
8816         cleanup macros.
8817         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
8818         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
8819         macros.
8820         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
8821         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
8822         cleanup macros.
8823         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
8824         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
8825         macros.
8826         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
8827         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
8828         macros.
8829         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
8830         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
8831         cleanup macros.
8832         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
8833
8834 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
8835
8836         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
8837         to _sifields.sigfault.
8838         (si_addr_lsb): Define new macro.
8839         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8840         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8841         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
8842
8843 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
8844
8845         [BZ #15441]
8846         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
8847         returns -1.
8848         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
8849         null return -1.
8850         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
8851         loading the domain.
8852
8853 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8854
8855         * math/gen-libm-test.pl (parse_args): Do not include expected
8856         result in test name.
8857         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
8858         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8859         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8860         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8861         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8863
8864 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8865
8866         * benchtests/Makefile: Sort function entries.
8867
8868         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
8869         tanh, asinh, acosh, atanh.
8870         * benchtests/acos-inputs: New file.
8871         * benchtests/acosh-inputs: New file.
8872         * benchtests/asin-inputs: New file.
8873         * benchtests/asinh-inputs: New file.
8874         * benchtests/atanh-inputs: New file.
8875         * benchtests/cosh-inputs: New file.
8876         * benchtests/log-inputs: New file.
8877         * benchtests/sinh-inputs: New file.
8878         * benchtests/tanh-inputs: New file.
8879
8880 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
8881
8882         [BZ #15339]
8883         * posix/tst-getaddrinfo4.c: New test.
8884         * posix/Makefile (tests): Add it.
8885
8886 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8887
8888         [BZ #15339]
8889         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
8890         when no services were used.
8891         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
8892         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
8893
8894 2013-05-21  Andreas Schwab  <schwab@suse.de>
8895
8896         [BZ #15014]
8897         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
8898         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
8899         successful.
8900         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
8901         redundant variable declarations and reallocation of buffer when
8902         parsing as IPv6 address.  Always set NSS status when called from
8903         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
8904         buffer too small.  Correct computation of needed size.
8905         * nss/Makefile (tests): Add test-digits-dots.
8906         * nss/test-digits-dots.c: New test.
8907
8908 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8909
8910         * benchtests/Makefile: Remove instructions for adding
8911         benchmark tests.
8912         * benchtests/README: New file to explain how to execute and
8913         enhance the benchmark tests.
8914
8915 2013-05-21  Andreas Schwab  <schwab@suse.de>
8916
8917         [BZ #15493]
8918         * setjmp/Makefile (tests): Add tst-sigsetjmp.
8919         * setjmp/tst-sigsetjmp.c: New test.
8920
8921 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8922
8923         * sysdeps/x86_64/memset.S (memset): New implementation.
8924         (__bzero): Likewise.
8925         (__memset_tail): New function.
8926
8927 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8928
8929         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
8930         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
8931         __memcpy_sse2_unaligned ifunc selection.
8932         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
8933         Add memcpy-sse2-unaligned.S.
8934         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8935         Add: __memcpy_sse2_unaligned.
8936
8937 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
8938
8939         [BZ #15490]
8940         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8941         math_force_eval before restoring floating-point envrionment.
8942         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
8943         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8944         Likewise.
8945         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
8946         <math_private.h>.
8947         (__nearbyintl): Use math_force_eval before restoring
8948         floating-point environment.
8949         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
8950
8951         * math/gen-libm-test.pl (special_functions): Remove.
8952         (parse_args): Don't handle TEST_extra.  Handle functions with no
8953         return value.
8954         * math/libm-test.inc (struct test_sincos_data): Replace with
8955         struct test_fFF_11_data.
8956         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
8957         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
8958         (sincos_test_data): Change element type to struct
8959         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
8960         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
8961         RUN_TEST_LOOP_sincos.
8962         * math/README.libm-test: Don't mention special handling of
8963         individual functions.
8964         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
8965         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8966         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8967         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8968         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8970
8971         * math/gen-libm-test.pl (get_variable): Remove function.
8972         (parse_args): Don't show pointer parameters to call in test
8973         names.  Use "extra output N" in test names for extra outputs
8974         rather than naming variables.
8975
8976 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
8977
8978         [BZ #15488]
8979         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
8980         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
8981         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
8982         double tests.
8983         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
8984         disable.
8985         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
8986         check_long_double.
8987
8988         * math/gen-libm-test.pl (@tests): Remove variable.
8989         ($count): Likewise.
8990         (new_test): Remove function.
8991         (show_exceptions): New function.
8992         (special_functions): Use show_exceptions instead of new_test.
8993         (parse_args): Likewise.
8994         (generate_testfile): Pass only function name in generated call to
8995         print_max_error or print_complex_max_error.
8996         (get_ulps): Do not handle complex tests specially.
8997         (output_test): Rename to ...
8998         (get_all_ulps_for_test): ... this.  Return a string rather than
8999         printing to a file.  Require ulps to be present.
9000         (output_ulps): Generate arrays rather than #defines.
9001         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
9002         (struct ulp_data): New type.
9003         (BUILD_COMPLEX_ULP): Remove macro.
9004         (compare_ulp_data): New function.
9005         (find_ulps): Likewise.
9006         (find_test_ulps): Likewise.
9007         (find_function_ulps): Likewise.
9008         (find_complex_function_ulps): Likewise.
9009         (print_max_error): Determine allowed ulps using
9010         find_function_ulps.
9011         (print_complex_max_error): Determine allowed ulps using
9012         find_complex_function_ulps.
9013         (check_float_internal): Determine max ulps using find_test_ulps.
9014         (check_float): Do not take max_ulp parameter.  Update call to
9015         check_float_internal.
9016         (check_complex): Likewise.
9017         (check_int): Do not take max_ulp parameter.
9018         (check_long): Likewise.
9019         (check_bool): Likewise.
9020         (check_longlong): Likewise.
9021         (struct test_f_f_data): Remove max_ulp field.
9022         (struct test_ff_f_data): Likewise.
9023         (struct test_ff_f_data_nexttoward): Likewise.
9024         (struct test_fi_f_data): Likewise.
9025         (struct test_fl_f_data): Likewise.
9026         (struct test_if_f_data): Likewise.
9027         (struct test_fff_f_data): Likewise.
9028         (struct test_c_f_data): Likewise.
9029         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
9030         (struct test_fF_f1_data): Likewise.
9031         (struct test_ffI_f1_data): Likewise.
9032         (struct test_c_c_data): Remove max_ulp field.
9033         (struct test_cc_c_data): Likewise.
9034         (struct test_f_i_data): Likewise.
9035         (struct test_ff_i_data): Likewise.
9036         (struct test_f_l_data): Likewise.
9037         (struct test_f_L_data): Likewise.
9038         (struct test_sincos_data): Likewise.
9039         (RUN_TEST_f_f): Do not handle ulps.
9040         (RUN_TEST_LOOP_f_f): Likewise.
9041         (RUN_TEST_2_f): Likewise.
9042         (RUN_TEST_LOOP_2_f): Likewise.
9043         (RUN_TEST_fff_f): Likewise.
9044         (RUN_TEST_LOOP_fff_f): Likewise.
9045         (RUN_TEST_c_f): Likewise.
9046         (RUN_TEST_LOOP_c_f): Likewise.
9047         (RUN_TEST_f_f1): Likewise.
9048         (RUN_TEST_LOOP_f_f1): Likewise.
9049         (RUN_TEST_fF_f1): Likewise.
9050         (RUN_TEST_LOOP_fF_f1): Likewise.
9051         (RUN_TEST_fI_f1): Likewise.
9052         (RUN_TEST_LOOP_fI_f1): Likewise.
9053         (RUN_TEST_ffI_f1): Likewise.
9054         (RUN_TEST_LOOP_ffI_f1): Likewise.
9055         (RUN_TEST_c_c): Likewise.
9056         (RUN_TEST_LOOP_c_c): Likewise.
9057         (RUN_TEST_cc_c): Likewise.
9058         (RUN_TEST_LOOP_cc_c): Likewise.
9059         (RUN_TEST_f_i): Likewise.
9060         (RUN_TEST_LOOP_f_i): Likewise.
9061         (RUN_TEST_f_i_tg): Likewise.
9062         (RUN_TEST_LOOP_f_i_tg): Likewise.
9063         (RUN_TEST_ff_i_tg): Likewise.
9064         (RUN_TEST_LOOP_ff_i_tg): Likewise.
9065         (RUN_TEST_f_b): Likewise.
9066         (RUN_TEST_LOOP_f_b): Likewise.
9067         (RUN_TEST_f_b_tg): Likewise.
9068         (RUN_TEST_LOOP_f_b_tg): Likewise.
9069         (RUN_TEST_f_l): Likewise.
9070         (RUN_TEST_LOOP_f_l): Likewise.
9071         (RUN_TEST_f_L): Likewise.
9072         (RUN_TEST_LOOP_f_L): Likewise.
9073         (RUN_TEST_sincos): Likewise.
9074         (RUN_TEST_LOOP_sincos): Likewise.
9075
9076 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
9077
9078         [BZ #15480]
9079         [BZ #15485]
9080         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
9081         main case of finite arguments, set rounding mode to FE_TONEAREST
9082         and discard exceptions.
9083         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
9084         exceptions.
9085         (remainder_tonearest_test_data): New variable.
9086         (remainder_test_tonearest): New function.
9087         (remainder_towardzero_test_data): New variable.
9088         (remainder_test_towardzero): New function.
9089         (remainder_downward_test_data): New variable.
9090         (remainder_test_downward): New function.
9091         (remainder_upward_test_data): New variable.
9092         (remainder_test_upward): New function.
9093         (main): Call the new test functions.
9094
9095         * math/libm-test.inc (struct test_f_f1_data): Remove field
9096         extra_init.
9097         (struct test_fF_f1_data): Likewise.
9098         (struct test_ffI_f1_data): Likewise.
9099         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
9100         based on value of EXTRA_EXPECTED.
9101         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
9102         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
9103         EXTRA_VAR based on value of EXTRA_EXPECTED.
9104         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
9105         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
9106         EXTRA_VAR based on value of EXTRA_EXPECTED.
9107         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
9108         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
9109         EXTRA_VAR based on value of EXTRA_EXPECTED.
9110         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
9111         * math/gen-libm-test.pl (parse_args): Don't output initializers
9112         for extra output values.
9113
9114         * math/libm-test.inc (check_int): Expect result to be exactly
9115         equal to expected value and do not handle ulps.
9116         (check_long): Likewise.
9117         (check_longlong): Likewise.
9118
9119         * math/libm-test.inc (ceil_test_data): Test for "inexact"
9120         exceptions.
9121         (cimag_test_data): Likewise.
9122         (conj_test_data): Likewise.
9123         (copysign_test_data): Likewise.
9124         (cproj_test_data): Likewise.
9125         (creal_test_data): Likewise.
9126         (fabs_test_data): Likewise.
9127         (fdim_test_data): Likewise.
9128         (finite_test_data): Likewise.
9129         (floor_test_data): Likewise.
9130         (fmax_test_data): Likewise.
9131         (fmin_test_data): Likewise.
9132         (fmod_test_data): Likewise.
9133         (fpclassify_test_data): Likewise.
9134         (frexp_test_data): Likewise.
9135         (ilogb_test_data): Likewise.
9136         (isfinite_test_data): Likewise.
9137         (isgreater_test_data): Likewise.
9138         (isgreaterequal_test_data): Likewise.
9139         (isinf_test_data): Likewise.
9140         (isless_test_data): Likewise.
9141         (islessequal_test_data): Likewise.
9142         (islessgreater_test_data): Likewise.
9143         (isnan_test_data): Likewise.
9144         (isnormal_test_data): Likewise.
9145         (issignaling_test_data): Likewise.
9146         (isunordered_test_data): Likewise.
9147         (ldexp_test_data): Likewise.
9148         (lrint_test_data): Likewise.
9149         (lrint_test_data) [TEST_FLOAT]: Disable one test.
9150         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
9151         (lrint_tonearest_test_data): Test for "inexact" exceptions.
9152         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9153         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
9154         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9155         test input.
9156         (lrint_towardzero_test_data): Test for "inexact" exceptions.
9157         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9158         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
9159         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
9160         that test input.
9161         (lrint_downward_test_data): Test for "inexact" exceptions.
9162         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9163         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
9164         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9165         test input.
9166         (lrint_upward_test_data): Test for "inexact" exceptions.
9167         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
9168         test input.
9169         (llrint_test_data): Test for "inexact" exceptions.
9170         (llrint_test_data) [TEST_FLOAT]: Disable one test.
9171         (llrint_tonearest_test_data): Test for "inexact" exceptions.
9172         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9173         (llrint_towardzero_test_data): Test for "inexact" exceptions.
9174         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9175         (llrint_downward_test_data): Test for "inexact" exceptions.
9176         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9177         (llrint_upward_test_data): Test for "inexact" exceptions.
9178         (logb_test_data): Likewise.
9179         (logb_downward_test_data): Likewise.
9180         (nextafter_test_data): Likewise.
9181         (nexttoward_test_data): Likewise.
9182         (remainder_test_data): Likewise.
9183         (remquo_test_data): Likewise.
9184         (scalbn_test_data): Likewise.
9185         (scalbln_test_data): Likewise.
9186         (signbit_test_data): Likewise.
9187         (sqrt_test_data): Likewise.
9188         (significand_test_data): Likewise.
9189
9190 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9191
9192         [BZ #15424]
9193         * benchtests/bench-modf.c (struct args): Mark arg0 as
9194         volatile.
9195         * scripts/bench.pl: Mark members of struct args as volatile.
9196
9197 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9198
9199         [BZ # 15497]
9200         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
9201         negative infinity on POWER6 or lower.
9202         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
9203
9204 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
9205
9206         [BZ #15442]
9207         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
9208         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
9209         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
9210         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
9211         (_FP_SETQNAN): New macro.
9212         (_FP_SETQNAN_SEMIRAW): Likewise.
9213         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
9214         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
9215         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
9216         (FP_EXTEND): Use _FP_FRAC_SNANP.
9217         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
9218         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
9219         into account.
9220         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9221         New macro.
9222         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9223         Likewise.
9224
9225 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9226
9227         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
9228         with DIVIDE_BY_ZERO_EXCEPTION.
9229         (gamma_test_data): Likewise.
9230         (lgamma_test_data): Likewise.
9231         (log_test_data): Likewise.
9232         (log10_test_data): Likewise.
9233         (log2_test_data): Likewise.
9234         (tgamma_test_data): Likewise.
9235
9236         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
9237         (acos_test_tonearest): Likewise.
9238         (acos_test_towardzero): Likewise.
9239         (acos_test_downward): Likewise.
9240         (acos_test_upward): Likewise.
9241         (acosh_test): Likewise.
9242         (asin_test): Likewise.
9243         (asin_test_tonearest): Likewise.
9244         (asin_test_towardzero): Likewise.
9245         (asin_test_downward): Likewise.
9246         (asin_test_upward): Likewise.
9247         (asinh_test): Likewise.
9248         (atan_test): Likewise.
9249         (atanh_test): Likewise.
9250         (atan2_test): Likewise.
9251         (cabs_test): Likewise.
9252         (cacos_test): Likewise.
9253         (cacosh_test): Likewise.
9254         (casin_test): Likewise.
9255         (casinh_test): Likewise.
9256         (catan_test): Likewise.
9257         (catanh_test): Likewise.
9258         (cbrt_test): Likewise.
9259         (ccos_test): Likewise.
9260         (ccosh_test): Likewise.
9261         (cexp_test): Likewise.
9262         (clog_test): Likewise.
9263         (clog10_test): Likewise.
9264         (cos_test): Likewise.
9265         (cos_test_tonearest): Likewise.
9266         (cos_test_towardzero): Likewise.
9267         (cos_test_downward): Likewise.
9268         (cos_test_upward): Likewise.
9269         (cosh_test): Likewise.
9270         (cosh_test_tonearest): Likewise.
9271         (cosh_test_towardzero): Likewise.
9272         (cosh_test_downward): Likewise.
9273         (cosh_test_upward): Likewise.
9274         (cpow_test): Likewise.
9275         (csin_test): Likewise.
9276         (csinh_test): Likewise.
9277         (csqrt_test): Likewise.
9278         (ctan_test): Likewise.
9279         (ctan_test_tonearest): Likewise.
9280         (ctan_test_towardzero): Likewise.
9281         (ctan_test_downward): Likewise.
9282         (ctan_test_upward): Likewise.
9283         (ctanh_test): Likewise.
9284         (ctanh_test_tonearest): Likewise.
9285         (ctanh_test_towardzero): Likewise.
9286         (ctanh_test_downward): Likewise.
9287         (ctanh_test_upward): Likewise.
9288         (erf_test): Likewise.
9289         (erfc_test): Likewise.
9290         (exp_test): Likewise.
9291         (exp_test_tonearest): Likewise.
9292         (exp_test_towardzero): Likewise.
9293         (exp_test_downward): Likewise.
9294         (exp_test_upward): Likewise.
9295         (exp10_test): Likewise.
9296         (exp2_test): Likewise.
9297         (expm1_test): Likewise.
9298         (fmod_test): Likewise.
9299         (gamma_test): Likewise.
9300         (hypot_test): Likewise.
9301         (j0_test): Likewise.
9302         (j1_test): Likewise.
9303         (jn_test): Likewise.
9304         (lgamma_test): Likewise.
9305         (log_test): Likewise.
9306         (log10_test): Likewise.
9307         (log1p_test): Likewise.
9308         (log2_test): Likewise.
9309         (logb_test_downward): Likewise.
9310         (pow_test): Likewise.
9311         (pow_test_tonearest): Likewise.
9312         (pow_test_towardzero): Likewise.
9313         (pow_test_downward): Likewise.
9314         (pow_test_upward): Likewise.
9315         (remainder_test): Likewise.
9316         (remquo_test): Likewise.
9317         (sin_test): Likewise.
9318         (sin_test_tonearest): Likewise.
9319         (sin_test_towardzero): Likewise.
9320         (sin_test_downward): Likewise.
9321         (sin_test_upward): Likewise.
9322         (sincos_test): Likewise.
9323         (sinh_test): Likewise.
9324         (sinh_test_tonearest): Likewise.
9325         (sinh_test_towardzero): Likewise.
9326         (sinh_test_downward): Likewise.
9327         (sinh_test_upward): Likewise.
9328         (sqrt_test): Likewise.
9329         (tan_test): Likewise.
9330         (tan_test_tonearest): Likewise.
9331         (tan_test_towardzero): Likewise.
9332         (tan_test_downward): Likewise.
9333         (tan_test_upward): Likewise.
9334         (tanh_test): Likewise.
9335         (tgamma_test): Likewise.
9336         (y0_test): Likewise.
9337         (y1_test): Likewise.
9338         (yn_test): Likewise.
9339
9340         * math/gen-libm-test.pl (adjust_arg): Remove function.
9341         (special_function): Remove argument $in_func.  Only handle
9342         generating output for tables of tests, not inside functions.
9343         (parse_args): Likewise.
9344         (generate_testfile): Remove variable $in_func.  Update call to
9345         parse_args.
9346         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
9347         (MINUS_ZERO_INIT): Rename macro to minus_zero.
9348         (PLUS_INFTY_INIT): Rename macro to plus_infty.
9349         (MINUS_INFTY_INIT): Rename macro to minus_infty.
9350         (QNAN_VALUE_INIT): Rename macro to qnan_value.
9351         (MAX_VALUE_INIT): Rename macro to max_value.
9352         (MIN_VALUE_INIT): Rename macro to min_value.
9353         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
9354         (plus_zero): Remove variable.
9355         (minus_zero): Likewise.
9356         (plus_infty): Likewise.
9357         (minus_infty): Likewise.
9358         (qnan_value): Likewise.
9359         (max_value): Likewise.
9360         (min_value): Likewise.
9361         (min_subnorm_value): Likewise.
9362
9363 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9364
9365         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
9366         uint64_t or uint32_t usage.
9367         * crypt/sha256-block.c: Likewise.
9368         * crypt/sha256-crypt.c: Likewise.
9369         * crypt/sha256.c: Likewise.
9370         * crypt/sha512-block.c: Likewise.
9371         * crypt/sha512-crypt.c: Likewise.
9372         * crypt/sha512.c: Likewise.
9373         * debug/backtrace-tst.c: Likewise.
9374         * debug/pcprofiledump.c: Likewise.
9375         * elf/cache.c: Likewise.
9376         * elf/dl-cache.c: Likewise.
9377         * elf/dl-misc.c: Likewise.
9378         * elf/dl-profile.c: Likewise.
9379         * elf/dl-support.c: Likewise.
9380         * elf/ldconfig.c: Likewise.
9381         * elf/sprof.c: Likewise.
9382         * iconv/dummy-repertoire.c: Likewise.
9383         * iconv/iconv_charmap.c: Likewise.
9384         * iconv/skeleton.c: Likewise.
9385         * iconvdata/8bit-generic.c: Likewise.
9386         * iconvdata/cp737.h: Likewise.
9387         * iconvdata/cp775.h: Likewise.
9388         * iconvdata/ibm1008.h: Likewise.
9389         * iconvdata/ibm1025.h: Likewise.
9390         * iconvdata/ibm1046.h: Likewise.
9391         * iconvdata/ibm1097.h: Likewise.
9392         * iconvdata/ibm1112.h: Likewise.
9393         * iconvdata/ibm1122.h: Likewise.
9394         * iconvdata/ibm1123.h: Likewise.
9395         * iconvdata/ibm1124.h: Likewise.
9396         * iconvdata/ibm1129.h: Likewise.
9397         * iconvdata/ibm1130.h: Likewise.
9398         * iconvdata/ibm1132.h: Likewise.
9399         * iconvdata/ibm1133.h: Likewise.
9400         * iconvdata/ibm1137.h: Likewise.
9401         * iconvdata/ibm1140.h: Likewise.
9402         * iconvdata/ibm1141.h: Likewise.
9403         * iconvdata/ibm1142.h: Likewise.
9404         * iconvdata/ibm1143.h: Likewise.
9405         * iconvdata/ibm1144.h: Likewise.
9406         * iconvdata/ibm1145.h: Likewise.
9407         * iconvdata/ibm1146.h: Likewise.
9408         * iconvdata/ibm1147.h: Likewise.
9409         * iconvdata/ibm1148.h: Likewise.
9410         * iconvdata/ibm1149.h: Likewise.
9411         * iconvdata/ibm1153.h: Likewise.
9412         * iconvdata/ibm1154.h: Likewise.
9413         * iconvdata/ibm1155.h: Likewise.
9414         * iconvdata/ibm1156.h: Likewise.
9415         * iconvdata/ibm1157.h: Likewise.
9416         * iconvdata/ibm1158.h: Likewise.
9417         * iconvdata/ibm1160.h: Likewise.
9418         * iconvdata/ibm1161.h: Likewise.
9419         * iconvdata/ibm1162.h: Likewise.
9420         * iconvdata/ibm1163.h: Likewise.
9421         * iconvdata/ibm1164.h: Likewise.
9422         * iconvdata/ibm1166.h: Likewise.
9423         * iconvdata/ibm1167.h: Likewise.
9424         * iconvdata/ibm12712.h: Likewise.
9425         * iconvdata/ibm1390.h: Likewise.
9426         * iconvdata/ibm1399.h: Likewise.
9427         * iconvdata/ibm16804.h: Likewise.
9428         * iconvdata/ibm4517.h: Likewise.
9429         * iconvdata/ibm4899.h: Likewise.
9430         * iconvdata/ibm4909.h: Likewise.
9431         * iconvdata/ibm4971.h: Likewise.
9432         * iconvdata/ibm5347.h: Likewise.
9433         * iconvdata/ibm803.h: Likewise.
9434         * iconvdata/ibm856.h: Likewise.
9435         * iconvdata/ibm901.h: Likewise.
9436         * iconvdata/ibm902.h: Likewise.
9437         * iconvdata/ibm9030.h: Likewise.
9438         * iconvdata/ibm9066.h: Likewise.
9439         * iconvdata/ibm921.h: Likewise.
9440         * iconvdata/ibm922.h: Likewise.
9441         * iconvdata/ibm9448.h: Likewise.
9442         * iconvdata/isiri-3342.h: Likewise.
9443         * iconvdata/jis0201.h: Likewise.
9444         * include/link.h: Likewise.
9445         * include/netdb.h: Likewise.
9446         * inet/check_native.c: Likewise.
9447         * inet/check_pf.c: Likewise.
9448         * inet/getipv4sourcefilter.c: Likewise.
9449         * inet/getnameinfo.c: Likewise.
9450         * inet/getsourcefilter.c: Likewise.
9451         * inet/htonl.c: Likewise.
9452         * inet/setipv4sourcefilter.c: Likewise.
9453         * inet/setsourcefilter.c: Likewise.
9454         * inet/test-inet6_opt.c: Likewise.
9455         * inet/tst-network.c: Likewise.
9456         * locale/C-collate.c: Likewise.
9457         * locale/C-ctype.c: Likewise.
9458         * locale/C-time.c: Likewise.
9459         * locale/C-translit.h: Likewise.
9460         * locale/loadarchive.c: Likewise.
9461         * locale/programs/3level.h: Likewise.
9462         * locale/programs/charmap.c: Likewise.
9463         * locale/programs/charmap.h: Likewise.
9464         * locale/programs/ld-address.c: Likewise.
9465         * locale/programs/ld-collate.c: Likewise.
9466         * locale/programs/ld-ctype.c: Likewise.
9467         * locale/programs/ld-identification.c: Likewise.
9468         * locale/programs/ld-measurement.c: Likewise.
9469         * locale/programs/ld-messages.c: Likewise.
9470         * locale/programs/ld-monetary.c: Likewise.
9471         * locale/programs/ld-name.c: Likewise.
9472         * locale/programs/ld-numeric.c: Likewise.
9473         * locale/programs/ld-paper.c: Likewise.
9474         * locale/programs/ld-telephone.c: Likewise.
9475         * locale/programs/ld-time.c: Likewise.
9476         * locale/programs/linereader.c: Likewise.
9477         * locale/programs/locale.c: Likewise.
9478         * locale/programs/locarchive.c: Likewise.
9479         * locale/programs/locfile.h: Likewise.
9480         * locale/programs/repertoire.c: Likewise.
9481         * locale/programs/simple-hash.c: Likewise.
9482         * locale/programs/simple-hash.h: Likewise.
9483         * malloc/memusage.c: Likewise.
9484         * malloc/memusagestat.c: Likewise.
9485         * nis/nis_defaults.c: Likewise.
9486         * nis/nis_hash.c: Likewise.
9487         * nis/nis_print.c: Likewise.
9488         * nis/nis_xdr.c: Likewise.
9489         * nscd/connections.c: Likewise.
9490         * nscd/hstcache.c: Likewise.
9491         * nscd/nscd_gethst_r.c: Likewise.
9492         * nscd/nscd_getserv_r.c: Likewise.
9493         * nscd/nscd_helper.c: Likewise.
9494         * nscd/servicescache.c: Likewise.
9495         * nss/makedb.c: Likewise.
9496         * nss/nss_db/db-XXX.c: Likewise.
9497         * nss/nss_db/db-initgroups.c: Likewise.
9498         * nss/nss_db/db-netgrp.c: Likewise.
9499         * nss/nss_files/files-network.c: Likewise.
9500         * nss/nss_files/files-parse.c: Likewise.
9501         * posix/bug-regex5.c: Likewise.
9502         * posix/fnmatch_loop.c: Likewise.
9503         * posix/regcomp.c: Likewise.
9504         * posix/regexec.c: Likewise.
9505         * posix/tst-rfc3484-2.c: Likewise.
9506         * posix/tst-rfc3484-3.c: Likewise.
9507         * posix/tst-rfc3484.c: Likewise.
9508         * resolv/nss_dns/dns-canon.c: Likewise.
9509         * resolv/nss_dns/dns-network.c: Likewise.
9510         * resolv/res_init.c: Likewise.
9511         * resolv/res_mkquery.c: Likewise.
9512         * resolv/tst-aton.c: Likewise.
9513         * stdlib/cxa_atexit.c: Likewise.
9514         * stdlib/cxa_finalize.c: Likewise.
9515         * stdlib/gen-fpioconst.c: Likewise.
9516         * stdlib/strtol_l.c: Likewise.
9517         * string/tst-endian.c: Likewise.
9518         * sunrpc/auth_des.c: Likewise.
9519         * sunrpc/clnt_udp.c: Likewise.
9520         * sunrpc/rtime.c: Likewise.
9521         * sunrpc/svcauth_des.c: Likewise.
9522         * sunrpc/xdr.c: Likewise.
9523         * sunrpc/xdr_intXX_t.c: Likewise.
9524         * sunrpc/xdr_rec.c: Likewise.
9525         * sysdeps/generic/ldconfig.h: Likewise.
9526         * sysdeps/generic/ldsodefs.h: Likewise.
9527         * sysdeps/generic/memusage.h: Likewise.
9528         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9529         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
9530         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
9531         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9532         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9533         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9534         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9535         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9536         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9537         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
9538         * sysdeps/posix/getaddrinfo.c: Likewise.
9539         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9540         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9541         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9542         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9543         * sysdeps/powerpc/test-gettimebase.c: Likewise.
9544         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
9545         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
9546         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
9547         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
9548         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
9549         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9550         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9551         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
9552         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
9553         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
9554         * sysdeps/x86_64/dl-tls.h: Likewise.
9555         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
9556         * time/alt_digit.c: Likewise.
9557         * time/era.c: Likewise.
9558         * wcsmbs/tst-c16c32-1.c: Likewise.
9559
9560 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9561
9562         * math/libm-test.inc (struct test_sincos_data): New type.
9563         (RUN_TEST_LOOP_sincos): New macro.
9564         (sincos_test_data): New variable.
9565         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
9566
9567 2013-05-16  Richard Henderson  <rth@redhat.com>
9568
9569         * math/atest-exp2.c (LIMB64): New macro.
9570         (CONSTSZ): New macro.
9571         (mp_exp1, mp_exp_m1, mp_log2): New variables.
9572         (hexdig): Move ...
9573         (print_mpn_fp): ... to function scope.
9574         (read_mpn_hex): Remove.
9575         (get_log2): Remove.
9576         (exp2_mpn): Use mp_log2.
9577         (main): Use mp_exp1.
9578
9579 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9580
9581         * math/libm-test.inc: Remove comment about not testing "inexact"
9582         exceptions.
9583         (INEXACT_EXCEPTION): New macro.
9584         (NO_INEXACT_EXCEPTION): Likewise.
9585         (INVALID_EXCEPTION_OK): Update value.
9586         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9587         (OVERFLOW_EXCEPTION_OK): Likewise.
9588         (UNDERFLOW_EXCEPTION_OK): Likewise.
9589         (IGNORE_ZERO_INF_SIGN): Likewise.
9590         (ERRNO_UNCHANGED): Likewise.
9591         (ERRNO_EDOM): Likewise.
9592         (ERRNO_ERANGE): Likewise.
9593         (test_exceptions): Handle testing "inexact" exceptions.
9594         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
9595         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
9596         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
9597         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
9598         INEXACT_EXCEPTION.
9599         (rint_towardzero_test_data): Likewise.
9600         (rint_downward_test_data): Likewise.
9601         (rint_upward_test_data): Likewise.
9602
9603         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
9604         with OVERFLOW_EXCEPTION.
9605         (exp10_test_data): Likewise.
9606         (exp2_test_data): Likewise.
9607         (expm1_test_data): Likewise.
9608         (lgamma_test_data): Likewise.
9609         (pow_test_data): Likewise.
9610         (tgamma_test_data): Likewise.
9611         (yn_test_data): Remove duplicate test of overflow.
9612
9613         * math/libm-test.inc (struct test_cc_c_data): New type.
9614         (RUN_TEST_LOOP_cc_c): New macro.
9615         (cpow_test_data): New variable.
9616         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
9617
9618         * math/libm-test.inc (struct test_f_L_data): New type.
9619         (RUN_TEST_LOOP_f_L): New macro.
9620         (llrint_test_data): New variable.
9621         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
9622         (llrint_tonearest_test_data): New variable.
9623         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
9624         (llrint_towardzero_test_data): New variable.
9625         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
9626         (llrint_downward_test_data): New variable.
9627         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
9628         (llrint_upward_test_data): New variable.
9629         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
9630         (llround_test_data): New variable.
9631         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
9632
9633 2013-05-13  Peter Collingbourne  <pcc@google.com>
9634
9635         * math/atest-exp2.c (get_log2): Remove const attribute.
9636
9637 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9638
9639         * math/libm-test.inc (struct test_f_l_data): New type.
9640         (RUN_TEST_LOOP_f_l): New macro.
9641         (lrint_test_data): New variable.
9642         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
9643         (lrint_tonearest_test_data): New variable.
9644         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
9645         (lrint_towardzero_test_data): New variable.
9646         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
9647         (lrint_downward_test_data): New variable.
9648         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
9649         (lrint_upward_test_data): New variable.
9650         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
9651         (lround_test_data): New variable.
9652         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
9653
9654 2013-05-15  Peter Collingbourne  <pcc@google.com>
9655
9656         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
9657         (EXTRACT_WORDS64) Use where appropriate.
9658         (INSERT_WORDS64) Likewise.
9659
9660         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
9661         constraints with x constraints.
9662         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
9663
9664         * malloc/obstack.c (_obstack_compat): Add initializer.
9665
9666 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
9667
9668         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
9669         si_trapno and add si_addr_lsb to _sifields.sigfault.
9670         (si_trapno): Remove macro.
9671         (si_addr_lsb): Define new macro.
9672         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
9673
9674 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9675
9676         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
9677         instead of TEST_f_l.
9678         (llrint_test_tonearest): Likewise.
9679         (llrint_test_towardzero): Likewise.
9680         (llrint_test_downward): Likewise.
9681         (llrint_test_upward): Likewise.
9682         (llround_test): Likewise.
9683
9684         * math/libm-test.inc (struct test_f_i_data): Add comment.
9685         (RUN_TEST_LOOP_f_b): New macro.
9686         (RUN_TEST_LOOP_f_b_tg): Likewise.
9687         (finite_test_data): New variable.
9688         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
9689         (isfinite_test_data): New variable.
9690         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9691         (isinf_test_data): New variable.
9692         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9693         (isnan_test_data): New variable.
9694         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9695         (isnormal_test_data): New variable.
9696         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9697         (issignaling_test_data): New variable.
9698         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9699         (signbit_test_data): New variable.
9700         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9701
9702         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
9703         with INVALID_EXCEPTION.
9704         (acosh_test_data): Likewise.
9705         (asin_test_data): Likewise.
9706         (atanh_test_data): Likewise.
9707         (fmod_test_data): Likewise.
9708         (log_test_data): Likewise.
9709         (log10_test_data): Likewise.
9710         (log2_test_data): Likewise.
9711         (pow_test_data): Likewise.
9712         (sqrt_test_data): Likewise.
9713         (y0_test_data): Likewise.
9714         (y1_test_data): Likewise.
9715         (yn_test_data): Likewise.
9716
9717         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
9718         function contents.
9719
9720         * math/libm-test.inc (struct test_ff_i_data): New type.
9721         (RUN_TEST_LOOP_ff_i_tg): New macro.
9722         (isgreater_test_data): New variable.
9723         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9724         (isgreaterequal_test_data): New variable.
9725         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9726         (isless_test_data): New variable.
9727         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9728         (islessequal_test_data): New variable.
9729         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9730         (islessgreater_test_data): New variable.
9731         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9732         (isunordered_test_data): New variable.
9733         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9734
9735 2013-05-14  David S. Miller  <davem@davemloft.net>
9736
9737         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9738
9739 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
9740
9741         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
9742
9743         * math/libm-test.inc (struct test_fF_f1_data): Change type of
9744         extra_test to int.
9745         (struct test_f_i_data): Change type of max_ulp to int.
9746
9747         * math/libm-test.inc (test_ffI_f1_data): New type.
9748         (RUN_TEST_LOOP_ffI_f1): New macro.
9749         (remquo_test_data): New variable.
9750         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
9751
9752         * setjmp/tst-setjmp-fp.c: New file.
9753         * setjmp/Makefile (tests): Add tst-setjmp-fp.
9754         (link-libm): New variable.
9755         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
9756
9757         * math/libm-test.inc (struct test_f_i_data): New type.
9758         (RUN_TEST_LOOP_f_i): New macro.
9759         (RUN_TEST_LOOP_f_i_tg): Likewise.
9760         (fpclassify_test_data): New variable.
9761         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
9762         (ilogb_test_data): New variable.
9763         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
9764
9765         * math/libm-test.inc (scalbln_test): Correct function name in END
9766         call.
9767
9768         * math/libm-test.inc (struct test_f_f1_data): Add comment.
9769         (RUN_TEST_LOOP_fI_f1): New macro.
9770         (frexp_test_data): New variable.
9771         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
9772
9773         * math/libm-test.inc (struct test_fF_f1_data): New type.
9774         (RUN_TEST_LOOP_fF_f1): New macro.
9775         (modf_test_data): New variable.
9776         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
9777
9778         * math/libm-test.inc (struct test_f_f1_data): New type.
9779         (RUN_TEST_LOOP_f_f1): New macro.
9780         (gamma_test_data): New variable.
9781         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9782         (lgamma_test_data): New variable.
9783         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9784
9785 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
9786
9787         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
9788         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
9789         (main): Comment "tls" pseudo-hwcap.
9790
9791 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
9792
9793         * math/libm-test.inc (struct test_fl_f_data): New type.
9794         (RUN_TEST_LOOP_fl_f): New variable.
9795         (scalbln_test_data): New variable.
9796         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
9797
9798         * math/libm-test.inc (struct test_fi_f_data): New type.
9799         (RUN_TEST_LOOP_fi_f): New macro.
9800         (ldexp_test_data): New variable.
9801         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
9802         (scalbn_test_data): New variable.
9803         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
9804
9805         * math/libm-test.inc (struct test_c_f_data): New type.
9806         (RUN_TEST_LOOP_c_f): New macro.
9807         (cabs_test_data): New variable.
9808         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
9809         (carg_test_data): New variable.
9810         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
9811         (cimag_test_data): New variable.
9812         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
9813         (creal_test_data): New variable.
9814         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
9815
9816         * math/libm-test.inc (struct test_if_f_data): New type.
9817         (RUN_TEST_LOOP_if_f): New macro.
9818         (jn_test_data): New variable.
9819         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
9820         (yn_test_data): New variable.
9821         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
9822
9823         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
9824
9825 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9826
9827         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
9828         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
9829
9830 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9831
9832         * benchtests/Makefile (CPPFLAGS-nonlib): Add
9833         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
9834         (bench-deps): Add bench-timing.h.
9835         * benchtests-bench-skeleton.c: Include bench-timing.h.
9836         (main): Use TIMING_* macros instead of clock_gettime.
9837         * benchtests/bench-timing.h: New file.
9838
9839         [BZ #14582]
9840         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
9841         Renamed from _LIB_VERSION.
9842         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
9843
9844 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
9845
9846         * math/libm-test.inc (struct test_fff_f_data): New type.
9847         (RUN_TEST_LOOP_fff_f): New macro.
9848         (fma_test_data): New variable.
9849         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
9850         (fma_towardzero_test_data): New variable.
9851         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
9852         (fma_downward_test_data): New variable.
9853         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
9854         (fma_upward_test_data): New variable.
9855         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
9856
9857         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
9858         (struct test_c_c_data): New type.
9859         (RUN_TEST_LOOP_c_c): New macro.
9860         (cacos_test_data): New variable.
9861         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
9862         (cacosh_test_data): New variable.
9863         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
9864         (casin_test_data): New variable.
9865         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
9866         (casinh_test_data): New variable.
9867         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
9868         (catan_test_data): New variable.
9869         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
9870         (catanh_test_data): New variable.
9871         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
9872         (ccos_test_data): New variable.
9873         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
9874         (ccosh_test_data): New variable.
9875         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
9876         (cexp_test_data): New variable.
9877         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
9878         (clog_test_data): New variable.
9879         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
9880         (clog10_test_data): New variable.
9881         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
9882         (conj_test_data): New variable.
9883         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
9884         (cproj_test_data): New variable.
9885         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
9886         (csin_test_data): New variable.
9887         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
9888         (csinh_test_data): New variable.
9889         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
9890         (csqrt_test_data): New variable.
9891         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
9892         (ctan_test_data): New variable.
9893         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
9894         (ctan_tonearest_test_data): New variable.
9895         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9896         (ctan_towardzero_test_data): New variable.
9897         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9898         (ctan_downward_test_data): New variable.
9899         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9900         (ctan_upward_test_data): New variable.
9901         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9902         (ctanh_test_data): New variable.
9903         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
9904         (ctanh_tonearest_test_data): New variable.
9905         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9906         (ctanh_towardzero_test_data): New variable.
9907         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9908         (ctanh_downward_test_data): New variable.
9909         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9910         (ctanh_upward_test_data): New variable.
9911         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9912         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
9913         of BUILD_COMPLEX.
9914
9915         * math/libm-test.inc (struct test_ff_f_data): New type.
9916         (struct test_ff_f_data_nexttoward): Likewise.
9917         (RUN_TEST_LOOP_2_f): New macro.
9918         (RUN_TEST_LOOP_ff_f): Likewise.
9919         (atan2_test_data): New variable.
9920         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
9921         (copysign_test_data): New variable.
9922         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
9923         (fdim_test_data): New variable.
9924         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
9925         (fmax_test_data): New variable.
9926         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
9927         (fmin_test_data): New variable.
9928         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
9929         (fmod_test_data): New variable.
9930         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
9931         (hypot_test_data): New variable.
9932         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
9933         (nextafter_test_data): New variable.
9934         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
9935         (nexttoward_test_data): New variable.
9936         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
9937         (pow_test_data): New variable.
9938         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
9939         (pow_tonearest_test_data): New variable.
9940         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
9941         (pow_towardzero_test_data): New variable.
9942         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
9943         (pow_downward_test_data): New variable.
9944         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
9945         (pow_upward_test_data): New variable.
9946         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
9947         (remainder_test_data): New variable.
9948         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
9949         (scalb_test_data): New variable.
9950         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
9951         * sysdeps/i386/fpu/libm-test-ulps: Update.
9952
9953 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
9954
9955         * math/libm-test.inc (fma_test): Use max_value instead of local
9956         variable fltmax.
9957         (nextafter_test): Likewise.
9958
9959         * math/libm-test.inc (acos_towardzero_test_data): New variable.
9960         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9961         (acos_downward_test_data): New variable.
9962         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9963         (acos_upward_test_data): New variable.
9964         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9965         (acosh_test_data): New variable.
9966         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
9967         (asin_test_data): New variable.
9968         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
9969         (asin_tonearest_test_data): New variable.
9970         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9971         (asin_towardzero_test_data): New variable.
9972         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9973         (asin_downward_test_data): New variable.
9974         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9975         (asin_upward_test_data): New variable.
9976         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9977         (asinh_test_data): New variable.
9978         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
9979         (atan_test_data): New variable.
9980         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
9981         (atanh_test_data): New variable.
9982         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
9983         (cbrt_test_data): New variable.
9984         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
9985         (ceil_test_data): New variable.
9986         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
9987         (cos_test_data): New variable.
9988         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
9989         (cos_tonearest_test_data): New variable.
9990         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9991         (cos_towardzero_test_data): New variable.
9992         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9993         (cos_downward_test_data): New variable.
9994         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9995         (cos_upward_test_data): New variable.
9996         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9997         (cosh_test_data): New variable.
9998         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
9999         (cosh_tonearest_test_data): New variable.
10000         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10001         (cosh_towardzero_test_data): New variable.
10002         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10003         (cosh_downward_test_data): New variable.
10004         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10005         (cosh_upward_test_data): New variable.
10006         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10007         (erf_test_data): New variable.
10008         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
10009         (erfc_test_data): New variable.
10010         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
10011         (exp_test_data): New variable.
10012         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
10013         (exp_tonearest_test_data): New variable.
10014         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10015         (exp_towardzero_test_data): New variable.
10016         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10017         (exp_downward_test_data): New variable.
10018         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10019         (exp_upward_test_data): New variable.
10020         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10021         (exp10_test_data): New variable.
10022         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
10023         (exp2_test_data): New variable.
10024         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
10025         (expm1_test_data): New variable.
10026         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
10027         (fabs_test_data): New variable.
10028         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
10029         (floor_test_data): New variable.
10030         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
10031         (j0_test_data): New variable.
10032         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
10033         (j1_test_data): New variable.
10034         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
10035         (log_test_data): New variable.
10036         (log_test): Run tests with RUN_TEST_LOOP_f_f.
10037         (log10_test_data): New variable.
10038         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
10039         (log1p_test_data): New variable.
10040         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
10041         (log2_test_data): New variable.
10042         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
10043         (logb_test_data): New variable.
10044         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
10045         (logb_downward_test_data): New variable.
10046         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10047         (nearbyint_test_data): New variable.
10048         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
10049         (rint_test_data): New variable.
10050         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
10051         (rint_tonearest_test_data): New variable.
10052         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10053         (rint_towardzero_test_data): New variable.
10054         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10055         (rint_downward_test_data): New variable.
10056         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10057         (rint_upward_test_data): New variable.
10058         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10059         (round_test_data): New variable.
10060         (round_test): Run tests with RUN_TEST_LOOP_f_f.
10061         (sin_test_data): New variable.
10062         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
10063         (sin_tonearest_test_data): New variable.
10064         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10065         (sin_towardzero_test_data): New variable.
10066         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10067         (sin_downward_test_data): New variable.
10068         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10069         (sin_upward_test_data): New variable.
10070         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10071         (sinh_test_data): New variable.
10072         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
10073         (sinh_tonearest_test_data): New variable.
10074         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10075         (sinh_towardzero_test_data): New variable.
10076         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10077         (sinh_downward_test_data): New variable.
10078         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10079         (sinh_upward_test_data): New variable.
10080         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10081         (sqrt_test_data): New variable.
10082         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
10083         (tan_test_data): New variable.
10084         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
10085         (tan_tonearest_test_data): New variable.
10086         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10087         (tan_towardzero_test_data): New variable.
10088         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10089         (tan_downward_test_data): New variable.
10090         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10091         (tan_upward_test_data): New variable.
10092         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10093         (tanh_test_data): New variable.
10094         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
10095         (tgamma_test_data): New variable.
10096         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
10097         (trunc_test_data): New variable.
10098         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
10099         (y0_test_data): New variable.
10100         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
10101         (y1_test_data): New variable.
10102         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
10103         (significand_test_data): New variable.
10104         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
10105
10106 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
10107
10108         [BZ #12387]
10109         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
10110
10111 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10112
10113         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
10114
10115 2013-05-10  Andreas Jaeger  <aj@suse.de>
10116
10117         [BZ #15448]
10118         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
10119         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
10120
10121 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10122
10123         * math/gen-libm-test.pl (adjust_arg): New function.
10124         (special_functions): Handle generating output in both functions
10125         and arrays.
10126         (parse_args): Likewise.
10127         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
10128         $in_func argument to parse_args.
10129         * math/libm-test.inc (struct test_f_f_data): New type.
10130         (IF_ROUND_INIT_): New macro.
10131         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
10132         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
10133         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10134         (IF_ROUND_INIT_FE_UPWARD): Likewise.
10135         (ROUND_RESTORE_): Likewise.
10136         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
10137         (ROUND_RESTORE_FE_TONEAREST): Likewise.
10138         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
10139         (ROUND_RESTORE_FE_UPWARD): Likewise.
10140         (RUN_TEST_LOOP_f_f): New macro.
10141         (acos_test_data): New variable.
10142         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
10143         (acos_tonearest_test_data): New variable.
10144         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10145
10146 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10147
10148         * benchtests/bench-skeleton.c (startup): Fix coding style.
10149
10150 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10151
10152         [BZ #6809]
10153         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
10154         negative infinity argument.
10155         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
10156         negative infinity argument.
10157         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
10158         negative infinity argument.
10159         * math/libm-test.inc (tgamma_test): Expect errno to be set for
10160         domain errors.
10161
10162 2013-05-10  Florian Weimer  <fweimer@redhat.com>
10163
10164         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
10165         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
10166         * iconv/iconv_prog.c (main): Likewise.
10167         * locale/programs/charmap-dir.c (charmap_readdir)
10168         (fopen_uncompressed): Likewise.
10169         * locale/programs/locfile.c (siblings_uncached)
10170         (write_locale_data): Use lstat64 instead of lstat.
10171         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
10172         stat.
10173
10174 2013-05-10  Andreas Jaeger  <aj@suse.de>
10175
10176         [BZ #15395]
10177         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
10178         localization.
10179         Include <locale.h>.
10180
10181 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
10182
10183         * elf/dl-close.c (_dl_close_worker): Add comments.
10184
10185 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
10186
10187         [BZ #15359]
10188         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
10189         high part of pi/2.
10190         (__ieee754_rem_pio2l): Update comments.
10191
10192         [BZ #15429]
10193         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
10194         high part of pi/2.
10195         (__ieee754_rem_pio2l): Update comments.
10196
10197         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
10198         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
10199
10200         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
10201         M_PI_4l.
10202
10203         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
10204         (M_PI_34_LOG10El): Likewise.
10205         (M_PI2_LOG10El): Likewise.
10206         (M_PI4_LOG10El): Likewise.
10207         (M_PI_LOG10El): Likewise.
10208
10209 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10210
10211         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10212
10213 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
10214
10215         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
10216         (MINUS_ZERO_INIT): Likewise.
10217         (PLUS_INFTY_INIT): Likewise.
10218         (MINUS_INFTY_INIT): Likewise.
10219         (QNAN_VALUE_INIT): Likewise.
10220         (MAX_VALUE_INIT): Likewise.
10221         (MIN_VALUE_INIT): Likewise.
10222         (MIN_SUBNORM_VALUE_INIT): Likewise.
10223         (plus_zero): Initialize with PLUS_ZERO_INIT.
10224         (minus_zero): Initialize with MINUS_ZERO_INIT.
10225         (plus_infty): Initialize with PLUS_INFTY_INIT.
10226         (minus_infty): Initialize with MINUS_INFTY_INIT.
10227         (qnan_value): Initialize with QNAN_VALUE_INIT.
10228         (max_value): Initialize with MAX_VALUE_INIT.
10229         (min_value): Initialize with MIN_VALUE_INIT.
10230         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
10231
10232         * math/libm-test.inc (RUN_TEST_if_f): New macro.
10233         (jn_test): Use TEST_if_f instead of TEST_ff_f.
10234         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
10235         (yn_test): Use TEST_if_f instead of TEST_ff_f.
10236
10237         * math/libm-test.inc (RUN_TEST_f_f): New macro.
10238         (RUN_TEST_2_f): Likewise.
10239         (RUN_TEST_ff_f): Likewise.
10240         (RUN_TEST_fi_f): Likewise.
10241         (RUN_TEST_fl_f): Likewise.
10242         (RUN_TEST_fff_f): Likewise.
10243         (RUN_TEST_c_f): Likewise.
10244         (RUN_TEST_f_f1): Likewise.
10245         (RUN_TEST_fF_f1): Likewise.
10246         (RUN_TEST_fI_f1): Likewise.
10247         (RUN_TEST_ffI_f1): Likewise.
10248         (RUN_TEST_c_c): Likewise.
10249         (RUN_TEST_cc_c): Likewise.
10250         (RUN_TEST_f_i): Likewise.
10251         (RUN_TEST_f_i_tg): Likewise.
10252         (RUN_TEST_ff_i_tg): Likewise.
10253         (RUN_TEST_f_b): Likewise.
10254         (RUN_TEST_f_b_tg): Likewise.
10255         (RUN_TEST_f_l): Likewise.
10256         (RUN_TEST_f_L): Likewise.
10257         (RUN_TEST_sincos): Likewise.
10258         * math/gen-libm-test.pl (new_test): Take new argument to indicate
10259         whether to show exceptions.  Do not include ");\n" in return
10260         value.
10261         (special_functions): Output call to RUN_TEST_sincos instead of
10262         check_float calls.  Update calls to new_test.
10263         (parse_args): Output call to single RUN_TEST_* macro instead of
10264         check_* calls and other assignments.  Update calls to new_test.
10265
10266         [BZ #2546]
10267         [BZ #2560]
10268         [BZ #5159]
10269         [BZ #15426]
10270         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
10271         input to result for tgamma overflow.
10272         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
10273         (gamma_coeff): New variable.
10274         (NCOEFF): New macro.
10275         (gamma_positive): New function.
10276         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
10277         underflow here.  Use gamma_positive instead of exp (lgamma) for
10278         other arguments.
10279         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
10280         (gamma_coeff): New variable.
10281         (NCOEFF): New macro.
10282         (gammaf_positive): New function.
10283         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
10284         underflow here.  Use gamma_positive instead of exp (lgamma) for
10285         other arguments.
10286         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
10287         (gamma_coeff): New variable.
10288         (NCOEFF): New macro.
10289         (gammal_positive): New function.
10290         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
10291         underflow here.  Use gamma_positive instead of exp (lgamma) for
10292         other arguments.
10293         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
10294         (gamma_coeff): New variable.
10295         (NCOEFF): New macro.
10296         (gammal_positive): New function.
10297         (__ieee754_gammal_r): Handle positive infinity, overflow and
10298         underflow here.  Handle NaN the same as positive infinity.  Remove
10299         check x < 0xffffffff for negative integers.  Use gamma_positive
10300         instead of exp (lgamma) for other arguments.
10301         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
10302         (gamma_coeff): New variable.
10303         (NCOEFF): New macro.
10304         (gammal_positive): New function.
10305         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
10306         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
10307         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10308         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
10309         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
10310         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10311         * sysdeps/generic/math_private.h (__gamma_productf): New
10312         prototype.
10313         (__gamma_product): Likewise.
10314         (__gamma_productl): Likewise.
10315         * math/Makefile (libm-calls): Add gamma_product.
10316         * math/libm-test.inc (tgamma_test): Add more tests.
10317         * sysdeps/i386/fpu/libm-test-ulps: Update.
10318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10319
10320 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
10321
10322         * benchtests/bench-skeleton.c (main): Preheat CPU.
10323
10324 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
10325
10326         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
10327
10328 2013-05-07  Roland McGrath  <roland@hack.frob.com>
10329
10330         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
10331         and _dl_skip_args_internal.
10332
10333 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
10334
10335         * manual/message.texi (Message Translation): Talk about users.
10336         Message to key mapping impacts design.
10337
10338 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10339
10340         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
10341
10342         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
10343
10344         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
10345         * sysdeps/wordsize-64/glob64.c: ... here.
10346
10347         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
10348         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
10349         New macros.
10350
10351         * debug/getlogin_r_chk.c: Moved to ...
10352         * login/getlogin_r_chk.c: ... here.
10353         * debug/Makefile (routines): Move getlogin_r_chk to ...
10354         * login/Makefile (routines): ... here.
10355         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
10356         * login/Versions (libc: GLIBC_2.4): ... here.
10357
10358         * io/poll.c (__poll): Renamed from poll.
10359         Add libc_hidden_def.
10360         (poll): Define as weak alias.
10361
10362         * debug/ptsname_r_chk.c: Moved to ...
10363         * login/ptsname_r_chk.c: ... here.
10364         * debug/Makefile (routines): Move ptsname_r_chk to ...
10365         * login/Makefile (routines): ... here.
10366         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
10367         * login/Versions (libc: GLIBC_2.4): ... here.
10368
10369         * posix/getlogin.c: Moved to ...
10370         * login/getlogin.c: ... here.
10371         * posix/getlogin_r.c: Moved to ...
10372         * login/getlogin_r.c: ... here.
10373         * posix/getlogin_r.c: Moved to ...
10374         * login/getlogin_r.c: ... here.
10375         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
10376         * login/Makefile (routines): ... here.
10377         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
10378         * login/Versions (libc: GLIBC_2.0): ... here.
10379
10380         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
10381         (setrlimit): Define as weak alias.
10382
10383         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
10384         Call __ names for open, ftruncate, and close.
10385         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
10386         (truncate): Define as weak alias.
10387
10388 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
10389
10390         * math/gen-libm-test.pl (parse_args): Initialize x before each
10391         test of frexp, modf and remquo.
10392
10393         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
10394         test signgam value.
10395
10396 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10397
10398         [BZ #15418]
10399         [BZ #15419]
10400         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
10401         internal tests.
10402         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10403
10404 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10405
10406         * elf/dl-writev.h: New file.
10407         * elf/dl-misc.c: Include it.
10408         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
10409         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
10410
10411 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
10412
10413         * math/libm-test.inc (noXFails): Remove variable.
10414         (noXPasses): Likewise.
10415         (BUILD_COMPLEX_INT): Remove macro.
10416         (print_screen): Remove xfail argument.
10417         (print_screen_max_error): Likewise.
10418         (update_stats): Likewise.
10419         (print_max_error): Likewise.  Update calls to other affected
10420         functions.
10421         (print_complex_max_error): Likewise.
10422         (test_single_exception): Update calls to print_screen.
10423         (test_single_errno): Likewise.
10424         (check_float_internal): Remove xfail argument.  Update calls to
10425         other affected functions.
10426         (check_float): Likewise.
10427         (check_complex): Likewise.
10428         (check_int): Likewise.
10429         (check_long): Likewise.
10430         (check_bool): Likewise.
10431         (check_longlong): Likewise.
10432         (main): Don't print noXFails and noXPasses.
10433         * math/gen-libm-test.pl (top level): Don't mention expected
10434         failure handling in comment.
10435         (new_test): Don't handle expected failures.
10436         (parse_args): Don't mention expected failure handling in comment.
10437         (generate_testfile): Don't handle expected failures.
10438         (parse_ulps): Likewise.
10439         (print_ulps_file): Likewise.
10440         (get_failure): Remove function.
10441         (output_test): Don't handle expected failures.
10442         * make/README.libm-test: Don't mention expected failure handling.
10443
10444         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
10445         (minus_zero): Likewise.
10446         (plus_infty): Likewise.
10447         (minus_infty): Likewise.
10448         (qnan_value): Likewise.
10449         (max_value): Likewise.
10450         (min_value): Likewise.
10451         (min_subnorm_value): Likewise.
10452         (initialize): Do not initialize those variables dynamically.
10453
10454 2013-05-03  Roland McGrath  <roland@hack.frob.com>
10455
10456         * io/open.c (__open_2): Moved to ...
10457         * io/open_2.c: ... this new file.
10458         * io/open64.c (__open64_2): Moved to ...
10459         * io/open64_2.c: ... this new file.
10460         * io/openat.c (__openat_2): Moved to ...
10461         * io/openat_2.c: ... this new file.
10462         * io/openat64.c (__openat64_2): Moved to ...
10463         * io/openat64_2.c: ... this new file.
10464         * io/Makefile (routines): Add them.
10465         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
10466         * sysdeps/unix/sysv/linux/open_2.c: File removed.
10467         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
10468         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
10469         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
10470         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
10471         (__openat64): Add hidden_ver.
10472         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
10473         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
10474
10475         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10476         Separately conditionalize setting of GLRO(dl_sysinfo) so
10477         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
10478         as well, but the actual setting is only under [NEED_DL_SYSINFO].
10479
10480 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10481
10482         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
10483         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
10484         definition.
10485         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
10486         * sysdeps/unix/sysv/linux/powerpc/init-first.c
10487         (_libc_vdso_platform_setup): Add __vdso_time initialization.
10488         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
10489         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
10490
10491 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
10492
10493         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
10494         test signgam value.
10495
10496         * math/libm-test.inc (hypot_test): Do not use
10497         IGNORE_ZERO_INF_SIGN.
10498
10499 2013-05-03  Andreas Jaeger  <aj@suse.de>
10500
10501         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
10502         Linux 3.9.
10503         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
10504         (PF_MAX): Adjust for VSOCK change.
10505
10506 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10507
10508         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10509
10510 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
10511
10512         [BZ #15264]
10513         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
10514         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
10515         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
10516
10517 2013-05-02  David S. Miller  <davem@davemloft.net>
10518
10519         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10520
10521 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
10522
10523         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
10524
10525 2013-05-01  Roland McGrath  <roland@hack.frob.com>
10526
10527         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
10528
10529 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
10530
10531         [BZ #14952]
10532         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
10533         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10534         Use __attribute__ ((__gnu_inline__)).
10535         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10536         Don't use __attribute__ ((__gnu_inline__)).
10537
10538 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
10539
10540         [BZ #15423]
10541         * math/s_catan.c (__catan): Handle small real or imaginary part of
10542         input specially to avoid spurious underflow.
10543         * math/s_catanf.c (__catanf): Likewise.
10544         * math/s_catanh.c (__catanh): Likewise.
10545         * math/s_catanhf.c (__catanhf): Likewise.
10546         * math/s_catanhl.c (__catanhl): Likewise.
10547         * math/s_catanl.c (__catanl): Likewise.
10548         * math/libm-test.inc (catan_test): Add more tests.
10549         (catanh_test): Likewise.
10550         * sysdeps/i386/fpu/libm-test-ulps: Update.
10551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10552
10553 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10554
10555         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10556
10557 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
10558
10559         [BZ #15416]
10560         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
10561         accurately for denominator in atan2.
10562         * math/s_catanf.c (__catanf): Likewise.
10563         * math/s_catanh.c (__catanh): Likewise.
10564         * math/s_catanhf.c (__catanhf): Likewise.
10565         * math/s_catanhl.c (__catanhl): Likewise.
10566         * math/s_catanl.c (__catanl): Likewise.
10567         * math/libm-test.inc (catan_test): Add more tests.
10568         (catanh_test): Likewise.
10569         * sysdeps/i386/fpu/libm-test-ulps: Update.
10570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10571
10572 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10573
10574         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
10575
10576         * benchtests/Makefile (bench): Remove slow benchmarks.
10577         * benchtests/atan-inputs: Add slow benchmark inputs.
10578         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
10579         (BENCH_FUNC): Accept variant offset.
10580         (VARIANT): Define.
10581         * benchtests/bench-skeleton.c (main): Run benchmark for each
10582         variant.
10583         * benchtests/cos-inputs: Add slow benchmark inputs.
10584         * benchtests/exp-inputs: Likewise.
10585         * benchtests/pow-inputs: Likewise.
10586         * benchtests/sin-inputs: Likewise.
10587         * benchtests/slowatan-inputs: Remove.
10588         * benchtests/slowatan.c: Remove.
10589         * benchtests/slowcos-inputs: Remove.
10590         * benchtests/slowcos.c: Remove.
10591         * benchtests/slowexp-inputs: Remove.
10592         * benchtests/slowexp.c: Remove.
10593         * benchtests/slowpow-inputs: Remove.
10594         * benchtests/slowpow.c: Remove.
10595         * benchtests/slowsin-inputs: Remove.
10596         * benchtests/slowsin.c: Remove.
10597         * benchtests/slowtan-inputs: Remove.
10598         * benchtests/slowtan.c: Remove.
10599         * benchtests/tan-inputs: Add slow benchmark inputs.
10600         * scripts/bench.pl: Parse comments and directives.
10601
10602         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
10603         in CPPFLAGS.
10604         ($(objpfx)bench-%.c): Remove *-ITER.
10605         * benchtests/bench-modf.c: Remove definition of ITER.
10606         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
10607         (main): Loop for DURATION seconds instead of fixed number of
10608         iterations.
10609         * scripts/bench.pl: Don't expect iterations in parameters.
10610
10611 2013-04-29  Roland McGrath  <roland@hack.frob.com>
10612
10613         * io/fchdir.c (__fchdir): Renamed from fchdir.
10614         (fchdir): Define as weak alias.
10615
10616 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10617
10618         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
10619         (ERRNO_EDOM): Likewise.
10620         (ERRNO_ERANGE): Likewise.
10621         (noErrnoTests): New variable.
10622         (init_max_error): Set errno to 0.
10623         (test_single_errno): New function.
10624         (test_errno): Likewise.
10625         (check_float_internal): Call test_errno.  Set errno to 0.
10626         (check_complex): Refer to errno tests in comment.
10627         (check_int): Call test_errno.  Set errno to 0.
10628         (check_long): Likewise.
10629         (check_bool): Likewise.
10630         (check_longlong): Likewise.
10631         (cos_test): Use ERRNO_* flags for errno tests instead of
10632         check_int.
10633         (expm1_test): Likewise.
10634         (fmod_test): Likewise.
10635         (ilogb_test): Likewise.
10636         (lgamma_test): Likewise.
10637         (pow_test): Likewise.
10638         (remainder_test): Likewise.
10639         (sin_test): Likewise.
10640         (tan_test): Likewise.
10641         (yn_test): Likewise.
10642         (initialize): Set errno to 0.
10643         (main): Print number of errno tests.
10644         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
10645
10646 2013-04-29  Andreas Jaeger  <aj@suse.de>
10647
10648         [BZ #15084]
10649         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
10650         and RES_USEVC.
10651
10652         [BZ #15085]
10653         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
10654         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
10655         unimplemented.
10656
10657         [BZ #15380]
10658         * stdlib/random.c (__initstate): Return NULL if
10659         __initstate fails.
10660
10661         [BZ #15086]
10662         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
10663         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
10664         RES_SNGLKUPREOP.
10665
10666 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10667
10668         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10669
10670 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10671
10672         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
10673         of individual tests.
10674         (casin_test): Likewise.
10675         (casinh_test): Likewise.
10676
10677 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
10678
10679         [BZ #15409]
10680         * math/s_catan.c (__catan): Handle arguments with large real or
10681         imaginary part separately without squaring.
10682         * math/s_catanf.c (__catanf): Likewise.
10683         * math/s_catanh.c (__catanh): Likewise.
10684         * math/s_catanhf.c (__catanhf): Likewise.
10685         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10686         and redefine.
10687         (__catanhl): Handle arguments with large real or imaginary part
10688         separately without squaring.
10689         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10690         and redefine.
10691         (__catanl): Handle arguments with large real or imaginary part
10692         separately without squaring.
10693         * math/libm-test.inc (catan_test): Add more tests.
10694         (catanh_test): Likewise.
10695         * sysdeps/i386/fpu/libm-test-ulps: Update.
10696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10697
10698 2013-04-27  Andreas Jaeger  <aj@suse.de>
10699
10700         [BZ #15007]
10701         * stdlib/stdlib.h: Update guards for qecvt.
10702         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
10703         <stdlib.h>.
10704
10705 2013-04-27  Allan McRae  <allan@archlinux.org>
10706
10707         * sysdeps/i386/fpu/libm-test-ulps: Update.
10708
10709 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
10710
10711         [BZ #15406]
10712         * math/s_catan.c: Include <float.h>.
10713         (__catan): Ensure underflow exception occurs for underflowed
10714         result.
10715         * math/s_catanf.c: Include <float.h>.
10716         (__catanf): Ensure underflow exception occurs for underflowed
10717         result.
10718         * math/s_catanh.c: Include <float.h>.
10719         (__catanh): Ensure underflow exception occurs for underflowed
10720         result.
10721         * math/s_catanhf.c: Include <float.h>.
10722         (__catanhf): Ensure underflow exception occurs for underflowed
10723         result.
10724         * math/s_catanhl.c: Include <float.h>.
10725         (__catanhl): Ensure underflow exception occurs for underflowed
10726         result.
10727         * math/s_catanl.c: Include <float.h>.
10728         (__catanl): Ensure underflow exception occurs for underflowed
10729         result.
10730         * math/libm-test.inc (catan_test): Add more tests.
10731         (catanh_test): Likewise.
10732
10733         [BZ #15405]
10734         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
10735         underflowed result.
10736         * math/s_ccoshf.c (__ccoshf): Likewise.
10737         * math/s_ccoshl.c (__ccoshl): Likewise.
10738         * math/s_csin.c (__csin): Likewise.
10739         * math/s_csinf.c (__csinf): Likewise.
10740         * math/s_csinh.c (__csinh): Likewise.
10741         * math/s_csinhf.c (__csinhf): Likewise.
10742         * math/s_csinhl.c (__csinhl): Likewise.
10743         * math/s_csinl.c (__csinl): Likewise.
10744         * math/libm-test.inc (ccos_test): Add more tests.
10745         (ccosh_test): Likewise.
10746         (csin_test): Likewise.
10747         (csinh_test): Likewise.
10748
10749 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10750
10751         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
10752         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
10753         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
10754         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
10755         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
10756         powerpc/power5+/fpu folders.
10757         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
10758
10759
10760 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10761
10762         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10763
10764 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
10765
10766         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
10767         additions to variable.
10768         [$(config-machine) = x86_64] (modules-names): Likewise.
10769         ($(objpfx)tst-audit3): Remove dependency.
10770         ($(objpfx)tst-audit3.out): Likewise.
10771         ($(objpfx)tst-audit4): Likewise.
10772         ($(objpfx)tst-audit4.out): Likewise.
10773         ($(objpfx)tst-audit5): Likewise.
10774         ($(objpfx)tst-audit5.out): Likewise.
10775         ($(objpfx)tst-audit6): Likewise.
10776         ($(objpfx)tst-audit6.out): Likewise.
10777         ($(objpfx)tst-audit7): Likewise.
10778         ($(objpfx)tst-audit7.out): Likewise.
10779         (tst-audit3-ENV): Remove variable.
10780         (tst-audit4-ENV): Likewise.
10781         (tst-audit5-ENV): Likewise.
10782         (tst-audit6-ENV): Likewise.
10783         (tst-audit7-ENV): Likewise.
10784         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
10785         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
10786         addition to variable.
10787         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
10788         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
10789         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
10790         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
10791         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
10792         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
10793         tst-audit3, tst-audit4 and tst-audit5.
10794         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
10795         tst-audit6 and tst-audit7.
10796         [$(subdir) = elf] (modules-names): Add audit modules for those
10797         tests.
10798         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
10799         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
10800         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
10801         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
10802         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
10803         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
10804         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
10805         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
10806         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
10807         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
10808         [$(subdir) = elf] (tst-audit3-ENV): New variable.
10809         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
10810         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
10811         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
10812         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
10813         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
10814         Likewise.
10815         [$(subdir) = elf && $(config-cflags-avx) = yes]
10816         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
10817         [$(subdir) = elf && $(config-cflags-avx) = yes]
10818         (CFLAGS-tst-auditmod4a.c): Likewise.
10819         [$(subdir) = elf && $(config-cflags-avx) = yes]
10820         (CFLAGS-tst-auditmod4b.c): Likewise.
10821         [$(subdir) = elf && $(config-cflags-avx) = yes]
10822         (CFLAGS-tst-auditmod6b.c): Likewise.
10823         [$(subdir) = elf && $(config-cflags-avx) = yes]
10824         (CFLAGS-tst-auditmod6c.c): Likewise.
10825         [$(subdir) = elf && $(config-cflags-avx) = yes]
10826         (CFLAGS-tst-auditmod7b.c): Likewise.
10827         * elf/tst-audit3.c: Move to ...
10828         * sysdeps/x86_64/tst-audit3.c: ... here.
10829         * elf/tst-audit4.c: Move to ...
10830         * sysdeps/x86_64/tst-audit4.c: ... here.
10831         * elf/tst-audit5.c: Move to ...
10832         * sysdeps/x86_64/tst-audit5.c: ... here.
10833         * elf/tst-audit6.c: Move to ...
10834         * sysdeps/x86_64/tst-audit6.c: ... here.
10835         * elf/tst-audit7.c: Move to ...
10836         * sysdeps/x86_64/tst-audit7.c: ... here.
10837         * elf/tst-auditmod3a.c: Move to ...
10838         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
10839         * elf/tst-auditmod3b.c: Move to ...
10840         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
10841         * elf/tst-auditmod4a.c: Move to ...
10842         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
10843         * elf/tst-auditmod4b.c: Move to ...
10844         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
10845         * elf/tst-auditmod5a.c: Move to ...
10846         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
10847         * elf/tst-auditmod5b.c: Move to ...
10848         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
10849         * elf/tst-auditmod6a.c: Move to ...
10850         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
10851         * elf/tst-auditmod6b.c: Move to ...
10852         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
10853         * elf/tst-auditmod6c.c: Move to ...
10854         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
10855         * elf/tst-auditmod7a.c: Move to ...
10856         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
10857         * elf/tst-auditmod7b.c: Move to ...
10858         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
10859
10860 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
10861
10862         [BZ #15366]
10863         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
10864         define unconditionally.
10865         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
10866         define unconditionally.
10867         (INT8_C, INT16_C, etc.): Likewise.
10868
10869 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
10870
10871         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
10872         __ehdr_start with hidden visibility.
10873
10874         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
10875
10876 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
10877
10878         * math/libm-test.inc (cos_test): Use accurate hex constants.
10879         (sincost_test): Likewise.
10880
10881 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
10882
10883         * math/libm-test.inc (catan_test): Add more tests.
10884         (catanh_test): Likewise.
10885
10886         * math/s_catanf.c (__catanf): Use suffixed floating-point
10887         constants.
10888         * math/s_catanhf.c (__catanhf): Likewise.
10889         * math/s_catanhl.c (__catanhl): Likewise.
10890         * math/s_catanl.c (__catanl): Likewise.
10891
10892         [BZ #15394]
10893         * math/s_catan.c (__catan): Calculate imaginary part of result
10894         with log1p not log unless computing log of number close to 0.
10895         * math/s_catanf.c (__catanf): Likewise.
10896         * math/s_catanl.c (__catanl): Likewise.
10897         * math/s_catanh.c (__catanh): Calculate real part of result with
10898         log1p not log unless computing log of number close to 0.
10899         * math/s_catanhf.c (__catanhf): Likewise.
10900         * math/s_catanhl.c (__catanhl): Likewise.
10901         * math/libm-test.inc (catan_test): Add more tests.
10902         (catanh_test): Likewise.
10903         * sysdeps/i386/fpu/libm-test-ulps: Update.
10904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10905
10906 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10907
10908         * benchtests/Makefile: Mention files in which fast and slow
10909         paths of math functions are implemented.
10910
10911 2013-04-23  Roland McGrath  <roland@hack.frob.com>
10912
10913         * sysdeps/posix/timespec_get.c: New file.
10914
10915 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10916
10917         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
10918         POWER.
10919         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
10920         for POWER.
10921         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
10922         powerpc/power5/fpu folders.
10923         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
10924         * benchtests/Makefile: Add modf testcase.
10925         * benchtests/bench-modf.c: New file: Benchmark test for mo
10926
10927 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
10928
10929         [BZ #14888]
10930         * time/Makefile (tests): Add tst-strptime-whitespace.
10931         * time/strptime_l.c (get_number): Use ISSPACE.
10932         (__strptime_internal): Likewise.
10933         * time/tst-strptime-whitespace.c: New test case.
10934
10935 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
10936
10937         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
10938         member.
10939         (_nss_files_init): Set it here.
10940
10941 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
10942
10943         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
10944         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
10945         unsigned.
10946
10947 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
10948
10949         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
10950
10951 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10952
10953         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
10954         size just once.
10955
10956 2013-04-21  David S. Miller  <davem@davemloft.net>
10957
10958         * po/ru.po: Update Russion translation from translation project.
10959
10960 2013-04-17  Adam Conrad  <adconrad@0c3.net>
10961
10962         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
10963         and setfsgid.
10964
10965 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
10966
10967         * configure.in: Remove i386 configure warning. Remove i386 case.
10968         * configure: Regenerate.
10969         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
10970         Add example to error message.
10971         * sysdeps/i386/configure: Regenerate.
10972
10973 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
10974
10975         * benchtests/Makefile (bench): Add cos, tan, slowcos and
10976         slowtan.
10977         * benchtests/cos-inputs: New file.
10978         * benchtests/slowcos-inputs: New file.
10979         * benchtests/slowcos.c: New file.
10980         * benchtests/slowtan-inputs: New file.
10981         * benchtests/slowtan.c: New file.
10982         * benchtests/tan-inputs: New file.
10983
10984 2013-04-16  Roland McGrath  <roland@hack.frob.com>
10985
10986         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
10987         considered kosher.
10988
10989 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10990
10991         * benchtests/Makefile: Include cppflags-iterator.mk to add
10992         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
10993
10994         * Makefile.in (bench-clean): New target.
10995         * benchtests/Makefile (bench-clean): Likewise.
10996
10997 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
10998
10999         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
11000
11001 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
11002
11003         * stdio-common/tstdiomisc.c: Fix coding-style violation.
11004
11005 2013-04-15  Andreas Schwab  <schwab@suse.de>
11006
11007         * nscd/grpcache.c (cache_addgr): Properly check for short write.
11008         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11009         * nscd/pwdcache.c (cache_addpw): Likewise.
11010         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
11011         more than recsize.
11012
11013 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11014
11015         * benchtests/Makefile (bench): Write all output to
11016         bench-out.tmp together.
11017
11018 2013-04-15  Andreas Schwab  <schwab@suse.de>
11019
11020         * nscd/nscd.c (main): Don't fork again after closing files.
11021
11022 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11023
11024         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
11025
11026         * benchtests/Rules (bench-deps): Collect dependencies into a
11027         single variable.  Add Makefile to dependencies.
11028         ($(objpfx)bench-%.c): Depend on bench-deps.
11029
11030 2013-04-12  Roland McGrath  <roland@hack.frob.com>
11031             Xavier Roche  <roche+kml2@exalead.com>
11032
11033         [BZ #15361]
11034         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
11035         just that it's a file descriptor.
11036         * manual/llio.texi (Synchronizing AIO Operations): Update description
11037         for EBADF error from aio_fsync.
11038
11039 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
11040
11041         * Rules (bench): Move target definition...
11042         * benchtests/Makefile: ... here.
11043
11044 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
11045
11046         * math/libm-test.inc (cos_test): Fix PI/2 test.
11047         (sincos_test): Likewise.
11048         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
11049         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
11050
11051 2013-04-11  Andreas Schwab  <schwab@suse.de>
11052
11053         [BZ #13988]
11054         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
11055         accept exponent character only when digits were seen.
11056         * stdio-common/Makefile (tests): Add bug26.
11057         * stdio-common/bug26.c: New file.
11058
11059         [BZ #14293]
11060         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
11061         non-freeable.
11062
11063 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11064
11065         * Makeconfig (rtld-prefix): Define built linker prefix.
11066         * Rules (run-bench): Use it.
11067         * math/Makefile (run-regen-ulps): Likewise.
11068
11069         * Rules (bench): Remove eval.
11070
11071 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
11072             Roland McGrath  <roland@hack.frob.com>
11073             Ondrej Bilka  <neleai@seznam.cz>
11074
11075         [BZ #15346]
11076         * time/getdate.c: Include ctype.h and alloca.h.
11077         (__getdate_r): Trim leading and trailing spaces of input.
11078         * time/tst-getdate.c (tests): Add tests with leading and
11079         trailing spaces.
11080
11081 2013-04-08  Roland McGrath  <roland@hack.frob.com>
11082
11083         [BZ #14280]
11084         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
11085         when computing value.
11086
11087 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11088
11089         * math/README.libm-test (How can I generate "libm-test-ulps"?):
11090         Use testrun.sh to run libm tests.
11091
11092         [BZ #15309]
11093         * elf/dl-open.c (dl_open_worker): memset all of seen array.
11094
11095 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
11096
11097         [BZ #15264]
11098         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
11099
11100 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11101
11102         * Makefile.in (regen-ulps): New target.
11103         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
11104         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
11105         [ifneq (no,$(PERL)] (regen-ulps): New target.
11106         [ifeq (no,$(PERL)] (regen-ulps): New target.
11107         * math/libm-test.inc (ulps_file_name): Define.
11108         (output_dir): New variable.
11109         (options): Add "output-dir" option.
11110         (parse_opt): Handle 'o' case.
11111         (main): If output_dir is non-NULL use it as a prefix
11112         otherwise use "".
11113         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
11114
11115 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11116
11117         [BZ #10060, #10062]
11118         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
11119         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
11120         fail configure if __sync_val_compare_and_swap is not inlined.
11121         * sysdeps/i386/configure: Regenerate.
11122         * configure.in: Build for i686 when configured for i386.
11123         * configure: Regenerate.
11124         * README: Remove i386 reference.
11125
11126 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11127
11128         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
11129         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11130
11131 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11132
11133         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
11134         (lmsnanval): New variables.
11135         (F): Add conversion tests.
11136         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
11137         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
11138
11139         * stdio-common/tstdiomisc.c (F): Properly collect individual
11140         tests' results.
11141
11142         [BZ #14686, #15336]
11143         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
11144         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
11145         Instead, use input NaN values or generate a qNaN by arithmetic
11146         operation.  Also fix bugs to comply with the standard.
11147         * math/libm-test.inc (remainder_test): Add more tests.
11148
11149         [BZ #15335, #15342]
11150         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
11151         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
11152         input NaN values or generate a qNaN by arithmetic operation.
11153
11154         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
11155         unreachable code.
11156
11157         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
11158         definitions.
11159
11160 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
11161
11162         [BZ #14478]
11163         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
11164         underflowed result.
11165         * math/s_cexpf.c (__cexpf): Likewise.
11166         * math/s_cexpl.c (__cexpl): Likewise.
11167         * math/libm-test.inc (cexp_test): Add more tests.
11168
11169 2013-04-03  Andreas Schwab  <schwab@suse.de>
11170
11171         [BZ #15330]
11172         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
11173         order arrays from heap if bigger than alloca cutoff.
11174
11175 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
11176
11177         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
11178         (SNAN_TESTS_double): Refer to GCC PR56831.
11179         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
11180         GCC PR56828.
11181
11182 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11183
11184         * Rules (bench): Move bench.out after the run is complete.
11185
11186         * Rules (bench): Echo currently running benchmark.
11187
11188         * benchtests/Makefile (bench): Add atan and slowatan.
11189         * benchtests/atan-inputs: New file.
11190         * benchtests/slowatan-inputs: New file.
11191         * benchtests/slowatan.c: New file.
11192
11193         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
11194         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
11195         its value.
11196
11197         [BZ #15305]
11198         * sysdeps/unix/sysv/linux/kernel-features.h
11199         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
11200         __ASSUME_XFS_RESTRICTED_CHOWN.
11201         * sysdeps/unix/sysv/linux/pathconf.c
11202         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
11203         Save and restore errno.
11204
11205 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
11206
11207         [BZ #15327]
11208         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
11209         arguments using __kernel_casinh.
11210         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
11211         arguments using __kernel_casinhf.
11212         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
11213         arguments using __kernel_casinhl.
11214         * math/libm-test.inc (cacosh_test): Add more tests.
11215         * sysdeps/i386/fpu/libm-test-ulps: Update.
11216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11217
11218 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11219
11220         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
11221         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
11222
11223         * bench/Makefile (bench): Add sin and slowsin.
11224         * benchtests/sin-inputs: New file.
11225         * benchtests/slowsin-inputs: New file.
11226         * benchtests/slowsin.c: New file.
11227
11228         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
11229         (bench): Add slowexp and slowpow.
11230         (exp-ITER): Increase iterations.
11231         (pow-ITER): Likewise.
11232         * benchtests/exp-inputs: Change input.
11233         * benchtests/pow-inputs: Likewise.
11234         * benchtests/slowexp-inputs: New file.
11235         * benchtests/slowexp.c: New file.
11236         * benchtests/slowpow-inputs: New file.
11237         * benchtests/slowpow.c: New file.
11238
11239 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11240
11241         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
11242         instructions.
11243         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11244         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
11245         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
11246         * benchtests/Makefile: Add rint benchtest.
11247         * benchtests/rint-inputs: Input for rint benchtest.
11248
11249 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11250
11251         * Versions.def (libm): Add GLIBC_2.18.
11252         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
11253         hidden libm prototypes.
11254         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
11255         * math/Makefile (libm-calls): Add s_issignaling.
11256         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
11257         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
11258         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
11259         declaration.
11260         * math/math.h [__USE_GNU] (issignaling): New macro.
11261         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
11262         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
11263         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
11264         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
11265         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11266         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
11267         * manual/arith.texi (issignaling): New section.
11268         * manual/libm-err-tab.pl (@all_functions): Update comment.
11269         * math/gen-libm-test.pl (parse_args): Apply special handling for
11270         issignaling.
11271         * math/libm-test.inc (print_float, issignaling_test): New
11272         functions.
11273         (check_float_internal): Add issignaling checks.
11274         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
11275         default definition.
11276         * sysdeps/powerpc/math-tests.h: New file.
11277         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
11278         tests.
11279         * math/test-snan.c (TEST_FUNC): Likewise.
11280
11281 2013-03-30  David S. Miller  <davem@davemloft.net>
11282
11283         * po/de.po: Update from translation team.
11284
11285 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
11286
11287         [BZ #10357]
11288         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11289         imaginary part less than 1.0 and real part less than 0.5
11290         specially.
11291         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11292         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11293         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
11294         (cacos_test): Add more tests.
11295         (casin_test): Likewise.
11296         (casinh_test): Likewise.
11297         * sysdeps/i386/fpu/libm-test-ulps: Update.
11298         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11299
11300 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11301
11302         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
11303         ONE with its value.
11304
11305         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
11306         (__pow_mp): Replace ONE and MONE with their values.
11307         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11308         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
11309         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11310         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
11311         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11312         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11313
11314         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
11315
11316         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
11317         (__pow_mp): Replace ZERO and MZERO with their values.
11318         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11319         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11320         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11321         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11322         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11323         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
11324         (__sqr): Likewise.
11325
11326         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
11327
11328         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
11329
11330 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11331
11332         * include/stdlib.h [!SHARED] (__call_tls_dtors):
11333         Declare with __attribute__ ((weak)).
11334         * stdlib/exit.c (__libc_atexit) [!SHARED]:
11335         Call __call_tls_dtors only if it's not NULL.
11336
11337 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11338
11339         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
11340         didn't do it already, then set _dl_phdr and _dl_phnum based on the
11341         magic __ehdr_start linker symbol if it's defined.
11342         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
11343         them up here if it was already done.
11344
11345         * elf/dl-support.c (_dl_phdr): Make pointer to const.
11346         (_dl_aux_init): Use const in cast when setting it.
11347         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
11348         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
11349         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
11350
11351         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
11352         Declare them here.
11353         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
11354         * csu/libc-tls.c: Nor here.
11355         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
11356
11357         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
11358         (__libc_message): Never call vsyslog.
11359
11360 2013-03-28  Alan Modra  <amodra@gmail.com>
11361
11362         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
11363         Define as empty.
11364         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
11365         Likewise.
11366
11367 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11368
11369         [BZ #15214]
11370         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
11371         underflow.
11372         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11373
11374 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11375
11376         [BZ #15304]
11377         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
11378         Don't add gid passed as argument.
11379
11380         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
11381
11382 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
11383
11384         [BZ #15307]
11385         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11386         imaginary part between 1.0 and 1.5 and real part less than 0.5
11387         specially.
11388         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11389         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11390         * math/libm-test.inc (cacos_test): Add more tests.
11391         (casin_test): Likewise.
11392         (casinh_test): Likewise.
11393         * sysdeps/i386/fpu/libm-test-ulps: Update.
11394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11395
11396 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11397
11398         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
11399         constants.
11400         (norm): Likewise.
11401         (denorm): Likewise.
11402         (__dbl_mp): Likewise.
11403         (add_magnitudes): Likewise.
11404         (sub_magnitudes): Likewise.
11405         (__add): Likewise.
11406         (__sub): Likewise.
11407         (__mul): Likewise.
11408         (__sqr): Likewise.
11409         (__inv): Likewise.
11410         (__dvd): Likewise.
11411
11412         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
11413         commented code.
11414         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
11415         (__dubcos): Likewise.
11416         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
11417         (__ieee754_acos): Likewise.
11418         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11419         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
11420         (__exp1): Likewise.
11421         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11422         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11423         (log1): Likewise.
11424         (my_log2): Likewise.
11425         (checkint): Likewise.
11426         * sysdeps/ieee754/dbl-64/e_remainder.c
11427         (__ieee754_remainder): Likewise.
11428         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11429         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11430         (bsloww): Likewise.
11431         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11432
11433         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11434         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
11435         MANTISSA_STORE_T to store computations on mantissa.  Use
11436         macros for rounding and division.
11437         (denorm): Likewise.
11438         (__dbl_mp): Likewise.
11439         (add_magnitudes): Likewise.
11440         (sub_magnitudes): Likewise.
11441         (__mul): Likewise.
11442         (__sqr): Likewise.
11443         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11444         powers of two in terms of TWOPOW macro.
11445         (mp_no): Make type of mantissa as MANTISSA_T.
11446         [!RADIXI]: Define RADIXI.
11447         [!TWO52]: Define TWO52.
11448         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11449
11450 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11451
11452         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
11453         llroundl symbol when building for PPC32.
11454
11455 2013-03-24  Mark H Weaver  <mhw@netris.org>
11456
11457         * manual/arith.texi (Normalization Functions): Fix prototypes for
11458         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
11459
11460 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11461
11462         [BZ #13889]
11463         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
11464         high value to check if expl overflow.
11465         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
11466         to check for underflow and overflow.
11467         * math/libm-test.inc: Add exp test.
11468
11469 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
11470
11471         [BZ #11120]
11472         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
11473         with NOT_IN_libc.
11474
11475 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11476
11477         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
11478         symbol.
11479
11480 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11481
11482         * math/gen-libm-test.pl (parse_args, special_functions): Properly
11483         wrap blocks consisting of several statements.
11484
11485         * sysdeps/generic/math-tests.h: New file.
11486         * sysdeps/i386/fpu/math-tests.h: Likewise.
11487         * math/test-snan.c: Include it.
11488         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
11489
11490 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11491
11492         [BZ #15285]
11493         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
11494         (__ieee754_j0l): Do not improve calculations using cos of twice
11495         input for inputs above LDBL_MAX / 2.0L.
11496         (__ieee754_y0l): Likewise.
11497         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
11498         (__ieee754_j1l): Do not improve calculations using cos of twice
11499         input for inputs above LDBL_MAX / 2.0L.
11500         (__ieee754_y1l): Likewise.
11501         * math/libm-test.inc (j0_test): Add another test.
11502         (j1_test): Likewise.
11503         (y0_test): Likewise.
11504         (y1_test): Likewise.
11505         * sysdeps/i386/fpu/libm-test-ulps: Update.
11506
11507 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11508
11509         * Rules ($(objpfx)bench-%.c): Include code from a C source
11510         file.
11511
11512 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11513
11514         [BZ #15287]
11515         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11516         imaginary part 1.0 and real part less than 0.5 specially.
11517         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11518         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11519         * math/libm-test.inc (cacos_test): Add more tests.
11520         (casin_test): Likewise.
11521         (casinh_test): Likewise.
11522         * sysdeps/i386/fpu/libm-test-ulps: Update.
11523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11524
11525 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11526
11527         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
11528         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
11529
11530 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
11531
11532         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
11533         * config.make.in (config-cflags-sse4): Remove variable.
11534         (config-cflags-avx): Likewise.
11535         (config-cflags-sse2avx): Likewise.
11536         (config-cflags-novzeroupper): Likewise.
11537         (config-asflags-i686): Likewise.
11538         (have-mfma4): Likewise.
11539         (have-as-vis3): Likewise.
11540         (MIG): Likewise.
11541         * configure.in (MIG): Do not AC_SUBST.
11542         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
11543         (libc_cv_cc_sse4): Do not AC_SUBST.
11544         (libc_cv_cc_avx): Likewise.
11545         (libc_cv_cc_sse2avx): Likewise.
11546         (libc_cv_cc_novzeroupper): Likewise.
11547         (libc_cv_cc_fma4): Likewise.
11548         (libc_cv_as_i686): Likewise.
11549         (libc_cv_sparc_as_vis3): Likewise.
11550         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
11551         LIBC_CONFIG_VAR.
11552         (config-asflags-i686): Likewise.
11553         (config-cflags-avx): Likewise.
11554         (config-cflags-sse2avx): Likewise.
11555         (have-mfma4): Likewise.
11556         (config-cflags-novzeroupper): Likewise.
11557         * sysdeps/mach/configure.in (MIG): Likewise.
11558         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
11559         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
11560         LIBC_CONFIG_VAR.
11561         (config-cflags-avx): Likewise.
11562         (config-cflags-sse2avx): Likewise.
11563         (have-mfma4): Likewise.
11564         (config-cflags-novzeroupper): Likewise.
11565         * configure: Regenerated.
11566         * sysdeps/i386/configure: Likewise.
11567         * sysdeps/mach/configure: Likewise.
11568         * sysdeps/sparc/configure: Likewise.
11569         * sysdeps/x86_64/configure: Likewise.
11570
11571 2013-03-20  Roland McGrath  <roland@hack.frob.com>
11572
11573         [BZ #14812]
11574         * locale/programs/localedef.c (options): Put N_ translation marker
11575         on argument names, not just descriptions.
11576
11577 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11578
11579         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
11580
11581 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
11582
11583         [BZ #14176]
11584         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
11585
11586 2013-03-19  Roland McGrath  <roland@hack.frob.com>
11587
11588         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
11589         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
11590         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
11591         [!BEFORE_ABORT] (before_abort): New function.
11592         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
11593         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
11594         (writev_for_fatal): New function.
11595         (WRITEV_FOR_FATAL): New macro; call that.
11596         (backtrace_and_maps): New function.
11597         (BEFORE_ABORT): New macro; call that.
11598         (struct str_list): Type removed.
11599         (__libc_message, __libc_fatal): Functions removed.
11600         Include <sysdeps/posix/libc_fatal.c> instead.
11601
11602 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
11603
11604         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
11605         constants.
11606         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
11607         double constants.
11608
11609 2013-03-19  Andreas Schwab  <schwab@suse.de>
11610
11611         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
11612         * sysdeps/gnu/configure: Regenerate.
11613
11614         * configure.in: Substitute libc_cv_rtlddir.
11615         * configure: Regenerate.
11616         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
11617         * Makeconfig (rtlddir, inst_rtlddir): New variables.
11618         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
11619         * elf/Makefile (install-others, CFLAGS-interp.c)
11620         (ldso_install, common-ldd-rewrite): Likewise.
11621         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
11622         $(inst_slibdir)/$(rtld-installed-name).
11623         * scripts/rellns-sh: Add -p option.
11624         * Makerules (make-shlib-link): Use rellns-sh to get relative name
11625         for source.
11626
11627 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11628
11629         * manual/nptl.texi: Renamed to ...
11630         * manual/threads.texi: ... this.
11631         * manual/Makefile (chapters): Update.
11632
11633 2013-03-18  Roland McGrath  <roland@hack.frob.com>
11634
11635         [BZ #14812]
11636         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
11637         on argument names, not just descriptions.
11638         * malloc/memusagestat.c (options): Likewise.
11639         * nss/getent.c (options): Likewise.
11640
11641 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
11642
11643         [BZ #14812]
11644         * iconv/iconv_prog.c (options): Put N_ translation marker
11645         on argument names, not just descriptions.
11646         * iconv/iconvconfig.c (options): Likewise.
11647
11648 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
11649
11650         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
11651         implementation which is faster on all x86_64 architectures.
11652         Tested on AMD, Intel Nehalem, SNB, IVB.
11653         * sysdeps/x86_64/strnlen.S: Likewise.
11654
11655         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
11656         Remove all multiarch strlen and strnlen versions.
11657         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
11658         Remove strlen and strnlen related parts.
11659
11660         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
11661         Inline strlen part.
11662         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
11663
11664         * sysdeps/x86_64/multiarch/strlen.S: Remove.
11665         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
11666         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
11667         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
11668         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
11669         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
11670
11671 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
11672
11673         * manual/memory.texi (Malloc Tunable Parameters):
11674         Sort parameters alphabetically. Add comments for missing entries.
11675
11676 2013-03-17  David S. Miller  <davem@davemloft.net>
11677
11678         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11679
11680 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
11681
11682         [BZ #15283]
11683         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
11684         for arguments at most half maximum finite value.
11685         * math/libm-test.inc (j0_test): Add more tests.
11686         (j1_test): Likewise.
11687         (y0_test): Likewise.
11688         (y1_test): Likewise.
11689         * sysdeps/i386/fpu/libm-test-ulps: Update.
11690         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11691
11692         [BZ #14155]
11693         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
11694         1 / x and functions P and Q for arguments above 0x1p256L.
11695         (__ieee754_y0l): Likewise.
11696         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
11697         (__ieee754_y1l): Likewise.
11698         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
11699         (j1_test): Likewise.
11700         (y0_test): Likewise.
11701         (y1_test): Likewise.
11702
11703 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
11704
11705         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
11706         variable.
11707
11708 2013-03-15  Roland McGrath  <roland@hack.frob.com>
11709
11710         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
11711         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
11712         zero since it's initialized to EXEC_PAGESIZE.
11713
11714         * sysdeps/unix/sysv/linux/ldsodefs.h
11715         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
11716         * sysdeps/generic/ldsodefs.h: ... here.
11717
11718 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
11719
11720         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
11721
11722         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
11723         math/test-snan.c.
11724         * math/test-snan.c: Renamed from
11725         sysdeps/powerpc/fpu/test-powerpc-snan.c.
11726         * math/Makefile (tests): Add test-snan.
11727         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
11728         test-powerpc-snan.
11729
11730         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
11731         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
11732         functions.
11733         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
11734         __builtin_nan family of functions.
11735         * math/libm-test.inc (initialize): Initialize qnan_value with
11736         __builtin_nan family of functions.
11737         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
11738         Remove variables.
11739         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
11740         Remove functions.
11741         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
11742         storage class.  Initialize qNaN_var and sNaN_var with
11743         __builtin_nan and __builtin_nans families of functions,
11744         respectively.
11745
11746         * math/libm-test.inc (acosh_test): Also test with qNaN input.
11747         (sqrt_test): Remove duplicate test with qNaN input.
11748         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
11749         (round_test, signbit_test, significand_test): Note missing +/-Inf
11750         as well as qNaN tests.
11751
11752         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
11753         qNaN_var.  Fix a few strings, too.
11754         * math/libm-test.inc (nan_value): Rename to qnan_value.
11755         * math/gen-libm-test.pl (%beautify): Adjust to that.
11756         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
11757         * math/test-misc.c (main): Likewise.
11758         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
11759         to __qnan_bytes, and __qnan_union, respectively.
11760         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
11761         Likewise.
11762         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
11763         and lqnanval, respectively.
11764         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
11765         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
11766         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
11767         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
11768
11769         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
11770         * math/test-misc.c (main) [__x86_64__]: Enable test for long
11771         doubles.
11772
11773         * math/test-misc.c (main): Fix copy'n'pastos.
11774         * misc/tst-efgcvt.c (special): Likewise.
11775
11776         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
11777         Remove declarations.
11778
11779 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11780
11781         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
11782         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
11783         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
11784         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
11785
11786 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11787
11788         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
11789         macro to return vdso values correctly in IFUNC implementations.
11790         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
11791         Optimization by using IFUNC.
11792
11793 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11794             Richard Henderson  <rth@redhat.com>
11795             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11796
11797         * Makefile.in (bench): New target.
11798         * NEWS: Mention the benchmark framework.
11799         * Rules (bench): Likewise.
11800         (binaries-bench): Generate binaries for functions to
11801         benchmark.
11802         * benchtests/Makefile: New makefile for benchmark tests.
11803         * benchtests/bench-skeleton.c: New skeleton file for benchmark
11804         programs.
11805         * benchtests/exp-inputs: New input file for EXP function.
11806         * benchtests/pow-inputs: New input file for POW function.
11807         * scripts/bench.pl: New script to generate source files for
11808         benchmark programs.
11809
11810 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11811
11812         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11813         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
11814         computations on mantissa.  Use macros for rounding and
11815         division.
11816         (denorm): Likewise.
11817         (__dbl_mp): Likewise.
11818         (add_magnitudes): Likewise.
11819         (sub_magnitudes): Likewise.
11820         (__mul): Likewise.
11821         (__sqr): Likewise.
11822         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11823         powers of two in terms of TWOPOW macro.
11824         (mp_no): Make type of mantissa as MANTISSA_T.
11825         [!RADIXI]: Define RADIXI.
11826         [!TWO52]: Define TWO52.
11827         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11828
11829         * manual/nptl.texi (cindex): Modify threads to pthreads.
11830
11831 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
11832
11833         * sysdeps/x86_64/preconfigure: Regenerated.
11834
11835 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
11836
11837         [BZ #14155]
11838         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
11839         0x1p28 and above.
11840         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
11841         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
11842         0x1p28 and above.
11843         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
11844         * math/libm-test.inc (j0_test): Do not allow one spurious
11845         underflow exception.
11846         (y1_test): Likewise.
11847
11848 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11849
11850         * manual/Makefile (chapters): Add nptl.
11851         * manual/debug.texi (Debugging Support): Add link to Threads
11852         chapter.
11853         * manual/nptl.texi: New file.
11854
11855         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
11856
11857 2013-03-14  Petr Baudis  <pasky@ucw.cz>
11858
11859         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
11860         for non-NULL pointer before the memory validity test. Pointed
11861         out by Holger Brunck <holger.brunck@keymile.com>.
11862
11863 2013-03-13  Andreas Schwab  <schwab@suse.de>
11864
11865         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
11866         instead of .os.
11867
11868 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
11869
11870         * timezone/zic.c: Update from tzcode 2013b.
11871
11872 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
11873
11874         * manual/install.texi (Configuring and compiling):
11875         Mention i686 and i586.
11876         * INSTALL: Regenerate.
11877
11878 2013-03-12  Roland McGrath  <roland@hack.frob.com>
11879
11880         * sysdeps/init_array/elf-init.c: New file.
11881         * csu/elf-init.c
11882         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
11883         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
11884
11885         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
11886         __gmon_start__ as global, but as static with a .preinit_array pointer.
11887         * sysdeps/init_array/gmon-start.c: New file.  Use that.
11888         * sysdeps/init_array/crti.S: New file, empty except for comments.
11889         * sysdeps/init_array/crtn.S: Likewise.
11890
11891 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
11892
11893         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
11894         definining bcopy.
11895         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11896         Remove Prefer_SSE_for_memop.
11897         * sysdeps/x86_64/multiarch/init-arch.h: Remove
11898         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
11899         HAS_PREFER_SSE_FOR_MEMOP.
11900         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11901         memset-x86-64.
11902         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
11903         Remove bzero, memset ifunc support.
11904         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
11905         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
11906         * sysdeps/x86_64/multiarch/memset.S: Likewise.
11907         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
11908
11909 2013-03-11  Andreas Schwab  <schwab@suse.de>
11910
11911         [BZ #15234]
11912         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
11913         by SHLIB_COMPAT.
11914         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
11915         (GLIBC_2.16): Remove pthread_atfork.
11916
11917 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
11918
11919         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
11920         (ptestcases.h): Likewise.
11921
11922 2013-03-08  Roland McGrath  <roland@hack.frob.com>
11923
11924         * Makeconfig ($(common-objpfx)config.status): Depend on
11925         sysdeps/*/preconfigure{,.in} too.
11926
11927 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
11928
11929         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
11930         (__free_hook): Use void * instead of __malloc_ptr_t.
11931         (__malloc_hook): Likewise.
11932         (__realloc_hook): Likewise.
11933         (__memalign_hook): Likewise.
11934         (__after_morecore_hook): Likewise.
11935         * malloc/arena.c (save_malloc_hook): Likewise.
11936         (save_free_hook): Likewise.
11937         * malloc/hooks.c (malloc_hook_ini): Likewise.
11938         (realloc_hook_ini): Likewise.
11939         (memalign_hook_ini): Likewise.
11940         * malloc/malloc.c (malloc_hook_ini): Likewise.
11941         (realloc_hook_ini): Likewise.
11942         (memalign_hook_ini): Likewise.
11943         (__free_hook): Likewise.
11944         (__malloc_hook): Likewise.
11945         (__realloc_hook): Likewise.
11946         (__memalign_hook): Likewise.
11947         (__libc_malloc): Likewise.
11948         (__libc_free): Likewise.
11949         (__libc_realloc): Likewise.
11950         (__libc_memalign): Likewise.
11951         (__libc_valloc): Likewise.
11952         (__libc_pvalloc): Likewise.
11953         (__libc_calloc): Likewise.
11954         (__posix_memalign): Likewise.
11955         * malloc/morecore.c (__sbrk): Likewise.
11956         (__default_morecore): Likewise.
11957
11958         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
11959
11960         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
11961         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
11962         __malloc_ptrdiff_t.
11963
11964         * malloc/malloc.h (__malloc_size_t): Remove macro.
11965         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
11966         __malloc_size_t.
11967         (old_memalign_hook): Likewise.
11968         (old_realloc_hook): Likewise.
11969         (struct hdr): Likewise.
11970         (flood): Likewise.
11971         (mallochook): Likewise.
11972         (memalignhook): Likewise.
11973         (reallochook): Likewise.
11974         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
11975         (tr_old_realloc_hook): Likewise.
11976         (tr_old_memalign_hook): Likewise.
11977         (tr_mallochook): Likewise.
11978         (tr_reallochook): Likewise.
11979         (tr_memalignhook): Likewise.
11980
11981 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11982
11983         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
11984         default_ldbl_pack and using as default implementation.
11985         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
11986         implementation.
11987         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
11988         redundant definition.
11989         (ldbl_insert_mantissa): Likewise.
11990         (ldbl_canonicalize): Likewise.
11991         (ldbl_nearbyint): Likewise.
11992         (ldbl_pack): Rename to ldbl_pack_ppc.
11993         (ldbl_unpack): Rename to ldbl_unpack_ppc.
11994         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
11995         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
11996
11997 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11998
11999         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
12000         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
12001         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
12002         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
12003         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
12004         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
12005         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
12006         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
12007
12008 2013-03-07  Andreas Jaeger  <aj@suse.de>
12009
12010         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12011         bits/mman-linux.h.
12012
12013 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
12014
12015         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
12016         Include mpa.h and declare __MPEXP.
12017         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
12018         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
12019         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
12020         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
12021         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
12022         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
12023         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
12024
12025         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
12026         (__slowpow): Use long double EXPL and LOGL functions to
12027         compute POW.
12028         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
12029         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
12030         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
12031         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
12032         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
12033         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
12034
12035         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
12036         intermediate variable to calculate exponent.
12037         (__sqr): Likewise.
12038         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12039         Likewise.
12040         (__sqr): Likewise.
12041
12042         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
12043         [!NO__SQR]: Define __sqr.
12044         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
12045         and NO__SQR.  Remove all code except __mul and __sqr.  Include
12046         sysdeps/ieee754/dbl-64/mpa.c.
12047         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
12048
12049         [BZ #12723]
12050         * posix/Makefile (tests): Add tst-pathconf.
12051         * posix/tst-pathconf.c: New test case.
12052         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
12053         _PC_PIPE_BUF.
12054         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
12055
12056 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
12057
12058         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
12059
12060 2013-03-06  Andreas Jaeger  <aj@suse.de>
12061
12062         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
12063         definition via __MAP_ANONYMOUS.
12064
12065         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
12066         it's not part of Linux headers.
12067
12068         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
12069         (MAP_HUGE_MASK): Define.
12070
12071         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12072         Define.
12073         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12074         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12075         Define.
12076         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12077         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12078         Define.
12079         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12080         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
12081         Define.
12082         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12083
12084         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
12085         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
12086         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
12087         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
12088         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
12089         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
12090
12091         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
12092         Handle f2fs.
12093
12094         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12095         Handle f2fs and efivarfs.
12096
12097         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
12098         f2fs.
12099
12100         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
12101         (EFIVARFS_MAGIC): Add.
12102         (F2FS_LINK_MAX): Add.
12103
12104 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12105
12106         * stdio-common/vfprintf.c: Replace __builtin_expect with
12107         __glibc_unlikely.
12108
12109 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
12110
12111         [BZ #13550]
12112         * sysdeps/generic/bp-sym.h: Remove file.
12113         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
12114         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
12115         <bp-sym.h> and <bp-asm.h>.
12116         (__longjmp): Don't use BP_SYM.
12117         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
12118         and <bp-asm.h>.
12119         (memcpy): Don't use BP_SYM.
12120         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
12121         <bp-sym.h> and <bp-asm.h>.
12122         (memcpy): Don't use BP_SYM.
12123         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
12124         <bp-asm.h>.
12125         (memcpy): Don't use BP_SYM.
12126         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
12127         <bp-asm.h>.
12128         (memset): Don't use BP_SYM.
12129         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12130         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12131         (__bzero): Don't use BP_SYM.
12132         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12133         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12134         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
12135         <bp-sym.h> and <bp-asm.h>.
12136         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12137         pointers.
12138         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
12139         <bp-sym.h> and <bp-asm.h>.
12140         (memcpy): Don't use BP_SYM.
12141         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
12142         <bp-sym.h> and <bp-asm.h>.
12143         (memset): Don't use BP_SYM.
12144         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12145         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12146         (__bzero): Don't use BP_SYM.
12147         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12148         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12149         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
12150         <bp-sym.h> and <bp-asm.h>.
12151         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12152         pointers.
12153         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
12154         <bp-sym.h> and <bp-asm.h>.
12155         (memcpy): Don't use BP_SYM.
12156         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
12157         <bp-sym.h> and <bp-asm.h>.
12158         (memset): Don't use BP_SYM.
12159         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12160         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12161         (__bzero): Don't use BP_SYM.
12162         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12163         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12164         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
12165         <bp-sym.h> and <bp-asm.h>.
12166         (__memchr): Don't use BP_SYM.
12167         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
12168         <bp-sym.h> and <bp-asm.h>.
12169         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12170         pointers.
12171         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
12172         <bp-sym.h> and <bp-asm.h>.
12173         (memcpy): Don't use BP_SYM.
12174         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
12175         <bp-sym.h> and <bp-asm.h>.
12176         (__mempcpy): Don't use BP_SYM.
12177         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
12178         <bp-sym.h> and <bp-asm.h>.
12179         (__memrchr): Don't use BP_SYM.
12180         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
12181         <bp-sym.h> and <bp-asm.h>.
12182         (memset): Don't use BP_SYM.
12183         (__bzero): Likewise.
12184         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
12185         <bp-sym.h> and <bp-asm.h>.
12186         (__rawmemchr): Don't use BP_SYM.
12187         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
12188         <bp-sym.h> and <bp-asm.h>.
12189         (__STRCMP): Don't use BP_SYM.
12190         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
12191         <bp-sym.h> and <bp-asm.h>.
12192         (strchr): Don't use BP_SYM.
12193         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
12194         <bp-sym.h> and <bp-asm.h>.
12195         (__strchrnul): Don't use BP_SYM.
12196         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
12197         <bp-sym.h> and <bp-asm.h>.
12198         (strlen): Don't use BP_SYM.
12199         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
12200         <bp-sym.h> and <bp-asm.h>.
12201         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12202         pointers.
12203         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
12204         <bp-sym.h> and <bp-asm.h>.
12205         (__strnlen): Don't use BP_SYM.
12206         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
12207         <bp-sym.h> and <bp-asm.h>.
12208         (__GI__setjmp): Don't use BP_SYM.
12209         (_setjmp): Likewise.
12210         (__sigsetjmp): Likewise.
12211         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
12212         (L(start_addresses)): Don't use BP_SYM.
12213         (_start): Likewise.
12214         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
12215         <bp-asm.h>.
12216         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
12217         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
12218         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12219         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12220         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
12221         <bp-asm.h>.
12222         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
12223         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
12224         about bounded pointers.
12225         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12226         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12227         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
12228         <bp-asm.h>.
12229         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12230         about bounded pointers.  Remove GKM FIXME comments.
12231         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12232         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
12233         <bp-asm.h>.
12234         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
12235         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
12236         Remove GKM FIXME comments.
12237         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12238         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12239         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
12240         <bp-asm.h>.
12241         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12242         about bounded pointers.  Remove GKM FIXME comment.
12243         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
12244         and <bp-asm.h>.
12245         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12246         pointers.
12247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
12248         <bp-sym.h> and <bp-asm.h>.
12249         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
12251         <bp-sym.h> and <bp-asm.h>.
12252         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12253         comment.
12254
12255 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12256
12257         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
12258         call free(NULL).
12259
12260 2013-03-05  David S. Miller  <davem@davemloft.net>
12261
12262         * po/es.po: Update from translation team.
12263
12264 2013-03-05  Andreas Jaeger  <aj@suse.de>
12265
12266         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
12267         <bits/mman-linux.h>.
12268         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12269         is fine.
12270         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
12271         <bits/mman-linux.h> to end of file.
12272         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12273         is fine.
12274         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
12275         <bits/mman-linux.h> to end of file.
12276         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12277         is fine.
12278         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
12279         <bits/mman-linux.h> to end of file.
12280
12281         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
12282         (MCL_CURRENT, MCL_FUTURE): Define here.
12283
12284 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12285
12286         [BZ #15232]
12287         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
12288         attribute_hidden.
12289         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
12290
12291 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12292
12293         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
12294         fourth parameter needed for rt_sigprocmask syscall.
12295         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
12296         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
12297         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
12298         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
12299         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
12300         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
12301
12302 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
12303
12304         [BZ #13550]
12305         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
12306         comment about bounded pointers.
12307         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
12308         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
12309
12310 2013-03-04  Andreas Jaeger  <aj@suse.de>
12311
12312         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
12313         common definitions.
12314
12315         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
12316         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
12317         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
12318         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12319         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
12320         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12321
12322 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12323
12324         [BZ #15055]
12325         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
12326         __ieee754_sqrl instead of __sqrl.
12327
12328 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
12329
12330         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
12331         * sysdeps/powerpc/fpu_control.h: ... here.
12332         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
12333         * sysdeps/powerpc/bits/fenvinline.h: ... here.
12334         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
12335         * sysdeps/powerpc/bits/mathinline.h: ... here.
12336
12337 2013-03-01  Roland McGrath  <roland@hack.frob.com>
12338
12339         * elf/dl-hwcaps.c (_dl_important_hwcaps):
12340         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
12341         to just [NEED_DL_SYSINFO_DSO].
12342         * elf/dl-support.c: Likewise.
12343         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
12344         * elf/rtld.c (dl_main): Likewise.
12345         * elf/setup-vdso.h (setup_vdso): Likewise.
12346         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
12347         * sysdeps/unix/sysv/linux/dl-sysdep.c
12348         (_dl_discover_osversion): Likewise.
12349
12350 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
12351
12352         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
12353         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12354
12355 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12356
12357         * NEWS: Mention libm performance improvements and non-x86 PI
12358         futex support.
12359
12360         * csu/libc-start.c (__pthread_initialize_minimal): Change
12361         function arguments.
12362         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12363
12364 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
12365
12366         [BZ #13550]
12367         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
12368         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
12369         <bp-sym.h> and <bp-asm.h>.
12370         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12371         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
12372         and <bp-asm.h>.
12373         (memcpy): Don't use BP_SYM.
12374         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
12375         <bp-asm.h>.
12376         (__mpn_add_n): Don't use BP_SYM.
12377         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
12378         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
12379         and <bp-asm.h>.
12380         (__mpn_addmul_1): Don't use BP_SYM.
12381         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12382         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
12383         <bp-sym.h>.
12384         (_setjmp): Don't use BP_SYM.
12385         (__novmx_setjmp): Likewise.
12386         (__GI__setjmp): Likewise.
12387         (__vmx_setjmp): Likewise.
12388         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
12389         <bp-sym.h>.
12390         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
12391         (__bzero): Don't use BP_SYM.
12392         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12393         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12394         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
12395         <bp-sym.h> and <bp-asm.h>.
12396         (memcpy): Don't use BP_SYM.
12397         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
12398         <bp-sym.h> and <bp-asm.h>.
12399         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12400         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
12401         <bp-sym.h> and <bp-asm.h>.
12402         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12403         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
12404         <bp-asm.h>.
12405         (__mpn_lshift): Don't use BP_SYM.
12406         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12407         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
12408         <bp-asm.h>.
12409         (memset): Don't use BP_SYM.
12410         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12411         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12412         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
12413         <bp-asm.h>.
12414         (__mpn_mul_1): Don't use BP_SYM.
12415         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12416         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
12417         <bp-sym.h> and <bp-asm.h>.
12418         (memcmp): Don't use BP_SYM.
12419         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
12420         <bp-sym.h> and <bp-asm.h>.
12421         (memcpy): Don't use BP_SYM.
12422         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
12423         <bp-sym.h> and <bp-asm.h>.
12424         (memset): Don't use BP_SYM.
12425         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
12426         <bp-sym.h> and <bp-asm.h>.
12427         (strncmp): Don't use BP_SYM.
12428         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
12429         <bp-sym.h> and <bp-asm.h>.
12430         (memcpy): Don't use BP_SYM.
12431         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
12432         <bp-sym.h> and <bp-asm.h>.
12433         (memset): Don't use BP_SYM.
12434         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
12435         <bp-sym.h> and <bp-asm.h>.
12436         (__memchr): Don't use BP_SYM.
12437         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
12438         <bp-sym.h> and <bp-asm.h>.
12439         (memcmp): Don't use BP_SYM.
12440         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
12441         <bp-sym.h> and <bp-asm.h>.
12442         (memcpy): Don't use BP_SYM.
12443         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
12444         <bp-sym.h> and <bp-asm.h>.
12445         (__mempcpy): Don't use BP_SYM.
12446         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
12447         <bp-sym.h> and <bp-asm.h>.
12448         (__memrchr): Don't use BP_SYM.
12449         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
12450         <bp-sym.h> and <bp-asm.h>.
12451         (memset): Don't use BP_SYM.
12452         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
12453         <bp-sym.h> and <bp-asm.h>.
12454         (__rawmemchr): Don't use BP_SYM.
12455         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
12456         <bp-sym.h> and <bp-asm.h>.
12457         (__STRCMP): Don't use BP_SYM.
12458         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
12459         <bp-sym.h> and <bp-asm.h>.
12460         (strchr): Don't use BP_SYM.
12461         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
12462         <bp-sym.h> and <bp-asm.h>.
12463         (__strchrnul): Don't use BP_SYM.
12464         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
12465         <bp-sym.h> and <bp-asm.h>.
12466         (strlen): Don't use BP_SYM.
12467         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
12468         <bp-sym.h> and <bp-asm.h>.
12469         (strncmp): Don't use BP_SYM.
12470         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
12471         <bp-sym.h> and <bp-asm.h>.
12472         (__strnlen): Don't use BP_SYM.
12473         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
12474         <bp-asm.h>.
12475         (__mpn_rshift): Don't use BP_SYM.
12476         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12477         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
12478         <bp-sym.h> and <bp-asm.h>.
12479         (__sigsetjmp): Don't use BP_SYM.
12480         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
12481         (L(start_addresses)): Don't use BP_SYM.
12482         (_start): Likewise.
12483         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
12484         <bp-asm.h>.
12485         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
12486         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12487         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12488         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
12489         <bp-asm.h>.
12490         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
12491         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12492         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12493         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
12494         <bp-asm.h>.
12495         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12496         comments.
12497         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12498         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
12499         <bp-asm.h>.
12500         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
12501         FIXME comments.
12502         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12503         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12504         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
12505         <bp-asm.h>.
12506         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12507         comment.
12508         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
12509         and <bp-asm.h>.
12510         (strncmp): Don't use BP_SYM,
12511         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
12512         <bp-asm.h>.
12513         (__mpn_sub_n): Don't use BP_SYM.
12514         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12515         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
12516         and <bp-asm.h>.
12517         (__mpn_submul_1): Don't use BP_SYM.
12518         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
12520         <bp-sym.h> and <bp-asm.h>.
12521         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
12523         <bp-sym.h> and <bp-asm.h>.
12524         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12525         comment.
12526
12527 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12528
12529         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
12530         Use ZK to minimize writes to Z.
12531         (sub_magnitudes): Simplify code a bit.
12532         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
12533         Use ZK to minimize writes to Z.
12534         (sub_magnitudes): Simplify code a bit.
12535
12536 2013-02-27  Roland McGrath  <roland@hack.frob.com>
12537
12538         * csu/gmon-start.c: Add special exception to license text.
12539
12540 2013-02-27  Richard Henderson  <rth@redhat.com>
12541
12542         * scripts/config.guess: Update from config.git.
12543         * scripts/config.sub: Likewise.
12544
12545 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
12546
12547         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
12548
12549         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
12550
12551         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
12552
12553         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
12554
12555         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
12556
12557 2013-02-26  Roland McGrath  <roland@hack.frob.com>
12558
12559         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
12560         [$(build-shared = yes].
12561
12562 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12563
12564         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
12565         (__mul): Reduce iterations for calculating mantissa.
12566
12567         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
12568         MPTWO.
12569         (__mpranred): Likewise.
12570
12571         [BZ #15160]
12572         * malloc/memusagestat.c (main): Draw graphs for heap and stack
12573         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
12574
12575 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12576
12577         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
12578         Define __attribute__.
12579
12580 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12581
12582         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
12583         unused.
12584         * posix/regex_internal.h (__attribute): Remove.
12585         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
12586         (re_string_context_at): Likewise.
12587         (bitset_not): Use __attribute__ and mark function as possibly
12588         unused.
12589         (bitset_merge): Likewise.
12590         (bitset_mask): Likewise.
12591         (re_string_char_size_at): Likewise.
12592         (re_string_wchar_at): Likewise.
12593         (re_string_elem_size_at): Likewise.
12594
12595 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12596
12597         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
12598         code.
12599         (cc32): Likewise.
12600
12601         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
12602         (__acr): Likewise.
12603         (__cpy): Likewise.
12604         (norm): Likewise.
12605         (denorm): Likewise.
12606         (__dbl_mp): Likewise.
12607         (add_magnitudes): Likewise.
12608         (sub_magnitudes): Likewise.
12609         (__mul): Likewise.
12610         (__inv): Likewise.
12611
12612         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
12613         style.
12614
12615         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
12616         style.
12617
12618         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
12619         code.
12620
12621         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
12622         up changes with default code.
12623         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
12624         Likewise.
12625
12626 2013-02-24  Allan McRae  <allan@archlinux.org>
12627
12628         * manual/socket.texi (The Internet Namespace): Order menu items
12629         to match that in the file.
12630
12631         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
12632         node listing of the info page menu.
12633
12634 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
12635
12636         [BZ #13550]
12637         * sysdeps/i386/bp-asm.h: Remove file.
12638         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12639         (PARMS): Do not use macros from bp-asm.h.
12640         (S1): Likewise.
12641         (S2): Likewise.
12642         (SIZE): Likewise.
12643         (__mpn_add_n): Do not use BP_SYM
12644         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
12645         "bp-asm.h".
12646         (PARMS): Do not use macros from bp-asm.h.
12647         (S1): Likewise.
12648         (SIZE): Likewise.
12649         (__mpn_addmul_1): Do not use BP_SYM
12650         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
12651         "bp-asm.h".
12652         (PARMS): Do not use macros from bp-asm.h.
12653         (SIGMSK): Likewise.
12654         (_setjmp): Likewise.  Do not use BP_SYM.
12655         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
12656         "bp-asm.h".
12657         (PARMS): Do not use macros from bp-asm.h.
12658         (SIGMSK): Likewise.
12659         (setjmp): Likewise.  Do not use BP_SYM.
12660         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
12661         "bp-asm.h".
12662         (PARMS): Do not use macros from bp-asm.h.
12663         (__frexp): Do not use BP_SYM.
12664         (frexp): Likewise.
12665         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
12666         "bp-asm.h".
12667         (PARMS): Do not use macros from bp-asm.h.
12668         (__frexpf): Do not use BP_SYM.
12669         (frexpf): Likewise.
12670         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
12671         "bp-asm.h".
12672         (PARMS): Do not use macros from bp-asm.h.
12673         (__frexpl): Do not use BP_SYM.
12674         (frexpl): Likewise.
12675         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
12676         "bp-asm.h".
12677         (PARMS): Do not use macros from bp-asm.h.
12678         (__remquo): Do not use BP_SYM.
12679         (remquo): Likewise.
12680         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
12681         "bp-asm.h".
12682         (PARMS): Do not use macros from bp-asm.h.
12683         (__remquof): Do not use BP_SYM.
12684         (remquof): Likewise.
12685         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
12686         "bp-asm.h".
12687         (PARMS): Do not use macros from bp-asm.h.
12688         (__remquol): Do not use BP_SYM.
12689         (remquol): Likewise.
12690         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
12691         "bp-asm.h".
12692         (PARMS): Do not use macros from bp-asm.h.
12693         (DEST): Likewise.
12694         (SRC): Likewise.
12695         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
12696         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
12697         "bp-asm.h".
12698         (PARMS): Do not use macros from bp-asm.h.
12699         (strlen): Do not use BP_SYM.
12700         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
12701         "bp-asm.h".
12702         (PARMS): Do not use macros from bp-asm.h.
12703         (S1): Likewise.
12704         (S2): Likewise.
12705         (SIZE): Likewise.
12706         (__mpn_add_n): Do not use BP_SYM.
12707         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
12708         "bp-asm.h".
12709         (PARMS): Do not use macros from bp-asm.h.
12710         (S1): Likewise.
12711         (SIZE): Likewise.
12712         (__mpn_addmul_1): Do not use BP_SYM.
12713         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
12714         weak_alias.
12715         (bzero): Likewise.
12716         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
12717         "bp-asm.h".
12718         (PARMS): Do not use macros from bp-asm.h.
12719         (S): Likewise.
12720         (SIZE): Likewise.
12721         (__mpn_lshift): Do not use BP_SYM.
12722         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
12723         "bp-asm.h".
12724         (PARMS): Do not use macros from bp-asm.h.
12725         (DEST): Likewise.
12726         (SRC): Likewise.
12727         (LEN): Likewise.
12728         (memcpy): Likewise.  Do not use BP_SYM.
12729         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
12730         libc_hidden_def and weak_alias.
12731         (mempcpy): Do not use BP_SYM in weak_alias.
12732         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
12733         "bp-asm.h".
12734         (PARMS): Do not use macros from bp-asm.h.
12735         (DEST): Likewise.
12736         (LEN): Likewise.
12737         [!BZERO_P] (CHR): Likewise.
12738         (memset): Likewise.  Do not use BP_SYM.
12739         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
12740         "bp-asm.h".
12741         (PARMS): Do not use macros from bp-asm.h.
12742         (S1): Likewise.
12743         (SIZE): Likewise.
12744         (__mpn_mul_1): Do not use BP_SYM.
12745         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
12746         "bp-asm.h".
12747         (PARMS): Do not use macros from bp-asm.h.
12748         (S): Likewise.
12749         (SIZE): Likewise.
12750         (__mpn_rshift): Do not use BP_SYM.
12751         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
12752         "bp-asm.h".
12753         (PARMS): Do not use macros from bp-asm.h.
12754         (STR): Likewise.
12755         (CHR): Likewise.
12756         (strchr): Likewise.  Do not use BP_SYM.
12757         (index): Do not use BP_SYM in weak_alias.
12758         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
12759         "bp-asm.h".
12760         (PARMS): Do not use macros from bp-asm.h.
12761         (DEST): Likewise.
12762         (SRC): Likewise.
12763         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
12764         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
12765         "bp-asm.h".
12766         (PARMS): Do not use macros from bp-asm.h.
12767         (strlen): Do not use BP_SYM.
12768         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
12769         "bp-asm.h".
12770         (PARMS): Do not use macros from bp-asm.h.
12771         (S1): Likewise.
12772         (S2): Likewise.
12773         (SIZE): Likewise.
12774         (__mpn_sub_n): Do not use BP_SYM.
12775         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
12776         "bp-asm.h".
12777         (PARMS): Do not use macros from bp-asm.h.
12778         (S1): Likewise.
12779         (SIZE): Likewise.
12780         (__mpn_submul_1): Do not use BP_SYM.
12781         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
12782         "bp-asm.h".
12783         (PARMS): Do not use macros from bp-asm.h.
12784         (S1): Likewise.
12785         (S2): Likewise.
12786         (SIZE): Likewise.
12787         (__mpn_add_n): Do not use BP_SYM.
12788         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
12789         weak_alias.
12790         (bzero): Likewise.
12791         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
12792         "bp-asm.h".
12793         (PARMS): Do not use macros from bp-asm.h.
12794         (BLK2): Likewise.
12795         (LEN): Likewise.
12796         (memcmp): Do not use BP_SYM.
12797         (bcmp): Do not use BP_SYM in weak_alias.
12798         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
12799         "bp-asm.h".
12800         (PARMS): Do not use macros from bp-asm.h.
12801         (DEST): Likewise.
12802         (SRC): Likewise.
12803         (LEN): Likewise.
12804         (memcpy): Likewise.  Do not use BP_SYM.
12805         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
12806         "bp-asm.h".
12807         (PARMS): Do not use macros from bp-asm.h.
12808         (DEST): Likewise.
12809         (SRC): Likewise.
12810         (LEN): Likewise.
12811         (memmove): Likewise.  Do not use BP_SYM.
12812         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
12813         "bp-asm.h".
12814         (PARMS): Do not use macros from bp-asm.h.
12815         (DEST): Likewise.
12816         (SRC): Likewise.
12817         (LEN): Likewise.
12818         (__mempcpy): Likewise.  Do not use BP_SYM.
12819         (mempcpy): Do not use BP_SYM in weak_alias.
12820         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
12821         "bp-asm.h".
12822         (PARMS): Do not use macros from bp-asm.h.
12823         (DEST): Likewise.
12824         (LEN): Likewise.
12825         [!BZERO_P] (CHR): Likewise.
12826         (memset): Likewise.  Do not use BP_SYM.
12827         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
12828         "bp-asm.h".
12829         (PARMS): Do not use macros from bp-asm.h.
12830         (STR2): Likewise.
12831         (strcmp): Do not use BP_SYM.
12832         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
12833         "bp-asm.h".
12834         (PARMS): Do not use macros from bp-asm.h.
12835         (STR): Likewise.
12836         (DELIM): Likewise.
12837         [USE_AS_STRTOK_R] (SAVE): Likewise.
12838         (FUNCTION): Likewise.  Do not use BP_SYM.
12839         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
12840         aliases.
12841         (strtok_r): Likewise.
12842         (__GI___strtok_r): Likewise.
12843         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12844         (PARMS): Do not use macros from bp-asm.h.
12845         (S): Likewise.
12846         (SIZE): Likewise.
12847         (__mpn_lshift): Do not use BP_SYM.
12848         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12849         (PARMS): Do not use macros from bp-asm.h.
12850         (STR): Likewise.
12851         (CHR): Likewise.
12852         (__memchr): Do not use BP_SYM.
12853         (memchr): Do not use BP_SYM in weak_alias.
12854         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12855         (PARMS): Do not use macros from bp-asm.h.
12856         (BLK2): Likewise.
12857         (LEN): Likewise.
12858         (memcmp): Do not use BP_SYM.
12859         (bcmp): Do not use BP_SYM in weak_alias.
12860         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
12861         (PARMS): Do not use macros from bp-asm.h.
12862         (S1): Likewise.
12863         (SIZE): Likewise.
12864         (__mpn_mul_1): Do not use BP_SYM.
12865         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
12866         "bp-asm.h".
12867         (PARMS): Do not use macros from bp-asm.h.
12868         (STR): Likewise.
12869         (CHR): Likewise.
12870         (__rawmemchr): Do not use BP_SYM.
12871         (rawmemchr): Do not use BP_SYM in weak_alias.
12872         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12873         (PARMS): Do not use macros from bp-asm.h.
12874         (S): Likewise.
12875         (SIZE): Likewise.
12876         (__mpn_rshift): Do not use BP_SYM.
12877         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12878         (PARMS): Do not use macros from bp-asm.h.
12879         (SIGMSK): Likewise.
12880         (__sigsetjmp): Likewise.  Do not use BP_SYM.
12881         * sysdeps/i386/start.S: Do not include "bp-sym.h".
12882         (_start): Do not use BP_SYM.
12883         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
12884         (PARMS): Do not use macros from bp-asm.h.
12885         (DEST): Likewise.
12886         (SRC): Likewise.
12887         (__stpcpy): Likewise.  Do not use BP_SYM.
12888         (stpcpy): Do not use BP_SYM in weak_alias.
12889         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
12890         "bp-asm.h".
12891         (PARMS): Do not use macros from bp-asm.h.
12892         (DEST): Likewise.
12893         (SRC): Likewise.
12894         (LEN): Likewise.
12895         (__stpncpy): Likewise.  Do not use BP_SYM.
12896         (stpncpy): Do not use BP_SYM in weak_alias.
12897         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12898         (PARMS): Do not use macros from bp-asm.h.
12899         (STR): Likewise.
12900         (CHR): Likewise.
12901         (strchr): Likewise.  Do not use BP_SYM.
12902         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
12903         "bp-asm.h".
12904         (PARMS): Do not use macros from bp-asm.h.
12905         (STR): Likewise.
12906         (CHR): Likewise.
12907         (__strchrnul): Likewise.  Do not use BP_SYM.
12908         (strchrnul): Do not use BP_SYM in weak_alias.
12909         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
12910         "bp-asm.h".
12911         (PARMS): Do not use macros from bp-asm.h.
12912         (STOP): Likewise.
12913         (strcspn): Do not use BP_SYM.
12914         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
12915         "bp-asm.h".
12916         (PARMS): Do not use macros from bp-asm.h.
12917         (STR): Likewise.
12918         (STOP): Likewise.
12919         (strpbrk): Likewise.  Do not use BP_SYM.
12920         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
12921         "bp-asm.h".
12922         (PARMS): Do not use macros from bp-asm.h.
12923         (STR): Likewise.
12924         (CHR): Likewise.
12925         (strrchr): Likewise.  Do not use BP_SYM.
12926         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
12927         (PARMS): Do not use macros from bp-asm.h.
12928         (SKIP): Likewise.
12929         (strspn): Do not use BP_SYM.
12930         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
12931         (PARMS): Do not use macros from bp-asm.h.
12932         (STR): Likewise.
12933         (DELIM): Likewise.
12934         (SAVE): Likewise.
12935         (FUNCTION): Likewise.  Do not use BP_SYM.
12936         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
12937         aliases.
12938         (strtok_r): Likewise.
12939         (__GI___strtok_r): Likewise.
12940         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12941         (PARMS): Do not use macros from bp-asm.h.
12942         (S1): Likewise.
12943         (S2): Likewise.
12944         (SIZE): Likewise.
12945         (__mpn_sub_n): Do not use BP_SYM.
12946         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
12947         "bp-asm.h".
12948         (PARMS): Do not use macros from bp-asm.h.
12949         (S1): Likewise.
12950         (SIZE): Likewise.
12951         (__mpn_submul_1): Do not use BP_SYM.
12952         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
12953         <bp-sym.h>.
12954         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
12955         and <bp-asm.h>.
12956         (PARMS): Do not use macros from bp-asm.h.
12957         (FLAGS): Likewise.
12958         (PTID): Likewise.
12959         (TLS): Likewise.
12960         (CTID): Likewise.
12961         (__clone): Do not use BP_SYM.
12962         (clone): Do not use BP_SYM in weak_alias.
12963         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
12964         and <bp-asm.h>.
12965         (PARMS): Do not use macros from bp-asm.h.
12966         (LEN): Likewise.
12967         (__mmap64): Do not use BP_SYM.
12968         (mmap64): Do not use BP_SYM in weak_alias.
12969         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
12970         <bp-sym.h> and <bp-asm.h>.
12971         (PARMS): Do not use macros from bp-asm.h.
12972         (__posix_fadvise64_l64): Do not use BP_SYM.
12973         * sysdeps/unix/sysv/linux/i386/semtimedop.S
12974         (PARMS): Do not use macros from bp-asm.h.
12975         (NSOPS): Likewise.
12976         (semtimedop): Do not use BP_SYM.
12977         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
12978         and <bp-asm.h>.
12979
12980 2013-02-21  Allan McRae  <allan@archlinux.org>
12981
12982         * manual/message.texi (Charset conversion in gettext):
12983         Move @end statement to beginning of line.
12984
12985 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12986
12987         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
12988         static.
12989         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
12990         Likewise.
12991
12992         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
12993         (denorm): Likewise.
12994         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
12995         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
12996
12997 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12998
12999         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
13000         tail-call to the resolved function if pltexit isn't needed.
13001
13002 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
13003
13004         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
13005         or Y being zero as being unlikely.
13006         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
13007         Likewise.
13008
13009 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
13010
13011         * manual/nss.texi (System Databases and Name Service Switch):
13012         Remove frobnicate @pxref.
13013
13014 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
13015
13016         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
13017         __attribute__ ((unused)) to __attribute__ ((__unused__)).
13018
13019 2013-02-20  Petr Machata  <pmachata@redhat.com>
13020
13021         * elf/elf.h (R_ARM_TARGET1): New macro.
13022         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
13023         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
13024         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
13025         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
13026         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
13027         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
13028         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
13029         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
13030         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
13031         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
13032         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
13033         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
13034         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
13035         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
13036         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
13037         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
13038         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
13039         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
13040         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
13041         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
13042         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
13043         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
13044         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
13045         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
13046         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
13047         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
13048         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
13049         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
13050         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
13051         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
13052         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
13053         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
13054         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
13055         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
13056         (R_ARM_THM_GOT_BREL12): Likewise.
13057         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
13058         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
13059         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
13060         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
13061         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
13062         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
13063         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
13064         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
13065         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
13066
13067 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
13068
13069         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
13070         __attribute_used__ to __attribute__ ((unused)).
13071
13072 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
13073
13074         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
13075         powerpc mpa.c.
13076         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
13077         comment formatting.
13078         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
13079
13080 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
13081
13082         [BZ #13550]
13083         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
13084         Remove macro.
13085         (ENTER): Remove both macro definitions.
13086         (LEAVE): Likewise.
13087         (CHECK_BOUNDS_LOW): Likewise.
13088         (CHECK_BOUNDS_HIGH): Likewise.
13089         (CHECK_BOUNDS_BOTH): Likewise.
13090         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
13091         (RETURN_BOUNDED_POINTER): Likewise.
13092         (RETURN_NULL_BOUNDED_POINTER): Likewise.
13093         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
13094         (POP_ERRNO_LOCATION_RETURN): Likewise.
13095         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
13096         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13097         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
13098         macros.
13099         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13100         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
13101         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
13102         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
13103         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
13104         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
13105         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
13106         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
13107         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
13108         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
13109         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
13110         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
13111         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13112         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
13113         removed macros.
13114         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13115         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
13116         macros.
13117         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13118         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
13119         * sysdeps/i386/i586/memset.S (memset): Likewise.
13120         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
13121         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13122         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
13123         macros.
13124         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13125         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
13126         Change uses of L(2) to L(out).
13127         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
13128         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
13129         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
13130         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13131         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
13132         removed macros.
13133         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13134         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
13135         macros.
13136         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13137         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
13138         (RETURN): Do not use macro LEAVE.
13139         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
13140         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
13141         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
13142         * sysdeps/i386/i686/memset.S (memset): Likewise.
13143         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
13144         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
13145         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
13146         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
13147         Likewise.
13148         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13149         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
13150         L(1_2) and L(1_3) into L(1).
13151         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13152         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
13153         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13154         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
13155         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
13156         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
13157         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
13158         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13159         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
13160         macros.
13161         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
13162         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13163         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
13164         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
13165         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
13166         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
13167         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
13168         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
13169         * sysdeps/i386/strcspn.S (strcspn): Likewise.
13170         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
13171         * sysdeps/i386/strrchr.S (strrchr): Likewise.
13172         * sysdeps/i386/strspn.S (strspn): Likewise.
13173         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
13174         conditional code.
13175         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13176         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
13177         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13178         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
13179         L(1_3) into L(1_1).
13180         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
13181         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13182         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
13183         macros.
13184         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13185
13186 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
13187
13188         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
13189         macro.
13190
13191 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13192
13193         * math/atest-exp.c (exp_mpn): Remove ROUND.
13194         * math/atest-exp2.c (exp_mpn): Likewise.
13195         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
13196
13197         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
13198         * stdlib/tst-tls-atexit-lib.c: Likewise.
13199         * stdlib/tst-tls-atexit.c: Likewise.
13200
13201 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13202
13203         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
13204         and __attribute_alloc_size__.
13205
13206 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13207
13208         * include/programs/xmalloc.h: Change __attribute_alloc_size to
13209         __attribute_alloc_size__.
13210         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
13211         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
13212
13213 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13214
13215         * include/programs/xmalloc.h: New file.
13216         * catgets/gencat.c: Include it.
13217         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
13218         * elf/pldd.c: Likewise.
13219         * iconv/iconv_charmap.c: Likewise.
13220         * iconv/iconvconfig.c: Likewise.
13221         * iconv/strtab.c: Likewise.
13222         * locale/programs/locale.c: Likewise.
13223         * locale/programs/localedef.h: Likewise.
13224         * locale/programs/simple-hash.c: Likewise.
13225         * nscd/nscd.h: Likewise.
13226         * nss/makedb.c: Likewise.
13227         * sysdeps/generic/ldconfig.h: Likewise.
13228
13229 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13230
13231         * Versions.def: Add GLIBC_2.18.
13232         * include/link.h (struct link_map): New member l_tls_dtor_count.
13233         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
13234         (__call_tls_dtors): Likewise.
13235         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
13236         __cxa_thread_atexit_impl.
13237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13238         Likewise.
13239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13240         Likewise.
13241         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
13242         Likewise.
13243         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
13244         Likewise.
13245         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13246         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
13247         Likewise.
13248         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
13249         Likewise.
13250         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13251         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13252         Likewise.
13253         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
13254         (tests): Add test case tst-tls-atexit.
13255         (modules-names): Add shared library for tst-tls-atexit.
13256         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
13257         (GLIBC_PRIVATE): Add __call_tls_dtors.
13258         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
13259         for libstdc++.
13260         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
13261         * stdlib/tst-tls-atexit.c: New test case.
13262         * stdlib/tst-tls-atexit-lib.c: New test case.
13263
13264         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
13265
13266         * elf/Versions (ld): Add _dl_find_dso_for_object.
13267         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
13268         * elf/dl-open.c (_dl_find_dso_for_object): New function.
13269         (dl_open_worker): Use _dl_find_dso_for_object.
13270         * elf/dl-sym.c (do_sym): Likewise.
13271         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
13272
13273 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13274
13275         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
13276         Syntactic changes only.
13277         (_dl_runtime_profile): Do a tail-call to the resolved function.
13278
13279 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
13280
13281         [BZ #13550]
13282         * sysdeps/x86_64/bp-asm.h: Remove file.
13283         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
13284         <bp-sym.h> and <bp-asm.h>.
13285         (__clone): Do not use BP_SYM.
13286         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
13287         <bp-sym.h> and <bp-asm.h>.
13288         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13289         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
13290         "bp-asm.h".
13291         (_setjmp): Do not use BP_SYM.
13292         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
13293         "bp-asm.h".
13294         (setjmp): Do not use BP_SYM.
13295         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
13296         libc_hidden_def.
13297         (mempcpy): Do not use BP_SYM in weak_alias.
13298         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
13299         "bp-asm.h".
13300         (strchr): Do not use BP_SYM.
13301         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
13302         "bp-asm.h".
13303         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
13304         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
13305         (_start): Do not use BP_SYM.
13306         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
13307         "bp-asm.h".
13308         (strcat): Do not use BP_SYM.
13309         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
13310         "bp-asm.h".
13311         (STRCMP): Do not use BP_SYM.
13312         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
13313         "bp-asm.h".
13314         (STRCPY): Do not use BP_SYM.
13315         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
13316         "bp-asm.h".
13317         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
13318         "bp-asm.h".
13319         (FUNCTION): Do not use BP_SYM.
13320         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
13321         weak_alias.
13322         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
13323
13324 2013-02-17  Andreas Jaeger  <aj@suse.de>
13325
13326         * time/Versions: Sort entries.
13327         * string/Versions: Likewise.
13328         * resolv/Versions: Likewise.
13329         * posix/Versions: Likewise.
13330         * iconv/Versions: Likewise.
13331         * elf/Versions: Likewise.
13332         * wcsmbs/Versions: Likewise.
13333
13334 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13335
13336         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
13337         loop termination condition.
13338
13339         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
13340         variable to calculate EZ.
13341         (__sqr): Likewise.
13342
13343         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
13344         the lower precision input.
13345
13346 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
13347
13348         [BZ #13550]
13349         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
13350         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
13351         (run-via-rtld-prefix): Do not handle %-bp tests.
13352         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
13353         (all-object-suffixes): Remove .ob.
13354         (bppfx): Remove variable.
13355         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
13356         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
13357         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
13358         [$(build-bounded) = yes] (libtype.ob): Likewise.
13359         * Makerules (elide-routines.ob): Remove variable.
13360         (do-tests-clean): Do not handle *-bp.out.
13361         (common-mostlyclean): Do not handle *-bp and *-bp.out.
13362         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
13363         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
13364         (tests): Do not include $(tests-bp.out).
13365         (xtests): Do not include $(xtests-bp.out).
13366         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
13367         [$(build-bounded) = yes] ($(addprefix
13368         $(objpfx),$(binaries-bounded))): Remove rule.
13369         ($(objpfx)%-bp.out): Remove rule.
13370         * config.make.in (build-bounded): Remove variable.
13371         * crypt/Makefile [$(build-bounded) = yes]
13372         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
13373         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
13374         append to variable.
13375         [$(build-bounded) = yes] (install-lib): Likewise.
13376         [$(build-bounded) = yes] (generated): Likewise.
13377         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
13378         Remove rule.
13379         * intl/Makefile [$(build-bounded) = yes]
13380         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
13381         * math/Makefile [$(build-bounded) = yes]
13382         ($(tests:%=$(objpfx)%-bp): Likewise.
13383         * misc/Makefile [$(build-bounded) = yes]
13384         ($(objpfx)tst-tsearch-bp): Likewise.
13385         * nptl/Makeconfig (bounded-thread-library): Remove variable.
13386         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
13387         Remove dependency.
13388         * string/Makefile (o-objects.ob): Remove variable.
13389         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
13390         (CFLAGS-.ob): Remove variable.
13391         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
13392         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
13393         both definitions of variable.
13394         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
13395         (ASFLAGS-.ob): Remove variable.
13396
13397 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
13398
13399         [BZ #13550]
13400         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
13401         Remove __BOUNDED_POINTERS__ from condition.
13402         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
13403         * string/bits/string2.h [!__NO_STRING_INLINES &&
13404         !__BOUNDED_POINTERS__]: Likewise.
13405         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
13406         Likewise.
13407         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
13408         Remove conditional code.
13409         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
13410         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
13411         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
13412         condition.
13413
13414         [BZ #13550]
13415         * csu/libc-start.c: Do not include <bp-sym.h>.
13416         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
13417         * elf/dl-open.c: Do not include <bp-sym.h>.
13418         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
13419         * math/fegetenv.c: Do not include <bp-sym.h>.
13420         (fegetenv): Do not use BP_SYM in versioned symbols.
13421         * nptl/sysdeps/pthread/bits/libc-lockP.h
13422         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
13423         <bp-sym.h>.
13424         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13425         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
13426         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13427         (__pthread_mutex_destroy): Likewise.
13428         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13429         (__pthread_mutex_lock): Likewise.
13430         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13431         (__pthread_mutex_trylock): Likewise.
13432         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13433         (__pthread_mutex_unlock): Likewise.
13434         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13435         (__pthread_mutexattr_init): Likewise.
13436         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13437         (__pthread_mutexattr_destroy): Likewise.
13438         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13439         (__pthread_mutexattr_settype): Likewise.
13440         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13441         (__pthread_rwlock_init): Likewise.
13442         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13443         (__pthread_rwlock_destroy): Likewise.
13444         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13445         (__pthread_rwlock_rdlock): Likewise.
13446         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13447         (__pthread_rwlock_tryrdlock): Likewise.
13448         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13449         (__pthread_rwlock_wrlock): Likewise.
13450         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13451         (__pthread_rwlock_trywrlock): Likewise.
13452         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13453         (__pthread_rwlock_unlock): Likewise.
13454         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13455         (__pthread_key_create): Likewise.
13456         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13457         (__pthread_setspecific): Likewise.
13458         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13459         (__pthread_getspecific): Likewise.
13460         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
13461         Likewise.
13462         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13463         (_pthread_cleanup_push_defer): Likewise.
13464         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13465         (_pthread_cleanup_pop_restore): Likewise.
13466         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13467         (pthread_setcancelstate): Likewise.
13468         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
13469         <bp-sym.h>.
13470         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
13471         (memchr): Do not use BP_SYM in weak_alias.
13472         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
13473         (fegetenv): Do not use BP_SYM in versioned symbols.
13474         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
13475         (fesetenv): Do not use BP_SYM in versioned symbols.
13476         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13477         (feupdateenv): Do not use BP_SYM in versioned symbols.
13478         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13479         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13480         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
13481         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
13482         (open64): Do not use BP_SYM in weak_alias.
13483         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
13484         (fegetenv): Do not use BP_SYM in versioned symbols.
13485         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
13486         (fesetenv): Do not use BP_SYM in versioned symbols.
13487         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13488         (feupdateenv): Do not use BP_SYM in versioned symbols.
13489         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
13490         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
13491         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
13492         (feraiseexcept): Do not use BP_SYM in versioned symbols.
13493         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13494         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13495         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
13496         <bp-sym.h>.
13497         (__libc_start_main): Do not use BP_SYM.
13498
13499 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13500
13501         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
13502         redundant return line.
13503         (norm): Likewise.
13504         (denorm): Likewise.
13505         (dbl_mp): Likewise.
13506         (sub_magnitudes): Likewise.
13507         (__add): Likewise.
13508         (__sub): Likewise.
13509         (__mul): Likewise.
13510         (__inv): Likewise.
13511         (__dvd): Likewise.
13512         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
13513         (norm): Likewise.
13514         (denorm): Likewise.
13515         (dbl_mp): Likewise.
13516         (sub_magnitudes): Likewise.
13517         (__add): Likewise.
13518         (__sub): Likewise.
13519         (__mul): Likewise.
13520         (__inv): Likewise.
13521         (__dvd): Likewise.
13522
13523         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
13524         instead of __mul.
13525         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13526         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
13527         (cc32): Likewise.
13528
13529         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
13530         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
13531         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
13532         of __mul for squares.
13533         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
13534         function
13535         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
13536         Likewise.
13537         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
13538         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13539
13540 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
13541
13542         [BZ #13550]
13543         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
13544         code.
13545         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
13546         prototype or function definition.  Rename ubp_* variables and
13547         parameters.  Remove argv definitions conditional on
13548         [__BOUNDED_POINTERS__].
13549         * debug/backtrace.c (__backtrace): Do not use __unbounded.
13550         * elf/dl-runtime.c (_dl_fixup): Likewise.
13551         * include/set-hooks.h (RUN_HOOK): Likewise.
13552         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
13553         definition.
13554         * string/strcpy.c (strcpy): Do not use __unbounded.
13555         * sysdeps/generic/frame.h (struct layout): Likewise.
13556         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
13557         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
13558         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
13559         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
13560         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
13561         (__backtrace): Likewise.
13562         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
13563         use __ptrvalue.
13564         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
13565         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
13566         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
13567         Likewise.
13568         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
13569         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
13570         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
13571         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13572         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
13573         Do not use __unbounded.
13574         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
13575         Rename __unboundedrlimits parameter to rlimits in prototype.
13576         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
13577         Do not use __unbounded.
13578         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
13579         not use __ptrvalue.
13580         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13581         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
13582         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13583         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
13584         __ptrvalue or __unbounded.
13585         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
13586         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
13587         use __unbounded.
13588         (__new_msgctl): Do not use __ptrvalue.
13589         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
13590         __unbounded.
13591         (__libc_msgrcv): Do not use __ptrvalue.
13592         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
13593         startup_info): Do not use __unbounded.
13594         (__libc_start_main): Likewise.  Rename ubp_* variables and
13595         parameters.  Remove argv definitions conditional on
13596         [__BOUNDED_POINTERS__].
13597         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
13598         __ptrvalue.
13599         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
13600         use __unbounded.
13601         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
13602         or __ptrvalue.
13603         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
13604         use __unbounded.
13605         (__new_shmctl): Do not use __ptrvalue.
13606         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
13607         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
13608         Likewise.
13609         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
13610         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
13611         (__libc_sigaction): Likewise.
13612         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
13613         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
13614         Likewise.
13615         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13616
13617 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
13618
13619         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
13620
13621         * string/mempcpy.c: Implement by calling memcpy.
13622
13623 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13624
13625         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
13626
13627         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
13628         evaluation.
13629
13630         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
13631         values in the mantissa.
13632
13633         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
13634         minimize writes to Z.
13635         (sub_magnitudes): Simplify code a bit.
13636
13637 2013-02-12  Roland McGrath  <roland@hack.frob.com>
13638
13639         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
13640         from the message.  The linker prefixes all warnings with that already.
13641
13642 2013-02-12  Andreas Schwab  <schwab@suse.de>
13643
13644         [BZ #15078]
13645         * posix/regexec.c (extend_buffers): Add parameter min_len.
13646         (check_matching): Pass minimum needed length.
13647         (clean_state_log_if_needed): Likewise.
13648         (get_subexp): Likewise.
13649         * posix/Makefile (tests): Add bug-regex34.
13650         (bug-regex34-ENV): Define.
13651         * posix/bug-regex34.c: New file.
13652
13653         [BZ #11561]
13654         * posix/regcomp.c (parse_bracket_exp): When looking up collating
13655         elements compare against the byte sequence of it, not its name.
13656         * posix/Makefile (tests): Add bug-regex35.
13657         (bug-regex35-ENV): Define.
13658         * posix/bug-regex35.c: New file.
13659
13660 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13661
13662         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
13663         comment.
13664         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
13665         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
13666         (CHECK_EOL): Add undef.
13667
13668 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
13669
13670         * bits/stdlib-bsearch.h: New file.
13671         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
13672         * stdlib/stdlib.h: Likewise.
13673
13674 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13675
13676         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
13677         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
13678         declaration.
13679         * manual/search.texi (Array Search Function): Add missing const in
13680         lfind prototype.
13681         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
13682         declaration to use rlim_t.
13683         (Basic Scheduling Functions): Remove erroneous const from
13684         sched_getparam prototype.  Remove erroneous * from
13685         sched_get_priority_max and sched_get_priority_min prototypes.
13686         (Resource Usage): Fix summary @comment on vtimes to refer to
13687         sys/vtimes.h rather than vtimes.h.
13688         Add missing *s in vtimes prototype.
13689         (Limits on Resources): Fix ulimit prototype to return long int.
13690         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
13691         prototypes to use long int rather than double.
13692         (BSD Random): Fix initstate and setstate to use char *, not void *.
13693         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
13694         prototype to make second argument 'struct aiocb64 *const[]'.
13695         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
13696         (Status of AIO Operations): Remove erroneous const in aio_return and
13697         aio_return64 prototypes.
13698         (Synchronizing I/O): Fix sync prototype to return void.
13699         * manual/startup.texi (Suboptions): Remove an erroneous const in
13700         getsubopt prototype.
13701         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
13702         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
13703         use size_t rather than int.
13704         (Scanning All Users): Likewise for getpwent_r.
13705         (Setting Groups): Add missing const to setgroups prototype.
13706         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
13707         * manual/socket.texi (Host Names): Fix gethostbyaddr and
13708         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
13709         'const void *' rather than 'const char *'.
13710         (Host Address Functions): Likewise for inet_ntop.
13711         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
13712         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
13713         ssize_t for return value.
13714         (Sending Data): Likewise for send, sendto, sendmsg.
13715         (Socket Option Functions): Add a missing const in setsockopt prototype.
13716         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
13717         use wchar_t for the argument.
13718         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
13719         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
13720         take no arguments.
13721         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
13722         double/float/long double for second argument.
13723         Fix return types of significand, significandf, significandl.
13724         * manual/filesys.texi (Setting Permissions): Use mode_t for second
13725         argument in fchmod prototype.
13726         (File Owner): Use uid_t and gid_t in fchown prototype.
13727         (File Times): Add const to utimes, futimes, and lutimes prototypes.
13728         (Making Special Files): Use mode_t and dev_t in mknod prototype.
13729         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
13730         use 'const struct dirent **' as argument types to CMP function pointer
13731         argument.
13732         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
13733         (File Times): Fix summary magic @comment for struct utimbuf and utime
13734         to refer to utime.h, not time.h.
13735         * manual/string.texi (Argz Functions): Add missing const in
13736         argz_extract and argz_next prototypes.
13737         (Finding Tokens in a String): Likewise for basename.
13738         (String/Array Comparison): Fix typo in wcscasecmp prototype.
13739         (Copying and Concatenation): Fix typo in wmemmove prototype.
13740         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
13741         (Signal Stack): Remove erroneous const in sigstack prototype.
13742         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
13743         prototype.
13744         (Simple Calendar Time): Likewise for stime.
13745         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
13746         prototype.
13747         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
13748         say sys/sysctl.h instead.
13749         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
13750         and vsyslog prototypes.
13751
13752 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13753
13754         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
13755         Remove.
13756
13757 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13758
13759         * misc/sys/mman.h: Fix typo in mremap comment.
13760
13761 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13762
13763         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
13764         the '\0' terminator.
13765
13766 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13767
13768         [BZ #13550]
13769         * debug/segfault.c: Don't include <bp-checks.h>.
13770         * sysdeps/generic/bp-checks.h: Remove file.
13771         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
13772         (__GETDENTS): Don't use CHECK_N.
13773         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
13774         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
13775         (__getgroups): Don't use CHECK_N.
13776         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
13777         (setgroups): Don't use CHECK_N.
13778         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
13779         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13780         (__libc_msgrcv): Don't use CHECK_N.
13781         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
13782         (__libc_msgsnd): Don't use CHECK_N.
13783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
13784         <bp-checks.h>.
13785         (__libc_pread): Don't use CHECK_N.
13786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
13787         include <bp-checks.h>.
13788         (__libc_pread64): Don't use CHECK_N.
13789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
13790         include <bp-checks.h>.
13791         (__libc_pwrite): Don't use CHECK_N.
13792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
13793         include <bp-checks.h>.
13794         (__libc_pwrite64): Don't use CHECK_N.
13795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
13796         <bp-checks.h>.
13797         (__libc_pread): Don't use CHECK_N.
13798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
13799         include <bp-checks.h>.
13800         (__libc_pread64): Don't use CHECK_N.
13801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
13802         include <bp-checks.h>.
13803         (__libc_pwrite): Don't use CHECK_N.
13804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
13805         include <bp-checks.h>.
13806         (__libc_pwrite64): Don't use CHECK_N.
13807         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
13808         (do_pread): Don't use CHECK_N.
13809         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
13810         (do_pread64): Don't use CHECK_N.
13811         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
13812         (do_pwrite): Don't use CHECK_N.
13813         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
13814         (do_pwrite64): Don't use CHECK_N.
13815         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
13816         (__libc_readv): Don't use CHECK_N.
13817         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
13818         (semop): Don't use CHECK_N.
13819         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
13820         <bp-checks.h>.
13821         (semtimedop): Don't use CHECK_N.
13822         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
13823         (__libc_pread): Don't use CHECK_N.
13824         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
13825         <bp-checks.h>.
13826         (__libc_pread64): Don't use CHECK_N.
13827         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
13828         <bp-checks.h>.
13829         (__libc_pwrite): Don't use CHECK_N.
13830         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
13831         <bp-checks.h>.
13832         (__libc_pwrite64): Don't use CHECK_N.
13833         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
13834         <bp-checks.h>.
13835         (__libc_msgrcv): Don't use CHECK_N.
13836         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
13837         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
13838         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
13839         (__libc_writev): Don't use CHECK_N.
13840
13841 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13842
13843         * string/strcpy.c: Removed unused variable.
13844
13845         * Makeconfig (+sysdep-includes): Define with := rather than =.
13846         Use an existing include/ subdir of each sysdeps dir before it.
13847
13848 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13849
13850         * nscd/connection.c (register_traced_file): Comment function.
13851         [HAVE_INOTIFY] (union __inev): Define.
13852         [HAVE_INOTIFY] (inotify_check_files): New function.
13853         [HAVE_INOTIFY] (clear_db_cache): Likewise.
13854         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
13855         clear_db_cache.
13856         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
13857
13858 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13859
13860         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
13861         loaded if not already and that a failure is permanent.
13862
13863 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13864
13865         [BZ #15006]
13866         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
13867         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
13868
13869 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13870
13871         [BZ #13550]
13872         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
13873         (CHECK_1_NULL_OK): Likewise.
13874         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
13875         (__fxstat): Do not use CHECK_1.
13876         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
13877         <bp-checks.h>.
13878         (___fxstat64): Do not use CHECK_1.
13879         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
13880         <bp-checks.h>.
13881         (__fxstatat): Do not use CHECK_1.
13882         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
13883         <bp-checks.h>.
13884         (__fxstatat64): Do not use CHECK_1.
13885         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
13886         <bp-checks.h>.
13887         (__fxstat): Do not use CHECK_1.
13888         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
13889         <bp-checks.h>.
13890         (__fxstatat): Do not use CHECK_1.
13891         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13892         <bp-checks.h>.
13893         (__getresgid): Do not use CHECK_1.
13894         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13895         <bp-checks.h>.
13896         (__getresuid): Do not use CHECK_1.
13897         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
13898         <bp-checks.h>.
13899         (__lxstat): Do not use CHECK_1.
13900         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13901         <bp-checks.h>.
13902         (__old_msgctl): Do not use CHECK_1.
13903         (__new_msgctl): Likewise.
13904         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
13905         <bp-checks.h>.
13906         (__new_setrlimit): Do not use CHECK_1.
13907         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13908         <bp-checks.h>.
13909         (__old_shmctl): Do not use CHECK_1.
13910         (__new_shmctl): Likewise.
13911         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
13912         <bp-checks.h>.
13913         (__xstat): Do not use CHECK_1.
13914         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
13915         (__lxstat): Do not use CHECK_1.
13916         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
13917         <bp-checks.h>.
13918         (___lxstat64): Do not use CHECK_1.
13919         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
13920         (__old_msgctl): Do not use CHECK_1.
13921         (__new_msgctl): Likewise.
13922         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
13923         <bp-checks.h>.
13924         (__gettimeofday): Do not use CHECK_1.
13925         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
13926         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
13927         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
13928         <bp-checks.h>.
13929         (__gettimeofday): Do not use CHECK_1.
13930         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
13931         (__old_shmctl): Do not use CHECK_1_NULL_OK.
13932         (__new_shmctl): Do not use CHECK_1.
13933         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
13934         <bp-checks.h>.
13935         (do_sigtimedwait): Do not use CHECK_1.
13936         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
13937         <bp-checks.h>.
13938         (do_sigwaitinfo): Do not use CHECK_1.
13939         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
13940         <bp-checks.h>.
13941         (msgctl): Do not use CHECK_1.
13942         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
13943         <bp-checks.h>.
13944         (shmctl): Do not use CHECK_1.
13945         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
13946         (ustat): Do not use CHECK_1.
13947         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
13948         <bp-checks.h>.
13949         (__fxstat): Do not use CHECK_1.
13950         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
13951         <bp-checks.h>.
13952         (__fxstatat): Do not use CHECK_1.
13953         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
13954         <bp-checks.h>.
13955         (__lxstat): Do not use CHECK_1.
13956         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
13957         <bp-checks.h>.
13958         (__xstat): Do not use CHECK_1.
13959         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
13960         (__xstat): Do not use CHECK_1.
13961         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
13962         (___xstat64): Do not use CHECK_1.
13963
13964         [BZ #13550]
13965         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
13966         definitions.
13967         (CHECK_BOUNDS_HIGH): Likewise.
13968         * string/strcpy.c: Do not include <bp-checks.h>.
13969         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
13970
13971 2013-02-07  Roland McGrath  <roland@hack.frob.com>
13972
13973         * nscd/nscd-client.h (__nscd_drop_map_ref):
13974         Add __attribute__ ((unused)).
13975         * nis/nss-nisplus.h (niserr2nss): Likewise.
13976
13977         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
13978         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
13979
13980         * csu/libc-tls.c (init_static_tls, init_slotinfo):
13981         Remove inline keyword.
13982         * include/rounding-mode.h (round_away): Likewise.
13983         * libio/wfileops.c (adjust_wide_data): Likewise.
13984         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
13985         (__m128i_strloadu_tolower): Likewise.
13986         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
13987         (__m128i_strloadu_tolower): Likewise.
13988         * time/mktime.c (ydhms_diff): Likewise.
13989         * locale/elem-hash.h (elem_hash): Likewise.
13990         * locale/setlocale.c (setdata): Likewise.
13991         * posix/regex_internal.h (re_string_char_size_at): Likewise.
13992         (re_string_wchar_at): Likewise.
13993         (bitset_not, bitset_merge, bitset_mask): Likewise.
13994         [!(__GNUC__ > 3)] (inline): Remove macro.
13995         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
13996         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
13997         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
13998         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
13999         * string/memcmp.c (memcmp_bytes): Likewise.
14000         * locale/programs/locarchive.c (compute_hashval): Likewise.
14001         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
14002         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
14003         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
14004         * nss/getent.c (print_rpc, print_protocols): Likewise.
14005         (print_passwd, print_group, print_aliases): Likewise.
14006         * nis/nss-nisplus.h (niserr2nss): Likewise.
14007         * nscd/connections.c (restart_p): Likewise.
14008         Change return type to bool.
14009
14010 2013-02-05  Roland McGrath  <roland@hack.frob.com>
14011
14012         * Makeconfig (all-Depend-files): Add existing
14013         $(sorted-subdirs:=/Depend) files.
14014         (all-subdirs): Remove nss.
14015         * sysdeps/unix/inet/Subdirs: Add it here instead.
14016         * hesiod/Depend: New file.
14017
14018         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
14019         instead of calling alloca.
14020
14021         * io/lseek.c (__lseek): Rename to __libc_lseek.
14022         Define __lseek as an alias.
14023
14024         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
14025
14026 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
14027
14028         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
14029         else clause and remove check for non-standard endianness.
14030
14031 2013-02-04  David S. Miller  <davem@davemloft.net>
14032
14033         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14034
14035 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
14036
14037         [BZ #13550]
14038         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
14039         (__ubp_memchr): Remove prototype.
14040         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
14041         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
14042         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
14043         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
14044         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
14045         Remove alias.
14046         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
14047         (__ubp_memchr): Likewise.
14048         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
14049         (__ubp_memchr): Likewise.
14050         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
14051         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
14052         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
14053         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
14054         CHECK_STRING.
14055         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
14056         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
14057         (__getcwd): Do not use CHECK_STRING.
14058         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
14059         <bp-checks.h>.
14060         (__real_chown): Do not use CHECK_STRING.
14061         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
14062         <bp-checks.h>.
14063         (fchownat): Do not use CHECK_STRING.
14064         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
14065         CHECK_STRING.
14066         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
14067         <bp-checks.h>.
14068         (__lchown): Do not use CHECK_STRING.
14069         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
14070         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
14071         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
14072         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
14073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
14074         include <bp-checks.h>.
14075         (truncate64): Do not use CHECK_STRING.
14076         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
14077         <bp-checks.h>.
14078         (__real_chown): Do not use CHECK_STRING.
14079         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
14080         <bp-checks.h>.
14081         (__lchown): Do not use CHECK_STRING.
14082         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
14083         <bp-checks.h>.
14084         (__chown): Do not use CHECK_STRING.
14085         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
14086         <bp-checks.h>.
14087         (truncate64): Do not use CHECK_STRING.
14088         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
14089         Likewise.
14090         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
14091         (__xmknod): Do not use CHECK_STRING.
14092         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
14093         <bp-checks.h>.
14094         (__xmknodat): Do not use CHECK_STRING.
14095         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
14096         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
14097
14098 2013-02-04  Andreas Schwab  <schwab@suse.de>
14099
14100         [BZ #14142]
14101         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
14102         * include/netdb.h: Likewise for h_errno.
14103         * elf/tst-stackguard1.c: Include <tls.h>.
14104
14105 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
14106
14107         * elf/link.h (struct link_map): Extend the l_addr comment.
14108         * include/link.h (struct link_map): Likewise.
14109
14110 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
14111
14112         [BZ #13550]
14113         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
14114         (BOUNDED_1): Remove macro.
14115         * debug/backtrace.c: Don't include <bp-checks.h>.
14116         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
14117         (__backtrace): Likewise.
14118         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
14119         <bp-checks.h>.
14120         (__backtrace): Don't use BOUNDED_1.
14121         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
14122         <bp-checks.h>.
14123         (__backtrace): Don't use BOUNDED_1.
14124         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
14125         (__backtrace): Don't use BOUNDED_1.
14126         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
14127         (shmat): Don't use BOUNDED_N.
14128
14129 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
14130
14131         [BZ #13550]
14132         * sysdeps/generic/bp-start.h: Remove file.
14133         * csu/libc-start.c: Don't include <bp-start.h>.
14134         (LIBC_START_MAIN): Set up __environ directly instead of using
14135         INIT_ARGV_and_ENVIRON.
14136         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
14137         <bp-start.h>.
14138
14139         [BZ #13550]
14140         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
14141         definitions.
14142         (CHECK_FCNTL): Likewise.
14143         (CHECK_N_PAGES): Likewise.
14144
14145         [BZ #13550]
14146         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
14147         definitions.
14148         (CHECK_SIGSET_NULL_OK): Likewise.
14149         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
14150         <bp-checks.h>.
14151         (sigpending): Don't use CHECK_SIGSET.
14152         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
14153         <bp-checks.h>.
14154         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14155         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
14156         <bp-checks.h>.
14157         (do_sigsuspend): Don't use CHECK_SIGSET.
14158         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
14159         use CHECK_SIGSET.
14160         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
14161         (do_sigwait): Don't use CHECK_SIGSET.
14162         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
14163         use CHECK_SIGSET.
14164         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
14165         include <bp-checks.h>.
14166         (sigpending): Don't use CHECK_SIGSET.
14167         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
14168         include <bp-checks.h>.
14169         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14170         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
14171         <bp-checks.h>.
14172         (sigpending): Don't use CHECK_SIGSET.
14173         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
14174         <bp-checks.h>.
14175         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14176
14177         [BZ #13550]
14178         * sysdeps/generic/bp-semctl.h: Remove file.
14179         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
14180         <bp-checks.h> and <bp-semctl.h>.
14181         (__old_semctl): Don't use CHECK_SEMCTL.
14182         (__new_semctl): Likewise.
14183         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
14184         and <bp-semctl.h>.
14185         (__old_semctl): Don't use CHECK_SEMCTL.
14186         (__new_semctl): Likewise.
14187         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
14188         <bp-checks.h> and <bp-semctl.h>.
14189         (__old_semctl): Don't use CHECK_SEMCTL.
14190         (__new_semctl): Likewise.
14191         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
14192         <bp-checks.h> and <bp-semctl.h>.
14193         (semctl): Don't use CHECK_SEMCTL.
14194
14195         [BZ #13550]
14196         * Makerules (elide-bp-thunks): Remove variable.
14197         (elide-routines.oS): Don't use $(elide-bp-thunks).
14198         (elide-routines.os): Likewise.
14199         (elide-routines.o): Likewise.
14200         (elide-routines.op): Likewise.
14201         (elide-routines.og): Likewise.
14202         (objects): Don't use $(bp-thunks).
14203         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
14204         include.
14205         (common-generated): Do not add s-proto-bp.d.
14206         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
14207         (int): Likewise.
14208         (typ): Likewise.
14209         Do not generate makefile rules for bounded-pointer thunks.
14210         * sysdeps/generic/bp-thunks.h: Remove file.
14211         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
14212         * sysdeps/unix/s-proto-bp.S: Likewise.
14213
14214         [BZ #15062]
14215         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
14216         parts of result separately when argument is not close to line from
14217         -i to i and one part of argument is small.
14218         * math/k_casinhf.c (__kernel_casinhf): Likewise.
14219         * math/k_casinhl.c (__kernel_casinhl): Likewise.
14220         * math/libm-test.inc (cacos_test): Add more tests.
14221         (casin_test): Likewise.
14222         (casinh_test): Likewise.
14223         * sysdeps/i386/fpu/libm-test-ulps: Update.
14224         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14225
14226 2013-01-31  David S. Miller  <davem@davemloft.net>
14227
14228         * po/de.po: Update from translation team.
14229
14230 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
14231
14232         * time/tzfile.c: Include stdint.h for SIZE_MAX.
14233
14234 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
14235
14236         * configure.in (_AC_PROG_CC_C89): New definition.
14237         * configure: Regenerate.
14238
14239         * configure.in (AC_PROG_CPP): New definition.
14240         * configure: Regenerate.
14241
14242 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14243
14244         * debug/tst-backtrace.h: New file.
14245         * debug/tst-backtrace2.c: Include tst-backtrace.h.
14246         (ret): Remove variable.
14247         (x): Likewise.
14248         (FAIL): Remove macro.
14249         (NO_INLINE): Likewise.
14250         (fn1): Use match function instead of strstr.
14251         * debug/tst-backtrace3.c: Include tst-backtrace.h.
14252         (ret): Remove variable.
14253         (x): Likewise.
14254         (FAIL): Remove macro.
14255         (NO_INLINE): Likewise.
14256         (fn): Use match function instead of strstr.
14257         * debug/tst-backtrace4.c: Include tst-backtrace.h.
14258         (ret): Remove variable.
14259         (x): Likewise.
14260         (FAIL): Remove macro.
14261         (NO_INLINE): Likewise.
14262         (handle_signal): Use match function instead of strstr.
14263         * debug/tst-backtrace5.c: Include tst-backtrace.h.
14264         (ret): Remove variable.
14265         (x): Likewise.
14266         (FAIL): Remove macro.
14267         (NO_INLINE): Likewise.
14268         (handle_signal): Use match function instead of strstr.
14269
14270 2013-01-23  Roland McGrath  <roland@hack.frob.com>
14271
14272         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
14273
14274 2013-01-23  David S. Miller  <davem@davemloft.net>
14275
14276         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
14277         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
14278         argument of CAS if possible.
14279         * sysdeps/sparc/sparc64/bits/atomic.h
14280         (__arch_compare_and_exchange_val_32_acq): Likewise.
14281         (__arch_compare_and_exchange_val_64_acq): Likewise.
14282
14283 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
14284
14285         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
14286         * sysdeps/posix/ulimit.c: ... this.
14287         Include <limits.h>.
14288         * sysdeps/unix/bsd/ulimit.c: Remove file.
14289
14290 2013-01-23  Adam Conrad  <adconrad@0c3.net>
14291
14292         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
14293         (LDFLAGS-tst-array5): Likewise.
14294
14295 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14296
14297         [BZ #15036]
14298         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
14299         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
14300         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
14301         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
14302
14303 2013-01-21  David S. Miller  <davem@davemloft.net>
14304
14305         * sysdeps/sparc/backtrace.c: New file.
14306         * sysdeps/sparc/sparc32/backtrace.h: New file.
14307         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
14308         * sysdeps/sparc/sparc64/backtrace.h: New file.
14309         * sysdeps/sparc/sparc64/backtrace.c: Delete.
14310         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
14311         -funwind-tables.
14312
14313 2013-01-21  Andreas Schwab  <schwab@suse.de>
14314
14315         [BZ #15020]
14316         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
14317         closed its stdout.
14318
14319 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
14320
14321         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
14322         "mpa2.h".
14323         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14324
14325 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
14326             Mark Mitchell  <mark@codesourcery.com>
14327             Tom de Vries  <tom@codesourcery.com>
14328             Paul Pluzhnikov  <ppluzhnikov@google.com>
14329
14330         * debug/tst-backtrace2.c: New file.
14331         * debug/tst-backtrace3.c: Likewise.
14332         * debug/tst-backtrace4.c: Likewise.
14333         * debug/tst-backtrace5.c: Likewise.
14334         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
14335         (CFLAGS-tst-backtrace3.c): Likewise.
14336         (CFLAGS-tst-backtrace4.c): Likewise.
14337         (CFLAGS-tst-backtrace5.c): Likewise.
14338         (LDFLAGS-tst-backtrace2): Likewise.
14339         (LDFLAGS-tst-backtrace3): Likewise.
14340         (LDFLAGS-tst-backtrace4): Likewise.
14341         (LDFLAGS-tst-backtrace5): Likewise.
14342         (tests): Add new tests tst-backtrace2, tst-backtrace3,
14343         tst-backtrace4 and tst-backtrace5.
14344
14345 2013-01-18  Anton Blanchard  <anton@samba.org>
14346             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14347
14348         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
14349         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
14350         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
14351         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
14352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14353         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
14354         "+r" and remove output regs list as redundant.  Add explicit inline
14355         asm to specify register of return val to work around compiler codegen
14356         bug.  Remove (int) cast on return value.  Add return type parameter to
14357         use in macro so that this macro does not truncate return value for
14358         64-bit values.
14359         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
14360         pass to INTERNAL_VSYSCALL_NCS.
14361         (INLINE_VSYSCALL): Add 'long int' as return type to
14362         INTERNAL_VSYSCALL_NCS macro invocation.
14363         (INTERNAL_VSYSCALL): Add 'long int' as return type to
14364         INTERNAL_VSYSCALL_NCS macro invocation.
14365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14366
14367 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14368
14369         [BZ #14496]
14370         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
14371         Fix application of SIMD FP exception mask.
14372
14373         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
14374         mp_no from a power of two.
14375         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
14376         __mpexp_twomm1.  Use __pow_mp.
14377
14378         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
14379         multiplication.
14380
14381 2013-01-17  David S. Miller  <davem@davemloft.net>
14382
14383         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14384
14385 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14386
14387         [BZ #15023]
14388         * include/complex.h: Condition contents on [!_COMPLEX_H].
14389         (__kernel_casinhf): New prototype.
14390         (__kernel_casinh): Likewise.
14391         (__kernel_casinhl): Likewise.
14392         * math/Makefile (libm_calls): Add k_casinh.
14393         * math/k_casinh.c: New file.
14394         * math/k_casinhf.c: Likewise.
14395         * math/k_casinhl.c: Likewise.
14396         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
14397         finite nonzero arguments.
14398         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
14399         finite nonzero arguments.
14400         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
14401         finite nonzero arguments.
14402         * math/s_casinh.c: Do not include <float.h>.
14403         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
14404         * math/s_casinhf.c: Do not include <float.h>.
14405         (__casinhf): Move code for finite nonzero arguments to
14406         k_casinhf.c.
14407         * math/s_casinhl.c: Do not include <float.h>.
14408         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
14409         redefine.
14410         (__casinhl): Move code for finite nonzero arguments to
14411         k_casinhl.c.
14412         * math/libm-test.inc (cacos_test): Add more tests.
14413         * sysdeps/i386/fpu/libm-test-ulps: Update.
14414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14415
14416 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
14417
14418         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
14419         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
14420         [!HAVE_MREMAP]: Remove [defined linux] case.
14421         * malloc/arena.c: Do not include <malloc-sysdep.h>.
14422
14423 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
14424
14425         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
14426
14427 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14428
14429         * elf/elf.h (R_386_SIZE32): New relocation.
14430         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
14431         R_386_SIZE32.
14432         (elf_machine_rela): Likewise.
14433         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14434         R_X86_64_SIZE64 and R_X86_64_SIZE32.
14435
14436 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14437
14438         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
14439         (FP_FAST_FMA): Do not define.
14440         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
14441         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
14442         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
14443         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
14444         !_SOFT_FLOAT]: Likewise.
14445         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
14446         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
14447         value.
14448         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
14449         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
14450         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
14451         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
14452         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
14453         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
14454         file.
14455
14456 2013-01-16  Andreas Schwab  <schwab@suse.de>
14457
14458         [BZ #14327]
14459         * include/stdlib.h (__mktemp): Add declaration.
14460         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
14461         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
14462
14463 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14464
14465         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
14466         definitions.
14467         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14468         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
14469         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
14470         definitions here.
14471         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
14472         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
14473         definitions.
14474         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
14475         and ONE.
14476         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
14477         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
14478         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
14479         definitions.
14480         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
14481         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
14482         definitions.
14483         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14484
14485         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
14486
14487 2013-01-15  David S. Miller  <davem@davemloft.net>
14488
14489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14490         trunc{,f} to libm-sysdep_routes.
14491         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
14493         file.
14494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
14495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
14496         file.
14497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
14498         file.
14499         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
14500         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
14501         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
14502         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
14503         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
14504         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
14505         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
14506         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
14507
14508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14509         nearbyint{,f} to libm-sysdep_routes.
14510         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
14512         New file.
14513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
14514         file.
14515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
14516         New file.
14517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
14518         file.
14519         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
14520         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
14521         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
14522         file.
14523         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
14524         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
14525         file.
14526         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
14527         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
14528         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
14529
14530         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
14531         libc_feholdexcept and libc_fesetenv.
14532
14533 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
14534
14535         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
14536
14537 2013-01-14  David S. Miller  <davem@davemloft.net>
14538
14539         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
14540         (SPARC_ASM_VIS2_IFUNC): Likewise.
14541         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
14542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
14543         use of 'siam' instruction.
14544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
14545         Likewise.
14546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
14547         Likewise.
14548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
14549         Likewise.
14550         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
14551         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
14552         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
14553         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
14554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
14555         file.
14556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
14557         file.
14558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
14559         file.
14560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
14561         file.
14562         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
14563         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
14564         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
14565         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
14566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
14567         new VIS2 routines.
14568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
14569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
14571         Likewise.
14572         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
14573         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
14574         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
14575         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
14576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
14577         routines to libm-sysdep_routines.
14578         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14579
14580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14581         fdim/fdimf to libm-sysdep_routines.
14582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
14583         file.
14584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
14585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
14586         file.
14587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
14588         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
14589         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
14590         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
14591         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
14592         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
14593         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
14594
14595 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14596
14597         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
14598         to optimize copies.
14599
14600         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
14601         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14602         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14603
14604         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
14605         local variable MPTWO.
14606         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
14607         Likewise.
14608
14609 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14610
14611         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
14612         GLOB_NOESCAPE.
14613
14614 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14615
14616         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
14617
14618 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14619
14620         * manual/pattern.texi (glob_t): Document gl_flags.
14621         (glob64_t): Likewise.
14622
14623 2013-01-11  David S. Miller  <davem@davemloft.net>
14624
14625         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
14626         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
14627         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
14628         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
14629         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
14630         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
14631         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
14632         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
14633         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
14634         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
14635         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
14636         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
14637         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
14638
14639         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14640         sparc V9 rather than using V8 code.
14641         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14642         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14643
14644         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14645         Move to...
14646         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
14647         Here.
14648
14649 2013-01-11  Roland McGrath  <roland@hack.frob.com>
14650
14651         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
14652         not in the main loop.
14653         * configure: Regenerated.
14654
14655 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
14656
14657         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
14658         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
14659         to just #else.
14660         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
14661         [!__GLIBC_HAVE_LONG_LONG] case.
14662         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
14663         condition to just #else.
14664         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
14665         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
14666         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
14667         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
14668         unconditional.
14669         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
14670         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14671         #elif condition to just #else.
14672         * sysdeps/unix/sysv/linux/sys/sysmacros.h
14673         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
14674         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14675         #elif condition to just #else.
14676
14677 2013-01-11  Steve Ellcey  <sellcey@mips.com>
14678
14679         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
14680         (EF_MIPS_ARCH_64): Fix value.
14681         (EF_MIPS_ARCH_32R2): New.
14682         (EF_MIPS_ARCH_64R2): New.
14683
14684 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14685
14686         * Makeconfig (+link-pie-before-libc): New.
14687         (+link-pie-after-libc): Likewise.
14688         (+link-pie-tests): Likewise.
14689         (+link-pie): Rewritten.
14690         (link-before-libc): Remove $(config-LDFLAGS).
14691         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
14692         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
14693         (config-LDFLAGS): Renamed to ...
14694         (rtld-LDFLAGS): This.
14695         (rtld-tests-LDFLAGS): New macro.
14696         (link-libc-rpath-link): Likewise.
14697         (link-libc-tests-rpath-link): Likewise.
14698         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
14699         (link-libc): Prepand $(link-libc-rpath-link).
14700         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
14701         (test-program-prefix): New macro.
14702         (test-via-rtld-prefix): Likewise.
14703         (test-program-cmd): Likewise.
14704         (host-test-program-cmd): Likewise.
14705         * Makefile ($(common-objpfx)testrun.sh): Replace
14706         $(run-program-prefix) with $(test-program-prefix).
14707         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
14708         $(rtld-LDFLAGS).
14709         ($(common-objpfx)shlib.lds): Likewise.
14710         (build-module-helper): Likewise.
14711         ($(common-objpfx)format.lds): Likewise.
14712         * Rules (binaries-pie-tests): New.
14713         (binaries-pie-notests): Likewise.
14714         (binaries-pie): Rewritten.
14715         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
14716         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
14717         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
14718         (make-test-out): Replace $(host-built-program-cmd) with
14719         $(host-test-program-cmd).
14720         * config.make.in (build-hardcoded-path-in-tests): New variable.
14721         * configure.in (--enable-hardcoded-path-in-tests): New configure
14722         option.
14723         (hardcoded_path_in_tests): New AC_SUBST.
14724         * configure: Regenerated.
14725         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
14726         $(built-program-cmd) with $(test-program-cmd).
14727         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
14728         (test_program_cmd): This.
14729         * elf/Makefile ($(objpfx)order.out): Run test with
14730         $(test-program-prefix).
14731         ($(objpfx)order2.out): Likewise.
14732         ($(objpfx)tst-initorder.out): Likewise.
14733         ($(objpfx)tst-initorder2.out): Likewise.
14734         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
14735         $(test-program-cmd).
14736         ($(objpfx)tst-array1-static.out): Likewise.
14737         ($(objpfx)tst-array2.out): Likewise.
14738         ($(objpfx)tst-array3.out): Likewise.
14739         ($(objpfx)tst-array4.out): Likewise.
14740         ($(objpfx)tst-array5.out): Likewise.
14741         ($(objpfx)tst-array5-static.out): Likewise.
14742         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
14743         $(test-program-cmd).
14744         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
14745         $(run-program-prefix) with $(test-program-prefix).
14746         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
14747         (test_program_prefix): This.
14748         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
14749         $(run-program-prefix) with $(test-program-prefix).
14750         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
14751         (test_program_prefix): This.
14752         * iconvdata/tst-tables.sh: Likewise.
14753         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
14754         $(run-program-prefix) with $(test-program-prefix).
14755         ($(objpfx)tst-translit.out): Likewise.
14756         ($(objpfx)tst-gettext2.out): Likewise.
14757         ($(objpfx)tst-gettext4.out): Likewise.
14758         ($(objpfx)tst-gettext6.out): Likewise.
14759         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
14760         (test_program_prefix): This.
14761         * intl/tst-gettext2.sh: Likewise.
14762         * intl/tst-gettext4.sh  Likewise.
14763         * intl/tst-gettext6.sh: Likewise.
14764         * intl/tst-translit.sh: Likewise.
14765         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
14766         with $(test-program-cmd).
14767         * libio/Makefile ($(objpfx)test-freopen.out): Replace
14768         $(run-program-prefix) with $(test-program-prefix).
14769         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
14770         (test_program_prefix): This.
14771         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
14772         $(run-program-prefix) with $(test-program-prefix).
14773         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
14774         (test_program_prefix): This.
14775         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
14776         * posix/Makefile ($(objpfx)globtest.out): Replace
14777         $(run-via-rtld-prefix) and $(test-wrapper) with
14778         $(test-program-prefix) and $(test-via-rtld-prefix).
14779         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
14780         $(test-program-prefix).
14781         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
14782         $(host-test-program-cmd).
14783         (tst-spawn-ARGS): Likewise.
14784         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
14785         $(test-program-prefix).
14786         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
14787         (test_via_rtld_prefix): This.
14788         (test_wrapper): Renamed to ...
14789         (test_program_prefix): This.
14790         (run_program_prefix): Replaced by test_program_prefix.
14791         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
14792         (test_program_prefix): This.
14793         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
14794         with $(host-test-program-cmd).
14795         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
14796         $(run-program-prefix) with $(test-program-prefix).
14797         ($(objpfx)tst-printf.out): Likewise.
14798         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
14799         $(test-program-cmd).
14800         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
14801         (test_program_prefix): This.
14802         * stdio-common/tst-unbputc.sh: Likewise.
14803         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
14804         $(run-program-prefix) with $(test-program-prefix).
14805         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
14806         (test_program_prefix): This.
14807         * string/Makefile ($(objpfx)tst-svc.out):  Replace
14808         $(built-program-cmd) with $(test-program-cmd).
14809
14810 2013-01-11  Andreas Jaeger  <aj@suse.de>
14811
14812         [BZ #15003]
14813         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
14814         value. Sync with Linux 3.7.
14815
14816 2013-01-10  David S. Miller  <davem@davemloft.net>
14817
14818         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
14819         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14820         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14821
14822 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14823
14824         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
14825         never set.
14826         * configure: Regenerated.
14827
14828 2013-01-10  David S. Miller  <davem@davemloft.net>
14829
14830         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14831         sparc V9 rather than using V8 code.
14832         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14833         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14834
14835 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14836
14837         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
14838         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
14839         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
14840         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
14841         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
14842         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
14843         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
14844         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
14845         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
14846         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
14847         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
14848         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
14849         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
14850         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
14851         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
14852         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
14853         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
14854         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
14855         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
14856         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
14857         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
14858         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
14859         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
14860         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
14861         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
14862         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
14863         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
14864
14865 2013-01-10  David S. Miller  <davem@davemloft.net>
14866
14867         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14868
14869 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14870
14871         * posix/Makefile (tests-static): New variable.
14872         (tests): Add $(tests-static).
14873         (tst-exec-static-ARGS): New variable.
14874         (tst-spawn-static-ARGS): Likewise.
14875         * posix/tst-exec-static.c: New file.
14876         * posix/tst-spawn-static.c: Likewise.
14877         * posix/tst-exec.c: Support run directly.
14878         * posix/tst-spawn.c: Likewise.
14879
14880 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
14881
14882         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
14883         long.
14884         * math/bits/mathcalls.h (llrint): Likewise.
14885         (llround): Likewise.
14886         * stdlib/stdlib.h (struct drand48_data): Likewise.
14887         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
14888         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
14889         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
14890         Likewise.
14891         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
14892         Likewise.
14893         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
14894         (elf_greg_t): Likewise.
14895         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
14896         (__jmp_buf): Likewise.
14897         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
14898         definitions.
14899         (llrint): Likewise, for all definitions.
14900         (llrintl): Likewise.
14901
14902         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
14903         Remove [__GNUC__] condition.
14904         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
14905         condition to just [__USE_ISOC99].
14906         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
14907
14908 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14909
14910         [BZ #14200]
14911         * sysdeps/unix/sysv/linux/x86/bits/environments.h
14912         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
14913         defined.
14914         (_POSIX_V6_ILP32_OFF32): Likewise.
14915         (_XBS5_ILP32_OFF32): Likewise.
14916         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
14917         (__ILP32_OFFBIG_LDFLAGS): Likewise.
14918
14919 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14920
14921         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
14922
14923         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
14924         doubles __mpexp_twomm1.  Adjust usage.
14925         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
14926         Remove.
14927
14928 2013-01-10  Andreas Schwab  <schwab@suse.de>
14929
14930         [BZ #14964]
14931         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
14932         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
14933
14934 2013-01-09  David S. Miller  <davem@davemloft.net>
14935
14936         [BZ #15003]
14937         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
14938         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
14939         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
14940         TCP_FASTOPEN): Define.
14941         (tcp_repair_opt): New structure.
14942         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
14943         enum values.
14944         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
14945         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
14946         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
14947         (tcp_cookie_transactions): New structure.
14948
14949 2013-01-09  Anton Blanchard  <anton@samba.org>
14950
14951         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
14952         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
14953         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
14954         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
14955
14956 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
14957
14958         * include/features.h (__USE_ANSI): Remove.
14959
14960 2013-01-09  Roland McGrath  <roland@hack.frob.com>
14961
14962         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
14963
14964         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
14965
14966 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
14967
14968         * sysdeps/s390/fpu/libm-test-ulps: Update.
14969
14970         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14971
14972         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
14973         (__acr): Likewise.
14974         (__cpy): Likewise.
14975         (norm): Likewise.
14976         (denorm): Likewise.
14977         (__mp_dbl): Likewise.
14978         (__dbl_mp): Likewise.
14979         (add_magnitudes): Likewise.
14980         (sub_magnitudes): Likewise.
14981         (__add): Likewise.
14982         (__sub): Likewise.
14983         (__mul): Likewise.
14984         (__inv): Likewise.
14985         (__dvd): Likewise.
14986         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
14987         (__acr): Likewise.
14988         (__cpy): Likewise.
14989         (norm): Likewise.
14990         (denorm): Likewise.
14991         (__mp_dbl): Likewise.
14992         (__dbl_mp): Likewise.
14993         (add_magnitudes): Likewise.
14994         (sub_magnitudes): Likewise.
14995         (__add): Likewise.
14996         (__sub): Likewise.
14997         (__mul): Likewise.
14998         (__inv): Likewise.
14999         (__dvd): Likewise.
15000         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
15001         (__acr): Likewise.
15002         (__cpy): Likewise.
15003         (norm): Likewise.
15004         (denorm): Likewise.
15005         (__mp_dbl): Likewise.
15006         (__dbl_mp): Likewise.
15007         (add_magnitudes): Likewise.
15008         (sub_magnitudes): Likewise.
15009         (__add): Likewise.
15010         (__sub): Likewise.
15011         (__mul): Likewise.
15012         (__inv): Likewise.
15013         (__dvd): Likewise.
15014
15015 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
15016
15017         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
15018         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
15019         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
15020         2 && __USE_EXTERN_INLINES]: Likewise.
15021
15022 2013-01-08  Andreas Jaeger  <aj@suse.de>
15023
15024         [BZ# 14985]
15025         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
15026         Remove.
15027         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
15028         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
15029
15030 2013-01-07  Anton Blanchard  <anton@samba.org>
15031
15032         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
15033         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
15034         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
15035         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
15036         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
15037         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15038         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
15039         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15040         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15041         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15042         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15043         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15044         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
15045         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15046         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
15047         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15048         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15049         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
15050         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
15051         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
15052         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
15053         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
15054         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
15055         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
15056         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
15057         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
15058         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15059         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
15060         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
15061         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
15062         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
15063         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15064         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15065         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
15066         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
15067         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
15068         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
15069         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
15070         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
15071         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
15072         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
15073         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15074         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
15075
15076 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
15077
15078         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
15079         (__MALLOC_PMT): Likewise.
15080         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
15081         [__GNUC__], only on [_LIBC].
15082         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
15083         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
15084         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
15085         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
15086         forward declaration.
15087         (realloc_hook_ini): Likewise.
15088         (memalign_hook_ini): Likewise.
15089         (__libc_memalign): Do not use __MALLOC_PMT in variable
15090         declaration.
15091         (__libc_valloc): Likewise.
15092         (__libc_pvalloc): Likewise.
15093         (__libc_calloc): Likewise.
15094         (__posix_memalign): Likewise.
15095
15096         [BZ #14996]
15097         * math/s_casinh.c: Include <float.h>.
15098         (__casinh): Do not do computation with squaring and square root
15099         for large arguments.
15100         * math/s_casinhf.c: Include <float.h>.
15101         (__casinhf): Do not do computation with squaring and square root
15102         for large arguments.
15103         * math/s_casinhl.c: Include <float.h>.
15104         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
15105         (__casinhl): Do not do computation with squaring and square root
15106         for large arguments.
15107         * math/libm-test.inc (casin_test): Add more tests.
15108         (casinh_test): Likewise.
15109         * sysdeps/i386/fpu/libm-test-ulps: Update.
15110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15111
15112 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
15113
15114         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
15115         (__x86_64_raw_data_cache_size): Likewise.
15116         (__x86_64_data_cache_size_half): Likewise.
15117         (__x86_64_raw_data_cache_size_half): Likewise.
15118         (__x86_64_shared_cache_size): Likewise.
15119         (__x86_64_raw_shared_cache_size): Likewise.
15120         (__x86_64_shared_cache_size_half): Likewise.
15121         (__x86_64_raw_shared_cache_size_half): Likewise.
15122         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
15123         to ...
15124         (__x86_data_cache_size): This.
15125         (__x86_64_raw_data_cache_size): Renamed to ...
15126         (__x86_raw_data_cache_size): This.
15127         (__x86_64_data_cache_size_half): Renamed to ...
15128         (__x86_data_cache_size_half): This.
15129         (__x86_64_raw_data_cache_size_half): Renamed to ...
15130         (__x86_raw_data_cache_size_half): This.
15131         (__x86_64_shared_cache_size): Renamed to ...
15132         (__x86_shared_cache_size): This.
15133         (__x86_64_raw_shared_cache_size): Renamed to ...
15134         (__x86_raw_shared_cache_size): This.
15135         (__x86_64_shared_cache_size_half): Renamed to ...
15136         (__x86_shared_cache_size_half): This.
15137         (__x86_64_raw_shared_cache_size_half): Renamed to ...
15138         (__x86_raw_shared_cache_size_half): This.
15139         * sysdeps/x86_64/memcpy.S: Updated.
15140         * sysdeps/x86_64/memset.S: Likewise.
15141         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
15142         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
15143         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
15144
15145 2013-01-04  David S. Miller  <davem@davemloft.net>
15146
15147         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15148
15149 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
15150
15151         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
15152         1 to avoid redefinition warning.
15153         (__USE_GNU): Don't define.
15154         (init_signaling_nan): Protoize.
15155
15156         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15157
15158 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15159
15160         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
15161         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
15162         (__cpymn): Likewise.
15163         (norm): Remove commented code.
15164         (denorm): Likewise.
15165         (__mp_dbl): Likewise.
15166         (__inv): Likewise.
15167         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
15168         (__cpymn): Likewise.
15169         (norm): Remove commented code.
15170         (denorm): Likewise.
15171         (__mp_dbl): Likewise.
15172         (__inv): Likewise.
15173
15174         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
15175         mp_no value for 1.0 and 2.0.
15176         (norm): Use RADIXI instead of radixi.d.
15177         (denorm): Likewise.
15178         (__mul): Use 0.0 instead of zero.d.
15179         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
15180         mp_no value for 1.0 and 2.0.
15181         (norm): Use RADIXI instead of radixi.d.
15182         (denorm): Likewise.
15183         (__mul): Use 0.0 instead of zero.d.
15184
15185 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
15186
15187         [BZ #14994]
15188         * math/s_casinh.c (__casinh): Reduce finite argument to first
15189         quadrant then set signs of results at the end.
15190         * math/s_casinhf.c (__casinhf): Likewise.
15191         * math/s_casinhl.c (__casinhl): Likewise.
15192         * math/libm-test.inc (casin_test): Add more tests.
15193         (casinh_test): Likewise.
15194         * sysdeps/i386/fpu/libm-test-ulps: Update.
15195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15196
15197 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15198
15199         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
15200
15201         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
15202
15203         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
15204         declarations.
15205         (denorm): Likewise.
15206         (__mp_dbl): Likewise.
15207         (__inv): Likewise.
15208
15209         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
15210         and adjust the header comment.
15211
15212         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
15213         variable name from declaration.
15214
15215 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15216
15217         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15218         Initialize COMMON_CPUID_INDEX_7 element.
15219         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
15220         (CPUID_RTM): Likewise.
15221         (HAS_RTM): Likewise.
15222         (COMMON_CPUID_INDEX_7): New enum.
15223
15224 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
15225
15226         [BZ #14981]
15227         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
15228         size is zero, record memory as freed.
15229
15230 2013-01-03  Andreas Jaeger  <aj@suse.de>
15231
15232         * po/ia.po: Add new Interlingua translation.
15233
15234 2012-01-03  Allan McRae  <allan@archlinux.org>
15235
15236         * locale/programs/localedef.c: Fix description of '--posix' flag.
15237
15238 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
15239
15240         * NEWS: Update dates in second copyright notice.
15241         * README: Update copyright dates in example.
15242         * manual/libc.texinfo: Update copyright dates.
15243         * scripts/test-installation.pl: Update copyright date in --version
15244         output.
15245
15246         * hurd/ctty-input.c: Fix copyright notice formatting.
15247         * hurd/ctty-output.c: Likewise.
15248         * hurd/dtable.c: Likewise.
15249         * hurd/hurd-raise.c: Likewise.
15250         * hurd/hurdprio.c: Likewise.
15251         * hurd/msgportdemux.c: Likewise.
15252         * misc/sys/file.h: Likewise.
15253         * misc/sys/ioctl.h: Likewise.
15254         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
15255         * sysdeps/mach/hurd/chdir.c: Likewise.
15256         * sysdeps/mach/hurd/fchdir.c: Likewise.
15257         * sysdeps/mach/hurd/rename.c: Likewise.
15258         * sysdeps/mach/hurd/rmdir.c: Likewise.
15259         * sysdeps/mach/hurd/seekdir.c: Likewise.
15260         * sysdeps/mach/hurd/setsid.c: Likewise.
15261         * sysdeps/posix/wait3.c: Likewise.
15262
15263         * All files with FSF copyright notices: Update copyright dates
15264         using scripts/update-copyrights.
15265         * intl/plural.c: Regenerated.
15266         * locale/programs/charmap-kw.h: Likewise.
15267         * locale/programs/locfile-kw.h: Likewise.
15268
15269 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
15270
15271         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
15272         four values.
15273
15274         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
15275         calculation loop and add branch prediction.
15276
15277         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
15278         check access beyond bounds of m1np.
15279
15280         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15281         MPTWO.
15282         (__inv): Remove local variable MPTWO to use the global
15283         constant.
15284         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
15285         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15286         variable MPTWO.
15287         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
15288         MP3HALFS static const.
15289
15290 2013-01-01  David S. Miller  <davem@davemloft.net>
15291
15292         * po/ca.po: Update from translation team.
15293
15294 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
15295
15296         * scripts/update-copyrights: New file.
15297         * Makeconfig: Reformat copyright notice.
15298         * ctype/ctype.h: Likewise.
15299         * debug/swprintf_chk.c: Likewise.
15300         * elf/dl-cache.c: Likewise.
15301         * elf/dl-debug.c: Likewise.
15302         * elf/dl-object.c: Likewise.
15303         * grp/initgroups.c: Likewise.
15304         * hurd/Makefile: Likewise.
15305         * hurd/hurd/signal.h: Likewise.
15306         * hurd/hurdfault.c: Likewise.
15307         * hurd/hurdioctl.c: Likewise.
15308         * hurd/hurdlookup.c: Likewise.
15309         * hurd/intr-msg.c: Likewise.
15310         * iconv/gconv_open.c: Likewise.
15311         * libio/swprintf.c: Likewise.
15312         * locale/lc-ctype.c: Likewise.
15313         * locale/nl_langinfo.c: Likewise.
15314         * mach/Machrules: Likewise.
15315         * mach/Makefile: Likewise.
15316         * malloc/obstack.h: Likewise.
15317         * manual/Makefile: Likewise.
15318         * manual/tsort.awk: Likewise.
15319         * misc/bits/stab.def: Likewise.
15320         * nis/nis_print_group_entry.c: Likewise.
15321         * nis/nis_table.c: Likewise.
15322         * nis/nss_compat/compat-pwd.c: Likewise.
15323         * nis/nss_compat/compat-spwd.c: Likewise.
15324         * po/Makefile: Likewise.
15325         * posix/fnmatch.c: Likewise.
15326         * posix/regex.h: Likewise.
15327         * resolv/Makefile: Likewise.
15328         * resolv/nss_dns/dns-network.c: Likewise.
15329         * resolv/res_hconf.c: Likewise.
15330         * scripts/gen-sorted.awk: Likewise.
15331         * soft-fp/soft-fp.h: Likewise.
15332         * stdio-common/printf.h: Likewise.
15333         * stdlib/monetary.h: Likewise.
15334         * stdlib/random.c: Likewise.
15335         * stdlib/random_r.c: Likewise.
15336         * sysdeps/generic/Makefile: Likewise.
15337         * sysdeps/gnu/Makefile: Likewise.
15338         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15339         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15340         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15341         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15342         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15343         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15344         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15345         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15346         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15347         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15348         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15349         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15350         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15351         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15352         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15353         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15354         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15355         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15356         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15357         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15358         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15359         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15360         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15361         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15362         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
15363         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15364         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
15365         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
15366         * sysdeps/mach/hurd/errnos.awk: Likewise.
15367         * sysdeps/mach/hurd/fork.c: Likewise.
15368         * sysdeps/mach/hurd/getcwd.c: Likewise.
15369         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
15370         * sysdeps/mach/hurd/mmap.c: Likewise.
15371         * sysdeps/mach/hurd/utimes.c: Likewise.
15372         * sysdeps/mach/hurd/xmknod.c: Likewise.
15373         * sysdeps/posix/profil.c: Likewise.
15374         * sysdeps/posix/readdir_r.c: Likewise.
15375         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15376         * sysdeps/powerpc/bits/setjmp.h: Likewise.
15377         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
15378         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15379         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15380         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
15381         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15382         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15383         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15384         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
15385         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15386         * sysdeps/pthread/lio_listio.c: Likewise.
15387         * sysdeps/sparc/dl-procinfo.h: Likewise.
15388         * sysdeps/unix/i386/sysdep.S: Likewise.
15389         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
15390         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
15391         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
15392         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
15393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15394         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
15395         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
15396         * sysdeps/unix/sysv/linux/speed.c: Likewise.
15397         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
15398         * sysdeps/wordsize-32/divdi3.c: Likewise.
15399         * time/sys/time.h: Likewise.
15400         * wcsmbs/Makefile: Likewise.
15401
15402 2013-01-01  David S. Miller  <davem@davemloft.net>
15403
15404         * po/fr.po: Update from translation team.
15405
15406         * catgets/gencat.c: Update copyright year.
15407         * csu/version.c: Likewise.
15408         * debug/catchsegv.sh: Likewise.
15409         * debug/pcprofiledump.c: Likewise.
15410         * debug/xtrace.sh: Likewise.
15411         * elf/ldconfig.c: Likewise.
15412         * elf/ldd.bash.in: Likewise.
15413         * elf/pldd.c: Likewise.
15414         * elf/sotruss.ksh: Likewise.
15415         * elf/sprof.c: Likewise.
15416         * iconv/iconv_prog.c: Likewise.
15417         * iconv/iconvconfig.c: Likewise.
15418         * locale/programs/locale.c: Likewise.
15419         * locale/programs/localedef.c: Likewise.
15420         * login/programs/pt_chown.c: Likewise.
15421         * malloc/memusage.sh: Likewise.
15422         * malloc/memusagestat.c: Likewise.
15423         * malloc/mtrace.pl: Likewise.
15424         * nscd/nscd.c: Likewise.
15425         * nss/getent.c: Likewise.
15426         * nss/makedb.c: Likewise.
15427         * posix/getconf.c: Likewise.
15428
15429 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15430
15431         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
15432         numbers.
15433
15434 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
15435
15436         * math/bits/mathcalls.h (modf): Use __nonnull.
15437
15438 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15439
15440         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
15441         (split): Use macro CN instead of the bare value.
15442         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
15443         could be used.
15444         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
15445         instead of the bare value.
15446         (power1): Likewise.
15447
15448 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15449
15450         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
15451         __ATAN_TWOM.
15452         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15453
15454         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
15455         their values.
15456         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
15457         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
15458         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
15459         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
15460
15461 2012-12-28  Andreas Jaeger  <aj@suse.de>
15462
15463         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
15464         values are from Linux 3.7.
15465
15466         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
15467         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
15468
15469 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15470
15471         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
15472         TRUE case.
15473
15474         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
15475         (norm): Likewise.
15476         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
15477         variables with preprocessor constants.
15478         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15479         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15480         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15481
15482 2012-12-27  Bruno Haible  <bruno@clisp.org>
15483
15484         [BZ #14317]
15485         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
15486         only if needed.
15487
15488 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15489
15490         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
15491         and use variable directly.
15492         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
15493
15494         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15495         MPONE.
15496         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
15497         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15498         variable MPONE.
15499         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
15500         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
15501         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
15502         include directive.  Remove local variable MPONE.
15503         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
15504         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
15505         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15506
15507 2012-12-25  David S. Miller  <davem@davemloft.net>
15508
15509         * version.h (RELEASE): Set to "development".
15510         (VERSION): Set to "2.17.90".
15511         * NEWS: Add 2.18 section.
15512
15513 2012-12-21  David S. Miller  <davem@davemloft.net>
15514
15515         * po/hr.po: Update from translation team.
15516
15517 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15518
15519         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
15520
15521 2012-12-19  Steve Ellcey  <sellcey@mips.com>
15522
15523         * NEWS:  Mention new memcpy for MIPS.
15524
15525 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15526
15527         * manual/contrib.texi (Contributors): Spelling correction.
15528
15529 2012-12-15  David S. Miller  <davem@davemloft.net>
15530
15531         * po/ru.po: Update from translation team.
15532
15533 2012-12-13  David S. Miller  <davem@davemloft.net>
15534
15535         * NEWS: Mention IFUNC testsuite enhancements.
15536
15537         * po/pl.po: Update from translation team.
15538         * po/bg.po: Likewise.
15539
15540         * manual/contrib.texi (Contributors): Update entries for Hongjiu
15541         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
15542
15543 2012-12-11  David S. Miller  <davem@davemloft.net>
15544
15545         * po/sv.po: Update from translation team.
15546
15547         * po/vi.po: Update from translation team.
15548
15549         * po/cs.po: Update from translation team.
15550
15551         * po/de.po: Update from translation team.
15552         * po/eo.po: Likewise.
15553         * po/nl.po: Likewise.
15554
15555 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15556
15557         [BZ #14246]
15558         * manual/argp.texi (Argp Helper Functions): Move node to follow
15559         Argp Parsing State.
15560
15561         [BZ #14872]
15562         * manual/conf.texi (Limits on File System Capacity): Mention if
15563         terminating null is included in the max size.
15564
15565 2012-12-10  Andreas Jaeger  <aj@suse.de>
15566
15567         * po/cs.po: Update from translation team.
15568
15569 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
15570
15571         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
15572         void pointer and cast to uintptr_t.
15573         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
15574         path.
15575         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15576         * sysdeps/s390/s390-64/memset.S: Likewise.
15577
15578 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
15579
15580         [BZ #14833]
15581         * menual/message.texi (Message Translation): Fix typos.
15582         (Helper programs for gettext): Likewise.
15583
15584 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
15585
15586         [BZ #14898]
15587         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
15588         Change to -1.
15589
15590 2012-12-07  David S. Miller  <davem@davemloft.net>
15591
15592         * po/libc.pot: Update.
15593
15594 2012-12-07  Richard Henderson  <rth@redhat.com>
15595
15596         [BZ #10114]
15597         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
15598         normal/normal case to before the switch.
15599         (_FP_DIV): Likewise.
15600
15601 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
15602             Mike Frysinger  <vapier@gentoo.org>
15603
15604         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
15605         check for __NR_fadvise64_64.
15606
15607 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
15608
15609         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
15610         0, not just to plain "0" as a statement.
15611         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
15612         with cw.
15613
15614 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
15615
15616         * NEWS: Use sourceware.org in Bugzilla URL.
15617
15618 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15619
15620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
15621         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15622
15623         * stdio-common/tst-put-error.c (do_test): Add newline to the
15624         padded test to ensure flush.
15625
15626 2012-12-05  Jeff Law  <law@redhat.com>
15627
15628         * sunrpc/etc.rpc (fedfs_admin): Add entry.
15629
15630 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
15631
15632         * README: Don't refer to ports add-on as distributed separately.
15633         Mention AArch64 in list of systems supported in the ports add-on.
15634
15635         * LICENSES: Add more non-FSF copyright and license notices.
15636
15637         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
15638         ((unused)).
15639
15640         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
15641
15642         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
15643         10000 as width of padded output.
15644
15645 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15646
15647         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
15648
15649         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
15650         variable LX with __attribute__ ((unused)).
15651         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15652         Likewise.
15653         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
15654         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15655         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
15656         with __attribute__ ((unused)).
15657
15658 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
15659
15660         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
15661
15662 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15663
15664         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
15665         (CFLAGS-nldbl-acos.c): New variable.
15666         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
15667         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
15668         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
15669         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
15670         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
15671         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
15672         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
15673         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
15674         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
15675         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
15676         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
15677         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
15678         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
15679         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
15680         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
15681         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
15682         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
15683         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
15684         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
15685         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
15686         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
15687         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
15688         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
15689         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
15690         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
15691         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
15692         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
15693         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
15694         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
15695         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
15696         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
15697         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
15698         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
15699         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
15700         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
15701         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
15702         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
15703         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
15704         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
15705         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
15706         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
15707         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
15708         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
15709         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
15710         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
15711         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
15712         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
15713         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
15714         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
15715         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
15716         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
15717         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
15718         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
15719         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
15720         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
15721         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
15722         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
15723         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
15724         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
15725         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
15726         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
15727         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
15728         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
15729         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
15730         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
15731         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
15732         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
15733         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
15734         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
15735         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
15736         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
15737         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
15738         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
15739         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
15740         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
15741         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
15742         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
15743         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
15744         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
15745         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
15746         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
15747         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
15748         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
15749         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
15750         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
15751         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
15752         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
15753         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
15754         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
15755         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
15756         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
15757         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
15758         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
15759         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
15760         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
15761         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
15762         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
15763
15764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
15765         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15766
15767         [BZ #14914]
15768         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
15769         whole low double instead of just low 47 bits when splitting values
15770         into two parts.
15771
15772 2012-12-03  Allan McRae  <allan@archlinux.org>
15773
15774         * manual/stdio.texi (Predefined Printf Handlers): Remove
15775         @hsep and @vsep usage.
15776
15777 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
15778
15779         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
15780         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
15781
15782 2012-12-03  Jeff Law  <law@redhat.com>
15783
15784         * time/sys/time.h (settimeofday): Do not mark TV argument
15785         as __nonnull.
15786
15787 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
15788
15789         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
15790         when currently writing and seek to current position when not.
15791         * libio/Makefile (tests): Remove bug-fclose1.
15792         * libio/bug-fclose1.c: Delete.
15793
15794 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
15795
15796         * manual/arith.texi (feenableexcept): Fix typo.
15797         (fedisableexcept): Likewise.
15798
15799 2012-11-30  Roland McGrath  <roland@hack.frob.com>
15800
15801         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
15802         second, differently-typed declaration, rather than a cast.
15803
15804 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15805
15806         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
15807         * include/rpc/svc.h: ... here.
15808
15809 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
15810
15811         [BZ #13013]
15812         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
15813         depending n and resplen2 to catch cases where answer
15814         equals answerp2.
15815
15816 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
15817
15818         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
15819         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
15820
15821 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
15822
15823         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
15824
15825 2012-11-29  Roland McGrath  <roland@hack.frob.com>
15826
15827         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
15828
15829 2012-11-28  Jeff Law  <law@redhat.com>
15830
15831         [BZ #13761]
15832         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
15833         dataset_temporary.  Track alloca usage into alloca_used.
15834         If dataset is large allocate and release it via malloc/free.
15835
15836 2012-06-04  Florian Weimer  <fweimer@redhat.com>
15837
15838         [BZ #14197]
15839         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
15840
15841 2012-11-28  David S. Miller  <davem@davemloft.net>
15842
15843         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15844
15845 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15846
15847         [BZ #14803]
15848         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
15849         of pi/2 rounded to nearest to 64 bits.
15850         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
15851         nearest to 64 bits.
15852         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
15853         bits.
15854
15855 2012-11-28  Jeff Law <law@redhat.com>
15856             Martin Osvald <mosvald@redhat.com>
15857
15858         [BZ #14889]
15859         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
15860         * sunrpc/svc.c: Include time.h.
15861         (__svc_accept_failed): New function.
15862         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
15863         any reason other than EINTR, call __svc_accept_failed.
15864         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
15865         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
15866
15867 2012-11-28  Andreas Schwab  <schwab@suse.de>
15868
15869         * scripts/abilist.awk: Also handle indirect functions in .opd
15870         section.
15871
15872 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15873
15874         [BZ #13881]
15875         * sysdeps/x86/fpu/powl_helper.c: New file.
15876         * sysdeps/x86/fpu/Makefile: Likewise.
15877         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
15878         (p3): New object.
15879         (__ieee754_powl): Use __powl_helper for finite arguments except
15880         integer exponents below 8.
15881         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
15882         (p3): New object.
15883         (__ieee754_powl): Use __powl_helper for finite arguments except
15884         integer exponents below 8.
15885         * math/libm-test.inc (pow_test): Add more tests and enable some
15886         previously disabled tests.
15887         * sysdeps/i386/fpu/libm-test-ulps: Update.
15888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15889
15890 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15891             Carlos O'Donell  <carlos_odonell@mentor.com>
15892
15893         * nss/makedb.c (is_prime): Assert that input is odd and greater
15894         than 4.  Note that fact in a comment too.
15895         (next_prime): Add 4 to input.
15896
15897 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15898
15899         [BZ #11741]
15900         * libio/Makefile (tests): Add test case tst-fwrite-error.
15901         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
15902         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15903         * libio/tst-fwrite-error.c: New test case.
15904
15905 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
15906
15907         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
15908         before casting to void *.
15909         * include/libc-internal.h (__pointer_type): New macro.
15910         (__integer_if_pointer_type_sub): Likewise.
15911         (__integer_if_pointer_type): Likewise.
15912         (cast_to_integer): Likewise.
15913         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
15914         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
15915         before casting to atomic64_t.
15916         (atomic_exchange_acq): Likewise.
15917         (__arch_exchange_and_add_body): Likewise.
15918         (__arch_add_body): Likewise.
15919         (atomic_add_negative): Likewise.
15920         (atomic_add_zero): Likewise.
15921
15922 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
15923
15924         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
15925         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
15926         (add_fdes): Likewise.
15927         (linear_search_fdes): Likewise.
15928         (binary_search_unencoded_fdes): Likewise.
15929
15930 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
15931
15932         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
15933
15934 2012-11-24  Adam Conrad  <adconrad@0c3.net>
15935
15936         * configure.in: Autodetect C++ header directories.
15937         * configure: Regenerated.
15938
15939 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
15940
15941         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
15942
15943 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
15944
15945         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15946
15947 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
15948
15949         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
15950         LDBL_MANT_DIG == 106]: Disable some tests.
15951         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15952         Likewise.
15953         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15954         Likewise.
15955
15956         [BZ #14871]
15957         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
15958         input for small inputs.  Return +/- pi/2 for large inputs.
15959         * math/libm-test.inc (atan_test): Add more tests.
15960
15961         * sysdeps/generic/unwind-dw2-fde-glibc.c
15962         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
15963         __attribute__ ((unused)).
15964
15965         [BZ #14645]
15966         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
15967         x * y if x and y are nonzero and z is zero.
15968
15969         [BZ #14811]
15970         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
15971         nonzero exponents with absolute value below 0x1p-117 to +/-
15972         0x1p-117.
15973
15974         [BZ #14869]
15975         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
15976         up arguments below 2**-450, not just those below 2**-500.
15977         * math/libm-test.inc (hypot_test): Add another test.
15978
15979         [BZ #14868]
15980         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
15981         Return a+b for ratio over 2**120, not 2**60.
15982         * math/libm-test.inc (hypot_test): Add another test.
15983
15984         * math/libm-test.inc (clog_test): Use
15985         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
15986         (clog10_test): Likewise.
15987
15988         [BZ #6778]
15989         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
15990
15991 2012-11-22  Andreas Schwab  <schwab@suse.de>
15992
15993         * sysdeps/i386/fpu/libm-test-ulps: Update.
15994
15995 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
15996
15997         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
15998         printf output with newline.
15999
16000 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
16001
16002         [BZ #14865]
16003         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
16004         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
16005         -z nodlopen, -z initfirst and -z execstack support.
16006         * configure: Regenerated.
16007
16008         * elf/elf.h (DF_1_NODIRECT): New macro.
16009         (DF_1_IGNMULDEF): Likewise.
16010         (DF_1_NOKSYMS): Likewise.
16011         (DF_1_NOHDR): Likewise.
16012         (DF_1_EDITED): Likewise.
16013         (DF_1_NORELOC): Likewise.
16014         (DF_1_SYMINTPOSE): Likewise.
16015         (DF_1_GLOBAUDIT): Likewise.
16016         (DF_1_SINGLETON): Likewise.
16017         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
16018         DT_1_SUPPORTED_MASK bits.
16019         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
16020
16021 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
16022
16023         * sysdeps/unix/make-syscalls.sh: Document prefixes.
16024
16025 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
16026
16027         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
16028         macro.
16029
16030         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
16031         (sendmmsg): Move declarations...
16032         * socket/sys/socket.h: ... here.
16033         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
16034         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
16035         include it from...
16036         * socket/recvmmsg.c: ... this new file.
16037         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
16038         (sendmmsg): Rename to __sendmmsg, create weak alias and make
16039         definition of __sendmmsg hidden.
16040         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16041         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
16042         Move ENOSYS stub into and include it from...
16043         * socket/sendmmsg.c: ... this new file.
16044         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
16045         (sysdep_routines): Move recvmmsg and sendmmsg...
16046         * socket/Makefile (routines): ... here.
16047         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
16048         (GLIBC_PRIVATE): Add __sendmmsg.
16049         * include/sys/socket.h (__sendmmsg): Add declarations.
16050         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
16051         sendmmsg.
16052
16053 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
16054
16055         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
16056         variable I1 with __attribute__ ((unused)).
16057         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
16058
16059 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
16060
16061         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
16062         DUMMY variables with __attribute__ ((unused)).
16063
16064         * bits/byteswap.h: Include <bits/types.h>.
16065         (__bswap_64): Use __uint64_t instead of unsigned long long int.
16066
16067 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16068
16069         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
16070         string_t.  Do not manually set errno.
16071         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
16072         length with __strnlen.  Make sure to both set errno and return it on
16073         failure.
16074
16075 2012-11-19  David S. Miller  <davem@davemloft.net>
16076
16077         With help from Joseph Myers.
16078         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
16079         very large arguments properly.
16080         * math/libm-test.inc (atan_test): New tests.
16081         (atan2_test): New tests.
16082         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16083         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16084
16085 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
16086
16087         [BZ #14856]
16088         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
16089         Define to 3.
16090
16091         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
16092         [POSIX] (EADDRNOTAVAIL): Likewise.
16093         [POSIX] (EAFNOSUPPORT): Likewise.
16094         [POSIX] (EALREADY): Likewise.
16095         [POSIX] (ECONNABORTED): Likewise.
16096         [POSIX] (ECONNREFUSED): Likewise.
16097         [POSIX] (ECONNRESET): Likewise.
16098         [POSIX] (EDESTADDRREQ): Likewise.
16099         [POSIX] (EDQUOT): Likewise.
16100         [POSIX] (EHOSTUNREACH): Likewise.
16101         [POSIX] (EIDRM): Likewise.
16102         [POSIX] (EISCONN): Likewise.
16103         [POSIX] (ELOOP): Likewise.
16104         [POSIX] (EMULTIHOP): Likewise.
16105         [POSIX] (ENETDOWN): Likewise.
16106         [POSIX] (ENETUNREACH): Likewise.
16107         [POSIX] (ENOBUFS): Likewise.
16108         [POSIX] (ENODATA): Likewise.
16109         [POSIX] (ENOLINK): Likewise.
16110         [POSIX] (ENOMSG): Likewise.
16111         [POSIX] (ENOPROTOOPT): Likewise.
16112         [POSIX] (ENOSR): Likewise.
16113         [POSIX] (ENOSTR): Likewise.
16114         [POSIX] (ENOTCONN): Likewise.
16115         [POSIX] (ENOTSOCK): Likewise.
16116         [POSIX] (EOPNOTSUPP): Likewise.
16117         [POSIX] (EOVERFLOW): Likewise.
16118         [POSIX] (EPROTO): Likewise.
16119         [POSIX] (EPROTONOSUPPORT): Likewise.
16120         [POSIX] (EPROTOTYPE): Likewise.
16121         [POSIX] (ESTALE): Likewise.
16122         [POSIX] (ETIME): Likewise.
16123         [POSIX] (ETXTBSY): Likewise.
16124         [POSIX] (EWOULDBLOCK): Likewise.
16125         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
16126         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
16127         [POSIX] (SEEK_CUR): Likewise.
16128         [POSIX] (SEEK_END): Likewise.
16129         [POSIX || UNIX98] (mode_t): Do not require.
16130         [POSIX] (off_t): Likewise.
16131         [POSIX] (pid_t): Likewise.
16132         [POSIX] (sys/stat.h): Do not allow header.
16133         [POSIX] (unistd.h): Likewise.
16134         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
16135         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
16136         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
16137         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
16138         require.
16139         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
16140         sigevent): Specify elements.
16141         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
16142         entry.
16143         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
16144         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
16145
16146         * conform/data/cpio.h-data [POSIX]: Disable whole file.
16147         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
16148         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
16149         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
16150         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
16151         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
16152         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
16153         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
16154         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
16155         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
16156         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
16157         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
16158         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
16159         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
16160         Likewise.
16161         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
16162         Likewise.
16163         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
16164         Likewise.
16165         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
16166         Likewise.
16167         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
16168         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
16169         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
16170         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
16171         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
16172         Specify lower bound on value.
16173         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
16174         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
16175         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
16176         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
16177         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
16178         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
16179         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
16180         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
16181         value.
16182         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
16183         as optional.
16184         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
16185         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
16186         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
16187         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
16188         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
16189         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
16190         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
16191         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
16192         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
16193         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
16194         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
16195         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
16196         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
16197         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
16198         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
16199         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
16200         entry.
16201         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
16202         optional.
16203         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
16204         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
16205         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
16206         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
16207         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
16208         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
16209         Likewise.
16210         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
16211         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
16212         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
16213         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
16214         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
16215         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
16216         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
16217         as optional.
16218         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
16219         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
16220         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
16221         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
16222         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
16223         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
16224         specify as optional.
16225         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
16226         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
16227         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
16228         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
16229         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
16230         [XPG3] (NL_LANGMAX): Likewise.
16231         [POSIX || XPG3] (NL_MSGMAX): Likewise.
16232         [POSIX || XPG3] (NL_NMAX): Likewise.
16233         [POSIX || XPG3] (NL_SETMAX): Likewise.
16234         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
16235         [XPG3] (NZERO): Likewise.
16236         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
16237         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
16238         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
16239         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
16240         (REG_ERANGE): Expect.
16241         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
16242         optional-constant.
16243         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
16244         Use (void) in prototype.
16245         [POSIX] (*_t): Allow.
16246         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
16247         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
16248         (WRDE_BADVAL): Expect.
16249
16250         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
16251         expect.
16252         [XPG3 || XPG4] (O_RSYNC): Likewise.
16253         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
16254         Likewise.
16255         [XPG3 || XPG4] (pthread_sigmask): Likewise.
16256         [XPG3 || XPG4] (sigqueue): Likewise.
16257         [XPG3 || XPG4] (sigtimedwait): Likewise.
16258         [XPG3 || XPG4] (sigwaitinfo): Likewise.
16259         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
16260         [XPG3 || XPG4] (vsnprintf): Likewise.
16261         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
16262         Likewise.
16263         [XPG3 || XPG4] (blksize_t): Likewise.
16264         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
16265         Likewise.
16266         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
16267         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
16268         [XPG3 || XPG4] (struct itimerspec): Likewise.
16269         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
16270         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
16271         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
16272         [XPG3 || XPG4] (clockid_t): Likewise.
16273         [XPG3 || XPG4] (timer_t): Likewise.
16274         [XPG3 || XPG4] (clock_getres): Likewise.
16275         [XPG3 || XPG4] (clock_gettime): Likewise.
16276         [XPG3 || XPG4] (clock_settime): Likewise.
16277         [XPG3 || XPG4] (nanosleep): Likewise.
16278         [XPG3 || XPG4] (timer_create): Likewise.
16279         [XPG3 || XPG4] (timer_delete): Likewise.
16280         [XPG3 || XPG4] (timer_gettime): Likewise.
16281         [XPG3 || XPG4] (timer_getoverrun): Likewise.
16282         [XPG3 || XPG4] (timer_settime): Likewise.
16283         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
16284         [XPG3 || XPG4] (getlogin_r): Likewise.
16285         [XPG3 || XPG4] (pread): Likewise.
16286         [XPG3 || XPG4] (pthread_atfork): Likewise.
16287         [XPG3 || XPG4] (pwrite): Likewise.
16288
16289         [BZ #14835]
16290         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
16291         <bits/siginfo.h>.
16292
16293 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16294
16295         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
16296         finalizing MALLSTREAM.
16297
16298         * sysdeps/mach/hurd/syncfs.c: New file.
16299
16300 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
16301
16302         [BZ #14719]
16303         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
16304         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
16305         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
16306         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
16307         (_nss_dns_gethostbyname4_r): Likewise.
16308         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
16309         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
16310
16311 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
16312
16313         [BZ #13763]
16314         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
16315
16316 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
16317
16318         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
16319         * elf/cache.c (print_entry): Print ",AArch64" for
16320         FLAG_AARCH64_LIB64
16321
16322         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
16323         * elf/cache.c (print_entry): Print ",hard-float" for
16324         FLAG_ARM_LIBHF.
16325
16326 2012-11-18  David S. Miller  <davem@davemloft.net>
16327
16328         With help from Joseph Myers.
16329         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
16330         cutoff to 2**-13.
16331         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
16332         cutoff to 2**-25.
16333         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
16334         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
16335         small.
16336         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
16337         * math/libm-test.inc (y0_test): New tests.
16338         (y1_test): New tests.
16339         * sysdeps/i386/fpu/libm-test-ulps: Update.
16340         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16341         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16342
16343 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
16344
16345         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
16346         64-bit targets.
16347         * configure: Regenerated.
16348
16349 2012-11-17  David S. Miller  <davem@davemloft.net>
16350
16351         [BZ #14811]
16352         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
16353         nonzero exponents with absolute value below 0x1p-128 to +/-
16354         0x1p-128.
16355
16356 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
16357
16358         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
16359
16360         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
16361
16362         * posix/getconf-speclist.c: New file.
16363         * posix/posix-envs.def: Likewise.
16364         * posix/confstr.c (START_ENV_GROUP): New macro.
16365         (END_ENV_GROUP): Likewise.
16366         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16367         (KNOWN_PRESENT_ENV_STRING): Likewise.
16368         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16369         (UNKNOWN_ENVIRONMENT): Likewise.
16370         (confstr): Include posix-envs.def instead of handling
16371         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
16372         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
16373         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
16374         (END_ENV_GROUP): Likewise.
16375         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16376         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16377         (UNKNOWN_ENVIRONMENT): Likewise.
16378         (__sysconf): Include posix-envs.def instead of handling associated
16379         cases directly here.
16380         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
16381         preprocessing getconf-speclist.c rather than running getconf or
16382         generating empty file.
16383
16384 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
16385
16386         * scripts/check-local-headers.sh: Ignore 'mach' headers.
16387
16388 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
16389
16390         [BZ #14672]
16391         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
16392
16393 2012-11-16  David S. Miller  <davem@davemloft.net>
16394
16395         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
16396         smaller than LDBL_EPSILON/2.0L, just return xm1.
16397
16398 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
16399
16400         * elf/tst-array1.c (init): Set constructor priority to 1000.
16401         (fini): Set destructor priority to 1000.
16402         * elf/tst-array2dep.c: Likewise.
16403
16404 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16405
16406         [BZ #11741]
16407         * libio/fileops.c (_IO_new_file_write): Correctly return error.
16408         (_IO_new_file_xsputn): Also return EOF if none of the input
16409         data was written when overflow failed.
16410         * libio/iopadn.c (_IO_padn): Likewise.
16411         * libio/iowpadn.c (_IO_wpadn): Likewise.
16412         * stdio-common/tst-put-error.c: Add copyright notice.
16413         (do_test): Add case for printing padded string.
16414         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
16415         _IO_padn returned error.
16416         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
16417         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
16418         return EOF.
16419
16420 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16421
16422         * libio/libioP.h: Add comment note that the references to C++
16423         bits are now obsolete.
16424
16425 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16426
16427         * math/libm-test.inc (check_complex): Use asprintf.
16428
16429 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
16430
16431         * debug/pcprofiledump.c (print_version): Update copyright year.
16432         * malloc/memusagestat.c (print_version): Likewise.
16433
16434 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
16435
16436         [BZ #14831]
16437         * elf/Makefile (tests): Add tst-audit8.
16438         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
16439         ($(objpfx)tst-audit8.out): New target.
16440         (tst-audit8-ENV): New variable.
16441         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
16442         audit if l_reloc_result is NULL.
16443         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
16444         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
16445         * elf/tst-audit8.c: New file.
16446
16447 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16448
16449         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
16450         * misc/Makefile (CFLAGS-select.c): Define.
16451         * posix/Makefile (CFLAGS-pause.c): Define.
16452
16453 2012-11-13  David S. Miller  <davem@davemloft.net>
16454
16455         * crypt/Makefile: Move test targets after toplevel Rules
16456         inclusion.  Grab any necessary sysdep routines when linking.
16457         * crypt/md5.c (md5_process_block): Remove define, we will always
16458         name it __md5_process_block.
16459         (md5_finish_ctx): Update md5_process_block call.
16460         (md5_stream): Likewise.
16461         (md5_process_bytes): Likewise.
16462         (md5_process_block): Rename to __md5_process_block and move to ...
16463         * crypt/md5-block.c: ... here.
16464         * crypt/sha256.c (sha256_process_block): Move to ...
16465         * crypt/sha256-block.c: ... here.
16466         * crypt/sha512.c (sha512_process_block): Move to ...
16467         * crypt/sha512-block.c: ... here.
16468         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
16469         path.
16470         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
16471         * sysdeps/sparc/sparc64/multiarch/Makefile
16472         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
16473         crypt subdir.
16474         (localedef-aux): Add md5 crypto assembler when in locale subdir.
16475         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
16476         multiarch changes.
16477         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
16478         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
16479         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
16480         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
16481         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
16482         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
16483         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
16484         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
16485         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
16486         file.
16487         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
16488         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
16489         file.
16490         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
16491
16492 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
16493
16494         * timezone/tzselect.ksh: Update from tzcode git revision
16495         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
16496         * timezone/zdump.c: Likewise.
16497         * timezone/zic.c: Likewise.
16498         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
16499         in TZVERSION setting, not $(PKGVERSION).
16500         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
16501         REPORT_BUGS_TO settings.
16502
16503         [BZ #14838]
16504         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
16505         macro.
16506
16507 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16508
16509         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
16510         detection to immediately after _FP_ROUND().
16511         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
16512         bits are 0.
16513
16514 2012-11-11  David S. Miller  <davem@davemloft.net>
16515
16516         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
16517         inttypes.h
16518         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
16519         __close rather than their public counterparts.
16520
16521 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
16522
16523         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
16524         file.
16525         [UNIX98] (sem_timedwait): Do not expect.
16526         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
16527         [XPG4 || UNIX98] (sockatmark): Do not expect.
16528         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
16529         (clock_getcpuclockid): Do not expect.
16530         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
16531         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
16532         Do not expect.
16533         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
16534         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
16535         [UNIX98] (vwscanf): Likewise.
16536         [UNIX98] (vswscanf): Likewise.
16537
16538 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
16539
16540         * timezone/version.h: Remove file.
16541         * timezone/README: Do not refer to version.h.
16542         * timezone/Makefile ($(objpfx)zic.o): New dependency on
16543         $(objpfx)version.h.
16544         ($(objpfx)zdump.o): Likewise.
16545         ($(objpfx)version.h): New target.
16546
16547         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
16548         2012i.
16549         * timezone/README: Don't mention modification to tzselect.ksh.
16550         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
16551         work on unmodified tzselect.ksh.  Substitute version numbers in
16552         tzselect.ksh.
16553
16554         * Makefile (format-me): Remove.
16555         (INSTALL): Adjust indentation.  Use commands directly instead of
16556         using $(format-me).
16557
16558         * aclocal.m4 (ACX_PKGVERSION): New macro.
16559         (ACX_BUGURL): Likewise.
16560         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
16561         (PKGVERSION): New AC_DEFINE_UNQUOTED.
16562         (REPORT_BUGS_TO): Likewise.
16563         * configure: Regenerated.
16564         * config.h.in (PKGVERSION): New macro.
16565         (REPORT_BUGS_TO): Likewise.
16566         * config.make.in (PKGVERSION): New variable.
16567         (PKGVERSION_TEXI): Likewise.
16568         (REPORT_BUGS_TO): Likewise.
16569         (REPORT_BUGS_TEXI): Likewise.
16570         * Makefile (format-me): Use -I$(common-objpfx)manual.
16571         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
16572         ($(common-objpfx)manual/%): New target.
16573         (manual/%): Remove target.
16574         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
16575         (print_version): Use PKGVERSION.
16576         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
16577         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
16578         and REPORT_BUGS_TO.
16579         ($(objpfx)xtrace): Likewise.
16580         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
16581         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
16582         (print_version): Use PKGVERSION.
16583         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
16584         (do_version): Use PKGVERSION.
16585         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
16586         REPORT_BUGS_TO.
16587         (common-ldd-rewrite): Likewise.
16588         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
16589         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
16590         (print_version): Use PKGVERSION.
16591         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
16592         * elf/pldd.c (argp_program_bug_address): Remove variable.
16593         (more_help): New function.
16594         (argp): Use more_help.
16595         (print_version): Use PKGVERSION.
16596         * elf/sln.c (main): Use PKGVERSION.
16597         (usage): Use REPORT_BUGS_TO.
16598         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
16599         (top level): Use PKGVERSION.
16600         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
16601         (print_version): Use PKGVERSION.
16602         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
16603         (print_version): Use PKGVERSION.
16604         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
16605         (print_version): Use PKGVERSION.
16606         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
16607         (print_version): Use PKGVERSION.
16608         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
16609         (print_version): Use PKGVERSION.
16610         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
16611         (print_version): Use PKGVERSION.
16612         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
16613         and BUGURL.
16614         ($(objpfx)memusage): Likewise.
16615         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
16616         (do_version): Use PKGVERSION.
16617         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
16618         (print_version): Use PKGVERSION.
16619         * malloc/mtrace.pl ($PACKAGE): Remove variable.
16620         ($PKGVERSION): New variable.
16621         ($REPORT_BUGS_TO): Likewise.
16622         (usage): Use $REPORT_BUGS_TO.
16623         (top level): Use $PKGVERSION.
16624         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
16625         ($(objpfx)pkgvers.texi): New rule.
16626         ($(objpfx)stamp-pkgvers): Likewise.
16627         * manual/install.texi: Include pkgvers.texi.
16628         (--with-pkgversion): Document new configure option.
16629         (--with-bugurl): Likewise.
16630         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
16631         than necessarily for this particular distribution.  Use
16632         REPORT_BUGS_TO for where to report bugs.
16633         * INSTALL: Regenerated.
16634         * manual/libc.texinfo: Include pkgvers.texi.
16635         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
16636         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
16637         (print_version): Use PKGVERSION.
16638         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
16639         (print_version): Use PKGVERSION.
16640         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
16641         (print_version): Use PKGVERSION.
16642         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
16643         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
16644         macro.
16645         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
16646         (print_version): Use PKGVERSION.
16647         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
16648         (print_version): Use PKGVERSION.
16649         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
16650         and PKGVERSION.
16651
16652         * timezone/checktab.awk: Update from tzcode 2012i.
16653         * timezone/ialloc.c: Likewise.
16654         * timezone/private.h: Likewise.
16655         * timezone/scheck.c: Likewise.
16656         * timezone/tzfile.h: Likewise.
16657         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
16658         (TZVERSION): Hardcode tzcode version number.
16659         * timezone/zdump.c: Update from tzcode 2012i.
16660         * timezone/zic.c: Likewise.
16661         * timezone/version.h: New file.
16662         * timezone/README: Describe version.h.  Update upstream location.
16663
16664         [BZ #14824]
16665         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
16666         (mktemp): Enable declaration.
16667         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
16668         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
16669         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
16670         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
16671         Likewise.
16672         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
16673         Likewise.
16674         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
16675         Likewise.
16676         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
16677         Likewise.
16678         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
16679         Likewise.
16680         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
16681         Likewise.
16682
16683         [BZ #14821]
16684         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
16685         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
16686         for copies of such integer values.
16687         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16688         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16689
16690 2012-11-09  Andreas Jaeger  <aj@suse.de>
16691
16692         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
16693         definitions and declarations that are provided by
16694         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
16695
16696 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16697
16698         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
16699         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
16700         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
16701         definition.
16702
16703 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16704
16705         * elf/elf.h: Update comment before AArch64 relocations.
16706
16707 2012-11-07  David S. Miller  <davem@davemloft.net>
16708
16709         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
16710         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16711         (__start_context): Declare.
16712         (__makecontext_ret): Delete.
16713         (__makecontext): Hook up __start_context instead of
16714         __makecontext_ret.
16715         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
16716         (sysdep_routines): Add __start_context when in stdlib.
16717
16718 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16719
16720         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
16721         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
16722         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
16723         hardcoded "nm".
16724         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
16725         (READELF): New variable.  Use it instead of hardcoded "readelf".
16726
16727 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16728
16729         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
16730         * sysdeps/x86/Makefile: Here.
16731         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
16732         * sysdeps/x86/tst-xmmymm.sh: This.
16733
16734 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16735
16736         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
16737         expectations.
16738         [UNIX98] (pthread_barrier_t): Do not expect.
16739         [UNIX98] (pthread_barrierattr_t): Likewise.
16740         [UNIX98] (pthread_spinlock_t): Likewise.
16741         [UNIX98] (pthread_barrier_destroy): Likewise.
16742         [UNIX98] (pthread_barrier_init): Likewise.
16743         [UNIX98] (pthread_barrier_wait): Likewise.
16744         [UNIX98] (pthread_barrierattr_destroy): Likewise.
16745         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
16746         [UNIX98] (pthread_barrierattr_init): Likewise.
16747         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
16748         [UNIX98] (pthread_getcpuclockid): Likewise.
16749         [UNIX98] (pthread_mutex_timedlock): Likewise.
16750         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
16751         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
16752         [UNIX98] (pthread_sigmask): Likewise.
16753         [UNIX98] (pthread_spin_destroy): Likewise.
16754         [UNIX98] (pthread_spin_init): Likewise.
16755         [UNIX98] (pthread_spin_lock): Likewise.
16756         [UNIX98] (pthread_spin_trylock): Likewise.
16757         [UNIX98] (pthread_spin_unlock): Likewise.
16758         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
16759         Do not expect.
16760         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
16761         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
16762         [XPG3 || XPG4] (pthread_cond_t): Likewise.
16763         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
16764         [XPG3 || XPG4] (pthread_key_t): Likewise.
16765         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
16766         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
16767         [XPG3 || XPG4] (pthread_once_t): Likewise.
16768         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
16769         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
16770         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
16771         [XPG3 || XPG4] (pthread_t): Likewise.
16772
16773         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
16774         not expect.
16775         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
16776
16777         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
16778         Change function return type to int.
16779
16780         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
16781         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
16782         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
16783         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
16784         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
16785         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
16786         [!POSIX] (posix_madvise): Likewise.
16787         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
16788         && !UNIX98].
16789         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
16790         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
16791         (mode_t): Likewise.
16792         (posix_mem_offset): Likewise.
16793         (posix_typed_mem_get_info): Likewise.
16794         (posix_typed_mem_open): Likewise.
16795
16796         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
16797         Change condition to [XOPEN2K8].
16798
16799         * conform/conformtest.pl: Preprocess allow-header data with -x c
16800         instead of from stdin.
16801         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
16802         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
16803         [C99-based standards] (cerfc): Likewise.
16804         [C99-based standards] (cexp2): Likewise.
16805         [C99-based standards] (cexpm1): Likewise.
16806         [C99-based standards] (clog10): Likewise.
16807         [C99-based standards] (clog1p): Likewise.
16808         [C99-based standards] (clog2): Likewise.
16809         [C99-based standards] (clgamma): Likewise.
16810         [C99-based standards] (ctgamma): Likewise.
16811         [C99-based standards] (cerff): Likewise.
16812         [C99-based standards] (cerfcf): Likewise.
16813         [C99-based standards] (cexp2f): Likewise.
16814         [C99-based standards] (cexpm1f): Likewise.
16815         [C99-based standards] (clog10f): Likewise.
16816         [C99-based standards] (clog1pf): Likewise.
16817         [C99-based standards] (clog2f): Likewise.
16818         [C99-based standards] (clgammaf): Likewise.
16819         [C99-based standards] (ctgammaf): Likewise.
16820         [C99-based standards] (cerfl): Likewise.
16821         [C99-based standards] (cerfcl): Likewise.
16822         [C99-based standards] (cexp2l): Likewise.
16823         [C99-based standards] (cexpm1l): Likewise.
16824         [C99-based standards] (clog10l): Likewise.
16825         [C99-based standards] (clog1pl): Likewise.
16826         [C99-based standards] (clog2l): Likewise.
16827         [C99-based standards] (clgammal): Likewise.
16828         [C99-based standards] (ctgammal): Likewise.
16829         * conform/data/inttypes.h-data [C99-based standards]: Include
16830         stdint.h-data.  Remove all expectations for stdint.h contents.
16831         [C99-based standards] (PRI*): Do not allow.
16832         [C99-based standards] (SCN*): Likewise.
16833         [C99-based standards] (*_t): Likewise.
16834         [C99-based-standards] (PRId8): Expect macro.
16835         [C99-based-standards] (PRIi8): Likewise.
16836         [C99-based-standards] (PRIo8): Likewise.
16837         [C99-based-standards] (PRIu8): Likewise.
16838         [C99-based-standards] (PRIx8): Likewise.
16839         [C99-based-standards] (PRIX8): Likewise.
16840         [C99-based-standards] (SCNd8): Likewise.
16841         [C99-based-standards] (SCNi8): Likewise.
16842         [C99-based-standards] (SCNo8): Likewise.
16843         [C99-based-standards] (SCNu8): Likewise.
16844         [C99-based-standards] (SCNx8): Likewise.
16845         [C99-based-standards] (PRIdLEAST8): Likewise.
16846         [C99-based-standards] (PRIiLEAST8): Likewise.
16847         [C99-based-standards] (PRIoLEAST8): Likewise.
16848         [C99-based-standards] (PRIuLEAST8): Likewise.
16849         [C99-based-standards] (PRIxLEAST8): Likewise.
16850         [C99-based-standards] (PRIXLEAST8): Likewise.
16851         [C99-based-standards] (SCNdLEAST8): Likewise.
16852         [C99-based-standards] (SCNiLEAST8): Likewise.
16853         [C99-based-standards] (SCNoLEAST8): Likewise.
16854         [C99-based-standards] (SCNuLEAST8): Likewise.
16855         [C99-based-standards] (SCNxLEAST8): Likewise.
16856         [C99-based-standards] (PRIdFAST8): Likewise.
16857         [C99-based-standards] (PRIiFAST8): Likewise.
16858         [C99-based-standards] (PRIoFAST8): Likewise.
16859         [C99-based-standards] (PRIuFAST8): Likewise.
16860         [C99-based-standards] (PRIxFAST8): Likewise.
16861         [C99-based-standards] (PRIXFAST8): Likewise.
16862         [C99-based-standards] (SCNdFAST8): Likewise.
16863         [C99-based-standards] (SCNiFAST8): Likewise.
16864         [C99-based-standards] (SCNoFAST8): Likewise.
16865         [C99-based-standards] (SCNuFAST8): Likewise.
16866         [C99-based-standards] (SCNxFAST8): Likewise.
16867         [C99-based-standards] (PRId16): Likewise.
16868         [C99-based-standards] (PRIi16): Likewise.
16869         [C99-based-standards] (PRIo16): Likewise.
16870         [C99-based-standards] (PRIu16): Likewise.
16871         [C99-based-standards] (PRIx16): Likewise.
16872         [C99-based-standards] (PRIX16): Likewise.
16873         [C99-based-standards] (SCNd16): Likewise.
16874         [C99-based-standards] (SCNi16): Likewise.
16875         [C99-based-standards] (SCNo16): Likewise.
16876         [C99-based-standards] (SCNu16): Likewise.
16877         [C99-based-standards] (SCNx16): Likewise.
16878         [C99-based-standards] (PRIdLEAST16): Likewise.
16879         [C99-based-standards] (PRIiLEAST16): Likewise.
16880         [C99-based-standards] (PRIoLEAST16): Likewise.
16881         [C99-based-standards] (PRIuLEAST16): Likewise.
16882         [C99-based-standards] (PRIxLEAST16): Likewise.
16883         [C99-based-standards] (PRIXLEAST16): Likewise.
16884         [C99-based-standards] (SCNdLEAST16): Likewise.
16885         [C99-based-standards] (SCNiLEAST16): Likewise.
16886         [C99-based-standards] (SCNoLEAST16): Likewise.
16887         [C99-based-standards] (SCNuLEAST16): Likewise.
16888         [C99-based-standards] (SCNxLEAST16): Likewise.
16889         [C99-based-standards] (PRIdFAST16): Likewise.
16890         [C99-based-standards] (PRIiFAST16): Likewise.
16891         [C99-based-standards] (PRIoFAST16): Likewise.
16892         [C99-based-standards] (PRIuFAST16): Likewise.
16893         [C99-based-standards] (PRIxFAST16): Likewise.
16894         [C99-based-standards] (PRIXFAST16): Likewise.
16895         [C99-based-standards] (SCNdFAST16): Likewise.
16896         [C99-based-standards] (SCNiFAST16): Likewise.
16897         [C99-based-standards] (SCNoFAST16): Likewise.
16898         [C99-based-standards] (SCNuFAST16): Likewise.
16899         [C99-based-standards] (SCNxFAST16): Likewise.
16900         [C99-based-standards] (PRId32): Likewise.
16901         [C99-based-standards] (PRIi32): Likewise.
16902         [C99-based-standards] (PRIo32): Likewise.
16903         [C99-based-standards] (PRIu32): Likewise.
16904         [C99-based-standards] (PRIx32): Likewise.
16905         [C99-based-standards] (PRIX32): Likewise.
16906         [C99-based-standards] (SCNd32): Likewise.
16907         [C99-based-standards] (SCNi32): Likewise.
16908         [C99-based-standards] (SCNo32): Likewise.
16909         [C99-based-standards] (SCNu32): Likewise.
16910         [C99-based-standards] (SCNx32): Likewise.
16911         [C99-based-standards] (PRIdLEAST32): Likewise.
16912         [C99-based-standards] (PRIiLEAST32): Likewise.
16913         [C99-based-standards] (PRIoLEAST32): Likewise.
16914         [C99-based-standards] (PRIuLEAST32): Likewise.
16915         [C99-based-standards] (PRIxLEAST32): Likewise.
16916         [C99-based-standards] (PRIXLEAST32): Likewise.
16917         [C99-based-standards] (SCNdLEAST32): Likewise.
16918         [C99-based-standards] (SCNiLEAST32): Likewise.
16919         [C99-based-standards] (SCNoLEAST32): Likewise.
16920         [C99-based-standards] (SCNuLEAST32): Likewise.
16921         [C99-based-standards] (SCNxLEAST32): Likewise.
16922         [C99-based-standards] (PRIdFAST32): Likewise.
16923         [C99-based-standards] (PRIiFAST32): Likewise.
16924         [C99-based-standards] (PRIoFAST32): Likewise.
16925         [C99-based-standards] (PRIuFAST32): Likewise.
16926         [C99-based-standards] (PRIxFAST32): Likewise.
16927         [C99-based-standards] (PRIXFAST32): Likewise.
16928         [C99-based-standards] (SCNdFAST32): Likewise.
16929         [C99-based-standards] (SCNiFAST32): Likewise.
16930         [C99-based-standards] (SCNoFAST32): Likewise.
16931         [C99-based-standards] (SCNuFAST32): Likewise.
16932         [C99-based-standards] (SCNxFAST32): Likewise.
16933         [C99-based-standards] (PRId64): Likewise.
16934         [C99-based-standards] (PRIi64): Likewise.
16935         [C99-based-standards] (PRIo64): Likewise.
16936         [C99-based-standards] (PRIu64): Likewise.
16937         [C99-based-standards] (PRIx64): Likewise.
16938         [C99-based-standards] (PRIX64): Likewise.
16939         [C99-based-standards] (SCNd64): Likewise.
16940         [C99-based-standards] (SCNi64): Likewise.
16941         [C99-based-standards] (SCNo64): Likewise.
16942         [C99-based-standards] (SCNu64): Likewise.
16943         [C99-based-standards] (SCNx64): Likewise.
16944         [C99-based-standards] (PRIdLEAST64): Likewise.
16945         [C99-based-standards] (PRIiLEAST64): Likewise.
16946         [C99-based-standards] (PRIoLEAST64): Likewise.
16947         [C99-based-standards] (PRIuLEAST64): Likewise.
16948         [C99-based-standards] (PRIxLEAST64): Likewise.
16949         [C99-based-standards] (PRIXLEAST64): Likewise.
16950         [C99-based-standards] (SCNdLEAST64): Likewise.
16951         [C99-based-standards] (SCNiLEAST64): Likewise.
16952         [C99-based-standards] (SCNoLEAST64): Likewise.
16953         [C99-based-standards] (SCNuLEAST64): Likewise.
16954         [C99-based-standards] (SCNxLEAST64): Likewise.
16955         [C99-based-standards] (PRIdFAST64): Likewise.
16956         [C99-based-standards] (PRIiFAST64): Likewise.
16957         [C99-based-standards] (PRIoFAST64): Likewise.
16958         [C99-based-standards] (PRIuFAST64): Likewise.
16959         [C99-based-standards] (PRIxFAST64): Likewise.
16960         [C99-based-standards] (PRIXFAST64): Likewise.
16961         [C99-based-standards] (SCNdFAST64): Likewise.
16962         [C99-based-standards] (SCNiFAST64): Likewise.
16963         [C99-based-standards] (SCNoFAST64): Likewise.
16964         [C99-based-standards] (SCNuFAST64): Likewise.
16965         [C99-based-standards] (SCNxFAST64): Likewise.
16966         [C99-based-standards] (PRIdMAX): Likewise.
16967         [C99-based-standards] (PRIiMAX): Likewise.
16968         [C99-based-standards] (PRIoMAX): Likewise.
16969         [C99-based-standards] (PRIuMAX): Likewise.
16970         [C99-based-standards] (PRIxMAX): Likewise.
16971         [C99-based-standards] (PRIXMAX): Likewise.
16972         [C99-based-standards] (SCNdMAX): Likewise.
16973         [C99-based-standards] (SCNiMAX): Likewise.
16974         [C99-based-standards] (SCNoMAX): Likewise.
16975         [C99-based-standards] (SCNuMAX): Likewise.
16976         [C99-based-standards] (SCNxMAX): Likewise.
16977         [C99-based-standards] (PRIdPTR): Likewise.
16978         [C99-based-standards] (PRIiPTR): Likewise.
16979         [C99-based-standards] (PRIoPTR): Likewise.
16980         [C99-based-standards] (PRIuPTR): Likewise.
16981         [C99-based-standards] (PRIxPTR): Likewise.
16982         [C99-based-standards] (PRIXPTR): Likewise.
16983         [C99-based-standards] (SCNdPTR): Likewise.
16984         [C99-based-standards] (SCNiPTR): Likewise.
16985         [C99-based-standards] (SCNoPTR): Likewise.
16986         [C99-based-standards] (SCNuPTR): Likewise.
16987         [C99-based-standards] (SCNxPTR): Likewise.
16988         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
16989         allow.
16990         * conform/data/stdint.h-data: Update comments to clarify
16991         requirements.
16992         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
16993         type.
16994         [C99-based standards] (INT8_MAX): Likewise.
16995         [C99-based standards] (INT16_MIN): Likewise.
16996         [C99-based standards] (INT16_MAX): Likewise.
16997         [C99-based standards] (INT32_MIN): Likewise.
16998         [C99-based standards] (INT32_MAX): Likewise.
16999         [C99-based standards] (INT64_MIN): Likewise.
17000         [C99-based standards] (INT64_MAX): Likewise.
17001         [C99-based standards] (UINT8_MAX): Likewise.
17002         [C99-based standards] (UINT16_MAX): Likewise.
17003         [C99-based standards] (UINT32_MAX): Likewise.
17004         [C99-based standards] (UINT64_MAX): Likewise.
17005         [C99-based standards] (INT_LEAST8_MIN): Likewise.
17006         [C99-based standards] (INT_LEAST8_MAX): Likewise.
17007         [C99-based standards] (INT_LEAST16_MIN): Likewise.
17008         [C99-based standards] (INT_LEAST16_MAX): Likewise.
17009         [C99-based standards] (INT_LEAST32_MIN): Likewise.
17010         [C99-based standards] (INT_LEAST32_MAX): Likewise.
17011         [C99-based standards] (INT_LEAST64_MIN): Likewise.
17012         [C99-based standards] (INT_LEAST64_MAX): Likewise.
17013         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
17014         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
17015         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
17016         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
17017         [C99-based standards] (INT_FAST8_MIN): Likewise.
17018         [C99-based standards] (INT_FAST8_MAX): Likewise.
17019         [C99-based standards] (INT_FAST16_MIN): Likewise.
17020         [C99-based standards] (INT_FAST16_MAX): Likewise.
17021         [C99-based standards] (INT_FAST32_MIN): Likewise.
17022         [C99-based standards] (INT_FAST32_MAX): Likewise.
17023         [C99-based standards] (INT_FAST64_MIN): Likewise.
17024         [C99-based standards] (INT_FAST64_MAX): Likewise.
17025         [C99-based standards] (UINT_FAST8_MAX): Likewise.
17026         [C99-based standards] (UINT_FAST16_MAX): Likewise.
17027         [C99-based standards] (UINT_FAST32_MAX): Likewise.
17028         [C99-based standards] (UINT_FAST64_MAX): Likewise.
17029         [C99-based standards] (INTPTR_MIN): Likewise.
17030         [C99-based standards] (INTPTR_MAX): Likewise.
17031         [C99-based standards] (UINTPTR_MAX): Likewise.
17032         [C99-based standards] (INTMAX_MIN): Likewise.
17033         [C99-based standards] (INTMAX_MAX): Likewise.
17034         [C99-based standards] (UINTMAX_MAX): Likewise.
17035         [C99-based standards] (PTRDIFF_MIN): Likewise.
17036         [C99-based standards] (PTRDIFF_MAX): Likewise.
17037         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
17038         [C99-based standards] (SIZE_MAX): Likewise.
17039         [C99-based standards] (WCHAR_MAX): Likewise.
17040         [C99-based standards] (WINT_MAX): Likewise.
17041         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
17042         constraint on value.
17043         [C99-based standards] (WCHAR_MIN): Likewise.
17044         [C99-based standards] (WINT_MIN): Likewise.
17045         [C99-based standards] (*_t): Allow.
17046         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
17047         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
17048         Include math.h-data and complex.h-data.  Remove all expectations
17049         of math.h and complex.h contents.
17050         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
17051         at end of line.
17052         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
17053         (struct tm): Expect tag.
17054         [C99-based-standards] (wcstof): Expect function.
17055         [C99-based-standards] (wcstold): Likewise.
17056         [C99-based-standards] (wcstoll): Likewise.
17057         [C99-based-standards] (wcstoull): Likewise.
17058         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
17059         macro-int-constant.  Specify type.
17060         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
17061         constraint on value.
17062         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
17063         Specify type.
17064         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
17065         Specify value.
17066         [ISO C standards]: Do not allow headers.
17067         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
17068         wcs[abcdefghijklmnopqrstuvwxyz]*.
17069         [ISO C standards] (*_t): Do not allow.
17070         * conform/data/wctype.h-data [C99-based standards] (iswblank):
17071         Expect function.
17072         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
17073         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
17074         Specify type.
17075         [ISO C standards]: Do not allow headers.
17076         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
17077         is[abcdefghijklmnopqrstuvwxyz]*.
17078         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
17079         to[abcdefghijklmnopqrstuvwxyz]*.
17080         [ISO C standards] (*_t): Do not allow.
17081         * conform/data/stdalign.h-data: New file.
17082         * conform/data/stdbool.h-data: Likewise.
17083         * conform/data/stdnoreturn.h-data: Likewise.
17084
17085 2012-11-07  Roland McGrath  <roland@hack.frob.com>
17086
17087         [BZ #14815]
17088         * manual/filesys.texi (Directory Entries): Typo fix.
17089         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
17090
17091 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
17092
17093         * elf/elf.h (EM_AARCH64): New macro.
17094         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
17095         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
17096         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
17097         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
17098         (R_AARCH64_TLSDESC): Likewise.
17099         (NT_ARM_TLS): Likewise.
17100         (NT_ARM_HW_BREAK): Likewise.
17101         (NT_ARM_HW_WATCH): Likewise.
17102
17103 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
17104
17105         [BZ #14811]
17106         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
17107         (__ieee754_powl): Saturate nonzero exponents with absolute value
17108         below 0x1p-79 to +/- 0x1p-79.
17109         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
17110         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
17111         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
17112         nonzero exponents with absolute value below 0x1p-32 to +/-
17113         0x1p-32.
17114         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
17115         (__ieee754_powl): Saturate nonzero exponents with absolute value
17116         below 0x1p-79 to +/- 0x1p-79.
17117         * math/libm-test.inc (pow_test): Add more tests.
17118
17119 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17120
17121         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
17122         _dl_s390_cap_flags with kernel. Increase string length.
17123         (_dl_s390_platforms): Add z196 and zEC12.
17124
17125 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
17126
17127         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
17128         Change XOPEN21K to XOPEN2K.
17129
17130 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17131
17132         * string/memmove.c: Use memcpy when possible.
17133
17134 2012-11-06  Andreas Jaeger  <aj@suse.de>
17135
17136         * po/eo.po: Update from translation team.
17137
17138 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
17139
17140         [BZ #14793]
17141         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
17142         exponent and small x and y exponents, scale x or y up.  Increase
17143         by 2 the exponent used in scaling up.
17144         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17145         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17146         * math/libm-test.inc (fma_test): Add more tests.
17147         (fma_test_towardzero): Likewise.
17148         (fma_test_downward): Likewise.
17149         (fma_test_upward): Likewise.
17150
17151 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
17152
17153         [BZ #14805]
17154         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
17155         fenv_t *.
17156
17157         [BZ #14801]
17158         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
17159         namespace for names of struct fields.
17160         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
17161         fenv_t fields.
17162         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
17163         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
17164
17165 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17166
17167         [BZ #3665]
17168         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
17169
17170 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17171
17172         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
17173         PTR_DEMANGLE.
17174
17175         [BZ #5246]
17176         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
17177         PTR_DEMANGLE.
17178
17179 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
17180
17181         [BZ #14797]
17182         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
17183         definitely overflow as x * y not x * y + z.
17184         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17185         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17186         * math/libm-test.inc (fma_test): Add more tests.
17187         (fma_test_towardzero): Likewise.
17188         (fma_test_downward): Likewise.
17189         (fma_test_upward): Likewise.
17190
17191 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17192
17193         [BZ #157]
17194
17195         * include/stub-tag.h: Remove file.
17196         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
17197         '#include' of it.
17198         * manual/maint.texi (Porting): Don't reference it.
17199         * Makerules ($(objpfx)stubs): Likewise.
17200         * dirent/closedir.c: Don't include <stub-tag.h>.
17201         * dirent/dirfd.c: Likewise.
17202         * dirent/fdopendir.c: Likewise.
17203         * dirent/getdents.c: Likewise.
17204         * dirent/getdents64.c: Likewise.
17205         * dirent/opendir.c: Likewise.
17206         * dirent/readdir.c: Likewise.
17207         * dirent/readdir64.c: Likewise.
17208         * dirent/readdir64_r.c: Likewise.
17209         * dirent/readdir_r.c: Likewise.
17210         * dirent/rewinddir.c: Likewise.
17211         * dirent/seekdir.c: Likewise.
17212         * dirent/telldir.c: Likewise.
17213         * gmon/profil.c: Likewise.
17214         * grp/setgroups.c: Likewise.
17215         * inet/if_index.c: Likewise.
17216         * io/access.c: Likewise.
17217         * io/chdir.c: Likewise.
17218         * io/chmod.c: Likewise.
17219         * io/chown.c: Likewise.
17220         * io/close.c: Likewise.
17221         * io/dup.c: Likewise.
17222         * io/dup2.c: Likewise.
17223         * io/dup3.c: Likewise.
17224         * io/euidaccess.c: Likewise.
17225         * io/faccessat.c: Likewise.
17226         * io/fchdir.c: Likewise.
17227         * io/fchmod.c: Likewise.
17228         * io/fchmodat.c: Likewise.
17229         * io/fchown.c: Likewise.
17230         * io/fchownat.c: Likewise.
17231         * io/fcntl.c: Likewise.
17232         * io/flock.c: Likewise.
17233         * io/fstatfs.c: Likewise.
17234         * io/fstatfs64.c: Likewise.
17235         * io/fstatvfs.c: Likewise.
17236         * io/fstatvfs64.c: Likewise.
17237         * io/futimens.c: Likewise.
17238         * io/fxstat.c: Likewise.
17239         * io/fxstat64.c: Likewise.
17240         * io/fxstatat.c: Likewise.
17241         * io/fxstatat64.c: Likewise.
17242         * io/getcwd.c: Likewise.
17243         * io/isatty.c: Likewise.
17244         * io/lchmod.c: Likewise.
17245         * io/lchown.c: Likewise.
17246         * io/link.c: Likewise.
17247         * io/linkat.c: Likewise.
17248         * io/lseek.c: Likewise.
17249         * io/lseek64.c: Likewise.
17250         * io/lxstat64.c: Likewise.
17251         * io/mkdir.c: Likewise.
17252         * io/mkdirat.c: Likewise.
17253         * io/mkfifo.c: Likewise.
17254         * io/mkfifoat.c: Likewise.
17255         * io/open.c: Likewise.
17256         * io/open64.c: Likewise.
17257         * io/openat.c: Likewise.
17258         * io/openat64.c: Likewise.
17259         * io/pipe.c: Likewise.
17260         * io/pipe2.c: Likewise.
17261         * io/poll.c: Likewise.
17262         * io/posix_fadvise.c: Likewise.
17263         * io/posix_fadvise64.c: Likewise.
17264         * io/posix_fallocate.c: Likewise.
17265         * io/posix_fallocate64.c: Likewise.
17266         * io/read.c: Likewise.
17267         * io/readlink.c: Likewise.
17268         * io/readlinkat.c: Likewise.
17269         * io/rmdir.c: Likewise.
17270         * io/sendfile.c: Likewise.
17271         * io/sendfile64.c: Likewise.
17272         * io/statfs.c: Likewise.
17273         * io/statfs64.c: Likewise.
17274         * io/statvfs.c: Likewise.
17275         * io/statvfs64.c: Likewise.
17276         * io/symlink.c: Likewise.
17277         * io/symlinkat.c: Likewise.
17278         * io/ttyname.c: Likewise.
17279         * io/ttyname_r.c: Likewise.
17280         * io/umask.c: Likewise.
17281         * io/unlink.c: Likewise.
17282         * io/unlinkat.c: Likewise.
17283         * io/utime.c: Likewise.
17284         * io/utimensat.c: Likewise.
17285         * io/write.c: Likewise.
17286         * io/xmknod.c: Likewise.
17287         * io/xmknodat.c: Likewise.
17288         * io/xstat.c: Likewise.
17289         * io/xstat64.c: Likewise.
17290         * login/getpt.c: Likewise.
17291         * login/grantpt.c: Likewise.
17292         * login/unlockpt.c: Likewise.
17293         * math/e_acoshl.c: Likewise.
17294         * math/e_acosl.c: Likewise.
17295         * math/e_asinl.c: Likewise.
17296         * math/e_atan2l.c: Likewise.
17297         * math/e_atanhl.c: Likewise.
17298         * math/e_coshl.c: Likewise.
17299         * math/e_expl.c: Likewise.
17300         * math/e_fmodl.c: Likewise.
17301         * math/e_gammal_r.c: Likewise.
17302         * math/e_hypotl.c: Likewise.
17303         * math/e_j0l.c: Likewise.
17304         * math/e_j1l.c: Likewise.
17305         * math/e_jnl.c: Likewise.
17306         * math/e_lgammal_r.c: Likewise.
17307         * math/e_log10l.c: Likewise.
17308         * math/e_log2l.c: Likewise.
17309         * math/e_logl.c: Likewise.
17310         * math/e_powl.c: Likewise.
17311         * math/e_rem_pio2l.c: Likewise.
17312         * math/e_sinhl.c: Likewise.
17313         * math/e_sqrtl.c: Likewise.
17314         * math/fclrexcpt.c: Likewise.
17315         * math/fedisblxcpt.c: Likewise.
17316         * math/feenablxcpt.c: Likewise.
17317         * math/fegetenv.c: Likewise.
17318         * math/fegetexcept.c: Likewise.
17319         * math/fegetround.c: Likewise.
17320         * math/feholdexcpt.c: Likewise.
17321         * math/fesetenv.c: Likewise.
17322         * math/fesetround.c: Likewise.
17323         * math/feupdateenv.c: Likewise.
17324         * math/fgetexcptflg.c: Likewise.
17325         * math/fraiseexcpt.c: Likewise.
17326         * math/fsetexcptflg.c: Likewise.
17327         * math/ftestexcept.c: Likewise.
17328         * math/k_cosl.c: Likewise.
17329         * math/k_rem_pio2l.c: Likewise.
17330         * math/k_sinl.c: Likewise.
17331         * math/k_tanl.c: Likewise.
17332         * math/s_asinhl.c: Likewise.
17333         * math/s_atanl.c: Likewise.
17334         * math/s_cbrtl.c: Likewise.
17335         * math/s_erfl.c: Likewise.
17336         * math/s_expm1l.c: Likewise.
17337         * math/s_log1pl.c: Likewise.
17338         * math/s_tanhl.c: Likewise.
17339         * misc/acct.c: Likewise.
17340         * misc/brk.c: Likewise.
17341         * misc/chflags.c: Likewise.
17342         * misc/chroot.c: Likewise.
17343         * misc/fchflags.c: Likewise.
17344         * misc/fgetxattr.c: Likewise.
17345         * misc/flistxattr.c: Likewise.
17346         * misc/fremovexattr.c: Likewise.
17347         * misc/fsetxattr.c: Likewise.
17348         * misc/fsync.c: Likewise.
17349         * misc/ftruncate.c: Likewise.
17350         * misc/futimes.c: Likewise.
17351         * misc/futimesat.c: Likewise.
17352         * misc/getdomain.c: Likewise.
17353         * misc/getdtsz.c: Likewise.
17354         * misc/gethostid.c: Likewise.
17355         * misc/gethostname.c: Likewise.
17356         * misc/getloadavg.c: Likewise.
17357         * misc/getpagesize.c: Likewise.
17358         * misc/getsysstats.c: Likewise.
17359         * misc/getxattr.c: Likewise.
17360         * misc/gtty.c: Likewise.
17361         * misc/ioctl.c: Likewise.
17362         * misc/lgetxattr.c: Likewise.
17363         * misc/listxattr.c: Likewise.
17364         * misc/llistxattr.c: Likewise.
17365         * misc/lremovexattr.c: Likewise.
17366         * misc/lsetxattr.c: Likewise.
17367         * misc/lutimes.c: Likewise.
17368         * misc/madvise.c: Likewise.
17369         * misc/mincore.c: Likewise.
17370         * misc/mlock.c: Likewise.
17371         * misc/mlockall.c: Likewise.
17372         * misc/mmap.c: Likewise.
17373         * misc/mprotect.c: Likewise.
17374         * misc/msync.c: Likewise.
17375         * misc/munlock.c: Likewise.
17376         * misc/munlockall.c: Likewise.
17377         * misc/munmap.c: Likewise.
17378         * misc/preadv.c: Likewise.
17379         * misc/preadv64.c: Likewise.
17380         * misc/ptrace.c: Likewise.
17381         * misc/pwritev.c: Likewise.
17382         * misc/pwritev64.c: Likewise.
17383         * misc/readv.c: Likewise.
17384         * misc/reboot.c: Likewise.
17385         * misc/remap_file_pages.c: Likewise.
17386         * misc/removexattr.c: Likewise.
17387         * misc/revoke.c: Likewise.
17388         * misc/select.c: Likewise.
17389         * misc/setdomain.c: Likewise.
17390         * misc/setegid.c: Likewise.
17391         * misc/seteuid.c: Likewise.
17392         * misc/sethostid.c: Likewise.
17393         * misc/sethostname.c: Likewise.
17394         * misc/setregid.c: Likewise.
17395         * misc/setreuid.c: Likewise.
17396         * misc/setxattr.c: Likewise.
17397         * misc/sstk.c: Likewise.
17398         * misc/stty.c: Likewise.
17399         * misc/swapoff.c: Likewise.
17400         * misc/swapon.c: Likewise.
17401         * misc/sync.c: Likewise.
17402         * misc/syncfs.c: Likewise.
17403         * misc/syscall.c: Likewise.
17404         * misc/truncate.c: Likewise.
17405         * misc/ualarm.c: Likewise.
17406         * misc/usleep.c: Likewise.
17407         * misc/ustat.c: Likewise.
17408         * misc/utimes.c: Likewise.
17409         * misc/vhangup.c: Likewise.
17410         * misc/writev.c: Likewise.
17411         * posix/_exit.c: Likewise.
17412         * posix/alarm.c: Likewise.
17413         * posix/execve.c: Likewise.
17414         * posix/fexecve.c: Likewise.
17415         * posix/fork.c: Likewise.
17416         * posix/fpathconf.c: Likewise.
17417         * posix/getaddrinfo.c: Likewise.
17418         * posix/getegid.c: Likewise.
17419         * posix/geteuid.c: Likewise.
17420         * posix/getgid.c: Likewise.
17421         * posix/getgroups.c: Likewise.
17422         * posix/getlogin.c: Likewise.
17423         * posix/getlogin_r.c: Likewise.
17424         * posix/getpgid.c: Likewise.
17425         * posix/getpid.c: Likewise.
17426         * posix/getppid.c: Likewise.
17427         * posix/getresgid.c: Likewise.
17428         * posix/getresuid.c: Likewise.
17429         * posix/getsid.c: Likewise.
17430         * posix/getuid.c: Likewise.
17431         * posix/glob64.c: Likewise.
17432         * posix/nanosleep.c: Likewise.
17433         * posix/pathconf.c: Likewise.
17434         * posix/pause.c: Likewise.
17435         * posix/posix_madvise.c: Likewise.
17436         * posix/pread.c: Likewise.
17437         * posix/pread64.c: Likewise.
17438         * posix/pwrite.c: Likewise.
17439         * posix/pwrite64.c: Likewise.
17440         * posix/sched_getaffinity.c: Likewise.
17441         * posix/sched_getp.c: Likewise.
17442         * posix/sched_gets.c: Likewise.
17443         * posix/sched_primax.c: Likewise.
17444         * posix/sched_primin.c: Likewise.
17445         * posix/sched_rr_gi.c: Likewise.
17446         * posix/sched_setaffinity.c: Likewise.
17447         * posix/sched_setp.c: Likewise.
17448         * posix/sched_sets.c: Likewise.
17449         * posix/sched_yield.c: Likewise.
17450         * posix/setgid.c: Likewise.
17451         * posix/setlogin.c: Likewise.
17452         * posix/setpgid.c: Likewise.
17453         * posix/setresgid.c: Likewise.
17454         * posix/setresuid.c: Likewise.
17455         * posix/setsid.c: Likewise.
17456         * posix/setuid.c: Likewise.
17457         * posix/sleep.c: Likewise.
17458         * posix/spawni.c: Likewise.
17459         * posix/sysconf.c: Likewise.
17460         * posix/times.c: Likewise.
17461         * posix/wait.c: Likewise.
17462         * posix/wait3.c: Likewise.
17463         * posix/wait4.c: Likewise.
17464         * posix/waitpid.c: Likewise.
17465         * resolv/gai_sigqueue.c: Likewise.
17466         * resource/getpriority.c: Likewise.
17467         * resource/getrlimit.c: Likewise.
17468         * resource/getrusage.c: Likewise.
17469         * resource/nice.c: Likewise.
17470         * resource/setpriority.c: Likewise.
17471         * resource/setrlimit.c: Likewise.
17472         * resource/ulimit.c: Likewise.
17473         * rt/aio_cancel.c: Likewise.
17474         * rt/aio_fsync.c: Likewise.
17475         * rt/aio_read.c: Likewise.
17476         * rt/aio_sigqueue.c: Likewise.
17477         * rt/aio_suspend.c: Likewise.
17478         * rt/aio_write.c: Likewise.
17479         * rt/clock_getres.c: Likewise.
17480         * rt/clock_gettime.c: Likewise.
17481         * rt/clock_nanosleep.c: Likewise.
17482         * rt/clock_settime.c: Likewise.
17483         * rt/lio_listio.c: Likewise.
17484         * rt/mq_close.c: Likewise.
17485         * rt/mq_getattr.c: Likewise.
17486         * rt/mq_notify.c: Likewise.
17487         * rt/mq_open.c: Likewise.
17488         * rt/mq_receive.c: Likewise.
17489         * rt/mq_send.c: Likewise.
17490         * rt/mq_setattr.c: Likewise.
17491         * rt/mq_timedreceive.c: Likewise.
17492         * rt/mq_timedsend.c: Likewise.
17493         * rt/mq_unlink.c: Likewise.
17494         * rt/shm_open.c: Likewise.
17495         * rt/shm_unlink.c: Likewise.
17496         * rt/timer_create.c: Likewise.
17497         * rt/timer_delete.c: Likewise.
17498         * rt/timer_getoverr.c: Likewise.
17499         * rt/timer_gettime.c: Likewise.
17500         * rt/timer_settime.c: Likewise.
17501         * setjmp/__longjmp.c: Likewise.
17502         * setjmp/setjmp.c: Likewise.
17503         * signal/kill.c: Likewise.
17504         * signal/killpg.c: Likewise.
17505         * signal/raise.c: Likewise.
17506         * signal/sigaction.c: Likewise.
17507         * signal/sigaltstack.c: Likewise.
17508         * signal/sigblock.c: Likewise.
17509         * signal/sigignore.c: Likewise.
17510         * signal/sigintr.c: Likewise.
17511         * signal/signal.c: Likewise.
17512         * signal/sigpause.c: Likewise.
17513         * signal/sigpending.c: Likewise.
17514         * signal/sigqueue.c: Likewise.
17515         * signal/sigreturn.c: Likewise.
17516         * signal/sigset.c: Likewise.
17517         * signal/sigsetmask.c: Likewise.
17518         * signal/sigstack.c: Likewise.
17519         * signal/sigsuspend.c: Likewise.
17520         * signal/sigtimedwait.c: Likewise.
17521         * signal/sigvec.c: Likewise.
17522         * signal/sigwait.c: Likewise.
17523         * signal/sigwaitinfo.c: Likewise.
17524         * signal/sysv_signal.c: Likewise.
17525         * socket/accept.c: Likewise.
17526         * socket/accept4.c: Likewise.
17527         * socket/bind.c: Likewise.
17528         * socket/connect.c: Likewise.
17529         * socket/getpeername.c: Likewise.
17530         * socket/getsockname.c: Likewise.
17531         * socket/getsockopt.c: Likewise.
17532         * socket/isfdtype.c: Likewise.
17533         * socket/listen.c: Likewise.
17534         * socket/recv.c: Likewise.
17535         * socket/recvfrom.c: Likewise.
17536         * socket/recvmsg.c: Likewise.
17537         * socket/send.c: Likewise.
17538         * socket/sendmsg.c: Likewise.
17539         * socket/sendto.c: Likewise.
17540         * socket/setsockopt.c: Likewise.
17541         * socket/shutdown.c: Likewise.
17542         * socket/sockatmark.c: Likewise.
17543         * socket/socket.c: Likewise.
17544         * socket/socketpair.c: Likewise.
17545         * stdio-common/ctermid.c: Likewise.
17546         * stdio-common/cuserid.c: Likewise.
17547         * stdio-common/remove.c: Likewise.
17548         * stdio-common/rename.c: Likewise.
17549         * stdio-common/renameat.c: Likewise.
17550         * stdio-common/tempname.c: Likewise.
17551         * stdlib/getcontext.c: Likewise.
17552         * stdlib/makecontext.c: Likewise.
17553         * stdlib/setcontext.c: Likewise.
17554         * stdlib/swapcontext.c: Likewise.
17555         * stdlib/system.c: Likewise.
17556         * streams/fattach.c: Likewise.
17557         * streams/fdetach.c: Likewise.
17558         * streams/getmsg.c: Likewise.
17559         * streams/getpmsg.c: Likewise.
17560         * streams/putmsg.c: Likewise.
17561         * streams/putpmsg.c: Likewise.
17562         * sysdeps/unix/bsd/getpt.c: Likewise.
17563         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
17564         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
17565         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
17566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17567         Likewise.
17568         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
17569         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17570         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
17571         * sysvipc/msgctl.c: Likewise.
17572         * sysvipc/msgget.c: Likewise.
17573         * sysvipc/msgrcv.c: Likewise.
17574         * sysvipc/msgsnd.c: Likewise.
17575         * sysvipc/semctl.c: Likewise.
17576         * sysvipc/semget.c: Likewise.
17577         * sysvipc/semop.c: Likewise.
17578         * sysvipc/semtimedop.c: Likewise.
17579         * sysvipc/shmat.c: Likewise.
17580         * sysvipc/shmctl.c: Likewise.
17581         * sysvipc/shmdt.c: Likewise.
17582         * sysvipc/shmget.c: Likewise.
17583         * termios/tcdrain.c: Likewise.
17584         * termios/tcflow.c: Likewise.
17585         * termios/tcflush.c: Likewise.
17586         * termios/tcgetattr.c: Likewise.
17587         * termios/tcgetpgrp.c: Likewise.
17588         * termios/tcsendbrk.c: Likewise.
17589         * termios/tcsetattr.c: Likewise.
17590         * termios/tcsetpgrp.c: Likewise.
17591         * time/adjtime.c: Likewise.
17592         * time/clock.c: Likewise.
17593         * time/getitimer.c: Likewise.
17594         * time/gettimeofday.c: Likewise.
17595         * time/setitimer.c: Likewise.
17596         * time/settimeofday.c: Likewise.
17597         * time/stime.c: Likewise.
17598         * time/time.c: Likewise.
17599
17600 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
17601
17602         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
17603         /usr/old/bin.
17604
17605         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
17606         instead of spaces.
17607         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
17608
17609 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
17610
17611         [BZ #14796]
17612         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
17613         FE_TONEAREST before applying Dekker multiplication and Knuth
17614         addition.  Clear inexact exceptions and check for exact zero
17615         results afterwards.
17616         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17617         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17618         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17619         * math/libm-test.inc (fma_test): Add more tests.
17620         (fma_test_towardzero): Likewise.
17621         (fma_test_downward): Likewise.
17622         (fma_test_upward): Likewise.
17623         * sysdeps/generic/math_private.h (default_libc_fesetround): New
17624         function.
17625         (libc_fesetround): New macro.
17626         (libc_fesetroundf): Likewise.
17627         (libc_fesetroundl): Likewise.
17628         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
17629         function.
17630         (libc_fesetround_387): Likewise.
17631         (libc_fesetroundf): New macro.
17632         (libc_fesetround): Likewise.
17633         (libc_fesetroundl): Likewise.
17634         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
17635         function.
17636         (libc_fesetroundf): New macro.
17637         (libc_fesetround): Likewise.
17638         (libc_fesetroundl): Likewise.
17639         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
17640         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
17641         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
17642         libm_hidden_ver.
17643         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
17644         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
17645         libm_hidden_def.
17646         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
17647         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
17648         libm_hidden_ver.
17649         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
17650         libm_hidden_def.
17651
17652         [BZ #3439]
17653         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
17654         integer constant usable in #if and use that to give value to enum
17655         constant.
17656         (FE_DIVBYZERO): Likewise.
17657         (FE_UNDERFLOW): Likewise.
17658         (FE_OVERFLOW): Likewise.
17659         (FE_INVALID): Likewise.
17660         (FE_INVALID_SNAN): Likewise.
17661         (FE_INVALID_ISI): Likewise.
17662         (FE_INVALID_IDI): Likewise.
17663         (FE_INVALID_ZDZ): Likewise.
17664         (FE_INVALID_IMZ): Likewise.
17665         (FE_INVALID_COMPARE): Likewise.
17666         (FE_INVALID_SOFTWARE): Likewise.
17667         (FE_INVALID_SQRT): Likewise.
17668         (FE_INVALID_INTEGER_CONVERSION): Likewise.
17669         (FE_TONEAREST): Likewise.
17670         (FE_TOWARDZERO): Likewise.
17671         (FE_UPWARD): Likewise.
17672         (FE_DOWNWARD): Likewise.
17673         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
17674         (FE_DIVBYZERO): Likewise.
17675         (FE_OVERFLOW): Likewise.
17676         (FE_UNDERFLOW): Likewise.
17677         (FE_INEXACT): Likewise.
17678         (FE_TONEAREST): Likewise.
17679         (FE_DOWNWARD): Likewise.
17680         (FE_UPWARD): Likewise.
17681         (FE_TOWARDZERO): Likewise.
17682         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
17683         (FE_UNDERFLOW): Likewise.
17684         (FE_OVERFLOW): Likewise.
17685         (FE_DIVBYZERO): Likewise.
17686         (FE_INVALID): Likewise.
17687         (FE_TONEAREST): Likewise.
17688         (FE_TOWARDZERO): Likewise.
17689         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
17690         (FE_OVERFLOW): Likewise.
17691         (FE_UNDERFLOW): Likewise.
17692         (FE_DIVBYZERO): Likewise.
17693         (FE_INEXACT): Likewise.
17694         (FE_TONEAREST): Likewise.
17695         (FE_TOWARDZERO): Likewise.
17696         (FE_UPWARD): Likewise.
17697         (FE_DOWNWARD): Likewise.
17698         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
17699         (FE_DIVBYZERO): Likewise.
17700         (FE_OVERFLOW): Likewise.
17701         (FE_UNDERFLOW): Likewise.
17702         (FE_INEXACT): Likewise.
17703         (FE_TONEAREST): Likewise.
17704         (FE_DOWNWARD): Likewise.
17705         (FE_UPWARD): Likewise.
17706         (FE_TOWARDZERO): Likewise.
17707
17708 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
17709
17710         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
17711
17712 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
17713
17714         * scripts/cross-test-ssh.sh (command): Use newlines to separate
17715         commands.  Quote $PWD.
17716         (blacklist_exports): Don't use remove_newlines.  Replace "declare
17717         -x" by "export".
17718         (remove_newlines): Remove.
17719
17720 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
17721
17722         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
17723         * stdlib/stdlib.h (atof): Moved to ...
17724         * include/bits/stdlib-float.h: Here.  New file.
17725         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
17726         * stdlib/bits/stdlib-float.h: New file.
17727         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
17728         -mno-sse -mno-mmx.
17729         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
17730         <xmmintrin.h>.
17731
17732 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17733
17734         * conform/conformtest.pl (@headers): Add fenv.h.
17735         * conform/data/fenv.h-data: New file.
17736         * include/fenv.h [_ISOMAC]: Disable all contents of file except
17737         include of <math/fenv.h>.
17738
17739         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
17740         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
17741         && !UNIX98].  Enables tests for XOPEN2K8.
17742         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
17743         POSIX2008]: Likewise.
17744
17745         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
17746         (struct rusage): Do not expect type or its members.
17747
17748         [BZ #3439]
17749         * math/math.h (FP_NAN): Define macro to integer constant usable in
17750         #if and use that to give value to enum constant.
17751         (FP_INFINITE): Likewise.
17752         (FP_ZERO): Likewise.
17753         (FP_SUBNORMAL): Likewise.
17754         (FP_NORMAL): Likewise.
17755
17756 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
17757
17758         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
17759         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
17760         arguments.
17761
17762 2012-11-02  Roland McGrath  <roland@hack.frob.com>
17763
17764         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
17765         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
17766         autoconf-time if not.
17767         * configure.in: Remove AC_PREREQ.
17768
17769 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17770
17771         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
17772         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
17773         of the internal implementation.
17774
17775 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17776
17777         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
17778         except include of <misc/sys/syslog.h>.
17779
17780 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17781
17782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
17783         function returns with a NULL context exit with zero.
17784
17785 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17786
17787         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
17788
17789 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
17790
17791         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
17792         (run_program_cmd): This.
17793         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
17794         (tst_langinfo): New variable.  Use it.
17795
17796 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
17797
17798         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
17799         floating point opcodes.
17800
17801 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17802
17803         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
17804         variable.
17805
17806         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
17807
17808         * sysdeps/mach/hurd/powerpc: Remove directory.
17809         * sysdeps/mach/powerpc: Likewise.
17810
17811 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17812
17813         * scripts/check-local-headers.sh: Ignore c++ headers.
17814
17815 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17816
17817         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
17818         __libc_cleanup_region_start argument.
17819
17820 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
17821
17822         [BZ #14784]
17823         [BZ #14785]
17824         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
17825         x * y using scaling, not as x * y + z.
17826         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17827         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17828         * math/libm-test.inc (fma_test): Add more tests.
17829         (fma_test_towardzero): Likewise.
17830         (fma_test_downward): Likewise.
17831         (fma_test_upward): Likewise.
17832
17833 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17834
17835         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
17836
17837 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17838
17839         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
17840         New variable.
17841
17842 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
17843
17844         * rt/tst-shm.c (worker): Correct checking for mmap failure.
17845
17846 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17847
17848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17849         Fix sort order.
17850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17851         Likewise.
17852
17853 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17854
17855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17856         Fix the order of the list for glibc 2.17.
17857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17858         Likewise.
17859
17860 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17861
17862         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17863
17864 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17865
17866         [BZ #14610]
17867         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
17868         for low part of x being zero before using __atanl (y).
17869         * math/libm-test.inc (atan2_test): Add another test.
17870
17871         * manual/install.texi (Configuring and compiling): Document
17872         general use of test-wrapper and test-wrapper-env.
17873         * INSTALL: Regenerated.
17874
17875         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
17876         (__fma): Do not extract and scale down low bits on after-rounding
17877         systems when result rounded to normal precision would have normal
17878         exponent.
17879         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
17880         (__fmal): Do not extract and scale down low bits on after-rounding
17881         systems when result rounded to normal precision would have normal
17882         exponent.
17883         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
17884         (__fmal): Do not extract and scale down low bits on after-rounding
17885         systems when result rounded to normal precision would have normal
17886         exponent.
17887         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
17888         macro.
17889         (fma_test): Add more tests.
17890         (fma_test_towardzero): Likewise.
17891         (fma_test_downward): Likewise.
17892         (fma_test_upward): Likewise.
17893
17894 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
17895
17896         * sysdeps/i386/tininess.h: Renamed to ...
17897         * sysdeps/x86/tininess.h: This.
17898         * sysdeps/x86_64/tininess.h: Removed.
17899
17900 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17901
17902         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
17903         input.  Use $(build-program-cmd).
17904         ($(objpfx)tst-array1-static.out): Likewise.
17905         ($(objpfx)tst-array2.out): Likewise.
17906         ($(objpfx)tst-array3.out): Likewise.
17907         ($(objpfx)tst-array4.out): Likewise.
17908         ($(objpfx)tst-array5.out): Likewise.
17909         ($(objpfx)tst-array5-static.out): Likewise.
17910
17911 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
17912
17913         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
17914         if defined.
17915
17916         * nss/nsswitch.h (nss_interface_function): Provide new
17917         macro for use with NSS functions.
17918         * grp/initgroups.c: Use new macro.
17919         * nss/getXXbyYY.c: Likewise.
17920         * nss/getXXbyYY_r.c: Likewise.
17921         * nss/getXXent.c: Likewise.
17922         * nss/getXXent_r.c: Likewise.
17923         * sysdeps/posix/getaddrinfo.c: Likewise.
17924
17925 2012-10-30  Andreas Jaeger  <aj@suse.de>
17926
17927         * po/ru.po: Update Russion translation from translation project.
17928
17929 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17930
17931         [BZ #14152]
17932         [BZ #14783]
17933         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
17934         result and shift together with sticky bit instead of replicating
17935         round-to-nearest rounding.
17936         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17937         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17938         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
17939         missing underflow exceptions.
17940         (fma_test_towardzero): Add more tests.
17941         (fma_test_downward): Likewise.
17942         (fma_test_upward): Likewise.
17943
17944         [BZ #14047]
17945         * sysdeps/generic/tininess.h: New file.
17946         * sysdeps/i386/tininess.h: Likewise.
17947         * sysdeps/sh/tininess.h: Likewise.
17948         * sysdeps/x86_64/tininess.h: Likewise.
17949         * stdlib/tst-strtod-underflow.c: Likewise.
17950         * stdlib/tst-tininess.c: Likewise.
17951         * stdlib/strtod_l.c: Include <tininess.h>.
17952         (round_and_return): Do not set errno for exact underflow cases.
17953         Force an underflow exception when setting errno for underflow.
17954         Determine underflow based on rounding to normal precision if
17955         TININESS_AFTER_ROUNDING.
17956         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
17957         ERANGE for exact underflow cases.
17958         * stdlib/Makefile (tests): Add tst-tininess and
17959         tst-strtod-underflow.
17960         ($(objpfx)tst-tininess): Use $(link-libm).
17961         ($(objpfx)tst-strtod-underflow): Likewise.
17962
17963 2012-10-30  Andreas Jaeger  <aj@suse.de>
17964
17965         [BZ#14767]
17966         * elf/Makefile (tests): Remove conditional for have-initfini-array
17967         since this is now always required and the variable does not exist
17968         anymore.
17969         (tests-static): Likewise.
17970         (modules-names): Likewise.
17971
17972         * po/eo.po: Add Esperanto translation from translation project.
17973
17974         * elf/tst-array1.c (fini_array): Make writeable so that it can be
17975         merged with constructor/destructor.
17976         (init_array): Likewise.
17977         * elf/tst-array2dep.c (fini_array): Likewise.
17978         (init_array): Likewise.
17979
17980 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
17981
17982         * manual/message.texi: Delete @cartouche tags.
17983
17984 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
17985
17986         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
17987         EOPNOTSUPP.
17988         * sysdeps/mach/hurd/fsync.c: Likewise.
17989
17990         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
17991         [_POSIX_REALTIME_SIGNALS]: Change condition to
17992         [_POSIX_REALTIME_SIGNALS > 0].
17993
17994 2012-10-27  Andreas Jaeger  <aj@suse.de>
17995
17996         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
17997         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
17998         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
17999         [__WORDSIZE != 64]: Likewise.
18000
18001 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
18002
18003         *  iconvdata/tst-table.sh: Remove ${SHELL}.
18004         *  iconvdata/tst-tables.sh: Likewise.
18005
18006 2012-10-25  David S. Miller  <davem@davemloft.net>
18007
18008         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18009         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
18010         of strtoull.
18011
18012         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
18013         ifunc-impl-list.c
18014         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18015         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
18016         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
18017         file.
18018
18019 2012-10-25  Roland McGrath  <roland@hack.frob.com>
18020
18021         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18022         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
18023         __getdirentries.
18024
18025 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
18026             Jim Blandy  <jimb@codesourcery.com>
18027
18028         * scripts/cross-test-ssh.sh: New file.
18029         * manual/install.texi (Configuring and compiling): Document use of
18030         cross-test-ssh.sh.
18031         * INSTALL: Regenerated.
18032
18033 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
18034
18035         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
18036         EOPNOTSUPP.
18037
18038 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
18039
18040         * Makeconfig (run-program-prefix): Fix comment.
18041
18042 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
18043             Jim Blandy  <jimb@codesourcery.com>
18044
18045         * Makeconfig (test-wrapper): New variable,
18046         (test-wrapper-env): Likewise.
18047         [$(cross-compiling) = yes && $(test-wrapper) != ""]
18048         (run-built-tests): Define to yes.
18049         (run-program-prefix): Use $(test-wrapper).
18050         (built-program-cmd): Likewise.
18051         * Rules (make-test-out): Use $(test-wrapper-env) and
18052         $(host-built-program-cmd).
18053         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
18054         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
18055         tst-pathopt.sh.
18056         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
18057         $(test-wrapper-env) to tst-rtld-load-self.sh.
18058         ($(objpfx)order2.out): Use $(test-wrapper).
18059         ($(objpfx)tst-initorder.out): Likewise.
18060         ($(objpfx)tst-initorder2.out): Likewise.
18061         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
18062         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
18063         (test_wrapper_env): New variable.  Use it to run ld.so.
18064         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
18065         Use it to run ld.so.
18066         (test_wrapper_env): Likewise.
18067         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
18068         $(test-wrapper) to run-iconv-test.sh.
18069         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
18070         (ICONV): Use $test_wrapper.
18071         * posix/Makefile ($(objpfx)globtest.out): Pass
18072         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
18073         globtest.sh, not $(run-program-prefix).
18074         * posix/globtest.sh (run_via_rtld_prefix): New variable.
18075         (test_wrapper): Likewise.
18076         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
18077         set together with run_via_rtld_prefix.
18078         (run_program_prefix): Define in terms of test_wrapper and
18079         run_via_rtld_prefix.
18080
18081 2012-10-24  Roland McGrath  <roland@hack.frob.com>
18082
18083         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
18084         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
18085         Targets removed.
18086
18087         [BZ #14743]
18088         * include/time.h: Remove librt_hidden_proto (clock_gettime).
18089         Declare __clock_getres, __clock_gettime, __clock_settime,
18090         __clock_nanosleep, and __clock_getcpuclockid.
18091         * rt/clock_gettime.c: Define __clock_gettime as an alias.
18092         Remove librt_hidden_def (clock_gettime).
18093         * sysdeps/unix/clock_gettime.c: Likewise.
18094         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
18095         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
18096         * rt/clock_getres.c: Define __clock_getres as an alias.
18097         * sysdeps/posix/clock_getres.c: Likewise.
18098         * rt/clock_settime.c: Define __clock_settime as an alias.
18099         * sysdeps/unix/clock_settime.c: Likewise.
18100         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
18101         * sysdeps/unix/clock_nanosleep.c: Likewise.
18102         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
18103         * rt/clock-compat.c: New file.
18104         * rt/Makefile (librt-routines): Add clock-compat and move
18105         $(clock-routines) to ...
18106         (routines): ... here, new variable.
18107         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
18108         Don't add get_clockfreq here.
18109         * rt/Versions (libc: GLIBC_2.17): New version set.
18110         Add clock_* symbols here.
18111         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
18112         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
18113         (GLIBC_2.17): Add clock_* symbols.
18114         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
18115         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
18116         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
18117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
18118         Likewise.
18119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
18120         Likewise.
18121         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
18122         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
18123         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
18124         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
18125         * NEWS: Mention the move.
18126
18127         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
18128         Use __open, __read, __close rather than their public counterparts.
18129         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18130         (__get_clockfreq_via_cpuinfo): Likewise.
18131         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
18132         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
18133
18134         * config.h.in (HAVE_IFUNC): New #undef.
18135         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
18136         was successful.
18137         * configure: Regenerated.
18138
18139 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
18140
18141         * configure.in: Move READELF check to start of file.
18142         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
18143         libc_cv_asm_gnu_indirect_function in the process.
18144         * configure: Regenerated.
18145
18146 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
18147
18148         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
18149         send the output to /dev/null.
18150         (libc_cv_cc_with_libunwind): Likewise.
18151         (libc_cv_as_noexecstack): Likewise.
18152         * configure: Regenerate.
18153
18154 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
18155
18156         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
18157
18158         * posix/globtest.sh (TMPDIR): Do not set.
18159         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
18160         (testout): Likewise.
18161
18162 2012-10-24  Andreas Jaeger  <aj@suse.de>
18163
18164         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
18165         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
18166         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
18167         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
18168         posix_fadvise64, posix_fallocate64.
18169
18170         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
18171         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
18172         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
18173         Likewise.
18174         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
18175         Likewise.
18176         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
18177
18178         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
18179         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
18180         <bits/fcntl-linux.h>.
18181         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
18182
18183         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
18184         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
18185         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
18186         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
18187         [__WORDSIZE != 64]: Likewise.
18188
18189 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18190
18191         * Makeconfig (run-built-tests): New variable.
18192         * Rules [$(cross-compiling) = yes]: Change condition to
18193         [$(run-built-tests) = no].
18194         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
18195         to [$(run-built-tests) = yes].
18196         * elf/Makefile [$(cross-compiling) = no]: Likewise
18197         * grp/Makefile [$(cross-compiling) = no]: Likewise.
18198         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
18199         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
18200         * intl/Makefile [$(cross-compiling) = no]: Likewise.
18201         * io/Makefile [$(cross-compiling) = no]: Likewise.
18202         * libio/Makefile [$(cross-compiling) = no]: Likewise.
18203         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
18204         * misc/Makefile [$(cross-compiling) = no]: Likewise.
18205         * posix/Makefile [$(cross-compiling) = no]: Likewise.
18206         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
18207         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
18208         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
18209         * string/Makefile [$(cross-compiling) = no]: Likewise.
18210
18211         * posix/Makefile ($(objpfx)globtest.out): Pass
18212         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
18213         $(rtld-installed-name).
18214         * posix/globtest.sh (elf_objpfx): Remove variable.
18215         (rtld_installed_name): Likewise.
18216         (library_path): Likewise.
18217         (run_program_prefix): New variable.  Use for running globtest
18218         binary.
18219
18220 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
18221             Joseph Myers  <joseph@codesourcery.com>
18222
18223         * Makeconfig (host-built-program-cmd): New variable.
18224         * elf/Makefile (tst-stackguard1-ARGS): Use
18225         $(host-built-program-cmd).
18226         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
18227         (tst-spawn-ARGS): Likewise.
18228         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
18229
18230 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18231             Jim Blandy  <jimb@codesourcery.com>
18232
18233         * Makeconfig (run-via-rtld-prefix): New variable.
18234         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
18235         (built-program-cmd): Likewise.
18236
18237 2012-10-22  Andreas Jaeger  <aj@suse.de>
18238
18239         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
18240         __O_RSYNC if it exists, otherwise to O_SYNC.
18241
18242 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
18243             Joseph Myers  <joseph@codesourcery.com>
18244
18245         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
18246         /dev/null.
18247         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
18248         from /dev/null
18249         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
18250         /dev/null.
18251
18252 2012-10-22  Andreas Jaeger  <aj@suse.de>
18253
18254         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
18255         Define always.
18256         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
18257
18258         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18259         bits/fcntl-linux.h.
18260
18261         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
18262         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
18263
18264         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
18265         to __O_LARGEFILE.
18266         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
18267         to __O_LARGEFILE.
18268
18269 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
18270             Joseph Myers  <joseph@codesourcery.com>
18271
18272         * config.make.in (NM): New variable.
18273
18274 2012-10-21  Andreas Jaeger  <aj@suse.de>
18275
18276         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
18277         definitions and declarations that are provided by
18278         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
18279
18280 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18281
18282         [BZ #14683]
18283         * elf/Makefile (tests-static): Add tst-leaks1-static.
18284         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
18285         ($(objpfx)tst-leaks1-static): New rule.
18286         ($(objpfx)tst-leaks1-static-mem): Likewise.
18287         (tst-leaks1-static-ENV): New macro.
18288         * elf/dl-open.c (dl_open_worker): Check the main application
18289         only if SHARED is defined.
18290         * elf/tst-leaks1-static.c: New file.
18291
18292 2012-10-20  Andreas Jaeger  <aj@suse.de>
18293
18294         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
18295         generic values for Linux.
18296         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
18297         and declarations that are provided by <bits/fcntl-linux.h> and
18298         include <bits/fcntl-linux.h>.
18299         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18300         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18301
18302 2012-10-20  Roland McGrath  <roland@hack.frob.com>
18303
18304         * io/fcntl.h: Move include of <bits/types.h> to the top and
18305         include it unconditionally.
18306
18307 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18308
18309         * wcsmbs/Makefile (tests-ifunc): New variable.
18310         (tests): Add $(tests-ifunc).
18311         * wcsmbs/test-wcschr-ifunc.c: New file.
18312         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
18313         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
18314         * wcsmbs/test-wcslen-ifunc.c: Likewise.
18315         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
18316         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
18317
18318         * string/Makefile (tests-ifunc): New variable.
18319         (tests): Add $(tests-ifunc).
18320         * string/test-memccpy.c (TEST_NAME): New macro.
18321         * string/test-memchr.c (TEST_NAME): Likewise.
18322         * string/test-memcmp.c (TEST_NAME): Likewise.
18323         * string/test-memcpy.c (TEST_NAME): Likewise.
18324         * string/test-memmem.c (TEST_NAME): Likewise.
18325         * string/test-memmove.c (TEST_NAME): Likewise.
18326         * string/test-memset.c (TEST_NAME): Likewise.
18327         * string/test-rawmemchr.c (TEST_NAME): Likewise.
18328         * string/test-stpcpy.c (TEST_NAME): Likewise.
18329         * string/test-stpncpy.c (TEST_NAME): Likewise.
18330         * string/test-strcasecmp.c (TEST_NAME): Likewise.
18331         * string/test-strcasestr.c (TEST_NAME): Likewise.
18332         * string/test-strcat.c (TEST_NAME): Likewise.
18333         * string/test-strchr.c (TEST_NAME): Likewise.
18334         * string/test-strcmp.c(TEST_NAME): Likewise.
18335         * string/test-strcpy.c (TEST_NAME): Likewise.
18336         * string/test-strcspn.c (TEST_NAME): Likewise.
18337         * string/test-strlen.c (TEST_NAME): Likewise.
18338         * string/test-strncasecmp.c (TEST_NAME): Likewise.
18339         * string/test-strncmp.c (TEST_NAME): Likewise.
18340         * string/test-strncpy.c (TEST_NAME): Likewise.
18341         * string/test-strnlen.c (TEST_NAME): Likewise.
18342         * string/test-strpbrk.c (TEST_NAME): Likewise.
18343         * string/test-strrchr.c (TEST_NAME): Likewise.
18344         * string/test-strspn.c (TEST_NAME): Likewise.
18345         * string/test-strstr.c (TEST_NAME): Likewise.
18346         * string/test-bcopy-ifunc.c: New file.
18347         * string/test-bzero-ifunc.c: Likewise.
18348         * string/test-memccpy-ifunc.c: Likewise.
18349         * string/test-memchr-ifunc.c: Likewise.
18350         * string/test-memcmp-ifunc.c: Likewise.
18351         * string/test-memcpy-ifunc.c: Likewise.
18352         * string/test-memmem-ifunc.c: Likewise.
18353         * string/test-memmove-ifunc.c: Likewise.
18354         * string/test-mempcpy-ifunc.c: Likewise.
18355         * string/test-memset-ifunc.c: Likewise.
18356         * string/test-rawmemchr-ifunc.c: Likewise.
18357         * string/test-stpcpy-ifunc.c: Likewise.
18358         * string/test-stpncpy-ifunc.c: Likewise.
18359         * string/test-strcasecmp-ifunc.c: Likewise.
18360         * string/test-strcasestr-ifunc.c: Likewise.
18361         * string/test-strcat-ifunc.c: Likewise.
18362         * string/test-strchr-ifunc.c: Likewise.
18363         * string/test-strchrnul-ifunc.c: Likewise.
18364         * string/test-strcmp-ifunc.c: Likewise.
18365         * string/test-strcpy-ifunc.c: Likewise.
18366         * string/test-strcspn-ifunc.c: Likewise.
18367         * string/test-strlen-ifunc.c: Likewise.
18368         * string/test-strncasecmp-ifunc.c: Likewise.
18369         * string/test-strncat-ifunc.c: Likewise.
18370         * string/test-strncmp-ifunc.c: Likewise.
18371         * string/test-strncpy-ifunc.c: Likewise.
18372         * string/test-strnlen-ifunc.c: Likewise.
18373         * string/test-strpbrk-ifunc.c: Likewise.
18374         * string/test-strrchr-ifunc.c: Likewise.
18375         * string/test-strspn-ifunc.c: Likewise.
18376         * string/test-strstr-ifunc.c: Likewise.
18377
18378         * debug/Makefile (tests-ifunc): New variable.
18379         (tests): Add $(tests-ifunc).
18380         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
18381         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
18382         * debug/test-stpcpy_chk-ifunc.c: New file.
18383         * debug/test-strcpy_chk-ifunc.c: Likewise.
18384
18385 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
18386
18387         [BZ #13601]
18388         * elf/dl-load.c (open_verify): Retry read if the entire ELF
18389         header is not read in.
18390
18391 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
18392
18393         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
18394         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
18395         directly.  Pass built executable to script as
18396         $(built-program-cmd).
18397         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
18398         $testprogram without using LD_LIBRARY_PATH and $ldso.
18399
18400         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
18401         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
18402         $(rtld-installed-name).
18403         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
18404         (rtld_installed_name): Likewise.
18405         (library_path): Likewise.
18406         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
18407         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
18408         $(run-program-prefix) to tst-tables.sh.
18409         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
18410         it to run tst-table-from and tst-table-to.
18411         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
18412         Pass it to tst-table.sh.
18413         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
18414         $(run-program-prefix) to tst-gettext.sh.
18415         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
18416         tst-translit.sh.
18417         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
18418         tst-gettext2.sh.
18419         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
18420         to run tst-gettext.
18421         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
18422         to run tst-gettext2.
18423         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
18424         to run tst-translit.
18425         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
18426         $(run-program-prefix) to tst-mtrace.sh.
18427         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
18428         to run tst-mtrace.
18429         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
18430         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
18431         $(rtld-installed-name).
18432         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
18433         (rtld_installed_name): Likewise.
18434         (run_program_prefix): New variable.  Use it to run wordexp-test.
18435
18436         * Makeconfig (ARCH): Remove all definitions.
18437         (machine): Likewise.
18438         [ARCH]: Remove conditional code.
18439         [!objdir]: Give error.
18440         [!objdir] (objpfx): Remove.
18441         [!objdir] (common-objpfx): Likewise.
18442         [!objdir] (common-objdir): Likewise.
18443         * configure.in (config_makefile): Remove.  Hardcode Makefile in
18444         AC_CONFIG_FILES call.
18445         * configure: Regenerated.
18446
18447         [BZ #13888]
18448         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
18449         or TMPDIR.
18450         (testout): Likewise.
18451
18452         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
18453         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
18454         $(rtld-installed-name).
18455         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
18456         (rtld_installed_name): Likwise.
18457         (runit): Remove function.
18458         (run_getconf): New variable,  Use it for running getconf binary.
18459
18460 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
18461
18462         [BZ #14716]
18463         * string/test-memmem.c (check_result): New function.
18464         (do_one_test): Use it.
18465         (check1): New function.
18466         (test_main): Use it.
18467
18468 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
18469
18470         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
18471
18472 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
18473
18474         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
18475         (_G_LSEEK64): Likewise.
18476         (_G_MMAP64): Likewise.
18477         (_G_FSTAT64): Likewise.
18478         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
18479         (_G_LSEEK64): Likewise.
18480         (_G_MMAP64): Likewise.
18481         (_G_FSTAT64): Likewise.
18482         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
18483         unconditional.  Call __mmap64 directly.
18484         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
18485         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
18486         __lseek64 directly.
18487         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
18488         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
18489         __mmap64 directly.
18490         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
18491         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18492         __lseek64 directly.
18493         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
18494         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18495         __lseek64 directly.
18496         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
18497         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
18498         __lseek64 directly.
18499         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
18500         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
18501         __fxstat64 directly.
18502         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
18503         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
18504         unconditional.
18505         (freopen64) [!_G_OPEN64]: Remove conditional code.
18506         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
18507         unconditional.
18508         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
18509         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
18510         unconditional.
18511         (ftello64) [!_G_LSEEK64]: Remove conditional code.
18512         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
18513         unconditional.
18514         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18515         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
18516         unconditional.
18517         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
18518         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
18519         unconditional.
18520         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18521         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
18522         unconditional.
18523         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18524         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
18525         unconditional.
18526         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18527
18528 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18529
18530         [BZ #12140]
18531         * manual/memory.texi (Malloc Tunable Parameters): Add note
18532         about free list pointers overwriting some perturb bytes.
18533         Wording suggested by Roland McGrath.
18534
18535 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
18536
18537         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
18538         (lgamma_test): Likewise.
18539         (tgamma_test): Likewise.
18540
18541 2012-10-16  Florian Weimer  <fweimer@redhat.com>
18542
18543         [BZ #14700]
18544         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
18545         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
18546
18547 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
18548
18549         * NEWS: Mention BZ #14716.
18550         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
18551         when removing AVAILABLE1_USES_J macro.
18552
18553 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
18554
18555         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
18556         (__bswap_64): __uint64_t for unsigned 64-bit int.
18557
18558 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
18559
18560         * include/string.h (memmem): Declare libc hidden alias.
18561         * string/memmem.c (memmem): Define libc hidden alias.
18562         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
18563         __read, __close instead of open, read, close.
18564
18565 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
18566
18567         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
18568         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
18569         global and hidden.
18570         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
18571         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
18572         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
18573         Likewise.
18574         (__rawmemchr_sse2): Likewise.
18575         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
18576         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
18577         (__strchr_sse2): Likewise.
18578         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
18579         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
18580         (__strcasecmp_sse2): Likewise.
18581         (__strncasecmp_sse2): Likewise.
18582         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
18583         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
18584         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
18585         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
18586         (__strrchr_sse2): Likewise.
18587         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
18588         ifunc-impl-list.c.
18589         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
18590         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
18591         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18592         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18593         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
18594         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
18595         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18596         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18597         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
18598         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
18599         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
18600         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
18601         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
18602         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
18603         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
18604         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
18605         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
18606         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
18607         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
18608         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
18609         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
18610         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
18611         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
18612         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
18613         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
18614         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18615         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18616         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
18617         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
18618         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
18619
18620         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
18621         global and hidden.
18622         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
18623         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
18624         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
18625         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
18626         Likewise.
18627         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
18628         Likewise.
18629         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
18630         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
18631         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
18632         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
18633         ifunc-impl-list.c.
18634         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18635         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18636         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18637         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18638         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18639         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18640         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18641         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18642         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18643         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18644         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18645         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18646         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18647         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18648         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18649         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18650         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18651         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
18652         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18653         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18654         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18655         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18656         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18657         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18658         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18659         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18660         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18661         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18662         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18663         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18664         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18665         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18666         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18667         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
18668         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18669         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18670         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18671         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18672         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18673         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18674         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
18675
18676         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
18677         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
18678         * include/ifunc-impl-list.h: New file.
18679         * misc/ifunc-impl-list.c: Likewise.
18680         * misc/Makefile (routines): Add ifunc-impl-list.
18681         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
18682         * string/test-string.h: Include <ifunc-impl-list.h>.
18683         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
18684         impl_array): New variables.
18685         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
18686         are defined.
18687         (test_init): Call __libc_ifunc_impl_list to initialize
18688         func_list if TEST_IFUNC and TEST_NAME are defined.
18689
18690         * string/Makefile (strop-tests): Add bcopy and bzero.
18691         * string/test-bcopy.c: New file.
18692         * string/test-bzero.c: Likewise.
18693         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
18694         defined.
18695         * string/test-memset.c: Support bzero test if TEST_BZERO is
18696         defined.
18697         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
18698         __libc_memmove.
18699         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
18700         __libc_memset.
18701         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
18702         of memset.
18703
18704 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
18705
18706         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
18707         * configure: Regenerated.
18708
18709         * Makeconfig (+link-static-before-libc): Don't include
18710         $(link-static-libc).
18711
18712         * libio/libio.h (_IO_pos_t): Remove.
18713
18714 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18715
18716         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
18717         McGrath.
18718
18719 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18720
18721         * crypt/crypt-entry.c: Include fips-private.h.
18722         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
18723         * crypt/md5c-test.c (main): Tolerate disabled MD5.
18724         * sysdeps/unix/sysv/linux/fips-private.h: New file.
18725         * sysdeps/generic/fips-private.h: New file, dummy fallback.
18726
18727 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18728
18729         * crypt/crypt-private.h: Include stdbool.h.
18730         (_ufc_setup_salt_r): Return bool.
18731         * crypt/crypt-entry.c: Include errno.h.
18732         (__crypt_r): Return NULL with EINVAL for bad salt.
18733         * crypt/crypt_util.c (bad_for_salt): New.
18734         (_ufc_setup_salt_r): Check that salt is long enough and within
18735         the specified alphabet.
18736         * crypt/badsalttest.c: New file.
18737         * crypt/Makefile (tests): Add it.
18738         ($(objpfx)badsalttest): New.
18739
18740 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
18741
18742         * NEWS: Add entry for BZ #14602.
18743
18744 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18745
18746         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
18747         type-generic.
18748         * math/libm-test.inc: Update comment listing what functions and
18749         macros are tested.
18750         (isgreater_test): New function.
18751         (isgreaterequal_test): Likewise.
18752         (isless_test): Likewise.
18753         (islessequal_test): Likewise.
18754         (islessgreater_test): Likewise.
18755         (isunordered_test): Likewise.
18756         (main): Call the new functions.
18757
18758 2012-10-09  Roland McGrath  <roland@hack.frob.com>
18759
18760         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
18761         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
18762         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
18763         * sysdeps/i386/configure: Regenerated.
18764         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
18765         * sysdeps/mach/configure: Regenerated.
18766         * sysdeps/mach/hurd/configure: Regenerated.
18767         * sysdeps/powerpc/configure: Regenerated.
18768         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18769         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18770         * sysdeps/s390/s390-32/configure: Regenerated.
18771         * sysdeps/s390/s390-64/configure: Regenerated.
18772         * sysdeps/sh/configure: Regenerated.
18773         * sysdeps/sparc/configure: Regenerated.
18774         * sysdeps/unix/sysv/linux/configure: Regenerated.
18775         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
18776         * sysdeps/x86_64/configure: Regenerated.
18777
18778         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
18779         defined.  Don't check if MAP is NULL.
18780
18781 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18782
18783         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
18784         (_G_stat64): Likewise.
18785         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
18786         (_G_stat64): Likewise.
18787         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
18788         instead of struct _G_stat64.
18789         * libio/fileops.c (mmap_remap_check): Likewise.
18790         (decide_maybe_mmap): Likewise.
18791         (_IO_new_file_seekoff): Likewise.
18792         (_IO_file_stat): Likewise.
18793         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
18794         _G_off64_t.
18795         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
18796         instead of struct _G_stat64.
18797         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18798
18799 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18800
18801         [BZ #14602]
18802         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18803         Replace with ...
18804         (CHECK_EOL): New macro.
18805         (two_way_short_needle): Check beginning of haystack for EOL.  Use
18806         CHECK_EOL.
18807         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18808         Replace with CHECK_EOL.
18809         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18810         Replace with CHECK_EOL.
18811
18812 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
18813
18814         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
18815         type-generic.
18816         * math/libm-test.inc: Update comment listing what functions and
18817         macros are tested.
18818         (finite_test): New function.
18819         (isinf_test): Likewise.
18820         (isnan_test): Likewise.
18821         (fpclassify_test): Test subnormal input.
18822         (isfinite_test): Likewise.
18823         (isnormal_test): Likewise.
18824         (main): Call the new functions.
18825
18826 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
18827
18828         [BZ #14660]
18829         * Makerules (%.dynsym): Force C locale when running
18830         $(OBJDUMP) --dynamic-syms.
18831
18832 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
18833
18834         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
18835         <stdint.h>.
18836
18837 2012-10-06  David S. Miller  <davem@davemloft.net>
18838
18839         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
18840         upper 32-bits of the length value in %o2 since we use branch-on-register
18841         tests which consider the entire 64-bit register.
18842
18843 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
18844
18845         * string/test-strstr.c (check2): Add a test for page boundary.
18846
18847 2012-10-05  David S. Miller  <davem@davemloft.net>
18848
18849         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
18850         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
18851         file.
18852         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18853         sysdep_routines.
18854         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18855         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
18856         and bzero when HWCAP_SPARC_CRYPTO is present.
18857
18858 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
18859
18860         [BZ #14602]
18861         * string/test-strstr.c (check2): New function.
18862         (test_main): Call check2.
18863
18864         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
18865         and bug-strchr1.
18866         * string/bug-strcasestr1.c (do_test): Moved to ...
18867         * string/test-strcasestr.c (check1): Here.  New function.
18868         (do_one_test): Break out result checking code into ...
18869         (check_result): This.  New function.
18870         (do_one_test): Call check_result.
18871         (test_main): Call check1.
18872         * string/bug-strchr1.c (do_test): Moved to ...
18873         * string/test-strchr.c (check1): Here.  New function.
18874         (do_one_test): Break out result checking code into ...
18875         (check_result): This.  New function.
18876         (do_one_test): Call check_result.
18877         (test_main): Call check1.
18878         * string/bug-strstr1.c (main): Moved to ...
18879         * string/test-strstr.c (check1): Here.  New function.
18880         (do_one_test): Break out result checking code into ...
18881         (check_result): This.  New function.
18882         (do_one_test): Call check_result.
18883         (test_main): Call check1.
18884         * string/bug-strcasestr1.c: Removed.
18885         * string/bug-strchr1.c: Likewise.
18886         * string/bug-strstr1.c: Likewise.
18887
18888         * elf/Makefile (dl-routines): Add hwcaps.
18889         * elf/dl-support.c (_dl_important_hwcaps): Removed.
18890         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
18891         (_dl_important_hwcaps): Moved to ...
18892         * elf/dl-hwcaps.c: Here.  New file.
18893         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
18894
18895         [BZ #14557]
18896         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
18897         if IS_IN_rtld isn't defined.
18898
18899         * elf/dl-support.c (_dl_sysinfo_map): New.
18900         Include "get-dynamic-info.h" and "setup-vdso.h".
18901         (_dl_non_dynamic_init): Call setup_vdso.
18902         * elf/dynamic-link.h: Don't include <assert.h>.
18903         (elf_get_dynamic_info): Moved to ...
18904         * elf/get-dynamic-info.h: Here.  New file.
18905         * elf/dynamic-link.h: Include "get-dynamic-info.h".
18906         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
18907         * elf/setup-vdso.h: Here.  New file.
18908         * elf/rtld.c: Include "setup-vdso.h".
18909         (dl_main): Call setup_vdso.
18910
18911 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
18912
18913         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
18914         creal in comment listing functions tested.  List finite, isinf,
18915         isnan, isless, islessequal, isgreater, isgreaterequal,
18916         islessgreater, isunordered, lgamma_r and pow10 as functions and
18917         macros not tested.  Mention which functions not tested are aliases
18918         for other functions.  Fix typo.  Note that signs of NaNs are not
18919         tested.
18920
18921         * scripts/config.guess: Update from config.git.
18922         * scripts/config.sub: Likewise.
18923
18924 2012-10-04  Roland McGrath  <roland@hack.frob.com>
18925
18926         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
18927         * misc/madvise.c (madvise): Renamed to __madvise.
18928         Make madvise a weak alias.
18929         * include/sys/mman.h: Declare __madvise.
18930         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
18931         * sysdeps/unix/syscalls.list
18932         (madvise): Make __madvise the strong name, and madvise a weak alias.
18933         * sysdeps/unix/sysv/linux/syscalls.list
18934         (madvise, mmap): Remove redundant entries.
18935         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
18936         * malloc/malloc.c (mtrim): Likewise.
18937         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
18938
18939 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18940
18941         * sysdeps/mach/hurd/dl-cache.c: File removed.
18942         * config.h.in (USE_LDCONFIG): New #undef.
18943         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
18944         * configure: Regenerated.
18945         * elf/Makefile (dl-routines): Add dl-cache only under
18946         [$(use-ldconfig) = yes].
18947         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
18948         cache on [USE_LDCONFIG].
18949         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
18950         [USE_LDCONFIG].
18951         * elf/rtld.c (dl_main): Likewise.
18952
18953 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
18954
18955         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
18956         _SC_LEVEL4_CACHE_LINESIZE.
18957
18958 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18959
18960         * sysdeps/unix/bsd/confstr.h: File removed.
18961
18962 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
18963
18964         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
18965         sys/sdt-config.h.
18966
18967 2012-10-02  Roland McGrath  <roland@hack.frob.com>
18968
18969         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
18970         Make 'mapoff' field ElfW(Off) rather than off_t.
18971
18972 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
18973
18974         * nscd/Makefile: Remove nscd-cflags and all its users.
18975         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
18976         (CFLAGS-nonlib): Add compiler flags for nscd modules.
18977
18978         [BZ #10631]
18979         * malloc.c (malloc_printerr): Clarify error message.
18980
18981 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
18982
18983         [BZ #14648]
18984         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18985         Set bit_FMA_Usable if FMA is supported.
18986         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
18987         macro.
18988         (bit_FMA4_Usable): Updated.
18989         (index_FMA_Usable): New macro.
18990         (CPUID_FMA): Likewise
18991         (HAS_FMA): Defined with bit_FMA_Usable.
18992
18993 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18994
18995         * bits/types.h (__swblk_t): Type removed.
18996         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
18997         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
18998         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18999         (__SWBLK_T_TYPE): Likewise.
19000         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
19001         (__SWBLK_T_TYPE): Likewise.
19002         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19003         (__SWBLK_T_TYPE): Likewise.
19004         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19005         (__SWBLK_T_TYPE): Likewise.
19006
19007 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
19008             Honza Horak <hhorak@redhat.com>
19009
19010         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
19011         (xdr_mapname): Use YPMAXMAP as maxsize.
19012         (xdr_peername): Use YPMAXPEER as maxsize.
19013         (xdr_keydat): Use YPAXRECORD as maxsize.
19014         (xdr_valdat): Use YPMAXRECORD as maxsize.
19015
19016 2012-10-01  Roland McGrath  <roland@hack.frob.com>
19017
19018         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
19019
19020         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
19021         * csu/init-first.c: ... here.
19022         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
19023         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19024         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
19025         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
19026         * sysdeps/i386/init-first.c: File removed.
19027         * sysdeps/sh/init-first.c: File removed.
19028
19029 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
19030
19031         [BZ #14645]
19032         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
19033         if x * y might underflow to zero and z is zero.
19034         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19035         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19036         * math/libm-test.inc (min_subnorm_value): New variable.
19037         (fma_test): Add more tests.
19038         (fma_test_towardzero): Likewise.
19039         (fma_test_downward): Likewise
19040         (fma_test_upward): Likewise.
19041         (initialize): Set min_subnorm_value.
19042
19043 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
19044
19045         [BZ #14638]
19046         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
19047         0 + 0.
19048         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
19049         mode for addition resulting in exact zero.
19050         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
19051         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
19052         exact 0 + 0.
19053         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
19054         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19055         * math/libm-test.inc (fma_test): Add more tests.
19056         (fma_test_towardzero): New function.
19057         (fma_test_downward): Likewise.
19058         (fma_test_upward): Likewise.
19059         (main): Call the new functions.
19060
19061 2012-09-28  David S. Miller  <davem@davemloft.net>
19062
19063         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
19064
19065 2012-09-28  Roland McGrath  <roland@hack.frob.com>
19066
19067         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
19068         instead of SIGALRM.
19069
19070         * sysdeps/gnu/_G_config.h: Moved to ...
19071         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
19072         * sysdeps/mach/hurd/_G_config.h: Moved to ...
19073         * sysdeps/generic/_G_config.h: ... here.
19074
19075         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
19076
19077         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
19078
19079         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
19080         Conditionalize target on [libnss_test1.so-version].
19081
19082         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
19083
19084         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
19085         (elfobjdir): Move out of conditionals.
19086
19087         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
19088         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
19089         (__nss_lookup_function): Conditionalize label remove_from_tree on
19090         [!DO_STATIC_NSS || SHARED], matching its only use.
19091
19092 2012-09-28  David S. Miller  <davem@davemloft.net>
19093
19094         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
19095         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
19096         file.
19097         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
19098         sysdep_routines.
19099         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
19100         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
19101         when HWCAP_SPARC_CRYPTO is present.
19102
19103 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19104
19105         * io/tst-mknodat.c: Create a FIFO instead of a socket.
19106
19107 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
19108
19109         [BZ #6530]
19110         * stdio-common/vfprintf.c (process_string_arg): Revert
19111         2000-07-22 change.
19112
19113 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
19114
19115         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
19116         for testcase.
19117         * stdio-common/tst-sprintf.c: Include <locale.h>
19118         (main): Test sprintf's handling of incomplete multibyte
19119         characters.
19120
19121 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
19122
19123         * elf/dl-runtime.c (VERSYMIDX): Removed.
19124         * elf/dl-version.c (VERSYMIDX): Likewise.
19125         * elf/do-rel.h (VERSYMIDX): Likewise.
19126         (VALIDX): Likewise.
19127         * elf/dynamic-link.h (VERSYMIDX): Likewise.
19128         * elf/rtld.c (VALIDX): Likewise.
19129         (ADDRIDX): Likewise.
19130         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
19131         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
19132         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
19133         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
19134         (VALIDX): Likewise.
19135         (ADDRIDX): Likewise.
19136
19137 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19138
19139         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
19140
19141 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
19142
19143         [BZ #11438]
19144         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
19145         to global scope.
19146         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
19147         addresses are in the same scope as 192.0.2/24.
19148         * posix/gai.conf: Document new scope table defaults.
19149
19150 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19151
19152         [BZ #5298]
19153         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
19154         for ftell.  Compute offsets from write pointers instead.
19155         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19156
19157 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19158
19159         [BZ #14543]
19160         * libio/Makefile (tests): New test case tst-fseek.
19161         * libio/tst-fseek.c: New test case to verify that fseek/ftell
19162         combination works in wide mode.
19163         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
19164         state when the external buffer state changes.
19165
19166 2012-09-27  David S. Miller  <davem@davemloft.net>
19167
19168         [BZ #14376]
19169         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
19170         pass reloc->r_addend in as the 'high' argument to
19171         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
19172
19173         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19174
19175 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19176
19177         * rt/tst-aio2.c: Include <pthread.h>.
19178         * rt/tst-aio3.c: Likewise.
19179
19180 2012-09-27  Steve Ellcey  <sellcey@mips.com>
19181
19182         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
19183
19184 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
19185
19186         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
19187         contents on [SHARED].
19188
19189 2012-09-26  Marek Polacek  <polacek@redhat.com>
19190
19191         [BZ #14530]
19192         [BZ #13741]
19193         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
19194         for C++ and GCC <4.3 as well as for non GCC compilers.
19195
19196 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19197
19198         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19199
19200 2012-09-25  Roland McGrath  <roland@hack.frob.com>
19201
19202         * Makefile.in (all, install): Declare with .PHONY.
19203         Reported by Michael Hope <michael.hope@linaro.org>.
19204
19205 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19206
19207         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
19208         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
19209         system header.
19210         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
19211         Likewise.
19212         (sydep_routines): Add the new and the internal functions.
19213         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
19214         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
19215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
19216         (GLIBC_2.17): Add the new function.
19217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
19218         (GLIBC_2.17): Likewise.
19219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
19220         (GLIBC_2.17): Likewise.
19221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
19222         (GLIBC_2.17): Likewise.
19223         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
19224
19225 2012-09-25  Alan Modra  <amodra@gmail.com>
19226
19227         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
19228         Add release barrier before setting once_control to say
19229         initialisation is done.  Add hints on lwarx.  Use macro in
19230         place of isync.
19231         (clear_once_control): Add release barrier.
19232
19233 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19234
19235         [BZ #13629]
19236         * math/s_clog.c (__clog): Handle more values close to |z| = 1
19237         specially.
19238         * math/s_clog10.c (__clog10): Likewise.
19239         * math/s_clog10f.c (__clog10f): Likewise.
19240         * math/s_clog10l.c (__clog10l): Likewise.
19241         * math/s_clogf.c (__clogf): Likewise.
19242         * math/s_clogl.c (__clogl): Likewise.
19243         * math/Makefile (libm-calls): Add x2y2m1.
19244         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
19245         (__x2y2m1): Likewise.
19246         (__x2y2m1l): Likewise.
19247         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
19248         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
19249         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
19250         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
19251         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
19252         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
19253         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
19254         * sysdeps/i386/fpu/libm-test-ulps: Update.
19255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19256
19257         [BZ #14621]
19258         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
19259         int as type of variable DEPTH.
19260         (glob): Use size_t instead of int as type of variables NEWCOUNT
19261         and OLD_PATHC.
19262
19263 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19264
19265         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19266         Add s_sincosf-sse2.
19267         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
19268         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
19269         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
19270         macros for using routine as __sincosf_ia32.
19271         Use macro for function declaration and weak_alias.
19272         * sysdeps/i386/fpu/libm-test-ulps: Update.
19273
19274         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
19275         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19276
19277         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
19278         subnormal argument.
19279         * math/s_cexpf.c (__cexpf): Likewise.
19280         * math/s_csinf.c (__csinf): Likewise.
19281         * math/s_csinhf.c (__csinhf): Likewise.
19282         * math/s_ctanf.c (__ctanf): Likewise.
19283         * math/s_ctanhf.c (__ctanhf): Likewise.
19284         * math/s_ccosh.c (__ccoshf): Likewise.
19285         * math/s_cexp.c (__cexpl): Likewise.
19286         * math/s_csin.c (__csin): Likewise.
19287         * math/s_csinh.c (__csinh): Likewise.
19288         * math/s_ctan.c (__ctan): Likewise.
19289         * math/s_ctanh.c (ctanh): Likewise.
19290         * math/s_ccoshl.c (__ccoshl): Likewise.
19291         * math/s_cexpl.c (__cexpl): Likewise.
19292         * math/s_csinl.c (__csinl): Likewise.
19293         * math/s_csinhl.c (__csinhl): Likewise.
19294         * math/s_ctanl.c (__ctanl): Likewise.
19295         * math/s_ctanhl.c (__ctanhl): Likewise.
19296
19297 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19298
19299         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
19300         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
19301         (_IO_off_t): Define to __off_t, not _G_off_t.
19302         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
19303         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
19304         (_IO_wint_t): Define to wint_t, not _G_wint_t.
19305         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
19306         type of __dummy and __dummy2 fields.
19307         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
19308         (_G_ssize_t): Likewise.
19309         (_G_off_t): Likewise.
19310         (_G_pid_t): Likewise.
19311         (_G_uid_t): Likewise.
19312         (_G_wchar_t): Likewise.
19313         (_G_wint_t): Likewise.
19314         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
19315         (_G_ssize_t): Likewise.
19316         (_G_off_t): Likewise.
19317         (_G_pid_t): Likewise.
19318         (_G_uid_t): Likewise.
19319         (_G_wchar_t): Likewise.
19320         (_G_wint_t): Likewise.
19321         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
19322         (_G_ssize_t): Likewise.
19323         (_G_off_t): Likewise.
19324         (_G_pid_t): Likewise.
19325         (_G_uid_t): Likewise.
19326         (_G_wchar_t): Likewise.
19327         (_G_wint_t): Likewise.
19328
19329 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19330
19331         * malloc/arena.c: Include malloc-sysdep.h.
19332         (shrink_heap): Use check_may_shrink_heap to decide if madvise
19333         is sufficient to shrink the heap or an unmap is needed.
19334         * sysdeps/generic/malloc-sysdep.h: New file.  Define
19335         new function check_may_shrink_heap.
19336         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
19337         new function check_may_shrink_heap.
19338
19339 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19340
19341         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
19342         comments.
19343
19344 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
19345
19346         * catgets/test-gencat.sh: Add "set -e".
19347         * elf/tst-pathopt.sh: Likewise.
19348         * grp/tst_fgetgrent.sh: Likewise.
19349         * iconvdata/run-iconv-test.sh: Likewise.
19350         * intl/tst-gettext.sh: Likewise.
19351         * intl/tst-gettext2.sh: Likewise.
19352         * intl/tst-gettext4.sh: Likewise.
19353         * intl/tst-gettext6.sh: Likewise.
19354         * intl/tst-translit.sh: Likewise.
19355         * io/ftwtest-sh: Likewise.
19356         * libio/test-freopen.sh: Likewise.
19357         * malloc/tst-mtrace.sh: Likewise.
19358         * posix/globtest.sh: Likewise.
19359         * posix/tst-getconf.sh: Likewise.
19360         * posix/wordexp-tst.sh: Likewise.
19361         * stdio-common/tst-printf.sh: Likewise.
19362         * stdio-common/tst-unbputc.sh: Likewise.
19363         * stdlib/tst-fmtmsg.sh: Likewise.
19364         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19365         * catgets/Makefile: Do not specify -e option when running
19366         testsuite shell scripts.
19367         * elf/Makefile: Likewise.
19368         * grp/Makefile: Likewise.
19369         * iconvdata/Makefile: Likewise.
19370         * intl/Makefile: Likewise.
19371         * io/Makefile: Likewise.
19372         * libio/Makefile: Likewise.
19373         * malloc/Makefile: Likewise.
19374         * posix/Makefile: Likewise.
19375         * stdio-common/Makefile: Likewise.
19376         * stdlib/Makefile: Likewise.
19377         * sysdeps/x86_64/Makefile: Likewise.
19378
19379         * io/ftwtest-sh: Add copyright header.
19380         * posix/globtest.sh: Likewise.
19381         * posix/tst-getconf.sh: Likewise.
19382         * posix/wordexp-tst.sh: Likewise.
19383         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19384
19385 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
19386
19387         [BZ #13679]
19388         * Makeconfig (+link): Defined as $(+link-static) if
19389         $(build-shared) isn't yes.
19390         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
19391         isn't yes.
19392         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
19393
19394         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
19395
19396         [BZ #14562]
19397         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
19398         new chunk size with MALLOC_ALIGN_MASK.
19399
19400 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
19401
19402         [BZ #5044]
19403         * stdio-common/printf_fphex.c: Include <stdbool.h> and
19404         <rounding-mode.h>.
19405         (__printf_fphex): Determine rounding using get_rounding_mode and
19406         round_away.
19407         * stdio-common/tst-printf-round.c (struct hex_test): New
19408         structure.
19409         (hex_tests): New variable.
19410         (test_hex_in_one_mode): New function.
19411         (do_test): Also run tests for hex float output.
19412
19413 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
19414
19415         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19416         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19417         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
19418         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19419         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19420         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
19421         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19422         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19423
19424 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
19425
19426         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
19427         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
19428         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
19429         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
19430
19431 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
19432
19433         [BZ #14579]
19434         * elf/rtld.c (dl_main): Limit the check for self loading to normal
19435         mode only.
19436         * elf/tst-rtld-load-self.sh: New test.
19437         * elf/Makefile: Run it.
19438
19439 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
19440
19441         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
19442         (tst-writev-ENV): Remove.
19443         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
19444
19445 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
19446
19447         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
19448
19449 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
19450
19451         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
19452         unconditional.
19453         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
19454         Likewise.
19455         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
19456         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
19457         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
19458         Likewise.
19459
19460 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
19461
19462         [BZ #14587]
19463         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
19464         * config.make.in (have-cpp-asm-debuginfo): Removed.
19465         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
19466         * configure: Regenerated.
19467
19468 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
19469
19470         [BZ #5044]
19471         * stdio-common/printf_fp.c: Include <stdbool.h> and
19472         <rounding-mode.h>.
19473         (___printf_fp): Determine rounding using get_rounding_mode and
19474         round_away.
19475         * stdio-common/tst-printf-round.c: New file.
19476         * stdio-common/Makefile (tests): Add tst-printf-round.
19477         (link-libm): New variable.
19478         ($(objpfx)tst-printf-round): Depend in $(link-libm).
19479
19480 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
19481
19482         [BZ #14576]
19483         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
19484         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
19485         Likewise.
19486         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
19487         Likewise.
19488
19489 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
19490
19491         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
19492         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19493         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19494         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19495
19496 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
19497
19498         [BZ #14518]
19499         * include/rounding-mode.h: New file.
19500         * sysdeps/generic/get-rounding-mode.h: Likewise.
19501         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
19502         * stdlib/strtod_l.c: Include <rounding-mode.h>.
19503         (MAX_VALUE): New macro.
19504         (MIN_VALUE): Likewise.
19505         (overflow_value): New function.
19506         (underflow_value): Likewise.
19507         (round_and_return): Use overflow_value and underflow_value to
19508         determine return values in overflow and underflow cases.  Use
19509         round_away to determine rounding depending on rounding mode.
19510         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
19511         determine return values in overflow and underflow cases.
19512         * stdlib/tst-strtod-round.c: Include <fenv.h>.
19513         (struct test_results): New structure.
19514         (struct test): Use struct test_results to store expected results
19515         for all rounding modes.
19516         (TEST): Include expected results for all rounding modes.
19517         (test_in_one_mode): New function.
19518         (do_test): Use test_in_one_mode to compute and check results.
19519         Check results for all rounding modes.
19520         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
19521         $(link-libm).
19522
19523 2012-12-09  Allan McRae  <allan@archlinux.org>
19524
19525         * sysdeps/i386/fpu/libm-test-ulps: Update
19526
19527 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
19528
19529         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
19530         (_G_int32_t): Likewise.
19531         (_G_uint16_t): Likewise.
19532         (_G_uint32_t): Likewise.
19533         (_G_HAVE_BOOL): Likewise.
19534         (_G_HAVE_ATEXIT): Likewise.
19535         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19536         (_G_HAVE_IO_FILE_OPEN): Likewise.
19537         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
19538         (_G_int32_t): Likewise.
19539         (_G_uint16_t): Likewise.
19540         (_G_uint32_t): Likewise.
19541         (_G_HAVE_BOOL): Likewise.
19542         (_G_HAVE_ATEXIT): Likewise.
19543         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19544         (_G_HAVE_IO_FILE_OPEN): Likewise.
19545         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
19546         (_G_int32_t): Likewise.
19547         (_G_uint16_t): Likewise.
19548         (_G_uint32_t): Likewise.
19549         (_G_HAVE_BOOL): Likewise.
19550         (_G_HAVE_ATEXIT): Likewise.
19551         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19552         (_G_HAVE_IO_FILE_OPEN): Likewise.
19553
19554 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
19555
19556         * csu/libc-tls.c: Update copyright years.
19557
19558 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
19559
19560         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
19561         [!_G_USING_THUNKS]: Remove conditional code.
19562         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
19563         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
19564
19565         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
19566         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
19567         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19568         (_G_VTABLE_LABEL_PREFIX): Likewise.
19569         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19570         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19571         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19572         (_G_VTABLE_LABEL_PREFIX): Likewise.
19573         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19574         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19575         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19576         (_G_VTABLE_LABEL_PREFIX): Likewise.
19577         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19578
19579 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
19580
19581         * libio/Makefile: Include ../Makeconfig before tests.
19582         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
19583         only if $(build-shared) is yes.
19584
19585         * iconv/gconv_db.c: Update copyright years.
19586
19587 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19588
19589         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
19590         unwind info if defined PIC. Fix special cases description.
19591         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
19592
19593         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
19594         DP_HI_MASK entry.
19595         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
19596
19597 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
19598
19599         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
19600
19601         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
19602         is NULL.
19603
19604         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
19605         (LDLIBS-tst-chk4): This.
19606         (LDFLAGS-tst-chk5): Renamed to ...
19607         (LDLIBS-tst-chk5): This.
19608         (LDFLAGS-tst-chk6): Renamed to ...
19609         (LDLIBS-tst-chk6): This.
19610         (LDFLAGS-tst-lfschk4): Renamed to ...
19611         (LDLIBS-tst-lfschk4): This.
19612         (LDFLAGS-tst-lfschk5): Renamed to ...
19613         (LDLIBS-tst-lfschk5): This.
19614         (LDFLAGS-tst-lfschk6): Renamed to ...
19615         (LDLIBS-tst-lfschk6): This.
19616
19617         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
19618         on $(common-objpfx)soversions.mk.
19619
19620 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
19621
19622         [BZ #10014]
19623         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
19624         example host name.
19625
19626 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19627
19628         * malloc/arena.c (arena_get_retry): New function that gets
19629         another arena for the caller to try its request on.
19630         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
19631         current arena cannot fulfill the request.
19632         (__libc_memalign): Likewise.
19633         (__libc_memalign): Likewise.
19634         (__libc_pvalloc): Likewise.
19635         (__libc_calloc): Likewise.
19636
19637 2012-09-05  John Tobey  <john.tobey@gmail.com>
19638
19639         [BZ #13542]
19640         * manual/arith.texi (Operations on Complex): Fix description
19641         of carg branch cut.
19642
19643 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19644
19645         [BZ #10014]
19646         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
19647         host name.
19648
19649         [BZ #10038]
19650         * manual/memory.texi (Memory): Make order of menu items match
19651         order of sections.
19652
19653 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19654
19655         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
19656         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
19657         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
19658
19659 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19660
19661         * csu/libc-tls.c (static_dtv): Renamed to ...
19662         (_dl_static_dtv): This.  Make it global.
19663         (_dl_initial_dtv): Removed.
19664         (__libc_setup_tls): Updated.
19665         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
19666         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
19667         DL_INITIAL_DTV.
19668
19669 2012-09-06  Petr Machata  <pmachata@redhat.com>
19670
19671         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
19672         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
19673         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
19674         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
19675
19676 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19677
19678         [BZ #14545]
19679         * csu/libc-tls.c (_dl_initial_dtv): New variable.
19680         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
19681         freeing dtv[-1].
19682
19683 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19684
19685         [BZ #14544]
19686         * Makeconfig (link-static-before-libc): Replace $(+prector)
19687         with $(+prectorT).
19688         (link-static-after-libc): Replace $(+postctor) with
19689         $(+postctorT).
19690         (link-bounded): Replace $(+prector)/$(+postctor) with
19691         $(+prectorT)/$(+postctorT).
19692         (+prectorT): New macro.
19693         (+postctorT): Likewise.
19694
19695 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19696
19697         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
19698         (round_str): Handle values above the maximum for IBM long double
19699         as inexact.
19700         * stdlib/tst-strtod-round.c (tests): Regenerated.
19701
19702 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19703
19704         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
19705         assembler flag.
19706         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
19707         zarch_nohighgprs around the zarch optimized routines.
19708         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
19709         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
19710         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
19711         for zarch.
19712
19713 2012-09-05  David S. Miller  <davem@davemloft.net>
19714
19715         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19716
19717         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
19718         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
19719         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
19720         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19721         entries.
19722
19723 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19724
19725         * malloc/arena.c: Fold copyright years.
19726         * malloc/mcheck.c, malloc/memusage.c: Likewise.
19727
19728 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19729
19730         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
19731
19732 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19733
19734         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
19735
19736 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19737
19738         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
19739         change internal state upon failure.
19740
19741 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19742
19743         * malloc/mcheck.c (mcheck_check_all): Fix typo.
19744         * malloc/memusage.c (mmap): Likewise.
19745         (mmap64, mremap): Likewise.  Adjust name in comment.
19746
19747 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19748
19749         * libio/fileops.c: Fix typos in comments.
19750         * libio/oldfileops.c: Likewise.
19751         * libio/wfileops.c: Likewise.
19752
19753 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19754
19755         [BZ #1349]
19756         * malloc/Makefile (tests): Add tst-malloc-usable test case.
19757         (tst-malloc-usable-ENV): Set environment for test case.
19758         * malloc/hooks.c (malloc_check_get_size): New function to get
19759         requested size.
19760         * malloc/malloc.c (musable): Use malloc_check_get_size.
19761         * malloc/tst-malloc-usable.c: New test case.
19762
19763 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19764
19765         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
19766
19767 2012-09-05  Allan McRae  <allan@archlinux.org>
19768
19769         [BZ #13966]
19770         * configure.in (CXX_SYSINCLUDES): Use compiler output to
19771         determine header location.
19772         * configure: Regenerated.
19773
19774 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19775
19776         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
19777         float format.
19778         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
19779         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
19780         format.
19781         (test): Regenerate.
19782
19783 2012-09-04  David S. Miller  <davem@davemloft.net>
19784
19785         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
19786         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
19787         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
19788
19789 2012-09-04  Florian Weimer  <fweimer@redhat.com>
19790
19791         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
19792         failures.
19793
19794         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
19795
19796 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
19797
19798         [BZ #9914]
19799         * libio/iogetdelim.c: Include <limits.h>.
19800         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
19801         + len + 1 would overflow.
19802
19803 2012-09-03  Andreas Jaeger  <aj@suse.de>
19804
19805         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19806         * sysdeps/i386/fpu/libm-test-ulps: Update.
19807
19808 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19809
19810         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19811         Add s_sinf-sse2, s_conf-sse2.
19812
19813         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
19814         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
19815         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
19816         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
19817
19818         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
19819         for using routine as __sinf_ia32.
19820         Use macro for function declaration and weak_alias.
19821         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
19822         for using routine as __cosf_ia32.
19823         Use macro for function declaration and weak_alias.
19824
19825         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
19826         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
19827
19828         * sysdeps/x86_64/fpu/s_sinf.S: New file.
19829         * sysdeps/x86_64/fpu/s_cosf.S: New file.
19830         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19831
19832         * math/libm-test.inc (cos_test): Add more test cases.
19833         (sin_test): Likewise.
19834         (sincos_test): Likewise.
19835
19836 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19837
19838         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
19839         (IFUNC_RESOLVE): Make pointers to the specialized implementations
19840         hidden.
19841         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19842
19843 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
19844
19845         [BZ #14538]
19846         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
19847         first element of the GOT.
19848         (elf_machine_load_address): Return the difference between
19849         the runtime address of _DYNAMIC and elf_machine_dynamic ().
19850
19851 2012-09-01  Allan McRae  <allan@archlinux.org>
19852
19853         [BZ #13412]
19854         * configure.in (AWK): Require gawk version 3.0 or later.
19855         * configure: Regenerated.
19856
19857 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
19858
19859         * sysdeps/unix/sysv/linux/kernel-features.h
19860         (__ASSUME_POSIX_CPU_TIMERS): Remove.
19861         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19862         [__NR_clock_getres]: Make code unconditional.
19863         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
19864         (clock_getcpuclockid): Remove code left unreachable by removal of
19865         conditionals.
19866         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
19867         code unconditional.
19868         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19869         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19870         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
19871         Make code unconditional.
19872         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19873         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19874         * sysdeps/unix/sysv/linux/clock_settime.c
19875         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
19876         conditional code.
19877         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
19878         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19879
19880 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
19881
19882         [BZ #14476]
19883         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
19884         scripts/test-installation.pl.
19885
19886         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
19887         and $ld_so_version if it is set.
19888
19889 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19890
19891         [BZ #14516]
19892         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
19893         failure if reading from procfs failed.
19894         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
19895
19896 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19897
19898         * sysdeps/unix/sysv/linux/kernel-features.h
19899         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
19900         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19901         Remove conditional code.
19902         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19903         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
19904         Remove conditional code.
19905         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19906         * sysdeps/unix/sysv/linux/i386/fxstat.c
19907         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19908         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19909         * sysdeps/unix/sysv/linux/i386/fxstatat.c
19910         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19911         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19912         * sysdeps/unix/sysv/linux/i386/lxstat.c
19913         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19914         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19915         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
19916         Remove conditional code.
19917         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19918         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19919         Remove conditional code.
19920         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19921         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
19922         <kernel-features.h>.
19923         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
19924         Remove.
19925         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
19926         Remove conditional code.
19927         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19928         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
19929         Remove conditional.
19930
19931 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
19932
19933         [BZ #5400]
19934         * NEWS: Add fixed bug number.
19935
19936 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19937
19938         [BZ #14519]
19939         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
19940         underflowing exponent in case of negative sign.
19941         * stdlib/tst-strtod-round-data: Add more tests.
19942         * stdlib/tst-strtod-round.c (tests): Regenerated.
19943
19944         [BZ #3479]
19945         * stdlib/strtod_l.c (NDIG): Remove.
19946         (HEXNDIG): Likewise.
19947         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
19948         smallest representable value.
19949         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
19950         lie within an exact representation of 1/2 ulp of the result.
19951         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
19952         unconditionally.
19953         (TENS_P9_IDX): Define unconditionally.
19954         (TENS_P9_SIZE): Likewise.
19955         (TENS_P10_IDX): Likewise.
19956         (TENS_P10_SIZE): Likewise.
19957         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
19958         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
19959         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
19960         entries for 10^2^13 and 10^2^14.
19961         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
19962         (TENS_P13_IDX): Define.
19963         (TENS_P13_SIZE): Likewise.
19964         (TENS_P14_IDX): Likewise.
19965         (TENS_P14_SIZE): Likewise.
19966         (_fpioconst_pow10): Change array size to
19967         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
19968         unconditional.
19969         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
19970         1024]: Add entries for 10^2^13 and 10^2^14.
19971         [LAST_POW10 > _LAST_POW10]: Remove #error.
19972         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
19973         (_fpioconst_pow10): Change array size to
19974         FPIOCONST_POW10_ARRAY_SIZE.
19975         * stdlib/gen-fpioconst.c: New file.
19976         * stdlib/gen-tst-strtod-round.c: Likewise.
19977         * stdlib/tst-strtod-round-data: Likewise.
19978         * stdlib/tst-strtod-round.c: Likewise.
19979         * stdlib/Makefile (tests): Add tst-strtod-round.
19980
19981         [BZ #14459]
19982         * stdlib/strtod_l.c: Include <stdint.h>.
19983         (NDEBUG): Do not define.
19984         (round_and_return): Change EXPONENT parameter to type intmax_t.
19985         Rearrange calculations to avoid internal overflow possibilities.
19986         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
19987         Rearrange calculations to avoid internal overflow possibilities.
19988         Assert that number fits inside MPNSIZE limbs.
19989         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
19990         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
19991         calculations and add assertions to avoid internal overflow
19992         possibilities.  Add casts to avoid signed/unsigned operations.
19993         * stdlib/tst-strtod-overflow.c: New file.
19994         * stdlib/Makefile (tests): Add tst-strtod-overflow.
19995
19996 2012-08-25  Marek Polacek  <polacek@redhat.com>
19997
19998         * time/time.h: Fix some typos in comments.
19999
20000 2012-08-23  Roland McGrath  <roland@hack.frob.com>
20001
20002         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
20003         * posix/tst-rfc3484-2.c: Likewise.
20004         * posix/tst-rfc3484-3.c: Likewise.
20005
20006 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
20007
20008         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
20009         (EF_ARM_ABI_FLOAT_HARD): Likewise.
20010
20011 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
20012
20013         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
20014         #include of fxstatat64.c.
20015
20016 2012-08-22  Roland McGrath  <roland@hack.frob.com>
20017
20018         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
20019         * shadow/getspent_r.c: Likewise.
20020         * shadow/getspnam.c: Likewise.
20021         * shadow/getspnam_r.c: Likewise.
20022         * gshadow/getsgent.c: Likewise.
20023         * gshadow/getsgent_r.c: Likewise.
20024         * gshadow/getsgnam.c: Likewise.
20025         * gshadow/getsgnam_r.c: Likewise.
20026         * inet/getnetbyad.c: Likewise.
20027         * inet/getnetbyad_r.c: Likewise.
20028         * inet/getnetbynm.c: Likewise.
20029         * inet/getnetbynm_r.c: Likewise.
20030         * inet/getnetent.c: Likewise.
20031         * inet/getnetent_r.c: Likewise.
20032         * inet/getproto.c: Likewise.
20033         * inet/getproto_r.c: Likewise.
20034         * inet/getprtent.c: Likewise.
20035         * inet/getprtent_r.c: Likewise.
20036         * inet/getprtname.c: Likewise.
20037         * inet/getprtname_r.c: Likewise.
20038         * inet/getrpcbyname.c: Likewise.
20039         * inet/getrpcbyname_r.c: Likewise.
20040         * inet/getrpcbynumber.c: Likewise.
20041         * inet/getrpcbynumber_r.c: Likewise.
20042         * inet/getrpcent.c: Likewise.
20043         * inet/getrpcent_r.c: Likewise.
20044         * inet/getaliasent.c: Likewise.
20045         * inet/getaliasent_r.c: Likewise.
20046         * inet/getaliasname.c: Likewise.
20047         * inet/getaliasname_r.c: Likewise.
20048         * nscd/getgrgid_r.c: Likewise.
20049         * nscd/getgrnam_r.c: Likewise.
20050         * nscd/gethstbyad_r.c: Likewise.
20051         * nscd/gethstbynm3_r.c: Likewise.
20052         * nscd/getpwnam_r.c: Likewise.
20053         * nscd/getpwuid_r.c: Likewise.
20054         * nscd/getsrvbynm_r.c: Likewise.
20055         * nscd/getsrvbypt_r.c: Likewise.
20056         * nscd/gai.c: Likewise.
20057
20058         * configure.in (build_nscd): New substituted variable, set
20059         by --disable-build-nscd and defaults to $use_nscd.
20060         * configure: Regenerated.
20061         * config.make.in (build-nscd): New substituted variable.
20062         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
20063         Change conditional to require [$(build-nscd) = yes] as well.
20064         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
20065
20066         [BZ# 13696]
20067         * configure.in (use_nscd): New substituted variable, set by
20068         --disable-nscd.  If enabled, define USE_NSCD.
20069         * configure: Regenerated.
20070         * config.h.in: Add USE_NSCD.
20071         * config.make.in (use-nscd): New substituted variable.
20072         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20073         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
20074         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
20075         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
20076         (CFLAGS-getgrnam_r.c): Likewise.
20077         (CFLAGS-initgroups.c): Likewise.
20078         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
20079         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
20080         Variables removed.
20081         * inet/getnetgrent_r.c
20082         (nscd_setnetgrent): New function, broken out of ...
20083         (setnetgrent): ... here.  Call it.
20084         (innetgr): Conditionalize nscd bits on [USE_NSCD].
20085         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
20086         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
20087         * nscd/Makefile (routines, aux): Move definitions after include of
20088         Makeconfig.  Conditionalize on [$(use-nscd) != no].
20089         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
20090         Conditionalize on [USE_NSCD].
20091         (is_nscd, nscd_init_cb): Likewise.
20092         (nss_load_library): Conditionalize init callback on [USE_NSCD].
20093         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
20094         * nss/nss_db/db-init.c: Likewise.
20095         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
20096         [USE_NSCD].
20097         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
20098         (make_request): Use it.
20099         (cache_valid_p): New function.
20100         (__check_pf): Use it.
20101         * NEWS: Add item for --disable-nscd.
20102
20103 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
20104
20105         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
20106         to support sed >= 4.2.1-20-ga9bf076.
20107         * configure: Regenerated.
20108
20109 2012-08-22  Roland McGrath  <roland@hack.frob.com>
20110
20111         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
20112         Conditionalize whole body on [IREL].
20113
20114 2012-08-22  Jeff Law <law@redhat.com>
20115
20116         [BZ #14505]
20117         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
20118         if the family is PF_UNSPEC.
20119
20120 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
20121
20122         * Makerules (lib-version): Rename from V.
20123         (install-lib-nosubdir): Change V to lib-version.
20124
20125 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
20126
20127         [BZ #14252]
20128         * powerpc32/power6/wcschr.c: New file.
20129         * powerpc32/power6/wcscpy.c: New file.
20130         * powerpc32/power6/wcsrchr.c: New file.
20131         * powerpc64/power6/wcschr.c: New file.
20132         * powerpc64/power6/wcscpy.c: New file.
20133         * powerpc64/power6/wcsrchr.c: New file.
20134
20135 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20136
20137         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
20138         (two_way_short_needle): Use it.
20139         * string/strstr.c (AVAILABLE1_USES_J): Define.
20140         * string/strcasestr.c: Likewise.
20141
20142         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
20143         array references.
20144         * string/strcasestr.c (TOLOWER): Make side-effect safe.
20145
20146         [BZ #11607]
20147         * NEWS: Add an entry.
20148         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
20149         define their defaults.
20150         (two_way_short_needle): Detect end-of-string on-the-fly.
20151         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
20152         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
20153         * string/bug-strcasestr1.c: New test.
20154         * string/Makefile: Run it.
20155
20156 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20157
20158         [BZ #11607]
20159         * string/str-two-way.h (two_way_short_needle): Optimize matching of
20160         the first character.
20161
20162 2012-08-21  Roland McGrath  <roland@hack.frob.com>
20163
20164         * csu/elf-init.c (__libc_csu_irel): Function removed.
20165         * csu/libc-start.c (apply_irel): New function.
20166         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
20167
20168 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
20169
20170         * sysdeps/unix/sysv/linux/kernel-features.h
20171         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
20172         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
20173         <kernel-features.h>.
20174         [__NR_fadvise64_64]: Make code unconditional.
20175         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
20176         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20177         !__NR_fadvise64_64)]: Likewise.
20178         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20179         !__NR_fadvise64_64))]: Likewise.
20180         [__NR_fadvise64]: Make code unconditional.
20181         [!__NR_fadvise64]: Remove conditional code.
20182         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
20183         <kernel-features.h>.
20184         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20185         unconditional.
20186         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20187         conditional code.
20188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
20189         not include <kernel-features.h>.
20190         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20191         unconditional.
20192         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20193         conditional code.
20194         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
20195         include <kernel-features.h>.
20196         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20197         unconditional.
20198         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20199         conditional code.
20200
20201 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
20202
20203         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
20204         slight instruction rearrangements per scrollpipe analysis.
20205         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
20206
20207 2012-08-20  Roland McGrath  <roland@hack.frob.com>
20208
20209         * manual/syslog.texi (syslog; vsyslog, closelog):
20210         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
20211         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
20212
20213         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
20214         DSOCAPS to match condition on defining it.
20215
20216 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
20217
20218         * sysdeps/unix/sysv/linux/kernel-features.h
20219         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
20220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
20221         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20222         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
20224         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20225         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
20227         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20228         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20229
20230         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
20231         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
20232
20233         * sysdeps/unix/sysv/linux/kernel-features.h
20234         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
20235         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
20236         unconditional.
20237         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20238         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
20239         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20240         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20241         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
20242         Make code unconditional.
20243         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20244         (__mmap64) [!__NR_mmap2]: Likewise.
20245         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
20246         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20247         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20248         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
20249         [__NR_mmap2]: Make code unconditional.
20250         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20251         (__mmap64) [!__NR_mmap2]: Likewise.
20252
20253 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20254
20255         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
20256
20257 2012-08-18  Andreas Jaeger  <aj@suse.de>
20258
20259         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
20260
20261 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20262
20263         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
20264         * include/unistd.h (__have_sock_cloexec): Likewise.
20265         (__have_pipe2): Likewise.
20266         (__have_dup3): Likewise.
20267
20268 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20269
20270         [BZ #9685]
20271         * include/unistd.h (__have_pipe2): Change define into an extern int.
20272         (__have_dup3): Likewise.
20273         * socket/have_sock_cloexec.c: Include fcntl.h.
20274         (__have_pipe2): New variable.
20275         (__have_dup3): Likewise.
20276
20277 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
20278
20279         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
20280
20281 2012-08-17  Marek Polacek  <polacek@redhat.com>
20282
20283         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
20284         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
20285
20286 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20287
20288         * configure.in: Add AC_SUBST for sysheaders.
20289         * configure: Regenerated.
20290         * config.make.in (sysheaders): New substituted variable.
20291
20292         * sysdeps/unix/mkfifo.c: Moved ...
20293         * sysdeps/posix/mkfifo.c: ... here.
20294         * sysdeps/unix/mkfifoat.c: Moved ...
20295         * sysdeps/posix/mkfifoat.c: ... here.
20296
20297         * sysdeps/unix/utime.c: Moved ...
20298         * sysdeps/posix/utime.c: ... here.
20299
20300         * sysdeps/unix/time.c: Moved ...
20301         * sysdeps/posix/time.c: ... here.
20302         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
20303         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
20304
20305         * sysdeps/unix/nice.c: Moved ...
20306         * sysdeps/posix/nice.c: ... here.
20307
20308         * sysdeps/unix/alarm.c: Moved ...
20309         * sysdeps/posix/alarm.c: ... here.
20310
20311         * intl/Makefile ($(codeset_mo)): Depend on the input file.
20312
20313 2012-08-17  Jeff Law <law@redhat.com>
20314
20315         * intl/Makefile (codeset_mo): New variable.
20316         ($(codeset_mo)): New target.
20317         (tst-codeset.out): Depend on that.  Remove explicit rule.
20318         (tst-gettext3.out, tst-gettext5.out): Likewise.
20319         (LOCPATH-ENV, tst-codeset-ENV): New variables.
20320         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
20321         * intl/tst-codeset.sh: Remove.
20322         * intl/tst-gettext3.sh: Likewise.
20323         * intl/tst-gettext5.sh: Likewise.
20324
20325 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20326
20327         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
20328         * sysdeps/unix/syscalls.list: ... here.
20329
20330         * sysdeps/posix/getaddrinfo.c
20331         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
20332         (gaiconf_init, gaiconf_reload): Use them.
20333         [!_STATBUF_ST_NSEC]
20334         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
20335         Define using time_t rather than struct timespec.
20336
20337         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
20338         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
20339         Macros removed.
20340         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
20341         [!NO_THREADS].
20342         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
20343         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
20344         Likewise.
20345
20346         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
20347         __libc_cleanup_push argument.
20348
20349         * bits/param.h: New file.
20350         * misc/sys/param.h: New file.
20351         * include/sys/param.h: New file.
20352         * misc/Makefile (headers): Add bits/param.h.
20353         * sysdeps/generic/sys/param.h: File removed.
20354         * sysdeps/unix/sysv/linux/bits/param.h: New file.
20355         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
20356         * sysdeps/mach/hurd/bits/param.h: New file.
20357         * sysdeps/mach/hurd/sys/param.h: File removed.
20358
20359         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
20360         last change.
20361
20362         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
20363         [_IO_MTSAFE_IO].
20364         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
20365         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
20366         New macros.
20367
20368         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
20369         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
20370         rather than -D_IO_MTSAFE_IO conditionally.
20371         * stdio-common/Makefile (CPPFLAGS): Likewise.
20372         * wcsmbs/Makefile (CPPFLAGS): Likewise.
20373         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
20374         Use $(libio-mtsafe).
20375         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
20376         of -D_IO_MTSAFE_IO.
20377         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
20378         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
20379         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
20380         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
20381         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
20382         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
20383         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
20384         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
20385         (CFLAGS-fread_u_chk.c): Likewise.
20386         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
20387         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
20388         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
20389         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
20390         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
20391         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
20392         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
20393         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
20394         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
20395
20396         * libio/Makefile: Test [$(libc-reentrant) = yes]
20397         instead of [$(filter %REENTRANT, $(defines)) nonempty].
20398
20399         * Makeconfig
20400         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
20401         * sysdeps/pthread/configure: File removed.
20402         * sysdeps/pthread/Makeconfig: New file.
20403         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
20404         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
20405
20406 2012-08-16  Gary Benson  <gbenson@redhat.com>
20407
20408         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
20409         unmapping the first object in a namespace.
20410
20411 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20412
20413         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
20414         (__internal_setnetgrent): ... this.  Add internal_function to
20415         definition.  Add libc_hidden_def.
20416         (setnetgrent): Update caller.
20417         (internal_endnetgrent): Renamed to ...
20418         (__internal_endnetgrent): ... this.  Add internal_function to
20419         definition.  Add libc_hidden_def.
20420         (endnetgrent): Update caller.
20421         (internal_getnetgrent_r): Renamed to ...
20422         (__internal_getnetgrent_r): ... this.  Add internal_function to
20423         definition.  Add libc_hidden_def.
20424         (__getnetgrent_r): Update caller.
20425         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
20426
20427 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20428
20429         * stdlib/longlong.h: Update from GCC.
20430
20431 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20432
20433         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
20434         on _QL, which is set by umul_ppmm but never used.
20435         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
20436         variables, which are set by GMP macros but never used.
20437         * stdio-common/_itowa.c (_itowa): Likewise.
20438         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
20439         * stdlib/mod_1.c (mpn_mod_1): Likewise.
20440
20441 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
20442
20443         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
20444         struct La_sh_regs is not constant.
20445         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
20446         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
20447         and struct La_sparc64_regs are not constant.
20448
20449 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20450
20451         * sysdeps/unix/sysv/linux/kernel-features.h
20452         (__ASSUME_POSIX_TIMERS): Remove.
20453         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
20454         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20455         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
20456         Make code unconditional.
20457         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20458         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
20459         Make code unconditional.
20460         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20461         * sysdeps/unix/sysv/linux/clock_nanosleep.c
20462         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
20463         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20464         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
20465         Make code unconditional.
20466         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20467         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
20468         (__libc_missing_posix_timers): Remove.
20469
20470 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20471
20472         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
20473         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
20474
20475         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
20476
20477         * elf/dl-sym.c: Include <stdlib.h>.
20478
20479         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
20480         constants, which avoids warnings in 32-bit builds.
20481
20482         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
20483         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
20484
20485         * misc/lseek.c: File moved to ...
20486         * io/lseek.c: ... here.
20487
20488         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
20489
20490         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
20491         shifting LEN more than 31 bits at once.
20492
20493 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20494
20495         [BZ #14195]
20496         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
20497         segmentation fault for a case of two empty input strings.
20498         * string/test-strncasecmp.c (check1): Renamed to...
20499         (bz12205): ...this.
20500         (bz14195): Add new testcase for two empty input strings and N > 0.
20501         (test_main): Call new testcase, adapt for renamed function.
20502
20503 2012-08-15  Andreas Jaeger  <aj@suse.de>
20504
20505         [BZ #14090]
20506         * crypt/md5test2.c: New test, based on test supplied by Serge
20507         Belyshev <belyshev@depni.sinp.msu.ru>.
20508         * crypt/Makefile (xtests): Add md5test-giant..
20509         * crypt/Makefile ($(objpfx)md5test-giant): Add.
20510
20511 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20512
20513         [BZ #14090]
20514         * crypt/md5.c (md5_process_block): Don't assume the buffer
20515         length is less than 2**32.
20516         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
20517         length is less than 2**64.
20518
20519 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20520
20521         * string/str-two-way.h: Include <sys/param.h>.
20522         (MAX): Macro removed.
20523
20524         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
20525         Move #define and #undef of memmove to just before and after
20526         including <string.h>.
20527
20528         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
20529         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
20530         and after including <string.h>.  Move declarations of
20531         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
20532         to before #include "string/memmove.c".
20533
20534         * include/dirent.h: Declare __getdirentries.
20535
20536         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
20537         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
20538
20539 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
20540
20541         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
20542         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
20543         * sysdeps/i386/configure: Regenerated.
20544         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
20545         STABS_CURRENT_FILE, and STABS_FUN.
20546         (END): Remove call to STABS_FUN_END.
20547         (STABS_CURRENT_FILE1): Delete.
20548         (STABS_CURRENT_FILE): Likewise.
20549         (STABS_FUN): Likewise.
20550         (STABS_FUN_END): Likewise.
20551         (STABS_FUN2): Likewise.
20552         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
20553         * sysdeps/x86_64/configure: Regenerated.
20554
20555 2012-08-14  Roland McGrath  <roland@hack.frob.com>
20556
20557         * elf/dl-open.c: Include <atomic.h>.
20558         * elf/dl-lookup.c: Likewise.
20559
20560 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
20561
20562         * sysdeps/unix/sysv/linux/kernel-features.h
20563         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
20564         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
20565         unconditionally.
20566         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
20567         unconditionally.
20568         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
20569         condition on __ASSUME_CLONE_THREAD_FLAGS.
20570
20571 2012-08-14  Andreas Jaeger  <aj@suse.de>
20572
20573         * sysdeps/i386/fpu/libm-test-ulps: Update.
20574
20575 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
20576
20577         * include/atomic.h (atomic_exchange_and_add): Split into ...
20578         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
20579         New atomic macros.
20580
20581 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
20582
20583         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20584
20585 2012-08-13  Jeff Law <law@redhat.com>
20586
20587         * manual/stdio.texi (snprintf): Clarify handling of the trailing
20588         null byte in the output string.
20589
20590 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
20591
20592         * sysdeps/unix/sysv/linux/kernel-features.h
20593         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
20594         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
20595         (__ASSUME_ARG_MAX_STACK_BASED): Define.
20596         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
20597         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
20598         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
20599         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
20600
20601 2012-08-09  Jeff Law <law@redhat.com>
20602
20603         [BZ #13939]
20604         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
20605         When avoid_arena is set, don't retry in the that arena.  Pick the
20606         next one, whatever it might be.
20607         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
20608         (arena_lock): Pass in new parameter to arena_get2.
20609         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
20610         arena_get2.
20611         (__libc_malloc): Unify retrying after main arena failure with
20612         __libc_memalign version.
20613         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
20614
20615 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20616
20617         [BZ #14166]
20618         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
20619         to __redirect_strstr.
20620         (__strstr_sse42): Use typeof __redirect_strstr.
20621         (__strstr_ia32): Likewise.
20622         (__libc_strstr): New prototype.
20623         (strstr): Renamed to ...
20624         (__libc_strstr): This.
20625         (strstr): New strong alias of __libc_strstr.
20626         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
20627         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
20628         __redirect_time.
20629         Include <time.h>.
20630         (__libc_time): New prototype.
20631         (time_ifunc): Replace time with __libc_time.
20632         (time): New strong alias and hidden definition of __libc_time.
20633         (__GI_time): Remove strong alias.
20634         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
20635         Include <stddef.h>.
20636         (memmove): Redefined to __redirect_memmove.
20637         (__memmove_sse2): Use typeof __redirect_memmove.
20638         (__memmove_ssse3): Likewise.
20639         (__memmove_ssse3_back): Likewise.
20640         (__libc_memmove): New prototype.
20641         (memmove): Renamed to ...
20642         (__libc_memmove): This.
20643         (memmove): New strong alias of __libc_memmove.
20644
20645 2012-08-08  Mark Salter  <msalter@redhat.com>
20646
20647         * elf/elf.h
20648         (R_MN10300_TLS_GD): Define.
20649         (R_MN10300_TLS_LD): Likewise.
20650         (R_MN10300_TLS_LDO): Likewise.
20651         (R_MN10300_TLS_GOTIE): Likewise.
20652         (R_MN10300_TLS_IE): Likewise.
20653         (R_MN10300_TLS_LE): Likewise.
20654         (R_MN10300_TLS_DTPMOD): Likewise.
20655         (R_MN10300_TLS_DTPOFF): Likewise.
20656         (R_MN10300_TLS_TPOFF): Likewise.
20657         (R_MN10300_SYM_DIFF): Likewise.
20658         (R_MN10300_ALIGN): Likewise.
20659         (R_MN10300_NUM): Update.
20660
20661 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
20662
20663         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
20664         Remove.
20665
20666 2012-08-08  Roland McGrath  <roland@hack.frob.com>
20667
20668         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
20669
20670         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
20671         sysdeps/unix -> sysdeps/posix move.
20672         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
20673
20674 2012-08-07      Allan McRae     <allan@archlinux.org>
20675
20676         [BZ #14303]
20677         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
20678         (SUNOS_CPP): Likewise.
20679         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
20680         not found.
20681         (open_input): Call CPP using execvp.
20682
20683 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20684
20685         * sysdeps/unix/sysv/linux/kernel-features.h
20686         (__ASSUME_PROT_GROWSUPDOWN): Remove.
20687         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20688         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20689         (__ASSUME_WAITID_SYSCALL): Likewise.
20690         * sysdeps/unix/sysv/linux/dl-execstack.c
20691         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
20692         code unconditional.
20693         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
20694         conditional code.
20695         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
20696         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
20697         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
20698         code.
20699         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
20700         unconditional.
20701         [__ASSUME_WAITID_SYSCALL]: Likewise.
20702         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
20703
20704 2012-08-07  Roland McGrath  <roland@hack.frob.com>
20705
20706         * sysdeps/unix/closedir.c: Renamed to ...
20707         * sysdeps/posix/closedir.c: ... here.
20708         * sysdeps/unix/dirfd.c: Renamed to ...
20709         * sysdeps/posix/dirfd.c: ... here.
20710         * sysdeps/unix/dirstream.h: Renamed to ...
20711         * sysdeps/posix/dirstream.h: ... here.
20712         * sysdeps/unix/fdopendir.c: Renamed to ...
20713         * sysdeps/posix/fdopendir.c: ... here.
20714         * sysdeps/unix/opendir.c: Renamed to ...
20715         * sysdeps/posix/opendir.c: ... here.
20716         * sysdeps/unix/readdir.c: Renamed to ...
20717         * sysdeps/posix/readdir.c: ... here.
20718         * sysdeps/unix/readdir_r.c: Renamed to ...
20719         * sysdeps/posix/readdir_r.c: ... here.
20720         * sysdeps/unix/rewinddir.c: Renamed to ...
20721         * sysdeps/posix/rewinddir.c: ... here.
20722         * sysdeps/unix/seekdir.c: Renamed to ...
20723         * sysdeps/posix/seekdir.c: ... here.
20724         * sysdeps/unix/telldir.c: Renamed to ...
20725         * sysdeps/posix/telldir.c: ... here.
20726         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
20727         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
20728         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
20729         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
20730
20731         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
20732         * bits/fcntl.h: ... here.
20733
20734         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
20735         not 0.
20736         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
20737         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
20738         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
20739         (struct flock): Move l_start, l_len to the beginning.
20740         Use __pid_t for l_pid.
20741         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
20742         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
20743         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
20744         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
20745         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
20746         [__USE_LARGEFILE64] (struct flock64): New type.
20747         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
20748
20749         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
20750         * bits/dirent.h: ... here.
20751
20752         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
20753         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
20754
20755 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20756
20757         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20758         Change from 2.6.0 to 2.6.16.
20759         * sysdeps/unix/sysv/linux/configure: Regenerated.
20760         * sysdeps/unix/sysv/linux/kernel-features.h
20761         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
20762         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
20763         version.
20764         (__ASSUME_UTIMES): Likewise.
20765         (__ASSUME_CLONE_STOPPED): Remove.
20766         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
20767         architectures, not kernel version.
20768         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
20769         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20770         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20771         (__ASSUME_WAITID_SYSCALL): Likewise.
20772         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
20773         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
20774         * README: State 2.6.16 as minimum Linux kernel version.  Do not
20775         refer to older versions.
20776
20777 2012-08-06  Roland McGrath  <roland@hack.frob.com>
20778
20779         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
20780         Define alphasort64 as an alias.
20781         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
20782         Define versionsort64 as an alias.
20783         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
20784         Define scandir64 as an alias.
20785         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
20786         Define scandirat64 as an alias.
20787         * dirent/alphasort64.c (alphasort64):
20788         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
20789         * dirent/versionsort64.c: Likewise.
20790         * dirent/scandir64.c: Likewise.
20791         * dirent/scandirat64.c: Likewise.
20792         * sysdeps/wordsize-64/alphasort.c: File removed.
20793         * sysdeps/wordsize-64/alphasort64.c: File removed.
20794         * sysdeps/wordsize-64/scandir.c: File removed.
20795         * sysdeps/wordsize-64/scandir64.c: File removed.
20796         * sysdeps/wordsize-64/scandirat.c: File removed.
20797         * sysdeps/wordsize-64/scandirat64.c: File removed.
20798         * sysdeps/wordsize-64/versionsort.c: File removed.
20799         * sysdeps/wordsize-64/versionsort64.c: File removed.
20800         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
20801         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
20802         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
20803         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
20804         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
20805         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
20806         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
20807         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
20808
20809         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
20810         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20811         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
20812         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20813         [defined __arch64__ || defined __sparcv9]
20814         (__INO_T_MATCHES_INO64_T): New macro.
20815         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20816         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
20817         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
20818         * sysdeps/unix/sysv/linux/bits/dirent.h
20819         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
20820         (_DIRENT_MATCHES_DIRENT64): New macro.
20821
20822         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
20823         Define lockf64 as an alias.
20824         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
20825         Define fseeko64 as an alias.
20826         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
20827         Define ftello64 as an alias.
20828         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
20829         Define _IO_fgetpos64 and fgetpos64 as aliases.
20830         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
20831         Define _IO_fsetpos64 and fsetpos64 as aliases.
20832         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
20833         Conditionalize body on this.
20834         * libio/fseeko64.c: Likewise.
20835         * libio/ftello64.c: Likewise.
20836         * libio/iofgetpos64.c: Likewise.
20837         * libio/iofsetpos64.c: Likewise.
20838         * sysdeps/wordsize-64/lockf.c: File removed.
20839         * sysdeps/wordsize-64/lockf64.c: File removed.
20840         * sysdeps/wordsize-64/fseeko.c: File removed.
20841         * sysdeps/wordsize-64/fseeko64.c: File removed.
20842         * sysdeps/wordsize-64/ftello.c: File removed.
20843         * sysdeps/wordsize-64/ftello64.c: File removed.
20844         * sysdeps/wordsize-64/iofgetpos.c: File removed.
20845         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
20846         * sysdeps/wordsize-64/iofsetpos.c: File removed.
20847         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
20848         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
20849         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
20850         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
20851         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
20852         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
20853         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
20854         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
20855         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
20856         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
20857         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
20858
20859         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20860         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20861         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
20862         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20863         [defined __arch64__ || defined __sparcv9]
20864         (__OFF_T_MATCHES_OFF64_T): New macro.
20865         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20866         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20867         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20868         (__OFF_T_MATCHES_OFF64_T): New macro.
20869
20870 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20871
20872         * stdlib/secure-getenv.c (__secure_getenv): Replace
20873         GLIBC_2_16 with GLIBC_2_17.
20874
20875 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20876
20877         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
20878         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20879
20880 2012-08-03  David S. Miller  <davem@davemloft.net>
20881
20882         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20883
20884 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20885
20886         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
20887         Remove.
20888         (__ASSUME_CORRECT_SI_PID): Likewise.
20889         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
20890         (__ASSUME_TMPFS_NAME): Likewise.
20891         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
20892         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
20893         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
20894         (HAVE_AUX_SECURE): Make definition unconditional.
20895         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
20896         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
20897
20898 2012-08-03  Roland McGrath  <roland@hack.frob.com>
20899
20900         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
20901         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
20902         * sysdeps/mach/hurd/eloop-threshold.h: New file.
20903         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20904         __eloop_threshold instead of SYMLOOP_MAX.
20905
20906         * sysdeps/generic/eloop-threshold.h: New file.
20907         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
20908         of MAXSYMLINKS.
20909         * elf/chroot_canon.c (chroot_canon): Likewise.
20910
20911 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20912
20913         [BZ #13717]
20914         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20915         Change to 2.6.0 everywhere.
20916         * sysdeps/unix/sysv/linux/configure: Regenerated.
20917         * sysdeps/unix/sysv/linux/kernel-features.h
20918         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
20919         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
20920         kernel versions.
20921         (__ASSUME_POSIX_TIMERS): Define unconditionally.
20922         (__ASSUME_FUTEX_REQUEUE): Remove.
20923         (__ASSUME_STATFS64): Define unconditionally.
20924         (__ASSUME_AT_SECURE): Likewise.
20925         (__ASSUME_CORRECT_SI_PID): Likewise.
20926         (__ASSUME_TGKILL): Define without depending on kernel version for
20927         i386.
20928         (__ASSUME_UTIMES): Likewise.
20929         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
20930         kernel version.
20931         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
20932         (__ASSUME_TMPFS_NAME): Likewise.
20933         * README: Update reference to Linux kernel versions.
20934
20935 2012-08-02  Marek Polacek  <polacek@redhat.com>
20936
20937         [BZ# 14150]
20938         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
20939         libc_cv_asm_type_prefix with %.
20940         * configure: Regenerated.
20941         * include/libc-symbols.h: Remove comment about
20942         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20943         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
20944         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
20945         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
20946         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
20947         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20948         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
20949         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
20950         * elf/tst-unique2mod1.c: Likewise.
20951         * elf/tst-unique1mod2.c: Likewise.
20952         * elf/tst-unique1mod1.c: Likewise.
20953         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
20954         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
20955         Replace ASM_TYPE_DIRECTIVE with .type.
20956         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20957         * sysdeps/i386/sysdep.h: Likewise.
20958         * sysdeps/x86_64/sysdep.h: Likewise.
20959         * sysdeps/sh/sysdep.h: Likewise.
20960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20961         Do not define ASM_TYPE_DIRECTIVE.
20962         * sysdeps/powerpc/sysdep.h: Likewise.
20963         * sysdeps/powerpc/powerpc32/sysdep.h:
20964         Replace ASM_TYPE_DIRECTIVE with .type.
20965         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
20966         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
20967         * sysdeps/i386/fpu/e_powf.S: Likewise.
20968         * sysdeps/i386/fpu/e_expl.S: Likewise.
20969         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20970         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20971         * sysdeps/i386/fpu/e_pow.S: Likewise.
20972         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20973         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20974         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20975         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20976         * sysdeps/i386/fpu/e_log2.S: Likewise.
20977         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20978         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20979         * sysdeps/i386/fpu/e_powl.S: Likewise.
20980         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20981         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20982         * sysdeps/i386/fpu/e_logl.S: Likewise.
20983         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20984         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20985         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20986         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20987         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20988         * sysdeps/i386/fpu/e_log.S: Likewise.
20989         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20990         * sysdeps/i386/fpu/e_logf.S: Likewise.
20991         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20992         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20993         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20994         * sysdeps/i386/fpu/e_log10.S: Likewise.
20995         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20996         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20997         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20998         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20999         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21000         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
21001         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
21002         * sysdeps/i386/i686/strtok.S: Likewise.
21003         * sysdeps/i386/i386-mcount.S: Likewise.
21004         * sysdeps/i386/strtok.S: Likewise.
21005         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
21006         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21007         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21008         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21009         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
21010         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21011         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
21012         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
21013         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21014         * sysdeps/x86_64/_mcount.S: Likewise.
21015         * sysdeps/x86_64/strtok.S: Likewise.
21016         * sysdeps/sh/_mcount.S: Likewise.
21017
21018 2012-08-01  Roland McGrath  <roland@hack.frob.com>
21019
21020         * libio/iofopen.c: Include <fcntl.h>.
21021         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
21022         (_IO_fopen64, fopen64): Define as aliases.
21023         * libio/iofopen64.c: Include <fcntl.h>.
21024         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
21025         Conditionalize body on this.
21026         * sysdeps/wordsize-64/iofopen.c: File removed.
21027         * sysdeps/wordsize-64/iofopen64.c: File removed.
21028
21029 2012-08-01  Marek Polacek  <polacek@redhat.com>
21030
21031         * libc/Makeconfig: Use elf in place of binfmt-subdir.
21032         Use dlfcn directly instead of a variable.
21033         (binfmt-subdir): Do not define.
21034         (dlfcn): Likewise.
21035
21036 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
21037
21038         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
21039         Remove all definitions.
21040         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
21041         <kernel-features.h>.
21042         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
21043         (miss_F_GETOWN_EX): Remove all definitions.
21044         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
21045         macro definition.
21046         [!__ASSUME_FCNTL64]: Remove conditional code.
21047         [__ASSUME_FCNTL64]: Make code unconditional.
21048         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
21049         <kernel-features.h>.
21050         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
21051         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
21052         (lockf64) [__NR_fcntl64]: Make code unconditional.
21053         (lockf64) [__ASSUME_FCNTL64]: Likewise.
21054
21055         * sysdeps/unix/sysv/linux/kernel-features.h
21056         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
21057         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
21058         Make code unconditional.
21059         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21060         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
21062         [__NR_vfork]: Make code unconditional.
21063         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21064         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
21066         [__NR_vfork]: Make code unconditional.
21067         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21068         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21069
21070 2012-08-01  Roland McGrath  <roland@hack.frob.com>
21071
21072         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
21073         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
21074
21075         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21076         Define mkstemp64 as an alias.
21077         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21078         Define mkstemps64 as an alias.
21079         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21080         Define mkostemp64 as an alias.
21081         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21082         Define mkostemps64 as an alias.
21083         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
21084         Conditionalize body on this.
21085         * misc/mkostemp64.c: Likewise.
21086         * misc/mkostemps64.c: Likewise.
21087         * misc/mkstemps64.c: Likewise.
21088         * sysdeps/wordsize-64/mkstemp64.c: File removed.
21089         * sysdeps/wordsize-64/mkostemp64.c: File removed.
21090         * sysdeps/wordsize-64/mkostemp.c: File removed.
21091         * sysdeps/wordsize-64/mkstemp.c: File removed.
21092         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
21093         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
21094         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
21095         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
21096
21097         [BZ #14138]
21098         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
21099         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
21100         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
21101         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
21102
21103         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
21104         compat_symbol macros from <shlib-compat.h> rather than the underlying
21105         default_symbol_version and symbol_version macros, so that DEFAULT
21106         lines in shlib-versions are respected.
21107         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
21108
21109 2012-08-01  Florian Weimer  <fweimer@redhat.com>
21110
21111         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
21112         Declare with warn_unused_result.
21113         (setgid, setregid, setegid, setresgid): Likewise.
21114         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
21115         Likewise.
21116         * WUR-REPORT: Remove set*id functions.
21117
21118 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
21119
21120         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
21121
21122 2012-07-31  Roland McGrath  <roland@hack.frob.com>
21123
21124         [BZ #10191]
21125         * include/sys/socket.h (__libc_accept, __libc_accept4):
21126         Add attribute_hidden.
21127         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
21128
21129         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
21130         use of PTR_MANGLE.
21131         * inet/getnetgrent_r.c (setup): Likewise.
21132
21133         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
21134
21135 2012-07-31  David S. Miller  <davem@davemloft.net>
21136
21137         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21138
21139 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
21140
21141         [BZ #13629]
21142         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
21143         value between 1.0 and 2.0 and smaller part has absolute value less
21144         than 1.0.
21145         * math/s_clog10.c (__clog10): Likewise.
21146         * math/s_clog10f.c (__clog10f): Likewise.
21147         * math/s_clog10l.c (__clog10l): Likewise.
21148         * math/s_clogf.c (__clogf): Likewise.
21149         * math/s_clogl.c (__clogl): Likewise.
21150         * math/libm-test.inc (clog_test): Add more tests.
21151         (clog10_test): Likewise.
21152         * sysdeps/i386/fpu/libm-test-ulps: Update.
21153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21154
21155 2012-07-31  Florian Weimer  <fweimer@redhat.com>
21156
21157         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
21158         Exit with zero in case no suitable GID is found, and write a
21159         message to standard error.
21160
21161 2012-07-30  Roland McGrath  <roland@hack.frob.com>
21162
21163         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
21164         rather than to 1.
21165         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
21166         (MAXPATHLEN): Removed.
21167         (NOGROUP, NODEV): New macros.
21168         (setbit, clrbit, isset, isclr): New macros.
21169         (howmany, roundup, powerof2): New macros.
21170         (DEV_BSIZE): New macro.
21171
21172         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
21173         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
21174
21175         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
21176         definition on [!__NO_LONG_DOUBLE_MATH].
21177
21178         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
21179         PTR_MANGLE and PTR_DEMANGLE.
21180
21181         * socket/accept4.c (accept4): Rename to __libc_accept4.
21182         Define accept4 as a weak alias.
21183
21184         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
21185         on [_DIRENT_HAVE_D_TYPE].
21186         * io/ftw.c (ftw_dir): Likewise.
21187
21188         * io/xmknod.c (__xmknod): Don't check PATH for being null.
21189
21190         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
21191
21192         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
21193         Use the BSD numbers rather than the arbitrary ones we had.
21194         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
21195         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
21196         (SIGXCPU, SIGXFSZ): New macros.
21197         (_NSIG): Now 32.
21198
21199         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
21200         initializer on [_LIBC_REENTRANT].
21201
21202         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
21203         definitions inside [_POSIX_MAPPED_FILES].
21204
21205         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
21206
21207         * dirent/opendir.c: Include <fcntl.h>.
21208
21209         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
21210         (__libc_getspecific): Likewise.
21211         (__libc_key_create): Likewise.
21212
21213         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
21214         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
21215         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
21216         (tmpfile64): Define as alias.
21217         * sysdeps/wordsize-64/tmpfile.c: File removed.
21218         * sysdeps/wordsize-64/tmpfile64.c: File removed.
21219         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
21220         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
21221
21222         * stdio-common/vfscanf.c: Include <stdbool.h>.
21223         * nss/makedb.c: Likewise.
21224         * stdio-common/_i18n_number.h: Likewise.
21225         * argp/argp-help.c: Likewise.
21226         * posix/wordexp.c: Likewise.
21227         * sysdeps/posix/spawni.c: Likewise.
21228         * nss/nss_files/files-initgroups.c: Likewise.
21229         * stdio-common/reg-modifier.c: Include <stdlib.h>.
21230         * nss/nss_files/files-initgroups.c: Likewise.
21231         * nss/nss_db/db-netgrp.c: Likewise.
21232         * nss/nss_db/db-initgroups.c: Likewise.
21233         * io/fchmodat.c: Include <sys/stat.h>.
21234
21235         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
21236         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
21237
21238         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
21239         [HAVE_MMAP].
21240
21241         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
21242         Add multiple inclusion protection.
21243
21244 2012-07-27  David S. Miller  <davem@davemloft.net>
21245
21246         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21247
21248 2012-07-27  Gary Benson  <gbenson@redhat.com>
21249
21250         [BZ #14298]
21251         * elf/rtld.c: Include <stap-probe.h>.
21252         (dl_main): Added static probes "init_start" and "init_complete".
21253         * elf/dl-load.c: Include <stap-probe.h>.
21254         (lose): Take new parameter "nsid".
21255         Added static probe "map_failed".
21256         (_dl_map_object_from_fd): Pass namespace id to lose.
21257         Added static probe "map_start".
21258         (open_verify): Pass namespace id to lose.
21259         * elf/dl-open.c: Include <stap-probe.h>.
21260         (dl_open_worker) Added static probes "map_complete", "reloc_start"
21261         and "reloc_complete".
21262         * elf/dl-close.c: Include <stap-probe.h>.
21263         (_dl_close_worker): Added static probes "unmap_start" and
21264         "unmap_complete".
21265         * elf/rtld-debugger-interface.txt: New file documenting the above.
21266
21267 2012-07-26  Roland McGrath  <roland@hack.frob.com>
21268
21269         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
21270         rather than a string variable.
21271         * sunrpc/rpc_main.c (h_output): Likewise.
21272         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
21273
21274 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
21275
21276         * inet/check_native.c: New file.
21277
21278 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
21279
21280         [BZ #13629]
21281         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
21282         if larger part has absolute value 1.0.
21283         * math/s_clog10.c (__clog10): Likewise.
21284         * math/s_clog10f.c (__clog10f): Likewise.
21285         * math/s_clog10l.c (__clog10l): Likewise.
21286         * math/s_clogf.c (__clogf): Likewise.
21287         * math/s_clogl.c (__clogl): Likewise.
21288         * math/libm-test.inc (clog_test): Add more tests.
21289         (clog10_test): Likewise.
21290         * sysdeps/i386/fpu/libm-test-ulps: Update.
21291         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21292
21293         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
21294         (pltexit): Likewise.
21295         (La_regs): Likewise.
21296         (La_retval): Likewise.
21297         (int_retval): Likewise.
21298         Update #error for removed macros to refer only to definitions in
21299         tst-audit.h.
21300         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
21301         macro.
21302         (pltexit): Likewise.
21303         (La_regs): Likewise.
21304         (La_retval): Likewise.
21305         (int_retval): Likewise.
21306         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
21307         macro.
21308         (pltexit): Likewise.
21309         (La_regs): Likewise.
21310         (La_retval): Likewise.
21311         (int_retval): Likewise.
21312         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
21313         macro.
21314         (pltexit): Likewise.
21315         (La_regs): Likewise.
21316         (La_retval): Likewise.
21317         (int_retval): Likewise.
21318         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
21319         macro.
21320         (pltexit): Likewise.
21321         (La_regs): Likewise.
21322         (La_retval): Likewise.
21323         (int_retval): Likewise.
21324         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
21325         macro.
21326         (pltexit): Likewise.
21327         (La_regs): Likewise.
21328         (La_retval): Likewise.
21329         (int_retval): Likewise.
21330         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
21331         macro.
21332         (pltexit): Likewise.
21333         (La_regs): Likewise.
21334         (La_retval): Likewise.
21335         (int_retval): Likewise.
21336         * sysdeps/generic/tst-audit.h: Update comment to refer only to
21337         macro definitions in tst-audit.h.
21338         * sysdeps/i386/tst-audit.h: New file.
21339         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
21340         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
21341         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
21342         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
21343         * sysdeps/sh/tst-audit.h: Likewise.
21344         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
21345         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
21346         * sysdeps/x86_64/tst-audit.h: Likewise.
21347
21348 2012-07-26  Andreas Jaeger  <aj@suse.de>
21349
21350         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
21351         ptrace.
21352
21353         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
21354         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
21355         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
21356         PTRACE_O_MASK.
21357         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
21358         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
21359         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
21360
21361         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
21362         value.
21363
21364         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
21365         _sigsys.
21366         (si_call_addr, si_syscall, si_arch): Define new macro.
21367         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
21368         _sigsys.
21369         (si_call_addr, si_syscall, si_arch): Define new marcro.
21370         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
21371         _sigsys.
21372         (si_call_addr, si_syscall, si_arch): Define new macro.
21373         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
21374         _sigsys.
21375         (si_call_addr, si_syscall, si_arch): Define new macro.
21376
21377 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21378
21379         [BZ #13717]
21380         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21381         Change to 2.4.21 where previously 2.4.1.
21382         * sysdeps/unix/sysv/linux/configure: Regenerated.
21383         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
21384         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
21385         Linux kernel version.
21386         (__ASSUME_STD_AUXV): Remove.
21387         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
21388         kernel version.
21389         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
21390         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
21391         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
21392         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
21393         (__ASSUME_NETLINK_SUPPORT): Likewise.
21394         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
21395         (__no_netlink_support): Remove conditional definition.
21396         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
21397         Remove.
21398         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21399         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
21400         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
21401         (if_nameindex_ioctl): Remove.
21402         (if_nameindex_netlink): Do not handle __no_netlink_support.
21403         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21404         code.
21405         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
21406         Remove conditional code.
21407         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21408         code.
21409         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
21410         unconditional.
21411         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21412         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
21413         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
21414         Remove.
21415         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
21416         [!__ASSUME_STD_AUXV]: Remove conditional code.
21417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
21418         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
21419         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
21420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
21421         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
21422         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21423         code.
21424         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
21426         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
21427         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21428         conditional code.
21429         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
21431         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21432         code.
21433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
21434         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21435         conditional code.
21436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
21437         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21438         code unconditional.
21439         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21440         conditional code.
21441         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21442         unconditional.
21443         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21444         conditional code.
21445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21446         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21447         unconditional.
21448         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21449         conditional code.
21450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
21451         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21452         code unconditional.
21453         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21454         conditional code.
21455         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21456         unconditional.
21457         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21458         conditional code.
21459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
21460         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21461         code unconditional.
21462         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21463         conditional code.
21464         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21465         unconditional.
21466         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21467         conditional code.
21468
21469 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
21470
21471         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
21472         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
21473         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
21474         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
21475         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
21476         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
21477         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
21478         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
21479         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
21480         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
21481         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
21482         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
21483         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
21484         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
21485         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
21486         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
21487         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
21488         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
21489         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
21490         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
21491         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
21492         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
21493         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
21494
21495 2012-07-25  Florian Weimer  <fweimer@redhat.com>
21496
21497         * Versions.def: Add GLIBC_2.17.
21498         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
21499         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
21500         Introduce __libc_secure_getenv.
21501         * stdlib/Versions (2.17): Add secure_getenv
21502         (GLIBC_PRIVATE): Add __libc_secure_getenv.
21503         * stdlib/secure-getenv.c: Rename __secure_getenv to
21504         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
21505         symbol __secure_getenv for GLIBC_2.0.
21506         * stdlib/tst-secure-getenv.c: New.
21507         * stdlib/Makefile (tests): Add testcase.
21508         * manual/startup.texi (Environment Access): Document
21509         secure_getenv.
21510         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
21511         __libc_secure_getenv.
21512         * inet/ruserpass.c (ruserpass): Likewise.
21513         * malloc/mtrace.c (mtrace): Likewise.
21514         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
21515         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
21516         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
21517         * sysdeps/posix/tempname.c: Likewise.  Evaluate
21518         HAVE_SECURE_GETENV.
21519         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
21520         __secure_getenv to __libc_secure_getenv.
21521         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
21522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21523         Likewise.
21524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21525         Likewise.
21526         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
21527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
21528         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21529         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
21530         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
21531         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21532         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
21533
21534 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21535
21536         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
21537         (struct La_i86_retval): Likewise.
21538         (struct La_x86_64_regs): Likewise.
21539         (struct La_x86_64_retval): Likewise.
21540         (struct La_x32_regs): Likewise.
21541         (struct La_x32_retval): Likewise.
21542         (struct La_ppc32_regs): Likewise.
21543         (struct La_ppc32_retval): Likewise.
21544         (struct La_ppc64_regs): Likewise.
21545         (struct La_ppc64_retval): Likewise.
21546         (struct La_sh_regs): Likewise.
21547         (struct La_sh_retval): Likewise.
21548         (struct La_s390_32_regs): Likewise.
21549         (struct La_s390_32_retval): Likewise.
21550         (struct La_s390_64_regs): Likewise.
21551         (struct La_s390_64_retval): Likewise.
21552         (struct La_sparc32_regs): Likewise.
21553         (struct La_sparc32_retval): Likewise.
21554         (struct La_sparc64_regs): Likewise.
21555         (struct La_sparc64_retval): Likewise.
21556         (struct audit_ifaces): Remove architecture-specific pltenter and
21557         pltexit members.
21558         * sysdeps/i386/ldsodefs.h: New file.
21559         * sysdeps/powerpc/ldsodefs.h: Likewise.
21560         * sysdeps/s390/ldsodefs.h: Likewise.
21561         * sysdeps/sh/ldsodefs.h: Likewise.
21562         * sysdeps/sparc/ldsodefs.h: Likewise.
21563         * sysdeps/x86_64/ldsodefs.h: Likewise.
21564
21565 2012-07-25  Marek Polacek  <polacek@redhat.com>
21566
21567         [BZ #6808]
21568         * math/libm-test.inc (yn_test): Add another test.
21569         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
21570         to ERANGE when the result is +-Inf.
21571         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
21572         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
21573         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
21574         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
21575
21576 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
21577
21578         * conform/data/time.h-data (NULL): Use macro-constant.  Require
21579         equal to 0.
21580         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
21581         clock_t.
21582         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
21583
21584 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
21585
21586         * configure.in <sysdeps resolving>: Correct printing
21587         Implies_before.
21588         * configure: Regenerate.
21589
21590 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
21591
21592         * math/w_ilogb.c: Include <limits.h>.
21593         * math/w_ilogbl.c: Likewise.
21594
21595 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21596
21597         * manual/lang.texi (__va_copy): Document primarily as ISO C99
21598         va_copy.  Document allowing for unavailable va_copy only as
21599         pre-C99 compatibility.
21600         * manual/string.texi (Copying and Concatenation): Use va_copy
21601         instead of __va_copy in concat example.
21602
21603 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
21604
21605         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
21606         (__sendto): Use create_address_port.  Initialize APORT and deallocate
21607         it if not null.
21608
21609         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
21610         with O_NOLINK passed to __file_name_lookup.
21611
21612         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
21613         with O_NOLINK passed to __file_name_lookup.
21614
21615         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
21616         negative N or less than NGIDS.
21617
21618         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
21619         type to string_t.  Set ERANGE as errno and return it if NAME is not big
21620         enough.  Use memcpy instead of strncpy.
21621
21622 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21623
21624         * elf/Makefile (check-data): Remove.
21625         (localplt.data): New vpath directive.
21626         ($(objpfx)check-localplt.out): Use localplt.data from vpath
21627         instead of $(check-data).
21628         * scripts/data/localplt-generic.data: Move to ...
21629         * sysdeps/generic/localplt.data: ... here.
21630         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
21631         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
21632         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
21633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
21634         ... here.
21635         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
21636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
21637         ... here.
21638         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
21639         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
21640         ... here.
21641         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
21642         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
21643         ... here.
21644         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
21645         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
21646         ... here.
21647         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
21648         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
21649         ... here.
21650
21651 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21652
21653         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
21654         PPC32 and PPC64 files.
21655         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
21656         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
21657
21658 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21659
21660         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
21661         __makecontext_ret to ...
21662         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21663         ... here and call exit if uc_link is NULL.  New file.
21664         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
21665         __makecontext_ret.S.
21666         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
21667         __makecontext_ret to ...
21668         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21669         ... here and call exit if uc_link is NULL.  New file.
21670         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
21671         __makecontext_ret.S.
21672
21673 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21674
21675         * elf/elf.h (R_390_IRELATIVE): New definition.
21676         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
21677         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
21678         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
21679         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
21680         (elf_machine_lazy_rel): Likewise.
21681         * sysdeps/s390/dl-irel.h: New file.
21682         * sysdeps/s390/s390-64/memcpy.S: New asm code.
21683         * sysdeps/s390/s390-64/memset.S: New asm code.
21684         * sysdeps/s390/s390-64/memcmp.S: New asm code.
21685         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
21686         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
21687         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
21688         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
21689         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
21690         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
21691         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
21692         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
21693         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
21694         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
21695         * sysdeps/s390/s390-32/memcpy.S: New asm code.
21696         * sysdeps/s390/s390-32/memset.S: New asm code.
21697         * sysdeps/s390/s390-32/memcmp.S: New asm code.
21698
21699 2012-07-17  Marek Polacek  <polacek@redhat.com>
21700
21701         [BZ #14349]
21702         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
21703         * sysdeps/s390/s390-64/configure.in: Likewise.
21704         * sysdeps/sparc/configure.in: Likewise.
21705         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
21706         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
21707         * sysdeps/i386/configure.in: Likewise.
21708         * sysdeps/x86_64/configure.in: Likewise.
21709         * sysdeps/sh/configure.in: Likewise.
21710         * sysdeps/s390/s390-32/configure: Regenerated.
21711         * sysdeps/s390/s390-64/configure: Likewise.
21712         * sysdeps/x86_64/configure: Likewise.
21713         * sysdeps/sh/configure: Likewise.
21714         * sysdeps/powerpc/powerpc64/configure: Likewise.
21715         * sysdeps/powerpc/powerpc32/configure: Likewise.
21716         * sysdeps/sparc/configure: Likwise.
21717         * sysdeps/i386/configure: Likewise.
21718
21719         * elf/dl-open.c: Comment fixes.
21720
21721 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
21722
21723         * Makefile [CXX] (check-data): Remove.
21724         [CXX] (c++-types.data): New vpath directive.
21725         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
21726         vpath.  Do not allow for C++ type data being missing.
21727         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
21728         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
21729         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
21730         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
21731         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
21732         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
21733         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
21734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
21735         ... here.
21736         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
21737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
21738         ... here.
21739         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
21740         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
21741         ... here.
21742         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
21743         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
21744         ... here.
21745         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
21746         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
21747         ... here.
21748         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
21749         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
21750         ... here.
21751         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
21752         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
21753         ... here.
21754         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
21755         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
21756
21757         * elf/tls-macros.h (TLS_LE): Move architecture-specific
21758         definitions to architecture-specific files.
21759         (TLS_IE): Likewise.
21760         (TLS_LD): Likewise.
21761         (TLS_GD): Likewise.
21762         * sysdeps/i386/tls-macros.h: New file.
21763         * sysdeps/powerpc/tls-macros.h: Likewise.
21764         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
21765         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
21766         * sysdeps/sh/tls-macros.h: Likewise.
21767         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
21768         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
21769         * sysdeps/x86_64/tls-macros.h: Likewise.
21770
21771 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21772
21773         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
21774         zero value for regular exit case.
21775
21776         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21777         (__start_context): Preserve zero value for regular exit case.
21778
21779 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21780             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21781
21782         * manual/setjmp.texi (setcontext): Clarify normal process
21783         termination when uc_link is the null pointer.
21784         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
21785         exit call.
21786
21787 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
21788
21789         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
21790         preprocessor.  Test for each exception mask separately.
21791
21792 2012-07-16  Andreas Jaeger  <aj@suse.de>
21793
21794         * po/ru.po: Update from translation team.
21795
21796 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
21797
21798         * conform/data/string.h-data (NULL): Use macro-constant.  Require
21799         equal to 0.
21800         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
21801         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
21802         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
21803         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
21804         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21805
21806 2012-07-13  Andreas Jaeger  <aj@suse.de>
21807
21808         * po/fr.po: Update from translation team.
21809
21810 2012-07-12  Marek Polacek  <polacek@redhat.com>
21811
21812         [BZ #14173]
21813         * math/libm-test.inc (yn_test): Add test for BZ #14173.
21814         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
21815         loop condition.
21816
21817 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
21818
21819         [BZ #13717]
21820         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21821         Change to 2.4.1 where previously 2.4.0.
21822         * sysdeps/unix/sysv/linux/configure: Regenerated.
21823         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
21824         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
21825         version.
21826         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
21827         (__ASSUME_AT_CLKTCK): Remove.
21828         (__ASSUME_AT_PAGESIZE): Likewise.
21829         (__ASSUME_AT_XID): Likewise.
21830         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
21831         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
21832         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
21833         unconditionally.
21834         (HAVE_AUX_PAGESIZE): Likewise.
21835         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
21836         [__ASSUME_AT_CLKTCK]: Make code unconditional.
21837         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
21838
21839 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
21840
21841         [BZ #14307]
21842         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
21843         the temporary buffer used to invoke __gethostbyname2_r,
21844         __gethostbyaddr_r and gethostbyname4_r to make room for struct
21845         host_data / struct gaih_addrtuple.
21846         * resolv/nss_dns/dns-host.c (global scope): Move definition of
21847         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
21848         header file nss/nsswitch.h.
21849         * nss/nsswitch.h (global scope): Add definition of implementation
21850         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
21851         resolv/nss_dns/dns-host.c).
21852
21853 2012-07-11  Andreas Jaeger  <aj@suse.de>
21854
21855         * po/fr.po: Update from translation team.
21856
21857         * po/sv.po: Update from translation team
21858         * po/fr.po: Another update from translation team.
21859
21860 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21861
21862         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
21863         for subnormals or multiply small sinh result by itself.
21864         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
21865         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21866
21867 2012-07-11  David S. Miller  <davem@davemloft.net>
21868
21869         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21870
21871 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
21872
21873         [BZ #14347]
21874         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
21875         (INTERNAL_MARK): Shift it here.
21876
21877 2012-07-10  Marek Polacek  <polacek@redhat.com>
21878
21879         [BZ #14151]
21880         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
21881         libc_cv_asm_global_directive with .globl.
21882         * configure: Regenerated.
21883         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
21884         with .globl.
21885         * sysdeps/i386/configure: Regenerated.
21886         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
21887         with .globl.
21888         * sysdeps/x86_64/configure: Regenerated.
21889         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
21890         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
21891         * elf/tst-unique2mod2.c: Likewise.
21892         * elf/tst-unique2mod1.c: Likewise.
21893         * elf/tst-unique1mod2.c: Likewise.
21894         * elf/tst-unique1mod1.c: Likewise.
21895         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21896         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21897         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21898         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21899         * sysdeps/mach/sysdep.h: Likewise.
21900         * sysdeps/i386/sysdep.h: Likewise.
21901         * sysdeps/i386/i386-mcount.S: Likewise.
21902         * sysdeps/x86_64/_mcount.S: Likewise.
21903         * sysdeps/x86_64/sysdep.h: Likewise.
21904         * sysdeps/sh/_mcount.S: Likewise.
21905         * sysdeps/sh/sysdep.h: Likewise.
21906         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
21907         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
21908         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
21909         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21910         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
21911         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
21912         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
21913         * locale/localeinfo.h: Likewise.
21914         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
21915         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
21916
21917 2012-07-09  Roland McGrath  <roland@hack.frob.com>
21918
21919         [BZ #14336]
21920         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
21921         system".
21922         * manual/message.texi (The Uniforum approach): Likewise.
21923         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
21924         (glibc iconv Implementation): Likewise.
21925
21926 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
21927
21928         [BZ #14337]
21929         * math/s_clog.c (__clog): Avoid scaling a value down where that
21930         could result in underflow.
21931         * math/s_clog10.c (__clog10): Likewise.
21932         * math/s_clog10f.c (__clog10f): Likewise.
21933         * math/s_clog10l.c (__clog10l): Likewise.
21934         * math/s_clogf.c (__clogf): Likewise.
21935         * math/s_clogl.c (__clogl): Likewise.
21936         * math/libm-test.inc (clog_test): Add more tests.
21937         (clog10_test): Likewise.
21938         * sysdeps/i386/fpu/libm-test-ulps: Update.
21939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21940
21941 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
21942
21943         [BZ #14283]
21944         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
21945         by 7 not 8 to examine high bit of fractional part.
21946
21947         [BZ #14042]
21948         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
21949         for call to __mcount_internal.
21950         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
21951         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
21952         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
21953
21954 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
21955
21956         [BZ #14154]
21957         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
21958         approximation for values within 0x1p-13f of an odd multiple of
21959         pi/4.
21960         * math/libm-test.inc (tan_test): Do not allow spurious underflow
21961         exception.  Add more tests.
21962         * sysdeps/i386/fpu/libm-test-ulps: Update.
21963
21964         [BZ #6778]
21965         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
21966         inputs and return -1 for them.  Do not check for +Inf in case not
21967         reachable for +Inf.
21968         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
21969         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
21970         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21971         and return -1 for them.  Do not check for +Inf in case not
21972         reachable for +Inf.
21973         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
21974         define.
21975         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21976         and return -1 for them.  Do not check for +Inf in case not
21977         reachable for +Inf.
21978         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
21979         spurious underflow.
21980         * sysdeps/i386/fpu/libm-test-ulps: Update.
21981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21982
21983 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
21984
21985         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
21986
21987 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
21988
21989         [BZ #14157]
21990         [BZ #14331]
21991         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
21992         could result in spurious underflow.  Scale down values above
21993         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
21994         * math/s_csqrtf.c (__csqrtf): Likewise.
21995         * math/s_csqrtl.c (__csqrtl): Likewise.
21996         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
21997         spurious underflow.
21998         * sysdeps/i386/fpu/libm-test-ulps: Update.
21999         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22000
22001 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
22002
22003         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
22004         xopen-msg.sed.
22005         * catgets/xopen-msg.awk: New file.
22006         * catgets/xopen-msg.sed: Removed.
22007
22008         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
22009         po2text.sed.
22010         * intl/po2test.awk: New file.
22011         * intl/po2test.sed: Removed.
22012
22013 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
22014
22015         [BZ #14328]
22016         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
22017         or multiply small sinh result by itself.
22018         * math/s_ctanf.c (__ctanf): Likewise.
22019         * math/s_ctanh.c (__ctanh): Likewise.
22020         * math/s_ctanhf.c (__ctanhf): Likewise.
22021         * math/s_ctanhl.c (__ctanhl): Likewise.
22022         * math/s_ctanl.c (__ctanl): Likewise.
22023         * math/libm-test.inc (ctan_test_tonearest): New function.
22024         (ctan_test_towardzero): Likewise.
22025         (ctan_test_downward): Likewise.
22026         (ctan_test_upward): Likewise.
22027         (ctanh_test_tonearest): Likewise.
22028         (ctanh_test_towardzero): Likewise.
22029         (ctanh_test_downward): Likewise.
22030         (ctanh_test_upward): Likewise.
22031         (main): Call these new functions.
22032         * sysdeps/i386/fpu/libm-test-ulps: Update.
22033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22034
22035 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
22036
22037         * .gitignore: Delete /ports entry.
22038
22039 2012-07-03  Andreas Jaeger  <aj@suse.de>
22040
22041         * po/bg.po: Update from translation team.
22042         * po/cs.po: Likewise.
22043         * po/de.po: Likewise.
22044         * po/hr.po: Likewise.
22045         * po/nl.pl: Likewise.
22046         * po/pl.po: Likewise.
22047         * po/vi.po: Likewise.
22048
22049 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
22050
22051         * Makeconfig [!+link] (+link-before-libc): New variable.
22052         [!+link] (+link-after-libc): Likewise.
22053         [!+link] (+link-tests): Likewise.
22054         [!+link] (+link): Define in terms of $(+link-before-libc) and
22055         $(+link-after-libc).
22056         [!+link-static] (+link-static-before-libc): New variable.
22057         [!+link-static] (+link-static-after-libc): Likewise.
22058         [!+link-static] (+link-static-tests): Likewise.
22059         [!+link-static] (+link-static): Define in terms of
22060         $(+link-static-before-libc) and $(+link-static-after-libc).
22061         [build-shared] (link-libc-before-gnulib): New variable.
22062         [build-shared] (link-libc-tests): Likewise.
22063         [build-shared] (link-libc): Define in terms of
22064         $(link-libc-before-gnulib).
22065         [!build-shared] (link-libc-tests): New variable.
22066         (link-libc-static-tests): New variable.
22067         [!gnulib] (gnulib-arch): New variable.
22068         [!gnulib] (gnulib-tests): Likewise.
22069         [!gnulib] (static-gnulib-arch): Likewise.
22070         [!gnulib] (static-gnulib-tests): Likewise.
22071         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
22072         Define with "=" instead of ":=".
22073         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
22074         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
22075         * Rules (binaries-all-notests): New variable.
22076         (binaries-all-tests): Likewise.
22077         (binaries-static-notests): Likewise.
22078         (binaries-static-tests): Likewise.
22079         (binaries-all): Define using $(binaries-all-notests) and
22080         $(binaries-all-tests).
22081         (binaries-static): Define using $(binaries-static-notests) and
22082         $(binaries-static-tests).
22083         (binaries-shared-tests): New variable.
22084         (binaries-shared-notests): Likewise.
22085         (binaries-shared): Remove variable.
22086         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
22087         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
22088         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
22089         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
22090         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
22091         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
22092         * elf/Makefile (sln-modules): New variable.
22093         (extra-objs): Add $(sln-modules:=.o).
22094         (ldconfig-modules): Add static-stubs.
22095         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
22096         * elf/static-stubs.c: New file.
22097
22098         [BZ #14283]
22099         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
22100         by 7 not 8 to examine high bit of fractional part.  Use volatile
22101         variables when splitting into final array of floats if
22102         __FLT_EVAL_METHOD__ != 0.
22103         * math/libm-test.inc (cos_test): Add another test.
22104         (sin_test): Likewise.
22105         * sysdeps/i386/fpu/libm-test-ulps: Update.
22106
22107         [BZ #14273]
22108         * math/libm-test.inc (cosh_test): Add more tests.
22109
22110         * version.h (RELEASE): Set to "development".
22111         (VERSION): Set to "2.16.90".
22112
22113 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
22114
22115         * NEWS: Update copyright. Remove last-updated date.
22116         Mention math library bug fixes and timezone data changes.
22117         * README: Mention GNU/Hurd, x32, and HPPA support status.
22118
22119 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
22120
22121         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
22122
22123 2012-06-27  Andreas Jaeger  <aj@suse.de>
22124
22125         * manual/contrib.texi (Contributors): Add Samuel Thibault.
22126
22127 2012-06-25  Andreas Jaeger  <aj@suse.de>
22128
22129         * sysdeps/s390/fpu/libm-test-ulps: Update.
22130
22131 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
22132             Thomas Schwinge  <thomas@codesourcery.com>
22133
22134         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
22135         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
22136         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
22137         fanotify_mark.
22138
22139 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
22140
22141         * sysdeps/mach/start.c: Remove file.
22142         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
22143         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
22144         * sysdeps/sh/init-first.c: Likewise.
22145
22146         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
22147         registers for frame unwinding purposes, add CFI directives.
22148         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22149         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
22150         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
22151         Likewise.
22152
22153         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
22154         __fortify_fail returning.
22155         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22156
22157         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
22158         sysdeps/sh/____longjmp_chk.S.
22159         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
22160         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
22161         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
22162         (gen-as-const-headers): Append sigaltstack-offsets.sym.
22163
22164         * sysdeps/sh/abort-instr.h: New file.
22165         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
22166         process in case exit returns.
22167
22168         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
22169         initialize the GOT register before use.
22170
22171         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
22172         calculation of ARGC > 4.
22173
22174         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
22175         meaningful names to some local labels.
22176
22177 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22178             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22179
22180         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
22181         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
22182         (__arch_compare_and_exchange_val_16_acq): Likewise.
22183         (__arch_compare_and_exchange_val_32_acq): Likewise.
22184         (atomic_exchange_and_add): Fix gUSA sequence.
22185         (atomic_add): Likewise.
22186         (atomic_add_negative): Likewise.
22187         (atomic_add_zero): Likewise.
22188         (atomic_bit_test_set): Likewise.
22189
22190 2012-06-22  Andreas Schwab  <schwab@redhat.com>
22191
22192         [BZ #13579]
22193         * include/link.h (struct link_map): Add l_free_initfini.
22194         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
22195         l_initfini.
22196         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
22197         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
22198         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
22199         set.
22200
22201 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
22202
22203         * configure.in: Use AC_LANG_SOURCE.
22204         * configure: Regenerate.
22205
22206 2012-06-22  Roland McGrath  <roland@hack.frob.com>
22207
22208         * configure.in (libc_cv_localstatedir): New substituted variable.
22209         * configure: Regenerated.
22210         * config.make.in (localstatedir): New variable, substituted from
22211         libc_cv_localstatedir.
22212         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
22213         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
22214         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
22215         * sysdeps/gnu/configure: Regenerated.
22216
22217 2012-06-21  Jeff Law  <law@redhat.com>
22218
22219         [BZ #14277]
22220         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
22221         free.  Simplify list management for _LIBC case.
22222
22223 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
22224
22225         [BZ #14273]
22226         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22227         Clear sign bit of 64-bit integer value before comparing against
22228         overflow value.
22229
22230         * sysdeps/mach/configure: Regenerated.
22231
22232 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
22233
22234         [BZ #14278]
22235         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
22236
22237 2012-06-21  Jeff Law  <law@redhat.com>
22238
22239         [BZ #13882]
22240         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
22241         uint16_t for elements in the "seen" array to avoid char overflows.
22242         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22243         * elf/dl-open.c (dl_open_worker): Likewise.
22244
22245 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
22246
22247         * scripts/list-sources.sh: Scan PORTS for translations.
22248         * po/libc.pot: Regenerated.
22249
22250 2012-06-21  Andreas Jaeger  <aj@suse.de>
22251
22252         [BZ #12194]
22253         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
22254         warning.
22255         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
22256         * bits/byteswap-16.h (__bswap_16): Likewise.
22257         * bits/byteswap.h (__bswap_constant_16): Likewise.
22258
22259 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22260
22261         [BZ #14117]
22262         * sysdeps/i386/fpu_control.h: Removed.
22263         * sysdeps/x86_64/fpu_control.h: Moved to ...
22264         * sysdeps/x86/fpu_control.h: Here.
22265
22266         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
22267         (_FPU_SETCW): Likewise.
22268
22269 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
22270
22271         [BZ #14117]
22272         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
22273         * sysdeps/x86/fpu/bits/mathinline.h: This.
22274         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
22275
22276         [BZ #14050]
22277         [BZ #14117]
22278         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
22279         functions if __x86_64__ is defined.
22280
22281 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
22282
22283         * string/endian.h: Add !__ASSEMBLER__ condition for including
22284         conversion interfaces.
22285
22286 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
22287
22288         [BZ #14241]
22289         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
22290         of ABS(x) in calculating zero to negative powers other than odd
22291         integers.
22292         * math/libm-test.inc (pow_test): Add more tests.
22293
22294 2012-06-15  Andreas Jaeger  <aj@suse.de>
22295
22296         * manual/contrib.texi (Contributors): Update entry of Liubov
22297         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
22298         Machado Filho.
22299
22300 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
22301
22302         * string/string.h: Add __wur to GNU version of strerror_r.
22303
22304 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
22305
22306         [BZ #14229]
22307         * string/Makefile (tests): Add tst-strtok_r.
22308         * string/tst-strtok_r.c: New file.
22309         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
22310         RAX_LP/RDX_LP on SAVE_PTR.
22311
22312 2012-06-14  Roland McGrath  <roland@hack.frob.com>
22313
22314         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
22315
22316 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
22317
22318         * libm_test.inc (csqrt_test): Allow more spurious underflow
22319         exceptions.
22320         (j0_test): Likewise.
22321         (j1_test): Likewise.
22322         (y0_test): Likewise.
22323         (y1_test): Likewise.
22324
22325 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
22326
22327         * po/Makefile (libc.pot): Use UTF-8 charset.
22328
22329 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
22330
22331         [BZ #14210]
22332         Suppress sign-conversion warning from FD_SET.
22333         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
22334         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
22335         not unsigned long int.
22336         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
22337
22338 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
22339
22340         [BZ #14050]
22341         [BZ #14117]
22342         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
22343         __extern_always_inline instead of __extern_inline.
22344         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
22345         (__signbit): Likewise.
22346         (__signbitl): Support C++ namespace.
22347         (lrintf): New inline function.
22348         (lrint): Likewise.
22349         (llrintf): Likewise.
22350         (llrint): Likewise.
22351         (fmaxf): Likewise.
22352         (fmax): Likewise.
22353         (fminf): Likewise.
22354         (fmin): Likewise.
22355         (rint): Likewise.
22356         (rintf): Likewise.
22357         (ceil): Likewise.
22358         (ceilf): Likewise.
22359         (floor): Likewise.
22360         (floorf): Likewise.
22361         (nearbyint): Likewise.
22362         (nearbyintf): Likewise.
22363
22364 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
22365
22366         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
22367         non-default versions.
22368
22369 2012-06-11  Roland McGrath  <roland@hack.frob.com>
22370
22371         [BZ #14218]
22372         * manual/argp.texi (Argp): Reword argp_parse description slightly.
22373
22374 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
22375
22376         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
22377         (FE_UPWARD, FE_DOWNWARD): Don't define.
22378         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
22379         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22380
22381         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
22382         reading it.
22383         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22384         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22385
22386 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22387
22388         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22389         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
22390         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
22391         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
22392
22393 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
22394
22395         [BZ #14117]
22396         * sysdeps/i386/fpu/bits/fenv.h: Removed.
22397         * sysdeps/i386/fpu/Implies: New file.
22398         * sysdeps/x86_64/fpu/Implies: Likewise.
22399         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
22400         * sysdeps/x86/fpu/bits/fenv.h: This.
22401
22402         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
22403         __SSE_MATH__.
22404
22405 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
22406
22407         [BZ #14134]
22408         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
22409         character 0xffff that matches the last element of the
22410         conversion table.
22411
22412 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22413
22414         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
22415         fmodl commit.
22416
22417 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22418
22419         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
22420         values higher than 25.6283.
22421
22422 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22423
22424         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
22425         subnormal exponent extraction and add some __builtin_expect.
22426         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
22427         Fix for subnormal mantissa calculation.
22428
22429 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
22430
22431         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
22432         cpu2 is -1 and errno is not ENOSYS.
22433
22434 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22435
22436         [BZ #14117]
22437         * sysdeps/i386/i486/bits/string.h: Renamed to ...
22438         * sysdeps/x86/bits/string.h: This.
22439         * sysdeps/x86_64/bits/string.h: Removed.
22440
22441         * sysdeps/i386/i486/bits/string.h: Define inline functions only
22442         if not compiling for x86-64, but compiling for >= i486.
22443
22444         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
22445         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
22446
22447         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
22448         New macro from Linux kernel 3.4.0.
22449         (FP_XSTATE_MAGIC2): Likewise.
22450         (FP_XSTATE_MAGIC2_SIZE): Likewise.
22451         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
22452         (struct _fpx_sw_bytes): New struct.
22453         (struct _xsave_hdr): Likewise.
22454         (struct _ymmh_state): Likewise.
22455         (struct _xstate): Likewise.
22456
22457         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
22458         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
22459         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
22460         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
22461         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
22462         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
22463
22464         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
22465         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
22466         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
22467         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
22468         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
22469         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
22470
22471 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22472
22473         [BZ #13743]
22474         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
22475         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
22476         (sysdep_headers): Include sys/platform/ppc.h.
22477         * sysdeps/powerpc/test-gettimebase.c: Test for
22478         __ppc_get_timebase() to catch future ISA opcode/insn changes.
22479         * manual/Makefile (appendices): Include platform.texi.
22480         * manual/contrib.texi (Contributors): Update @node pointers.
22481         * manual/maint.texi (Maintenance): Likewise.
22482         (Platform): New node.
22483         * manual/platform.texi: New file.  Document the new features.
22484
22485 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22486             Jakub Jelinek  <jakub@redhat.com>
22487
22488         [BZ #14188]
22489         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
22490         where __builtin_expect is unavailable.
22491
22492 2012-06-03  David S. Miller  <davem@davemloft.net>
22493
22494         * stdlib/longlong.h: Updated from GCC.
22495
22496 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
22497
22498         [BZ #14042]
22499         * sysdeps/powerpc/powerpc32/mcount.c: New file.
22500         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
22501         __mcount_internal.
22502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
22503         (GLIBC_2.16): Likewise.
22504
22505 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22506
22507         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
22508
22509 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22510
22511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
22512         (default-abi): New variable.
22513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
22514         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
22515         variable.
22516         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
22517         Likewise.
22518         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
22519         Likewise.
22520         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
22521         Likewise.
22522
22523         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
22524         definition.  Document in comment.
22525
22526 2012-06-01  David S. Miller  <davem@davemloft.net>
22527
22528         * stdlib/longlong.h: Updated from GCC.
22529
22530 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22531
22532         [BZ #14117]
22533         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
22534         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
22535         sys/debugreg.h sys/io.h here.
22536         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
22537         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
22538         sys/io.h.
22539         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
22540         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
22541         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
22542         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
22543         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
22544         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
22545
22546         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
22547         Define only if __x86_64__ is defined.
22548
22549 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22550
22551         [BZ #14048]
22552         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
22553         Use int64_t for variable i.
22554         * math/libm-test.inc (fmod_test): Add more tests.
22555
22556         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
22557         z computation is not scheduled after fetestexcept.
22558         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
22559         Use math_force_eval instead of asm to ensure calculation scheduled
22560         before exception test.
22561         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
22562         Ensure a1 + u.d computation is not scheduled after fetestexcept.
22563
22564 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
22565
22566         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
22567         computation is not scheduled after fetestexcept.
22568
22569 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22570
22571         [BZ #14117]
22572         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
22573         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
22574
22575 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22576
22577         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
22578         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
22579
22580 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22581
22582         [BZ #14117]
22583         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
22584         <bits/wordsize.h>.
22585         (__WCHAR_MIN): Support __WORDSIZE == 64.
22586         (__WCHAR_MAX): Likewise.
22587
22588         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
22589         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
22590
22591         [BZ #14183]
22592         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
22593         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
22594
22595         [BZ #14117]
22596         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
22597         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
22598
22599         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
22600         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
22601
22602         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
22603         Defined to 1 if __x86_64__ isn't defined.
22604         (_STAT_VER_LINUX_OLD): New.
22605         (st_atime): Remove duplicate.
22606         (st_mtime): Likewise.
22607         (st_ctime): Likewise.
22608
22609 2012-05-31  David S. Miller  <davem@davemloft.net>
22610
22611         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
22612         entries.
22613
22614 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
22615
22616         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
22617         gen-libm-test.pl.
22618
22619         [BZ #14132]
22620         * elf/dl-reloc.c: Include <_itoa.h>.
22621         (_dl_reloc_bad_type): Remove use of INTUSE.
22622         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
22623         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
22624         * stdio-common/psiginfo.c (psiginfo): Likewise.
22625         * stdio-common/psignal.c (psignal): Likewise.
22626         * string/strsignal.c (strsignal): Likewise.
22627         * include/signal.h (_sys_siglist): Declare hidden proto.
22628         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
22629         INTVARDEF with libc_hidden_data_def.
22630         * stdio-common/itoa-udigits.c: Likewise.
22631         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
22632         (_itoa_lower_digits_internal): Remove declaration.
22633         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
22634         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
22635         (_sys_sigabbrev_internal): Remove aliases.
22636         (_sys_siglist): Define hidden alias.
22637
22638 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
22639
22640         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22641         bits/sysctl.h.
22642
22643 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22644
22645         [BZ #14117]
22646         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
22647         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
22648
22649         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
22650         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
22651         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
22652         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
22653         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
22654         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
22655
22656         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
22657         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
22658         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
22659
22660         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
22661         with __addr.
22662         (insw): Likewise.
22663         (insl): Likewise.
22664         (outsb): Likewise.
22665         (outsw): Likewise.
22666         (outsl): Likewise.
22667
22668         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
22669         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
22670         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
22671
22672         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
22673         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
22674         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
22675         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
22676         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
22677         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
22678
22679         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
22680         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
22681
22682         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
22683         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
22684
22685         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
22686         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
22687         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
22688
22689         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
22690         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
22691         to ...
22692         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
22693
22694         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
22695         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
22696         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
22697
22698         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
22699         for x86-64.
22700         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
22701
22702 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
22703
22704         * math/math.h (M_El): Use two more decimal places.
22705         (M_LOG2El): Likewise.
22706         (M_LOG10El): Likewise.
22707         (M_LN2l): Likewise.
22708         (M_LN10l): Likewise.
22709         (M_PIl): Likewise.
22710         (M_PI_2l): Likewise.
22711         (M_PI_4l): Likewise.
22712         (M_1_PIl): Likewise.
22713         (M_2_PIl): Likewise.
22714         (M_2_SQRTPIl): Likewise.
22715         (M_SQRT2l): Likewise.
22716         (M_SQRT1_2l): Likewise.
22717
22718 2012-05-31  David S. Miller  <davem@davemloft.net>
22719
22720         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
22721         values between float registers.
22722         * sysdeps/sparc/sparc64/memset.S: Likewise.
22723         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22724
22725 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
22726
22727         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
22728         -D_FORTIFY_SOURCE=1.
22729         (CPPFLAGS-tst-longjmp_chk.c): Define.
22730         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
22731         (CPPFLAGS-tst-longjmp_chk2.c): Define.
22732         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
22733         CFLAGS-tst-wchar-h.c.
22734
22735 2012-05-31  Marek Polacek  <polacek@redhat.com>
22736
22737         [BZ #14132]
22738         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
22739         __endmntent_internal): Remove declaration.
22740         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
22741         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
22742         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
22743
22744 2012-05-30  David S. Miller  <davem@davemloft.net>
22745
22746         * sysdeps/sparc/sparc32/soft-fp/q_util.c
22747         (___Q_simulate_exceptions): Use real FP ops rather than writing
22748         into the %fsr.
22749         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
22750         Likewise.
22751
22752 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22753
22754         [BZ #14117]
22755         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
22756         * sysdeps/x86/bits/xtitypes.h: This.
22757
22758         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
22759         * sysdeps/x86/bits/wordsize.h: This.
22760
22761         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
22762         * sysdeps/x86/bits/huge_vall.h: This.
22763
22764         * sysdeps/i386/bits/select.h: Removed.
22765         * sysdeps/x86_64/bits/select.h: Renamed to ...
22766         * sysdeps/x86/bits/select.h: This.
22767
22768         * sysdeps/i386/bits/setjmp.h: Removed.
22769         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
22770         * sysdeps/x86/bits/setjmp.h: This.
22771
22772         * sysdeps/i386/bits/mathdef.h: Removed.
22773         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
22774         * sysdeps/x86/bits/mathdef.h: This.
22775
22776 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
22777
22778         [BZ #14132]
22779         * include/sys/socket.h (__connect_internal)
22780         (__libc_sa_len_internal): Remove declaration.
22781         (__connect, __libc_sa_len): Declare hidden_proto.
22782         (SA_LEN): Remove use of INTUSE.
22783         * socket/connect.c: Add libc_hidden_def.
22784         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
22785         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
22786         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
22787         alias.
22788         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
22789         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
22790         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
22791         of adding _internal alias.
22792
22793 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22794
22795         [BZ #14117]
22796         * sysdeps/i386/bits/link.h: Removed.
22797         * sysdeps/i386/bits/linkmap.h: Likewise.
22798         * sysdeps/x86_64/bits/link.h: Renamed to ...
22799         * sysdeps/x86/bits/link.h: This.
22800         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
22801         * sysdeps/x86/bits/linkmap.h: This.
22802
22803         * sysdeps/i386/bits/endian.h: Removed.
22804         * sysdeps/x86_64/bits/endian.h: Renamed to ...
22805         * sysdeps/x86/bits/endian.h: This.
22806
22807         * sysdeps/i386/bits/byteswap.h: Removed.
22808         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22809         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
22810         * sysdeps/x86/bits/byteswap.h: This.
22811         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
22812         * sysdeps/x86/bits/byteswap-16.h: This.
22813         * sysdeps/i386/Implies: Add x86.
22814         * sysdeps/x86_64/Implies: Likewise.
22815
22816 2012-05-30  David S. Miller  <davem@davemloft.net>
22817
22818         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
22819         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
22820         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
22821         (FP_TRAPPING_EXCEPTIONS): Define.
22822         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
22823         (FP_TRAPPING_EXCEPTIONS): Define.
22824         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
22825         subnormals only when inexact has been signalled or underflow
22826         exceptions are enabled.
22827         (_FP_PACK_CANONICAL): Likewise.
22828
22829 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22830
22831         [BZ #14183]
22832         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
22833         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
22834
22835 2012-05-30  Richard Henderson  <rth@twiddle.net>
22836
22837         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
22838         with #ifndef NOT_IN_libc.
22839
22840         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
22841         marked to avoid plt entry.
22842
22843 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22844
22845         [BZ #14112]
22846         * Makeconfig (default-abi): New macro.
22847         (abi-includes): Likewise.
22848         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
22849         $(abi-$(default-abi)-lib-soname) for soname if defined.
22850         ($(common-objpfx)gnu/lib-names.stmp): Generate from
22851         abi-variants.
22852         * Makefile (installed-stubs): Likewise.
22853         * include/stubs-biarch.h: Removed.
22854         * scripts/lib-names.awk: Only handle one library at a time.
22855         * scripts/soversions.awk: Remove WORDSIZE support.
22856         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
22857         entries.
22858         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
22859         Removed.
22860         (syscall-list-default-condition): Likewise.
22861         (syscall-list-default-condition): Likewise.
22862         (syscall-list-includes): Likewise.
22863         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
22864         syscall-list-* with abi-*.  Handle undefined abi-variants.
22865         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
22866         * sysdeps/unix/sysv/linux/i386/Implies: New file.
22867         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
22868         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
22869         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
22870         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
22871         Removed.
22872         (syscall-list-32-options): Likewise.
22873         (syscall-list-32-condition): Likewise.
22874         (syscall-list-64-options): Likewise.
22875         (syscall-list-64-condition): Likewise.
22876         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
22877         macro.
22878         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
22879         Renamed to ...
22880         (abi-*): This.
22881         (abi-64-ld-soname): New macro.
22882         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
22883         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
22884         Renamed to ...
22885         (abi-*): This.
22886         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
22887         * sysdeps/x86_64/x32/shlib-versions: Likewise.
22888
22889 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
22890
22891         * sysdeps/unix/sysv/linux/kernel-features.h
22892         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
22893         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
22894         include <kernel-features.h>.
22895         [!__NR_ftruncate64]: Remove conditional code.
22896         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22897         [__NR_ftruncate64]: Make code unconditional.
22898         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22899         * sysdeps/unix/sysv/linux/truncate64.c: Do not
22900         include <kernel-features.h>.
22901         [!__NR_ftruncate64]: Remove conditional code.
22902         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22903         [__NR_ftruncate64]: Make code unconditional.
22904         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
22906         include <kernel-features.h>.
22907         [!__NR_ftruncate64]: Remove conditional code.
22908         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22909         [__NR_ftruncate64]: Make code unconditional.
22910         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22912         include <kernel-features.h>.
22913         [!__NR_ftruncate64]: Remove conditional code.
22914         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22915         [__NR_ftruncate64]: Make code unconditional.
22916         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22917
22918         * configure.in (libc_cv_fpie): Weaken to a compile test using
22919         LIBC_TRY_CC_OPTION.
22920         * configure: Regenerated.
22921
22922 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22923
22924         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
22925         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
22926         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
22927         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22928         Refreshed.
22929         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
22930         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
22931         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
22932         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
22933         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
22934         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22935         Refreshed.
22936
22937 2012-05-27  David S. Miller  <davem@davemloft.net>
22938
22939         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
22940         (___Q_zero): New.
22941         (__Q_simulate_exceptions): Return void.  Change to simulate
22942         exceptions by writing into the %fsr.
22943         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
22944         (__Qp_handle_exceptions): Likewise.
22945         (numbers): Delete.
22946         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
22947         __Qp_handle_exceptions.
22948         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
22949         __Qp_handle_exceptions.
22950         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22951         as unused and give dummy FP_RND_NEAREST initializer.
22952         (FP_INHIBIT_RESULTS): Define.
22953         (___Q_simulate_exceptions): Update declaration.
22954         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
22955         formatting.
22956         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22957         as unused and give dummy FP_RND_NEAREST initializer.
22958         (__Qp_handle_exceptions): Update declaration.
22959         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
22960         formatting.
22961
22962 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
22963
22964         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
22965         the temporary FPU control word.
22966         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
22967         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
22968         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22969         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22970         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22971         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22972         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22973         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22974         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22975         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
22976         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22977
22978 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22979
22980         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
22981         fields.
22982
22983 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
22984
22985         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
22986         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
22987         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
22988         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
22989         Likewise.
22990         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
22991         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
22992         Likewise.
22993
22994 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
22995
22996         * po/h.po: Update from translation team.
22997
22998 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
22999
23000         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
23001
23002         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
23003         handling of denormals.
23004         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
23005         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
23006         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
23007         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
23008         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
23009         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
23010         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
23011         Likewise.
23012
23013 2012-05-26  Marek Polacek  <polacek@redhat.com>
23014
23015         [BZ #14152]
23016         * math/libm-test.inc (fma_test): Don't always expect underflow
23017         exception.
23018
23019 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
23020
23021         [BZ #12416]
23022         * elf/tst-execstack.c: Include stackinfo.h.
23023         (do_test): Adjust test case to ensure that pthread_getattr_np
23024         behaviour remains the same after marking stack executable.
23025
23026 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
23027
23028         * sysdeps/unix/sysv/linux/kernel-features.h
23029         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
23030         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
23031         kernel-features.h.
23032         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
23033         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
23034         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
23035         kernel-features.h.
23036         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
23037         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
23038
23039 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
23040
23041         * configure.in: Define the default includes to being none.
23042         * configure: Regenerated.
23043
23044 2012-05-25  Roland McGrath  <roland@hack.frob.com>
23045
23046         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
23047         * sysdeps/x86_64/setjmp.S: Likewise.
23048         * sysdeps/i386/bsd-setjmp.S: Likewise.
23049         * sysdeps/i386/bsd-_setjmp.S: Likewise.
23050         * sysdeps/i386/setjmp.S: Likewise.
23051         * sysdeps/i386/__longjmp.S: Likewise.
23052         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23053         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
23054
23055         * include/stap-probe.h: New file.
23056         * configure.in: Handle --enable-systemtap.
23057         * configure: Regenerated.
23058         * config.h.in (USE_STAP_PROBE): New #undef.
23059         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
23060         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
23061         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23062
23063 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
23064
23065         [BZ #13717]
23066         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
23067         to 2.4.0 where earlier.
23068         * sysdeps/unix/sysv/linux/configure: Regenerated.
23069         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/i386/fchownat.c (fchownat)
23078         [__ASSUME_32BITUIDS]: Make code unconditional.
23079         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
23080         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
23081         <kernel-features.h>.
23082         [__ASSUME_32BITUIDS]: Make code unconditional.
23083         [!__ASSUME_32BITUIDS]: Remove conditional code.
23084         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
23085         <kernel-features.h>.
23086         [__ASSUME_32BITUIDS]: Make code unconditional.
23087         [!__ASSUME_32BITUIDS]: Remove conditional code.
23088         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
23089         <kernel-features.h>.
23090         [__ASSUME_32BITUIDS]: Make code unconditional.
23091         [!__ASSUME_32BITUIDS]: Remove conditional code.
23092         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
23093         <kernel-features.h>.
23094         [__ASSUME_32BITUIDS]: Make code unconditional.
23095         [!__ASSUME_32BITUIDS]: Remove conditional code.
23096         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
23097         <kernel-features.h>.
23098         [__ASSUME_32BITUIDS]: Make code unconditional.
23099         [!__ASSUME_32BITUIDS]: Remove conditional code.
23100         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
23101         <kernel-features.h>.
23102         [__ASSUME_32BITUIDS]: Make code unconditional.
23103         [!__ASSUME_32BITUIDS]: Remove conditional code.
23104         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
23105         <kernel-features.h>.
23106         [__ASSUME_32BITUIDS]: Make code unconditional.
23107         [!__ASSUME_32BITUIDS]: Remove conditional code.
23108         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
23109         <kernel-features.h>.
23110         [__ASSUME_32BITUIDS]: Make code unconditional.
23111         [!__ASSUME_32BITUIDS]: Remove conditional code.
23112         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
23113         <kernel-features.h>.
23114         [__ASSUME_32BITUIDS]: Make code unconditional.
23115         [!__ASSUME_32BITUIDS]: Remove conditional code.
23116         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
23117         <kernel-features.h>.
23118         [__ASSUME_32BITUIDS]: Make code unconditional.
23119         [!__ASSUME_32BITUIDS]: Remove conditional code.
23120         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
23121         <kernel-features.h>.
23122         [__NR_setresgid] (__setresgid): Do not declare.
23123         [__ASSUME_32BITUIDS]: Make code unconditional.
23124         [!__ASSUME_32BITUIDS]: Remove conditional code.
23125         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
23126         <kernel-features.h>.
23127         [__NR_setresuid] (__setresuid): Do not declare.
23128         [__ASSUME_32BITUIDS]: Make code unconditional.
23129         [!__ASSUME_32BITUIDS]: Remove conditional code.
23130         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
23131         <kernel-features.h>.
23132         [__ASSUME_32BITUIDS]: Make code unconditional.
23133         [!__ASSUME_32BITUIDS]: Remove conditional code.
23134         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
23135         <kernel-features.h>.
23136         [__ASSUME_32BITUIDS]: Make code unconditional.
23137         [!__ASSUME_32BITUIDS]: Remove conditional code.
23138         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
23139         <kernel-features.h>.
23140         [__ASSUME_32BITUIDS]: Make code unconditional.
23141         [!__ASSUME_32BITUIDS]: Remove conditional code.
23142         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
23143         <kernel-features.h>.
23144         [__ASSUME_32BITUIDS]: Make code unconditional.
23145         [!__ASSUME_32BITUIDS]: Remove conditional code.
23146         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
23147         <kernel-features.h>.
23148         [__ASSUME_32BITUIDS]: Make code unconditional.
23149         [!__ASSUME_32BITUIDS]: Remove conditional code.
23150         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
23151         <kernel-features.h>.
23152         [__ASSUME_32BITUIDS]: Make code unconditional.
23153         [!__ASSUME_32BITUIDS]: Remove conditional code.
23154         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
23155         <kernel-features.h>.
23156         [__ASSUME_32BITUIDS]: Make code unconditional.
23157         [!__ASSUME_32BITUIDS]: Remove conditional code.
23158         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
23159         <kernel-features.h>.
23160         [__ASSUME_32BITUIDS]: Make code unconditional.
23161         [!__ASSUME_32BITUIDS]: Remove conditional code.
23162         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
23163         <kernel-features.h>.
23164         [__ASSUME_32BITUIDS]: Make code unconditional.
23165         [!__ASSUME_32BITUIDS]: Remove conditional code.
23166         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
23167         <kernel-features.h>.
23168         [__ASSUME_32BITUIDS]: Make code unconditional.
23169         [!__ASSUME_32BITUIDS]: Remove conditional code.
23170         * sysdeps/unix/sysv/linux/kernel-features.h
23171         (__ASSUME_SETRESUID_SYSCALL): Remove.
23172         (__ASSUME_SETRESGID_SYSCALL): Likewise.
23173         (__ASSUME_32BITUIDS): Likewise.
23174         (__ASSUME_LDT_WORKS): Likewise.
23175         (__ASSUME_O_DIRECTORY): Likewise.
23176         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
23177         architecture but not kernel version.
23178         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
23179         (__ASSUME_MMAP2_SYSCALL): Likewise.
23180         (__ASSUME_STAT64_SYSCALL): Likewise.
23181         (__ASSUME_IPC64): Likewise.
23182         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
23183         <kernel-features.h>.
23184         [__ASSUME_32BITUIDS]: Make code unconditional.
23185         [!__ASSUME_32BITUIDS]: Remove conditional code.
23186         * sysdeps/unix/sysv/linux/opendir.c: Do not include
23187         <kernel-features.h>.
23188         [__ASSUME_O_DIRECTORY]: Make code unconditional.
23189         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
23190         132096]: Remove conditional code.
23191         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
23192         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
23193         <kernel-features.h>.
23194         [__ASSUME_32BITUIDS]: Make code unconditional.
23195         [!__ASSUME_32BITUIDS]: Remove conditional code.
23196         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
23197         <kernel-features.h>.
23198         [__ASSUME_32BITUIDS]: Make code unconditional.
23199         [!__ASSUME_32BITUIDS]: Remove conditional code.
23200         * sysdeps/unix/sysv/linux/setegid.c: Do not include
23201         <kernel-features.h>.
23202         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
23203         unconditional.
23204         (__setresgid): Do not declare.
23205         [__ASSUME_32BITUIDS]: Make code unconditional.
23206         [!__ASSUME_32BITUIDS]: Remove conditional code.
23207         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
23208         <kernel-features.h>.
23209         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
23210         unconditional.
23211         (__setresuid): Do not declare.
23212         [__ASSUME_32BITUIDS]: Make code unconditional.
23213         [!__ASSUME_32BITUIDS]: Remove conditional code.
23214         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
23215         <kernel-features.h>.
23216         [__ASSUME_32BITUIDS]: Make code unconditional.
23217         [!__ASSUME_32BITUIDS]: Remove conditional code.
23218         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
23219         <kernel-features.h>.
23220         [__ASSUME_32BITUIDS]: Make code unconditional.
23221         [!__ASSUME_32BITUIDS]: Remove conditional code.
23222
23223 2012-05-25  Richard Henderson  <rth@twiddle.net>
23224
23225         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
23226         dl_hwcap to ifunc resolver.
23227         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
23228         elf_ifunc_invoke.
23229         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
23230         dl_hwcap to ifunc resolver.
23231         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
23232
23233 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23234
23235         [BZ #14153]
23236         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
23237         for |x| <= 2**-26, not 2**-57.
23238         * math/libm-test.inc (acos_test): Do not allow spurious underflow
23239         exception.
23240
23241 2012-05-24  Jeff Law  <law@redhat.com>
23242
23243         * stdio-common/Makefile (tests): Add bug25.
23244         * stdio-common/bug25.c: New test.
23245
23246 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23247
23248         [BZ #13576]
23249         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
23250         multiple of MALLOC_ALIGNMENT in size.
23251         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
23252
23253 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23254
23255         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
23256         Require >= 256.
23257         (FILENAME_MAX): Use macro-int-constant.
23258         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
23259         (_IOFBF): Use macro-int-constant.
23260         (_IOLBF): Likewise.
23261         (_IONBF): Likewise.
23262         (SEEK_CUR): Likewise.
23263         (SEEK_END): Likewise.
23264         (SEEK_SET): Likewise.
23265         (TMP_MAX): Likewise.
23266         (EOF): Use macro-int-constant.  Require < 0.
23267         (NULL): Use macro-constant.  Require == 0.
23268         (stdin): Require type to be FILE *.
23269         (stdout): Likewise.
23270         (stderr): Likewise.
23271         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
23272         macro-int-constant.
23273         (EXIT_SUCCESS): Likewise.
23274         (NULL): Use macro-constant.  Require == 0.
23275         (RAND_MAX): Use macro-int-constant.
23276         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
23277         [C99-based standards] (strtof): Require function.
23278         [C99-based standards] (strtold): Likewise.
23279         [C99-based standards] (strtoll): Likewise.
23280         [C99-based standards] (strtoull): Likewise.
23281         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
23282         [ISO || ISO99 || ISO11] (limits.h): Likewise.
23283         [ISO || ISO99 || ISO11] (math.h): Likewise.
23284         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
23285         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
23286         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23287
23288 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
23289
23290         [BZ #14132]
23291         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
23292         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
23293         * intl/dgettext.c (DCGETTEXT): Likewise.
23294         * intl/gettext.c (DCGETTEXT): Likewise.
23295         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
23296         * posix/regex_internal.h (gettext): Likewise.
23297         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
23298         Remove declaration.
23299         * include/argz.h (__argz_count_internal)
23300         (__argz_stringify_internal): Remove declaration.
23301         (__argz_count, __argz_stringify): Declare hidden proto.
23302         * intl/dcgettext.c: Remove use of INTDEF.
23303         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
23304         * string/argz-stringify.c: Likewise.
23305         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23306         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23307         Declare hidden proto.
23308         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23309         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23310         Declare hidden proto.
23311         * include/stdio.h (__asprintf_internal): Don't declare.
23312         (__asprintf): Don't define as macro.  Declare hidden proto.
23313         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
23314         (__fsetlocking): Declare hidden proto.
23315         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
23316         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
23317         hidden proto.
23318         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
23319         (_IO_setlinebuf): Remove use of INTUSE.
23320         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
23321         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
23322         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
23323         Remove declaration.
23324         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
23325         (_IO_do_flush): Remove use of INTUSE.
23326         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
23327         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
23328         (_IO_adjust_column, _IO_least_wmarker)
23329         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
23330         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
23331         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
23332         (_IO_default_doallocate, _IO_wdefault_doallocate)
23333         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
23334         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
23335         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
23336         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
23337         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
23338         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
23339         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
23340         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
23341         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
23342         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
23343         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
23344         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
23345         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
23346         proto.
23347         (_IO_flush_all_internal, _IO_adjust_column_internal)
23348         (_IO_default_uflow_internal, _IO_default_finish_internal)
23349         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
23350         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
23351         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
23352         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
23353         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
23354         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
23355         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
23356         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
23357         (_IO_file_close_internal, _IO_file_close_it_internal)
23358         (_IO_file_underflow_internal, _IO_file_overflow_internal)
23359         (_IO_file_init_internal, _IO_file_attach_internal)
23360         (_IO_file_fopen_internal, _IO_file_read_internal)
23361         (_IO_file_sync_internal, _IO_file_seek_internal)
23362         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
23363         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
23364         (_IO_str_underflow_internal, _IO_str_overflow_internal)
23365         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
23366         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
23367         (_IO_list_all_internal, _IO_link_in_internal)
23368         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
23369         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
23370         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
23371         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
23372         (_IO_do_write_internal, _IO_padn_internal)
23373         (_IO_getline_info_internal, _IO_getline_internal)
23374         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
23375         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
23376         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
23377         (_IO_vfscanf_internal, _IO_vfprintf_internal)
23378         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
23379         (_IO_init_internal, _IO_un_link_internal): Don't declare.
23380         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
23381         with libc_hidden_ver, remove use of INTUSE.
23382         * libio/genops.c: Likewise.
23383         * libio/freopen.c: Likewise.
23384         * libio/freopen64.c: Likewise.
23385         * libio/iofclose.c: Likewise.
23386         * libio/iofdopen.c: Likewise.
23387         * libio/iofflush.c: Likewise.
23388         * libio/iofflush_u.c: Likewise.
23389         * libio/iofgets.c: Likewise.
23390         * libio/iofgets_u.c: Likewise.
23391         * libio/iofopen.c: Likewise.
23392         * libio/iofopncook.c: Likewise.
23393         * libio/iofread.c: Likewise.
23394         * libio/iofread_u.c: Likewise.
23395         * libio/ioftell.c: Likewise.
23396         * libio/iofwrite.c: Likewise.
23397         * libio/iogetline.c: Likewise.
23398         * libio/iogets.c: Likewise.
23399         * libio/iogetwline.c: Likewise.
23400         * libio/iopadn.c: Likewise.
23401         * libio/iopopen.c: Likewise.
23402         * libio/ioseekoff.c: Likewise.
23403         * libio/ioseekpos.c: Likewise.
23404         * libio/iosetbuffer.c: Likewise.
23405         * libio/iosetvbuf.c: Likewise.
23406         * libio/ioungetc.c: Likewise.
23407         * libio/ioungetwc.c: Likewise.
23408         * libio/iovdprintf.c: Likewise.
23409         * libio/iovsprintf.c: Likewise.
23410         * libio/iovsscanf.c: Likewise.
23411         * libio/memstream.c: Likewise.
23412         * libio/obprintf.c: Likewise.
23413         * libio/oldfileops.c: Likewise.
23414         * libio/oldiofclose.c: Likewise.
23415         * libio/oldiofdopen.c: Likewise.
23416         * libio/oldiofopen.c: Likewise.
23417         * libio/oldiopopen.c: Likewise.
23418         * libio/oldstdfiles.c: Likewise.
23419         * libio/putc.c: Likewise.
23420         * libio/setbuf.c: Likewise.
23421         * libio/setlinebuf.c: Likewise.
23422         * libio/stdfiles.c: Likewise.
23423         * libio/strops.c: Likewise.
23424         * libio/vasprintf.c: Likewise.
23425         * libio/vscanf.c: Likewise.
23426         * libio/vsnprintf.c: Likewise.
23427         * libio/vswprintf.c: Likewise.
23428         * libio/wfiledoalloc.c: Likewise.
23429         * libio/wfileops.c: Likewise.
23430         * libio/wgenops.c: Likewise.
23431         * libio/wmemstream.c: Likewise.
23432         * libio/wstrops.c: Likewise.
23433         * libio/__fpurge.c: Likewise.
23434         * libio/__fsetlocking.c: Likewise.
23435         * assert/assert.c: Likewise.
23436         * debug/fgets_chk.c: Likewise.
23437         * debug/fgets_u_chk.c: Likewise.
23438         * debug/fread_chk.c: Likewise.
23439         * debug/fread_u_chk.c: Likewise.
23440         * debug/gets_chk.c: Likewise.
23441         * debug/obprintf_chk.c: Likewise.
23442         * debug/vasprintf_chk.c: Likewise.
23443         * debug/vdprintf_chk.c: Likewise.
23444         * debug/vsnprintf_chk.c: Likewise.
23445         * debug/vsprintf_chk.c: Likewise.
23446         * malloc/mtrace.c: Likewise.
23447         * misc/error.c: Likewise.
23448         * misc/syslog.c: Likewise.
23449         * stdio-common/asprintf.c: Likewise.
23450         * stdio-common/fxprintf.c: Likewise.
23451         * stdio-common/getw.c: Likewise.
23452         * stdio-common/isoc99_fscanf.c: Likewise.
23453         * stdio-common/isoc99_scanf.c: Likewise.
23454         * stdio-common/isoc99_vfscanf.c: Likewise.
23455         * stdio-common/isoc99_vscanf.c: Likewise.
23456         * stdio-common/isoc99_vsscanf.c: Likewise.
23457         * stdio-common/printf-prs.c: Likewise.
23458         * stdio-common/printf_fp.c: Likewise.
23459         * stdio-common/printf_fphex.c: Likewise.
23460         * stdio-common/printf_size.c: Likewise.
23461         * stdio-common/putw.c: Likewise.
23462         * stdio-common/scanf.c: Likewise.
23463         * stdio-common/sprintf.c: Likewise.
23464         * stdio-common/tmpfile.c: Likewise.
23465         * stdio-common/vfprintf.c: Likewise.
23466         * stdio-common/vfscanf.c: Likewise.
23467         * stdlib/strfmon_l.c: Likewise.
23468         * sunrpc/openchild.c: Likewise.
23469         * sunrpc/xdr_stdio.c: Likewise.
23470         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
23471         * sysdeps/mach/hurd/tmpfile.c: Likewise.
23472
23473 2012-05-24  Roland McGrath  <roland@hack.frob.com>
23474
23475         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23476
23477         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
23478         in the third column, to generate for the shared library an IFUNC
23479         that uses _dl_vdso_vsym.
23480         * Makerules (COMPILE.c, compile-stdin.c): New variables.
23481         * Makeconfig (object-suffixes-noshared): New variable.
23482
23483         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
23484         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
23485         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
23486         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
23487
23488         [BZ #14132]
23489         * include/sys/time.h (__gettimeofday): Remove macro.
23490         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
23491         * time/gettimeofday.c (__gettimeofday): Remove #undef.
23492         Remove INTDEF.
23493         (__gettimeofday): Add libc_hidden_def.
23494         (gettimeofday): Add libc_hidden_weak.
23495         * sysdeps/mach/gettimeofday.c: Likewise.
23496         * sysdeps/posix/gettimeofday.c: Likewise.
23497         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
23498         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23499         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
23500         (__gettimeofday_internal): Remove strong_alias.
23501         (__gettimeofday): Add libc_hidden_def.
23502         (gettimeofday): Add libc_hidden_weak.
23503         * sysdeps/unix/syscalls.list (gettimeofday):
23504         Remove __gettimeofday_internal alias.
23505
23506 2012-05-24  Daniel Jacobowitz  <drow@false.org>
23507             H.J. Lu  <hongjiu.lu@intel.com>
23508
23509         [BZ #12495]
23510         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
23511         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
23512         (largebin_index_32_big): New.
23513         (largebin_index): Use it for 16-byte alignment.
23514         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
23515         correction with front_misalign.
23516
23517 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23518
23519         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
23520         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
23521         Likewise.
23522         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
23523         Likewise.
23524         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
23525         Likewise.
23526         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
23527         Likewise.
23528         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
23529         Likewise.
23530         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
23531         Likewise.
23532         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
23533         Likewise.
23534         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
23535         Likewise.
23536         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
23537         Likewise.
23538         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
23539         Likewise.
23540         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
23541         Likewise.
23542         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
23543         Likewise.
23544
23545         * scripts/data/c++-types-x32-linux-gnu.data: New file.
23546         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
23547
23548 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23549
23550         [BZ #10846]
23551         [BZ #14036]
23552         * math/libm-test.inc (exp_test): Add test from bug 14036.
23553         (pow_test): Add test from bug 10846.
23554
23555         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
23556         and other flags.
23557         (special_function): Do not include flags in test name.
23558         (parse_args): Likewise.
23559         * sysdeps/i386/fpu/libm-test-ulps: Update.
23560         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23561         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
23562         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
23563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23564
23565         * math/gen-libm-test.pl (%beautify): Add entries for underflow
23566         exceptions.
23567         * math/libm-test.inc ("Philosophy"): Update comment about
23568         exception testing.
23569         (UNDERFLOW_EXCEPTION): New macro.
23570         (UNDERFLOW_EXCEPTION_OK): Likewise.
23571         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
23572         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
23573         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
23574         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
23575         (INVALID_EXCEPTION_OK): Update value.
23576         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23577         (OVERFLOW_EXCEPTION_OK): Likewise.
23578         (IGNORE_ZERO_INF_SIGN): Likewise.
23579         (test_exceptions): Handle underflow exceptions.
23580         (acos_test): Update for underflow exception expectations.
23581         (cexp_test): Likewise.
23582         (clog_test): Likewise.
23583         (clog10_test): Likewise.
23584         (csqrt_test): Likewise.
23585         (ctan_test): Likewise.
23586         (ctanh_test): Likewise.
23587         (exp_test): Likewise.
23588         (exp10_test): Likewise.
23589         (exp2_test): Likewise.
23590         (expm1_test): Likewise.
23591         (fma_test): Likewise.
23592         (j0_test): Likewise.
23593         (jn_test): Likewise.
23594         (nexttoward_test): Likewise.
23595         (pow_test): Likewise.
23596         (scalbn_test): Likewise.
23597         (scalbln_test): Likewise.
23598         (tan_test): Likewise.
23599         (y1_test): Likewise.
23600         * sysdeps/i386/fpu/libm-test-ulps: Update.
23601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23602
23603 2012-05-23  David S. Miller  <davem@davemloft.net>
23604
23605         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23606         (__libc_sigaction): Remove unused local variables.
23607
23608 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23609
23610         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
23611
23612 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23613
23614         mktime: avoid signed integer overflow
23615         * time/mktime.c (__mktime_internal): Do not mishandle the case
23616         where diff == INT_MIN.
23617
23618         mktime: simplify computation of average
23619         * time/mktime.c (ranged_convert): Use new time_t_avg function
23620         instead of rolling our own (probably-slower) code.
23621
23622         mktime: do not assume signed right shift propagates sign bit
23623         * time/mktime.c (isdst_differ): New static function.
23624         (__mktime_internal): No need to normalize tm_isdst now.
23625         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
23626         tm_isdst values.
23627
23628         mktime: merge another wrapv change from gnulib
23629         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
23630         from some compilers.
23631
23632         mktime: remove incorrect attempt at unusual arithmetics
23633         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
23634         The code didn't really work on such machines anyway.
23635         (TYPE_MINIMUM): Assume two's complement.
23636         (twos_complement_arithmetic): Verify that long_int and time_t
23637         are two's complement (or unsigned, in the latter case).
23638
23639         mktime: check signed shifts on long_int and time_t, too
23640         * time/mktime.c (SHR): Check that shifts work as desired
23641         on the types long_int and time_t too, as SHR is used on
23642         such types.
23643
23644         mktime: do not assume 'long' is wide enough
23645         * time/mktime.c (verify): Move decl up.
23646         (long_int): New type.
23647         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
23648         to remove assumption in the code that 'long' is wide enough to
23649         store year values.  This assumption is not true on x32 and on
23650         some non-glibc platforms.
23651
23652         mktime: merge wrapv change from gnulib
23653         * time/mktime.c (WRAPV): New macro.
23654         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
23655         (guess_time_tm, __mktime_internal): Do not assume that signed
23656         integer overflow wraps around; modern compilers generate code
23657         where this assumption is no longer valid.
23658
23659 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23660
23661         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23662         Replace "jmp L(pseudo_end)" with "ret".
23663         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
23664         Likewise.
23665
23666 2012-05-23  Andreas Jaeger  <aj@suse.de>
23667
23668         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
23669         * sysdeps/unix/sysv/linux/poll.c: Remove file.
23670
23671 2012-05-23  Andreas Jaeger  <aj@suse.de>
23672             Maximilian Attems  <max@stro.at>
23673
23674         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
23675         New macros.
23676
23677 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23678
23679         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
23680         code so that pseudo_end is just ret and the stack pointer is
23681         correct also for static library in error case.
23682
23683 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
23684
23685         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
23686         move to syscalls.list.
23687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
23688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
23689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
23690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
23691
23692         * manual/install.texi (Running make install): Do not mention Linux
23693         kernel version for which pt_chown is not needed.
23694         (Linux): Do not mention problems with nscd with 2.0 kernels.
23695         * INSTALL: Regenerated.
23696
23697 2012-05-23  Andreas Jaeger  <aj@suse.de>
23698
23699         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
23700         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
23701         macro.
23702         * sysdeps/unix/sysv/linux/s390/bits/mman.h
23703         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23704         * sysdeps/unix/sysv/linux/sh/bits/mman.h
23705         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23706         * sysdeps/unix/sysv/linux/i386/bits/mman.h
23707         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23708         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
23709         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23710         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
23711         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23712         * sysdeps/unix/sysv/linux/bits/in.h
23713         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
23714
23715 2012-05-22  Roland McGrath  <roland@hack.frob.com>
23716
23717         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
23718         (PREPARE_VERSION): Just use assert instead, it will be elided
23719         under [NDEBUG] anyway.
23720
23721 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23722
23723         * sysdeps/unix/sysv/linux/Makefile: Include
23724         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
23725         (sysdep_routines): Remove sysctl.
23726         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
23727         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
23728         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
23729         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
23730         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
23731
23732 2012-05-22  Andreas Jaeger  <aj@suse.de>
23733
23734         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
23735         that pseudo_end is just ret and the stack pointer is correct also
23736         for static library in error case.
23737
23738 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23739
23740         [BZ #14122]
23741         * nss/nsswitch.c (defconfig_entries): New variable.
23742         (__nss_database_lookup): Don't leak defconfig entries.
23743         (nss_parse_service_list): Don't leak on error paths.
23744         (free_database_entries): New function.
23745         (free_defconfig): New function.
23746         (free_mem): Move common code to free_database_entries.
23747
23748 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23749
23750         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
23751         Add arch_prctl.
23752         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
23753
23754         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
23755         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
23756         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
23757         New macro.
23758         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
23759         (INTERNAL_SYSCALL_TYPES): Likewise.
23760         (LOAD_ARGS_TYPES_[1-6]): Likewise.
23761         (LOAD_REGS_TYPES_[1-6]): Likewise.
23762         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
23763         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
23764
23765 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23766
23767         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
23768         copysignl for GLIBC_2_0.
23769         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
23770         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
23771         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
23772         logbl for GLIBC_2_0.
23773         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23774         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23775
23776 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23777
23778         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
23779         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23780
23781         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23782         Use "neg %eax".
23783
23784         * time/mktime.c: Update copyright years.
23785
23786 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23787
23788         mktime: merge comment-quoting-style change from gnulib
23789         * time/mktime.c: Quote 'like this' in comments.
23790         The GNU coding standards suggest that we no longer quote `like this',
23791         as "`" and "'" are typically rendered asymmetrically nowadays.
23792         The typical gnulib style is to quote 'like this' when quoting
23793         code, and "like this" when quoting English.
23794
23795         * time/mktime.c (compile-command): Add "-I.".
23796
23797         mktime: merge mktime-internal.h change from gnulib
23798         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
23799
23800         mktime: merge time_r change from gnulib
23801         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
23802
23803         mktime: merge DEBUG change from gnulib
23804         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
23805         case system <time.h> has a #define.
23806
23807         mktime: merge <sys/types.h> change from gnulib
23808         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
23809         since <time.t> is now guaranteed to define time_t.
23810
23811         mktime: merge HAVE_CONFIG_H change from gnulib
23812         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
23813
23814 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23815
23816         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23817         Use "neg %eax".
23818
23819         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
23820         __rlim_t cast.
23821         (struct rusage): Use anonymous union to pad each field to
23822         __syscall_slong_t.
23823
23824 2012-05-21  David S. Miller  <davem@davemloft.net>
23825
23826         * Makefules (o-iterator): Remove .s cases.
23827         (compile-command.s): Delete.
23828         (COMPILE.s): Delete.
23829         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
23830
23831 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
23832
23833         * configure.in (libc_cv_predef_stack_protector): Only consider
23834         "foobar" and "__stack_chk_fail" lines in libc_undefs.
23835         * configure: Regenerated.
23836
23837 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23838
23839         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23840         New macro.  Use R*LP on int and pointer.
23841         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
23842         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
23843         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
23844         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
23845
23846         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
23847         [__WORDSIZE_TIME64_COMPAT32] instead of
23848         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
23849         (struct utmp): Likewise.
23850         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
23851         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
23852         Renamed to ...
23853         (__WORDSIZE_TIME64_COMPAT32): This.
23854         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
23855         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
23856         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
23857         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
23858         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
23859         (__WORDSIZE_TIME64_COMPAT32): New macro.
23860
23861 2012-05-21  Andreas Jaeger  <aj@suse.de>
23862
23863         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
23864         only if [SHARED]. Add prototype for __wcschr_ia32.
23865
23866 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23867
23868         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
23869         of %rbp unmolested in the jmp_buf while mangling the low bits.
23870         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
23871         unmolested high bits of %rbp while demangling the low bits.
23872         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23873
23874 2012-05-21  Andreas Jaeger  <aj@suse.de>
23875
23876         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
23877         * sunrpc/svc_simple.c: Use it for registerrpc.
23878         * sunrpc/xcrypt.c: Use it for passwd2des.
23879
23880         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
23881
23882 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23883
23884         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
23885         Don't define if [__SYSCALL_WORDSIZE != 32].
23886         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
23887         New macro.
23888
23889 2012-05-21  Bruno Haible  <bruno@clisp.org>
23890             Andreas Jaeger  <aj@suse.de>
23891
23892         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
23893         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
23894         inptr and inend for must_buffer_ch.
23895         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
23896         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
23897         * stdio-common/Makefile (tests): Remove bug15.
23898         (bug15-ENV): Remove macro.
23899         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
23900         anymore.
23901
23902 2012-05-19  Andreas Jaeger  <aj@suse.de>
23903             Roland McGrath  <roland@hack.frob.com>
23904
23905         * manual/contrib.texi: Completely rewritten. It contains now an
23906         alphabetical list of contributors and their contributions.
23907
23908 2012-05-21  Richard Henderson  <rth@twiddle.net>
23909
23910         * misc/getauxval.c (__getauxval): Use unsigned long int.
23911         * misc/sys/auxv.h: Include <sys/cdefs.h>.
23912         (getauxval): Use unsigned long int.
23913
23914 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23915
23916         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23917
23918 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23919
23920         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
23921         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
23922         __alignof__ (long double).
23923
23924 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23925
23926         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23927
23928 2012-05-20  Richard Henderson  <rth@twiddle.net>
23929
23930         * misc/getauxval.c: New file.
23931         * misc/sys/auxv.h: New file.
23932         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
23933         (routines): Add getauxval.
23934         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
23935         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
23936         * elf/dl-sysdep.c (_dl_auxv): Remove.
23937         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
23938         * elf/dl-support.c (_dl_auxv): New variable.
23939         (_dl_aux_init): Initialize it.
23940         * manual/startup.texi (Auxiliary Vector): New node.
23941         * sysdeps/generic/bits/hwcap.h: New file.
23942         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
23943         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
23944         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
23945         * sysdeps/sparc/sysdep.h: ... here.  Include it.
23946         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
23947         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
23948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23949         Update.
23950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
23951         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
23952         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
23953         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
23954         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23955         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23956         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
23957         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
23958
23959 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23960
23961         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23962
23963 2012-05-19  David S. Miller  <davem@davemloft.net>
23964
23965         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23966
23967 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23968
23969         [BZ #14123]
23970         * math/s_ccosh.c: Include <float.h>
23971         (__ccosh): Avoid internal overflow calculating sinh and cosh
23972         values before multiplying by sin and cos values.
23973         * math/s_ccoshf.c: Likewise.
23974         * math/s_ccoshl.c: Likewise.
23975         * math/s_csin.c: Likewise.
23976         * math/s_csinf.c: Likewise.
23977         * math/s_csinl.c: Likewise.
23978         * math/s_csinh.c: Likewise.
23979         * math/s_csinhf.c: Likewise.
23980         * math/s_csinhl.c: Likewise.
23981         * math/libm-test.inc (ccos_test): Add more tests.
23982         (ccosh_test): Likewise.
23983         (csin_test): Likewise.
23984         (csinh_test): Likewise.
23985         * sysdeps/i386/fpu/libm-test-ulps: Update.
23986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23987
23988 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
23989
23990         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
23991         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
23992
23993         * sysdeps/x86_64/x32/_itoa.h: Add comment.
23994
23995 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23996
23997         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
23998         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
23999         * sysdeps/powerpc/soft-fp/Versions: Likewise.
24000         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
24001         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
24002         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
24003         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
24004         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
24005         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
24006         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
24007         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
24008         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
24009         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
24010         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
24011         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
24012         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
24013         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
24014         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
24015         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
24016         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
24017         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
24018         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
24019         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
24020         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
24021         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
24022         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
24023         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
24024         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
24025         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
24026         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
24027         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
24028
24029 2012-05-18  Andreas Jaeger  <aj@suse.de>
24030
24031         * csu/.gitignore: Delete.
24032
24033 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24034
24035         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
24036         (timex): Use __syscall_slong_t.
24037
24038 2012-05-18  Andreas Jaeger  <aj@suse.de>
24039             Carlos O'Donell  <carlos_odonell@mentor.com>
24040
24041         * manual/install.texi (Configuring and compiling): Update
24042         description about files modified in the source directory.
24043         * INSTALL: Regenerated.
24044
24045 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24046
24047         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
24048         value.  Use "or" to set return value to -1.
24049         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
24050         negate return value.
24051
24052 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24053
24054         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
24055         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
24056         failure if the compiler has Graphite support disabled.
24057         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
24058         Likewise.
24059         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
24060         CFLAGS-memmove.c): Likewise.
24061         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
24062         Likewise.
24063
24064 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24065
24066         * sysdeps/x86_64/x32/_itoa.h: New file.
24067
24068         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
24069         getdents system call only if kernel and user dirents have the
24070         same d_ino and d_off.
24071
24072         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
24073         LLONG_MAX != LONG_MAX.
24074         (_itoa_word): Use _ITOA_WORD_TYPE on value.
24075         (_fitoa_word): Likewise.
24076
24077         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
24078         years.
24079         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
24080         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
24081         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
24082
24083         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
24084         include <bits/wordsize.h>.  Check __x86_64__ instead of
24085         __WORDSIZE.
24086         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
24087         if __x86_64__ is defined.  Use anonymous union on fpstate.
24088
24089         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
24090         anonymous union.
24091
24092 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
24093
24094         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
24095         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
24096         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
24097         Refer to _rtld_local_ro instead of _rtld_global_ro.
24098         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
24099         Likewise.
24100         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
24101         Likewise.
24102         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
24103         Likewise.
24104         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
24105         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
24106         of _rtld_global, and rtld_progname instead of _dl_argv[0].
24107
24108         * sysdeps/powerpc/powerpc32/dl-machine.c
24109         (__elf_machine_runtime_setup) [PROF]: Don't reference
24110         _dl_prof_resolve.
24111
24112 2012-05-18  Andreas Jaeger  <aj@suse.de>
24113
24114         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
24115         function only available for GCCs before 3.4 since GCC 3.4
24116         introduced a builtin.
24117         (lrint): Likewise.
24118         (llrintf): Likewise.
24119         (llrint): Likewise.
24120         (fmaxf): Likewise.
24121         (fmax): Likewise.
24122         (fminf): Likewise.
24123         (fmin): Likewise.
24124         (rint): Likewise.
24125         (rintf): Likewise.
24126         (nearbyint): Likewise.
24127         (nearbyintf): Likewise.
24128         (ceil): Likewise.
24129         (ceilf): Likewise.
24130         (floor): Likewise.
24131         (floorf): Likewise.
24132
24133 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24134
24135         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
24136         on both fields and cast pointer to __syscall_ulong_t.
24137
24138         * bits/types.h (__fsword_t): New type.
24139         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
24140         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
24141         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24142         (__FSWORD_T_TYPE): Likewise.
24143         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24144         (__FSWORD_T_TYPE): Likewise.
24145         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24146         (__FSWORD_T_TYPE): Likewise.
24147         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
24148         (__FSWORD_T_TYPE): Likewise.
24149         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
24150         __SWORD_TYPE with __fsword_t.
24151         (statfs64): Likewise.
24152
24153 2012-05-17  David S. Miller  <davem@davemloft.net>
24154
24155         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
24156
24157 2012-05-17  Andreas Jaeger  <aj@suse.de>
24158
24159         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
24160         warning.
24161
24162 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24163
24164         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
24165
24166 2012-05-17  Andreas Jaeger  <aj@suse.de>
24167
24168         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
24169         when it is used.
24170
24171 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24172
24173         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
24174
24175 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24176
24177         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
24178         * sysdeps/x86_64/tst-mallocalign1.c: New file.
24179
24180 2012-05-17  Andreas Jaeger  <aj@suse.de>
24181             Carlos O'Donell  <carlos_odonell@mentor.com>
24182
24183         [BZ #14059]
24184         * sysdeps/x86_64/multiarch/init-arch.h
24185         (bit_YMM_Usable): Rename to...
24186         (bit_AVX_Usable): ... this.
24187         (bit_FMA4_Usable): New macro.
24188         (bit_XMM_state): New macro.
24189         (bit_YMM_state): New macro.
24190         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
24191         [__ASSEMBLER__] (index_AVX_Usable): ... this.
24192         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
24193         (CPUID_OSXSAVE): New macro.
24194         (CPUID_AVX): New macro.
24195         (CPUID_FMA4): New macro.
24196         (index_YMM_Usable): Rename to...
24197         (index_AVX_Usable): ... this.
24198         (HAS_AVX): Use HAS_ARCH_FEATURE.
24199         (HAS_FMA4): Likewise.
24200         (HAS_YMM_USABLE): Remove.
24201         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24202         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
24203         are present.
24204         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
24205         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
24206         * sysdeps/x86_64/multiarch/Makefile: Likewise.
24207         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
24208         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
24209
24210 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24211
24212         * math/libm-test.c: Support platforms without multiple rounding modes.
24213         * math/bug-nextafter.c: Support platforms without FP exceptions.
24214         * math/bug-nexttoward.c: Likewise.
24215         * math/test-fenv.c: Likewise.
24216         * math/test-misc.c: Likewise.
24217         * stdlib/bug-getcontext.c: Likewise.
24218
24219 2012-05-17  Andreas Jaeger  <aj@suse.de>
24220
24221         * manual/examples/search.c (critter_cmp): Change signature to
24222         avoid warnings.
24223         * manual/string.texi (Collation Functions): Likewise.
24224
24225 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24226
24227         * bits/types.h: Fold copyright years.
24228         * bits/typesizes.h: Likewise.
24229         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
24230         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
24231         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
24232         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
24233         * time/time.h: Likewise.
24234
24235 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
24236
24237         [BZ #208]
24238         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
24239         in instead of returning them.  Return void.
24240         (__libc_mallinfo): Accumulate over all arenas.
24241         (__malloc_stats): Adjust for change in int_mallinfo interface.
24242
24243 2012-05-16  Roland McGrath  <roland@hack.frob.com>
24244
24245         [BZ #10375]
24246         * configure.in (NM): Add AC_CHECK_TOOL for it.
24247         (libc_extra_cflags): New substituted variable.
24248         Check for -fstack-protector being used implicitly.
24249         * configure: Regenerated.
24250         * config.make.in (config-extra-cflags): New variable,
24251         gets @libc_extra_cflags@.
24252         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
24253
24254         [BZ #10375]
24255         * configure.in: Check for _FORTIFY_SOURCE being predefined.
24256         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
24257         * configure: Regenerated.
24258         * config.make.in (CPPUNDEFS): New substituted variable.
24259         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
24260         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
24261         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
24262
24263 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24264
24265         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
24266         (mq_attr): Use __syscall_slong_t.
24267
24268 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24269
24270         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
24271         Check __x86_64__ instead of __WORDSIZE.
24272         (_STAT_VER_LINUX): Likewise.
24273         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
24274         __syscall_ulong_t and __syscall_slong_t.
24275         (stat64): Likewise.
24276
24277 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24278
24279         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
24280
24281 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24282
24283         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
24284
24285 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24286
24287         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
24288         __syscall_ulong_t.
24289
24290         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
24291         include <bits/wordsize.h>.  Check __x86_64__ instead of
24292         __WORDSIZE.
24293         (greg_t): Use "__extension__ long long int" if __x86_64__ is
24294         defined.
24295         (mcontext_t): Replace "unsigned long" with "unsigned long long".
24296
24297         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
24298         include <bits/wordsize.h>.  Check __x86_64__ instead of
24299         __WORDSIZE.
24300         (user_regs_struct): Use "__extension__ unsigned long long"
24301         instead of "unsigned long" if __x86_64__ is defined.
24302         (user): Likewise.  Pad after pointer field if __ILP32__ is
24303         defined.
24304
24305 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
24306
24307         * configure.in (makeinfo): Require version 4.5 or later.  Allow
24308         versions 5 to 9.
24309         * configure: Regenerated.
24310         * manual/install.texi (texinfo): Increase version requirement to
24311         4.5 or later.
24312         * INSTALL: Regenerated.
24313
24314         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
24315
24316 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24317
24318         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
24319
24320         * sysdeps/x86_64/x32/ffs.c: New file.
24321
24322         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
24323         __syscall_ulong_t.
24324         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
24325         defined.  Use __syscall_ulong_t.
24326         (shminfo): Use __syscall_ulong_t.
24327         (shm_info): Likewise.
24328
24329         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
24330         __syscall_ulong_t.
24331
24332         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
24333         <bits/wordsize.h>.
24334         (msgqnum_t): Use __syscall_ulong_t.
24335         (msglen_t): Likewise.
24336         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
24337         __syscall_ulong_t.
24338
24339         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
24340         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24341
24342         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
24343
24344         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
24345         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
24346
24347         * sysvipc/sys/msg.h (msgbuf): Replace long int with
24348         __syscall_slong_t.
24349
24350         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
24351         include <bits/wordsize.h>.  Check __x86_64__ instead of
24352         __WORDSIZE.
24353
24354         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
24355         "unsigned long long int" if __x86_64__ is defined.
24356         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
24357
24358         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
24359         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24360         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
24361
24362         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
24363         <stdint.h>.
24364         (GET_PC): Cast to uintptr_t first.
24365         (GET_FRAME): Likewise.
24366         (GET_STACK): Likewise.
24367
24368         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
24369         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
24370         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
24371         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
24372         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
24373         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
24374         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
24375         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
24376         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24377         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
24378         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
24379         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
24380         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
24381         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
24382         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
24383         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
24384         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
24385         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
24386         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
24387         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
24388         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
24389         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
24390         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
24391         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
24392         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
24393         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
24394         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
24395         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
24396         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
24397
24398 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
24399
24400         * Makerules (+depfiles): Also collect depfiles from .oS in
24401         $(extra-objs).
24402         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
24403         .oS, $(libnldbl-routines)).
24404
24405         * Makerules (native-compile-mkdep-flags): Define.
24406         * sunrpc/Makefile (extra-objs): Add $(addprefix
24407         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
24408         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
24409         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
24410         calling $(make-target-directory).
24411
24412 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24413
24414         * bits/types.h (__snseconds_t): Removed.
24415         * time/time.h (struct timespec): Replace __snseconds_t with
24416         __syscall_slong_t.
24417         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
24418         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
24419         Likewise.
24420         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24421         (__SNSECONDS_T_TYPE): Likewise.
24422         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24423         (__SNSECONDS_T_TYPE): Likewise.
24424         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24425         (__SNSECONDS_T_TYPE): Likewise.
24426
24427 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24428
24429         * sysdeps/mach/hurd/bits/typesizes.h
24430         (__SYSCALL_SLONG_TYPE): New macro.
24431         (__SYSCALL_ULONG_TYPE): Likewise.
24432
24433 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24434
24435         * bits/types.h (__syscall_slong_t): New type.
24436         (__syscall_ulong_t): Likewise.
24437
24438         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
24439         (__SYSCALL_ULONG_TYPE): Likewise.
24440         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24441         (__SYSCALL_SLONG_TYPE): Likewise.
24442         (__SYSCALL_ULONG_TYPE): Likewise.
24443         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24444         (__SYSCALL_SLONG_TYPE): Likewise.
24445         (__SYSCALL_ULONG_TYPE): Likewise.
24446         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24447         (__SYSCALL_SLONG_TYPE): Likewise.
24448         (__SYSCALL_ULONG_TYPE): Likewise.
24449
24450 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24451
24452         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
24453         Add sigaltstack-offsets.sym.
24454         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
24455         <sigaltstack-offsets.h>.
24456         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
24457         longjmp_msg pointer.
24458         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
24459         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
24460         signal stack.
24461         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
24462
24463 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24464
24465         * elf/stackguard-macros.h: Remove file.
24466         * sysdeps/generic/stackguard-macros.h: New file.
24467         * sysdeps/i386/stackguard-macros.h: Likewise.
24468         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
24469         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
24470         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
24471         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
24472         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
24473         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
24474         * sysdeps/x86_64/stackguard-macros.h: Likewise.
24475         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
24476         <elf/stackguard-macros.h>.
24477
24478         [BZ #14109]
24479         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
24480         __aligned__ in attribute.
24481         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
24482         (gregset_t): Likewise.
24483
24484 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24485
24486         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
24487         * sysdeps/x86_64/64/Implies-after: Here.  New file.
24488         * sysdeps/x86_64/x32/Implies-after: New file.
24489
24490 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24491
24492         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
24493         and access return value for _dl_profile_fixup.  Use R10_LP to
24494         load frame size.
24495
24496 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24497
24498         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
24499
24500 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24501
24502         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
24503         * sysdeps/x86_64/x32/sysdep.h: New file.
24504
24505 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24506
24507         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
24508         * sysdeps/x86_64/setjmp.S: Likewise.
24509
24510 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24511
24512         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
24513         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
24514         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
24515         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
24516         remove unused global constant.
24517
24518 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
24519
24520         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
24521         include of <not-cancel.h>.
24522
24523 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24524
24525         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
24526
24527 2012-05-15  Jeff Law  <law@redhat.com>
24528             Andreas Jaeger  <aj@suse.de>
24529
24530         [BZ #13594]
24531         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
24532         out from...
24533         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
24534         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
24535         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
24536         code changing __hst_map_handle.map.
24537
24538 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24539
24540         * configure.in (sysnames): Look for Implies-before and Implies-after
24541         files.
24542         * configure: Regenerated.
24543
24544 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24545
24546         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
24547         8-byte data alignment with LP_SIZE alignment.
24548
24549 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24550
24551         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
24552         into R10_LP.
24553
24554 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24555
24556         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
24557
24558 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24559
24560         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
24561         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
24562         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
24563         Likewise.
24564         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
24565
24566 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24567
24568         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
24569         (stackinfo_sub_sp): Likewise.
24570
24571 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24572
24573         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
24574         RAX_LP.
24575
24576 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24577
24578         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
24579         into R*_LP.
24580
24581 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24582
24583         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
24584         sizes into R*_LP.
24585
24586 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24587
24588         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
24589
24590 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24591
24592         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
24593         into R11_LP and load __x86_64_shared_cache_size_half into
24594         R8_LP.
24595
24596 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24597
24598         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
24599         R8_LP.
24600
24601 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24602
24603         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
24604         logb for POWER7.
24605         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
24606         logbf for POWER7.
24607         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
24608         logbl for POWER7.
24609         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
24610         powerpc32/power7/fpu/s_logb.c via #include.
24611         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
24612         powerpc32/power7/fpu/s_logbf.c via #include.
24613         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
24614         powerpc32/power7/fpu/s_logbl.c via #include.
24615
24616 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24617
24618         * README.libm: Remove file.
24619
24620 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24621
24622         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
24623         count for x32.  Use R*_LP and omit operand-size suffix.
24624
24625 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24626
24627         * shlib-versions: Move x86_64-.*-linux.* entries to ...
24628         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
24629         * sysdeps/x86_64/x32/shlib-versions: New file.
24630
24631 2012-05-14  Roland McGrath  <roland@hack.frob.com>
24632
24633         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
24634         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
24635         Use _dl_fatal_printf instead.
24636
24637 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24638
24639         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
24640         set if not set by the user.  Do not allow for being unset.
24641         * sysdeps/unix/sysv/linux/configure: Regenerated.
24642
24643 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24644
24645         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
24646         the `q' suffix from lea and replace .quad with ASM_ADDR.
24647
24648 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24649
24650         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
24651         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
24652         instead of $17.
24653         (PTR_DEMANGLE): Likewise.
24654
24655 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24656
24657         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
24658         (LP_OP): Likewise.
24659         (ASM_ADDR): Likewise.
24660         (RAX_LP): Likewise.
24661         (RBP_LP): Likewise.
24662         (RBX_LP): Likewise.
24663         (RCX_LP): Likewise.
24664         (RDI_LP): Likewise.
24665         (RSI_LP): Likewise.
24666         (RSP_LP): Likewise.
24667         (R8_LP): Likewise.
24668         (R9_LP): Likewise.
24669         (R10_LP): Likewise.
24670         (R10_LP): Likewise.
24671         (R11_LP): Likewise.
24672         (R12_LP): Likewise.
24673         (R13_LP): Likewise.
24674         (R14_LP): Likewise.
24675         (R15_LP): Likewise.
24676
24677 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24678
24679         * sysdeps/x86_64/x32/dl-machine.h: New file.
24680
24681 2012-05-14  Andreas Jaeger  <aj@suse.de>
24682
24683         * manual/Makefile (subdir): Remove export of subdir.
24684         (all): Remove target.
24685         (.PHONY): Remove all from list.
24686         (mkinstalldirs): Remove.
24687         (.PHONY): Remove installdirs from list.
24688         ($(inst_infodir)/libc.info): Use make-target-directory.
24689         (installdirs): Remove.
24690         (subdir_%): Remove.
24691         (glibc-targets): Remove.
24692         (lib): Remove.
24693         (stubs): Remove.
24694         ($(objpfx)stubs ../po/manual.pot): Remove.
24695         ($(objpfx)stamp%): Remove.
24696         (make-target-directory): Remove.
24697         (subdir_install): Remove.
24698         (routines): Remove.
24699         (aux): Remove.
24700         (sources): Remove.
24701         (objects): Remove.
24702         (headers): Remove.
24703
24704         [BZ #13750]
24705         * manual/.gitignore: Remove, it's not needed anymore.
24706         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
24707         all files in it.
24708         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
24709         directory.
24710         (texis): Renamed to $(objpfx)texis.
24711         (texis-path): New, contains path to generated files.
24712         (chapters.%): Use texis-path for complete path, add extra argument
24713         libc-texinfo.sh.
24714         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
24715         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
24716         (summary,texi, stamp-summary): Use complete path of
24717         files. Generate files in build dir.
24718         (dir-add.texi): Build in build dir.
24719         (libm-err.texi,stamp-libm-err): Likewise.
24720         (version.texi, stamp-version): Likewise.
24721         (.%c.texi): Likewise.
24722         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
24723         (mostlyclean): Remove target.
24724         (realclean): Remove target.
24725         (generated): Add new variable with contents from mostlyclean and
24726         realclean, remove entries duplicated in common-mostlyclean, add
24727         stamp-libm-err and stamp-version.
24728         (generated-dirs): Add libc directory.
24729         ($(inst_infodir)/libc.info): Install files from build dir.
24730
24731         * manual/install.texi (Configuring and compiling): Adjust since
24732         the info files are not part of the tar ball anymore.
24733
24734 2012-05-14  Andreas Jaeger  <aj@suse.de>
24735
24736         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
24737         variable.
24738
24739 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24740
24741         [BZ #13717]
24742         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
24743         to 2.2.0 where earlier.
24744         * sysdeps/unix/sysv/linux/configure: Regenerated.
24745         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
24746         Remove conditional code.
24747         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
24748         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
24749         Remove conditional code.
24750         [!__NR_lchown]: Likewise.
24751         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24752         [__NR_lchown]: Likewise.
24753         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
24754         comment referencing __ASSUME_LCHOWN_SYSCALL.
24755         * sysdeps/unix/sysv/linux/i386/sigaction.c
24756         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24757         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24758         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
24759         Remove conditional code.
24760         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
24761         (__protocol_available): Remove #if 0 code.
24762         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
24763         conditional code.
24764         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
24765         * sysdeps/unix/sysv/linux/kernel-features.h
24766         (__ASSUME_GETCWD_SYSCALL): Don't define.
24767         (__ASSUME_REALTIME_SIGNALS): Likewise.
24768         (__ASSUME_PREAD_SYSCALL): Likewise.
24769         (__ASSUME_PWRITE_SYSCALL): Likewise.
24770         (__ASSUME_POLL_SYSCALL): Likewise.
24771         (__ASSUME_LCHOWN_SYSCALL): Likewise.
24772         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
24773         non-SPARC.
24774         (__ASSUME_SIOCGIFNAME): Don't define.
24775         (__ASSUME_MSG_NOSIGNAL): Likewise.
24776         (__ASSUME_SENDFILE): Define unconditionally.
24777         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
24778         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
24779         conditional code.
24780         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
24781         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
24782         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24783         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24784         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
24785         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24786         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
24788         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24789         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
24791         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24792         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
24794         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24795         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
24797         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24798         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
24800         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24801         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
24803         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24804         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
24806         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24807         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
24809         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24810         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24811         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
24812         Remove conditional code.
24813         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24814         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24815         Remove conditional code.
24816         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24817         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
24818         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
24819         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24820         Remove conditional code.
24821         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24822         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
24823         Remove conditional code.
24824         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24825         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
24826         Remove conditional code.
24827         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24828         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24829         Remove conditional code.
24830         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24831         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24832         Remove conditional code.
24833         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24834         * sysdeps/unix/sysv/linux/sh/pwrite64.c
24835         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24836         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24837         * sysdeps/unix/sysv/linux/sigaction.c
24838         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24839         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24840         * sysdeps/unix/sysv/linux/sigpending.c
24841         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24842         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24843         * sysdeps/unix/sysv/linux/sigprocmask.c
24844         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24845         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24846         * sysdeps/unix/sysv/linux/sigsuspend.c
24847         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24848         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24849         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
24850         (__libc_missing_rt_sigs): Remove.
24851         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
24852         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
24853         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
24854         Remove conditional code.
24855         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
24856         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
24857         return 1.
24858         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
24859         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
24860         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
24861         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
24862
24863 2012-05-14  Andreas Jaeger  <aj@suse.de>
24864
24865         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
24866         it's not used in glibc.
24867         (__coshm1): Likewise.
24868         (__acosh1p): Likewise.
24869         (__sgn): Likewise.
24870
24871         * manual/string.texi (Copying and Concatenation): Add missing
24872         variable in concat example.
24873         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
24874
24875 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24876
24877         [BZ #14103]
24878         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
24879         __builtin_clzl with __builtin_clzll.
24880
24881 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24882
24883         [BZ #14104]
24884         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
24885         libc_freeres_ptr.
24886
24887 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24888
24889         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
24890         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
24891         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
24892         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
24893
24894 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
24895
24896         * NEWS: Update ia64 info.
24897
24898 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
24899
24900         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
24901         used as bcopy.
24902
24903 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
24904
24905         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
24906         * sysdeps/unix/syscalls.list (dup3): Likewise.
24907         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
24908         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
24909
24910 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24911
24912         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
24913         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
24914
24915 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24916
24917         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
24918         thread pointer.
24919         (TLS_IE): Use mov/add instead of movq/addq to load thread
24920         pointer.
24921         (TLS_GD_PREFIX): New.
24922         (TLS_GD): Use it.
24923
24924 2012-05-11  David S. Miller  <davem@davemloft.net>
24925
24926         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
24927         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
24928         (_FPU_SETCW): Likewise.
24929
24930 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24931
24932         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
24933         is 32-byte aligned.
24934
24935 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
24936
24937         [BZ #11837]
24938         * iconvdata/gb18030.c: Update tables.
24939         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
24940         characters specially.
24941         (BODY for TO_LOOP): Add encoding of missing ranges.
24942
24943 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
24944
24945         [BZ #13673]
24946         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
24947         * sysdeps/mach/hurd/dup3.c: Likewise.
24948         * sysdeps/mach/hurd/readlinkat.c: Likewise.
24949         * sysdeps/powerpc/memmove.c:: Likewise.
24950
24951 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24952
24953         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
24954         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
24955
24956 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24957
24958         * elf/elf.h (R_X86_64_RELATIVE64): New.
24959         (R_X86_64_NUM): Updated.
24960         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
24961         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
24962         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
24963         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
24964         tst-quad1pie tst-quad2pie
24965         (modules-names): Add tst-quadmod1 tst-quadmod2.
24966         ($(objpfx)tst-quad1): New dependency.
24967         ($(objpfx)tst-quad2): Likewise.
24968         ($(objpfx)tst-quad1pie): Likewise.
24969         ($(objpfx)tst-quad2pie): Likewise.
24970         * sysdeps/x86_64/tst-quad1.c: New file.
24971         * sysdeps/x86_64/tst-quad1pie.c: New file.
24972         * sysdeps/x86_64/tst-quad2.c: Likewise.
24973         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
24974         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
24975         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
24976         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
24977         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
24978
24979 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24980
24981         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
24982         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
24983         * streams/stropts.h (t_scalar_t): Define type.
24984
24985         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
24986         (_PATH_PRESERVE): Set to "/var/lib".
24987         (_PATH_RWHODIR): Set to "/var/spool/rwho".
24988
24989         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
24990         instead of int.
24991
24992         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
24993         if __dir_mkfile succeeded.
24994
24995         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
24996         checking for _hurd_dtablesize.  Unlock it right after having
24997         finished _hurd_dtable allocation.
24998
24999 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25000
25001         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
25002         * sysdeps/mach/hurd/configure: Regenerated.
25003         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
25004         special-casing to...
25005         * sysdeps/gnu/configure.in: ... this new file.
25006         * sysdeps/unix/sysv/linux/configure: Regenerated.
25007         * sysdeps/gnu/configure: New generated file.
25008
25009         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
25010         for Linux: use nsec instead of usec, as well as:
25011         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
25012         members of type struct timespec.
25013         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
25014         New macros.
25015         (struct stat64): Likewise.
25016         (_STATBUF_ST_NSEC): New macro.
25017         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
25018
25019         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
25020         __strtoul_internal rather than strtoul.
25021
25022 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25023
25024         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
25025         and reject them.
25026
25027 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25028
25029         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
25030         which preserves existing values.
25031         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
25032
25033 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25034
25035         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
25036         TIMEOUT values.  Return EINVAL for NFDS values either negative or
25037         greater than FD_SETSIZE.
25038
25039 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25040
25041         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
25042         allocated, call __vm_protect to finish enabling the existing space, and
25043         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
25044         allocate the remainder.
25045
25046 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25047
25048         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
25049         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
25050
25051 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25052
25053         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
25054         sysdeps/mach/hurd/readlink.c.
25055
25056         * posix/tst-sysconf.c (posix_options): Only use
25057         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
25058         _POSIX_SYNCHRONIZED_IO when they are defined
25059         * sysdeps/mach/hurd/bits/posix_opt.h:
25060         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
25061         (_XOPEN_REALTIME): Undefine macro.
25062         (_XOPEN_REALTIME_THREADS): Undefine macro.
25063         (_XOPEN_SHM): Undefine macro.
25064         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
25065         macro to -1.
25066         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
25067         macro to -1.
25068         (_POSIX_ASYNC_IO): Undefine macro.
25069         (_POSIX_PRIORITIZED_IO): Undefine macro.
25070         (_POSIX_SPIN_LOCKS): Define macro to -1.
25071
25072         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
25073         SA_NODEFER, SA_RESETHAND.
25074         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
25075         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
25076         F_DUPFD_CLOEXEC.
25077
25078 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25079
25080         * elf/Makefile (pldd-modules): Define unconditionally.
25081
25082 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25083
25084         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
25085
25086 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25087
25088         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
25089         Return ENOENT when name is empty.
25090         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
25091
25092 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25093
25094         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
25095
25096         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
25097
25098 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25099
25100         Fix mlock in all cases except non-readable pages.
25101         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
25102         instead of VM_PROT_ALL as parameter to __vm_wire function.
25103
25104         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
25105         (__mkdir): When path is `/', just fail with EEXIST.
25106         * sysdeps/mach/hurd/mkdirat.c: Likewise.
25107
25108 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25109
25110         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
25111         <sys/uio.h> (for writev).
25112         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
25113         and <sys/param.h> (for MIN).
25114
25115 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25116
25117         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
25118         REQUESTED_TIME.  Properly set the remaining time and return EINTR
25119         if interrupted.
25120
25121 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25122
25123         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
25124         Depend on against $(link-rpcuserlibs).
25125
25126 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25127
25128         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
25129         (__libc_stack_end): Do not use attribute_relro.
25130         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
25131         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
25132         to libthread-provided value.
25133         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
25134         attribute_relro.
25135
25136 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25137
25138         [BZ #3748]
25139         * bits/libc-lock.h (__libc_once_get): New macro.
25140         * sysdeps/mach/bits/libc-lock.h: Likewise.
25141         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
25142         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
25143         instead of using implementation details.
25144
25145         * libio/fileops.c: Unconditionally include <kernel-features.h>.
25146         * libio/freopen.c: Likewise.
25147         * libio/freopen64.c: Likewise.
25148         * misc/syslog.c: Likewise.
25149         * nscd/connections.c: Likewise.
25150         * nscd/netgroupcache.c: Likewise.
25151         * sysdeps/posix/getcwd.c: Likewise.
25152
25153 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25154
25155         * math/w_ilogbf.c: Add #include <limits.h>.
25156
25157 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25158
25159         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
25160         path instead of returning without unlocking.
25161
25162         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
25163         immediate-write ioctls.
25164         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
25165
25166 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25167
25168         * sysdeps/mach/hurd/i386/init-first.c (init): Use
25169         __builtin_frame_address instead of making assumptions about the
25170         location of the return address relative to DATA.  Force early load of
25171         the return address.
25172         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
25173         __builtin_frame_address.
25174
25175         dup3 for GNU Hurd.
25176         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
25177         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
25178         implement dup3 and do some further code clean-ups.
25179         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
25180         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
25181
25182 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25183
25184         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
25185
25186         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
25187         HURD_CRITICAL_END around holding _hurd_dtable_lock.
25188         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
25189         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
25190         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
25191         d->port.lock.
25192
25193         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
25194         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
25195         when handler == SIG_ERR, not when handler != SIG_ERR.
25196
25197 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25198
25199         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
25200         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
25201         definitions.
25202
25203         accept4 for GNU Hurd.
25204         * include/sys/socket.h (__libc_accept4): New prototype.
25205         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
25206         to implement __libc_accept4.
25207         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
25208         __libc_accept4.
25209         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
25210
25211         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
25212         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
25213         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
25214         signal-defines.sym.
25215
25216 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25217
25218         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
25219
25220 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25221
25222         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
25223         assertion on O_CLOEXEC flag.
25224         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
25225         * hurd/intern-fd.c: Likewise.
25226         * hurd/port2fd.c: Likewise.
25227
25228 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25229
25230         [BZ #3906]
25231         * bits/in.h (IPV6_PKTINFO): Define new macro.
25232         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
25233
25234 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25235
25236         [BZ #13954]
25237         [BZ #13955]
25238         [BZ #13956]
25239         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
25240         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
25241         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
25242         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
25243         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
25244         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
25245         * math/libm-test.inc (logb_test) : Additional logb tests.
25246
25247 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
25248             Andreas Jaeger  <aj@suse.de>
25249
25250         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
25251         * configure: Regenerated.
25252         * config.h.in (LINK_OBSOLETE_RPC): New macro.
25253         * config.make.in (link-obsolete-rpc): New substituted variable.
25254         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
25255         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
25256         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25257         (shared-only-routines): Don't set it under [link-obsolete-rpc],
25258         so that libc.a contains the symbols.
25259         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25260         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
25261         * sunrpc/auth_none.c: Likewise.
25262         * sunrpc/auth_unix.c: Likewise.
25263         * sunrpc/authdes_prot.c: Likewise.
25264         * sunrpc/authuxprot.c: Likewise.
25265         * sunrpc/clnt_gen.c: Likewise.
25266         * sunrpc/clnt_perr.c: Likewise.
25267         * sunrpc/clnt_raw.c: Likewise.
25268         * sunrpc/clnt_simp.c: Likewise.
25269         * sunrpc/clnt_tcp.c: Likewise.
25270         * sunrpc/clnt_udp.c: Likewise.
25271         * sunrpc/clnt_unix.c: Likewise.
25272         * sunrpc/des_crypt.c: Likewise.
25273         * sunrpc/des_soft.c: Likewise.
25274         * sunrpc/get_myaddr.c: Likewise.
25275         * sunrpc/key_call.c: Likewise.
25276         * sunrpc/key_prot.c: Likewise.
25277         * sunrpc/netname.c: Likewise.
25278         * sunrpc/pm_getmaps.c: Likewise.
25279         * sunrpc/pm_getport.c: Likewise.
25280         * sunrpc/pmap_clnt.c: Likewise.
25281         * sunrpc/pmap_prot.c: Likewise.
25282         * sunrpc/pmap_prot2.c: Likewise.
25283         * sunrpc/pmap_rmt.c: Likewise.
25284         * sunrpc/publickey.c: Likewise.
25285         * sunrpc/rpc_cmsg.c: Likewise.
25286         * sunrpc/rpc_common.c: Likewise.
25287         * sunrpc/rpc_dtable.c: Likewise.
25288         * sunrpc/rpc_prot.c: Likewise.
25289         * sunrpc/rpc_thread.c: Likewise.
25290         * sunrpc/rtime.c: Likewise.
25291         * sunrpc/svc.c: Likewise.
25292         * sunrpc/svc_auth.c: Likewise.
25293         * sunrpc/svc_raw.c: Likewise.
25294         * sunrpc/svc_run.c: Likewise.
25295         * sunrpc/svc_tcp.c: Likewise.
25296         * sunrpc/svc_udp.c: Likewise.
25297         * sunrpc/svc_unix.c: Likewise.
25298         * sunrpc/svcauth_des.c: Likewise.
25299         * sunrpc/xcrypt.c: Likewise.
25300         * sunrpc/xdr.c: Likewise.
25301         * sunrpc/xdr_array.c: Likewise.
25302         * sunrpc/xdr_float.c: Likewise.
25303         * sunrpc/xdr_intXX_t.c: Likewise.
25304         * sunrpc/xdr_mem.c: Likewise.
25305         * sunrpc/xdr_rec.c: Likewise.
25306         * sunrpc/xdr_ref.c: Likewise.
25307         * sunrpc/xdr_sizeof.c: Likewise.
25308         * sunrpc/xdr_stdio.c: Likewise.
25309
25310 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25311
25312         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
25313         change.  Update copyright years.
25314
25315 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25316
25317         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
25318
25319 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
25320             Joseph Myers  <joseph@codesourcery.com>
25321             Paul Pluzhnikov  <ppluzhnikov@google.com>
25322
25323         [BZ #14012]
25324         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
25325         requiring rpcgen.
25326         [cross-compiling] (extra-libs): Likewise.
25327         [cross-compiling] (extra-libs-others): Likewise.
25328         [cross-compiling] (librpcsvc-routines): Likewise.
25329         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
25330         [cross-compiling] (omit-deps): Likewise.
25331         (sunrpc-CPPFLAGS): New variable.
25332         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
25333         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
25334         (cross-rpcgen-objs): New variable.
25335         (extra-objs): Append $(cross-rpcgen-objs).
25336         ($(cross-rpcgen-objs)): New rule.
25337         ($(objpfx)cross-rpcgen): Likewise.
25338         (rpcgen-cmd): Define to use $(built-program-file).  Expand
25339         comment.
25340         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
25341         ($(objpfx)x%.stmp): Likewise.
25342         * sunrpc/proto.h [IS_IN_build] (_): Define.
25343         [IS_IN_build] (_libc_intl_domainname): Likewise.
25344
25345 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25346
25347         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
25348         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
25349         and R_X86_64_TPOFF64.
25350
25351 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25352
25353         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
25354         sysdeps/unix/sysv/syscalls.list.
25355         (stime): Likewise.
25356         (utime): Likewise.
25357         * sysdeps/unix/sysv/syscalls.list: Remove file.
25358
25359 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25360
25361         [BZ #3440]
25362         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
25363         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
25364         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
25365         (__LC_IDENTIFICATION): Make these macros useful in #if
25366         expressions, as required by C99.
25367
25368 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
25369
25370         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
25371         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
25372         after this.
25373
25374 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25375
25376         * stdlib/longlong.h: Updated from GCC.
25377
25378 2012-05-09  Andreas Jaeger  <aj@suse.de>
25379
25380         * nscd/nscd.c (run_modes): Make named enum, reorder so that
25381         default is first entry.
25382         (run_mode): Set type.
25383         (main): Remove informal message about syslog.
25384         (options): Fix typo.
25385
25386         [BZ #14053]
25387         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
25388         to asm.
25389         (lrint): Likewise.
25390         (llrintf): Likewise.
25391         (llrint): Likewise.
25392         (rint): Likewise.
25393         (rintf): Likewise.
25394         (nearbyint): Likewise.
25395         (nearbyintf): Likewise.
25396
25397 2012-05-09  Andreas Jaeger  <aj@suse.de>
25398             Pedro Alves  <palves@redhat.com>
25399
25400         * nscd/nscd.c (run_mode): Use enum.
25401         (main): Cleanup coding style issue.
25402
25403 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
25404             Andreas Jaeger  <aj@suse.de>
25405
25406         * nscd/nscd.c (go_background): Replaced with...
25407         (run_mode): ... this.
25408         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
25409         (options): Add -F --foreground.
25410         (main): Implement it.
25411         (parse_opt): Parse it.
25412
25413 2012-05-09  Andreas Jaeger  <aj@suse.de>
25414
25415         [BZ #14083]
25416         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
25417         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
25418         -Wconversion warning.
25419         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
25420         Likewise.
25421
25422 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
25423
25424         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
25425         == 0.
25426         (LC_ALL): Use macro-int-constant.
25427         (LC_COLLATE): Likewise.
25428         (LC_CTYPE): Likewise.
25429         (LC_MESSAGES): Likewise.
25430         (LC_MONETARY): Likewise.
25431         (LC_NUMERIC): Likewise.
25432         (LC_TIME): Likewise.
25433         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
25434         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25435         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25436         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
25437         Specify type.
25438         [C99-based standards] (float_t): Expect type.
25439         [C99-based standards] (double_t): Expect type.
25440         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
25441         type.
25442         [C99-based standards] (HUGE_VALL): Likewise.
25443         [C99-based standards] (INFINITY): Likewise.
25444         [C99-based standards] (NAN): Likewise.
25445         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
25446         [C99-based standards] (FP_NAN): Likewise.
25447         [C99-based standards] (FP_NORMAL): Likewise.
25448         [C99-based standards] (FP_SUBNORMAL): Likewise.
25449         [C99-based standards] (FP_ZERO): Likewise.
25450         [C99-based standards] (FP_FAST_FMA): Use
25451         optional-macro-int-constant.  Specify type.  Require == 1.
25452         [C99-based standards] (FP_FAST_FMAF): Likewise.
25453         [C99-based standards] (FP_FAST_FMAL): Likewise.
25454         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
25455         [C99-based standards] (FP_ILOGBNAN): Likewise.
25456         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
25457         Specify type.
25458         [C99-based standards] (MATH_ERREXCEPT): Likewise.
25459         [C99-based standards] (math_errhandling): Specify type.
25460         [ISO99 || ISO11] (signgam): Do not allow.
25461         [non-C99-based standards] (copysignf): Do not allow.
25462         [non-C99-based standards] (exp2f): Likewise.
25463         [non-C99-based standards] (log2f): Likewise.
25464         [non-C99-based standards] (modff): Allow.
25465         [non-C99-based standards] (erff): Do not allow.
25466         [non-C99-based standards] (erfcf): Likewise.
25467         [non-C99-based standards] (gammaf): Likewise.
25468         [non-C99-based standards] (hypotf): Likewise.
25469         [non-C99-based standards] (j0f): Likewise.
25470         [non-C99-based standards] (j1f): Likewise.
25471         [non-C99-based standards] (jnf): Likewise.
25472         [non-C99-based standards] (lgammaf): Likewise.
25473         [non-C99-based standards] (tgammaf): Likewise.
25474         [non-C99-based standards] (y0f): Likewise.
25475         [non-C99-based standards] (y1f): Likewise.
25476         [non-C99-based standards] (ynf): Likewise.
25477         [non-C99-based standards] (isnanf): Likewise.
25478         [non-C99-based standards] (acoshf): Likewise.
25479         [non-C99-based standards] (asinhf): Likewise.
25480         [non-C99-based standards] (atanhf): Likewise.
25481         [non-C99-based standards] (cbrtf): Likewise.
25482         [non-C99-based standards] (expm1f): Likewise.
25483         [non-C99-based standards] (ilogbf): Likewise.
25484         [non-C99-based standards] (log1pf): Likewise.
25485         [non-C99-based standards] (logbf): Likewise.
25486         [non-C99-based standards] (nextafterf): Likewise.
25487         [non-C99-based standards] (remainderf): Likewise.
25488         [non-C99-based standards] (rintf): Likewise.
25489         [non-C99-based standards] (scalbf): Likewise.
25490         [non-C99-based standards] (copysignl): Likewise.
25491         [non-C99-based standards] (exp2l): Likewise.
25492         [non-C99-based standards] (log2l): Likewise.
25493         [non-C99-based standards] (modfl): Allow.
25494         [non-C99-based standards] (erfl): Do not allow.
25495         [non-C99-based standards] (erfcl): Likewise.
25496         [non-C99-based standards] (gammal): Likewise.
25497         [non-C99-based standards] (hypotl): Likewise.
25498         [non-C99-based standards] (j0l): Likewise.
25499         [non-C99-based standards] (j1l): Likewise.
25500         [non-C99-based standards] (jnl): Likewise.
25501         [non-C99-based standards] (lgammal): Likewise.
25502         [non-C99-based standards] (tgammal): Likewise.
25503         [non-C99-based standards] (y0l): Likewise.
25504         [non-C99-based standards] (y1l): Likewise.
25505         [non-C99-based standards] (ynl): Likewise.
25506         [non-C99-based standards] (isnanl): Likewise.
25507         [non-C99-based standards] (acoshl): Likewise.
25508         [non-C99-based standards] (asinhl): Likewise.
25509         [non-C99-based standards] (atanhl): Likewise.
25510         [non-C99-based standards] (cbrtl): Likewise.
25511         [non-C99-based standards] (expm1l): Likewise.
25512         [non-C99-based standards] (ilogbl): Likewise.
25513         [non-C99-based standards] (log1pl): Likewise.
25514         [non-C99-based standards] (logbl): Likewise.
25515         [non-C99-based standards] (nextafterl): Likewise.
25516         [non-C99-based standards] (remainderl): Likewise.
25517         [non-C99-based standards] (rintl): Likewise.
25518         [non-C99-based standards] (scalbl): Likewise.
25519         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25520         [non-C99-based standards] (FP_*): Do not allow.
25521         [C99-based standards] (FP_*): Change to
25522         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25523         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25524         allow.
25525         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
25526         (SIG_ERR): Likewise.
25527         [X/Open-based standards] (SIG_HOLD): Likewise.
25528         (SIG_IGN): Likewise.
25529         (SIGABRT): Use macro-int-constant.  Specify type.  Require
25530         positive value.
25531         (SIGFPE): Likewise.
25532         (SIGILL): Likewise.
25533         (SIGINT): Likewise.
25534         (SIGSEGV): Likewise.
25535         (SIGTER): Likewise.
25536         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
25537         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
25538         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
25539         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
25540         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
25541         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
25542         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
25543         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
25544         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
25545         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
25546         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
25547         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
25548         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
25549         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
25550         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
25551         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
25552         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
25553         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
25554         [X/Open-based standards] (SIGTRAP): Likewise.
25555         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
25556         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
25557         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
25558         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
25559         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25560         allow.
25561
25562 2012-05-08  Ian Wienand  <ianw@vmware.com>
25563
25564         [BZ #14080]
25565         * time/tzset.c (__tzset_parse_tz): Update default rules for
25566         daylight time changes in the Energy Policy Act of 2005.
25567
25568 2012-05-09  Andreas Jaeger  <aj@suse.de>
25569
25570         [BZ #13983]
25571         * elf/ldconfig.c (parse_conf): Change string to make clear that
25572         ldconfig only issued a warning if ld.so.conf does not exist.
25573
25574 2012-05-08  David S. Miller  <davem@davemloft.net>
25575
25576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
25577         movxtod instead of popping the value on the stack.
25578
25579         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25580
25581 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
25582
25583         * config.h.in: Add HAVE_ARM_PCS_VFP.
25584
25585 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
25586
25587         [BZ #13979]
25588         * include/features.h: Warn if user requests __FORTIFY_SOURCE
25589         checking but the checks are disabled for any reason.
25590
25591 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
25592
25593         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
25594         and ELF64_R_TYPE with ELFW(R_TYPE).
25595
25596 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
25597
25598         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
25599         (ulimit): Likewise.
25600
25601         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
25602         (settimeofday): Likewise.
25603
25604 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
25605
25606         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
25607         a struct th_u2 inside the union, and move tu_block/tu_code into
25608         a new th_u3 union of tu_block/tu_code inside of that.  Move
25609         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
25610         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
25611         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
25612         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
25613         (th_stuff): Change to th_u1.tu_stuff.
25614         (th_data): Define.
25615         (th_msg): Change to th_u1.th_u2.tu_data.
25616
25617 2012-05-07  David S. Miller  <davem@davemloft.net>
25618
25619         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25620
25621         [BZ #14074]
25622         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
25623         (SETUP_PIC_REG): Use it.
25624         (SETUP_PIC_REG_LEAF): Use it.
25625
25626 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
25627
25628         [BZ #13885]
25629         [BZ #13923]
25630         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25631         USE_AS_EXPM1L.
25632         (EXPL_FINITE): Likewise.
25633         (FLDLOG): Likewise.
25634         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25635         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25636         e_expl.S.
25637         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25638         USE_AS_EXPM1L.
25639         (EXPL_FINITE): Likewise.
25640         (FLDLOG): Likewise.
25641         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25642         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25643         e_expl.S.
25644         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
25645         test of -max_value argument for long double.
25646         * sysdeps/i386/fpu/libm-test-ulps: Update.
25647         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25648
25649 2012-05-06  David S. Miller  <davem@davemloft.net>
25650
25651         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
25652         quad soft-float symbols whose references which are compiler
25653         generated.
25654         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25655
25656 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
25657
25658         [BZ #13884]
25659         [BZ #13914]
25660         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25661         USE_AS_EXP10L.
25662         (EXPL_FINITE): Likewise.
25663         (FLDLOG): Likewise.
25664         (c0): Likewise.
25665         (c1): Likewise.
25666         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25667         Adjust comments for base varying.
25668         (__expl_finite): Change alias to EXPL_FINITE.
25669         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
25670         e_expl.S.
25671         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
25672         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
25673         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
25674         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
25675         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25676         USE_AS_EXP10L.
25677         (EXPL_FINITE): Likewise.
25678         (FLDLOG): Likewise.
25679         (c0): Likewise.
25680         (c1): Likewise.
25681         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25682         Adjust comments for base varying.
25683         (__expl_finite): Change alias to EXPL_FINITE.
25684         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
25685         tests for bugs.
25686         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25687
25688         [BZ #14064]
25689         * math/libm-test.inc (check_float_internal): Correct ulp
25690         calculation for subnormal expected results.
25691
25692 2012-05-06  Andreas Jaeger  <aj@suse.de>
25693
25694         * Makeconfig (+math-flags): New, set to -frounding-math.
25695         (+cflags): Add +math-flags so that all of glibc gets compiled with
25696         it.
25697
25698         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
25699
25700 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
25701
25702         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
25703         Disable one test.
25704
25705         [BZ #13787]
25706         [BZ #13922]
25707         [BZ #14036]
25708         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
25709         (__ieee754_expl): Allow for and saturate large arguments.
25710         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
25711         (u_threshold): Likewise.
25712         (__exp): Call __ieee754_exp before checking for overflow and
25713         underflow.
25714         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
25715         (u_threshold): Likewise.
25716         (__expf): Call __ieee754_expf before checking for overflow and
25717         underflow.
25718         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
25719         (u_threshold): Likewise.
25720         (__expl): Call __ieee754_expl before checking for overflow and
25721         underflow.
25722         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
25723         (__ieee754_expl): Allow for and saturate large arguments.
25724         * math/libm-test.inc (exp_test): Add another test.  Do not allow
25725         missing overflow exception on overflow.
25726         (expm1_test): Do not allow missing overflow exception on overflow.
25727
25728         * sysdeps/i386/fpu/e_expl.c: Move to ...
25729         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
25730         rather than using inline asm.
25731         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
25732         * sysdeps/x86_64/fpu/e_expl.S: Copy from
25733         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
25734
25735         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
25736         (nice): Likewise.
25737         (poll): Likewise.
25738         (signal): Likewise.
25739         (time): Likewise.
25740         (times): Likewise.
25741
25742 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25743
25744         * sysdeps/unix/syscalls.list (adjtime): Add entry from
25745         sysdeps/unix/common/syscalls.list.
25746         (fchmod): Likewise.
25747         (fchown): Likewise.
25748         (ftruncate): Likewise.
25749         (getrusage): Likewise.
25750         (gettimeofday): Likewise.
25751         (setpgid): Likewise.
25752         (setregid): Likewise.
25753         (setreuid): Likewise.
25754         (sigaction): Likewise.
25755         (truncate): Likewise.
25756         (vhangup): Likewise.
25757         * sysdeps/unix/common/syscalls.list: Remove file.
25758         * sysdeps/unix/bsd/Implies: Don't include unix/common.
25759         * sysdeps/unix/sysv/linux/Implies: Likewise.
25760
25761 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
25762
25763         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
25764         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
25765         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
25766         Moved to ...
25767         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
25768         Here.
25769         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
25770         to ...
25771         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
25772         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
25773         to ...
25774         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
25775         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
25776         to ...
25777         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
25778         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
25779         to ...
25780         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
25781         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
25782         to ...
25783         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
25784         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
25785         to ...
25786         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
25787         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
25788         to ...
25789         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
25790         Here.
25791         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
25792         to ...
25793         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
25794         Here.
25795         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
25796         to ...
25797         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
25798         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
25799         Moved to ...
25800         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
25801         Here.
25802         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
25803         to ...
25804         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
25805
25806 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25807
25808         * sysdeps/unix/common/bits/dirent.h: Remove file.
25809         * sysdeps/unix/common/bits/fcntl.h: Likewise.
25810
25811         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
25812         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
25813         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
25814         * sysdeps/unix/bsd/isatty.c: Likewise.
25815         * sysdeps/unix/bsd/tcdrain.c: Likewise.
25816         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
25817         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
25818
25819 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25820
25821         [BZ #13563]
25822         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
25823         long double comparison inaccuracies.
25824         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
25825         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25826
25827 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
25828
25829         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
25830         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
25831
25832 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25833
25834         [BZ #14049]
25835         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
25836         nonzero digits before rounding a hex value.
25837         * stdlib/tst-strtod.c (tests): Add another test.
25838
25839 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25840
25841         * sysdeps/s390/fpu/libm-test-ulps: Update.
25842
25843 2012-05-03  Andreas Jaeger  <aj@suse.de>
25844
25845         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
25846         does not get optimized out.
25847         (malloc_opt_barrier): New.
25848
25849 2012-05-03  Andreas Jaeger  <aj@suse.de>
25850             Roland McGrath  <roland@hack.frob.com>
25851
25852         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
25853         intermediate file deletion.
25854         (generated): Add .symlist files.
25855
25856 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
25857
25858         [BZ #13775]
25859         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
25860         Redirect under this condition.
25861         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25862         [__USE_GNU] (__dprintf_chk): Not under this condition.
25863         [__USE_GNU] (__vdprintf_chk): Likewise.
25864         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
25865         under this condition.
25866         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25867         [__USE_XOPEN2K8] (dprintf): Define under this condition.
25868         [__USE_XOPEN2K8] (vdprintf): Likewise.
25869         [__USE_GNU] (__dprintf_chk): Not under this condition.
25870         [__USE_GNU] (__vdprintf_chk): Likewise.
25871         [__USE_GNU] (dprintf): Likewise.
25872         [__USE_GNU] (vdprintf): Likewise.
25873
25874 2012-05-03  Roland McGrath  <roland@hack.frob.com>
25875
25876         * elf/Makefile (common-generated): Set this instead of generated for
25877         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
25878         $(all-built-dso)-derived lists.
25879
25880 2012-05-03  Andreas Jaeger  <aj@suse.de>
25881
25882         * sysdeps/i386/fpu/libm-test-ulps: Update.
25883
25884         * FAQ: Removed.
25885         * FAQ.in: Likewise.
25886         * scripts/gen-FAQ.pl: Likewise.
25887         * manual/install.texi (Installation): Point to online location of
25888         FAQ.
25889         * Makefile (files-for-dist): Remove FAQ.
25890         (FAQ): Remove.
25891
25892 2012-05-02  Allan McRae  <allan@archlinux.org>
25893
25894         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
25895         (LDFLAGS-reldepmod5.so): Likewise.
25896         (LDFLAGS-reldep6mod1.so): Likewise.
25897         (LDFLAGS-reldep6mod4.so): Likewise.
25898         (LDFLAGS-reldep8mod3.so): Likewise.
25899         (LDFLAGS-unload4mod1.so): Likewise.
25900         (LDFLAGS-unload4mod2.so): Likewise.
25901         (LDFLAGS-tst-initorder): Likewise.
25902         (LDFLAGS-tst-initordera2.so): Likewise.
25903         (LDFLAGS-tst-initordera3.so): Likewise.
25904         (LDFLAGS-tst-initordera4.so): Likewise.
25905         (LDFLAGS-tst-initorderb2.so): Likewise.
25906         (LDFLAGS-noload): Likewise.
25907         (LDFLAGS-next): Likewise.
25908         (LDFLAGS-order2mod1.so): Likewise.
25909         (LDFLAGS-order2mod2.so): Likewise.
25910         (LDFLAGS-tst-initorder2): Likewise.
25911         (LDFLAGS-tst-initorder2a.so): Likewise.
25912         (LDFLAGS-tst-initorder2b.so): Likewise.
25913         (LDFLAGS-tst-initorder2c.so): Likewise.
25914         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
25915
25916 2012-05-02  David S. Miller  <davem@davemloft.net>
25917
25918         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25919
25920 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
25921
25922         [BZ #14055]
25923         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
25924
25925 2012-05-02  Andreas Jaeger  <aj@suse.de>
25926
25927         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
25928         since we manipulate rounding mode.
25929         (CPPFLAGS-test-idouble.c): Likewise.
25930         (CPPFLAGS-test-ifloat.c): Likewise.
25931         (CFLAGS-test-ldouble.c): Likewise.
25932         (CFLAGS-test-double.c): Likewise.
25933         (CFLAGS-test-float.c): Likewise.
25934         (CFLAGS-test-misc.c): Likewise.
25935         (CFLAGS-test-test-fenv.c): Likewise.
25936
25937 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25938
25939         [BZ #2550]
25940         [BZ #2570]
25941         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
25942         comparisons to determine direction to adjust input.
25943
25944 2012-05-01  Roland McGrath  <roland@hack.frob.com>
25945
25946         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
25947         output to the target.
25948
25949         * scripts/localplt.awk: New file.
25950         * elf/Makefile ($(objpfx)check-localplt): Target removed.
25951         (check-localplt-CFLAGS): Variable removed.
25952         ($(all-built-dso:=.jmprel)): New static pattern rule.
25953         (generated): Add those targets.
25954         (localplt-built-dso): New variable.
25955         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
25956
25957         * elf/check-localplt.c: File removed.
25958
25959         * scripts/check-execstack.awk: New file.
25960         * elf/Makefile ($(objpfx)check-execstack): Target removed.
25961         (check-execstack-CFLAGS): Variable removed.
25962         ($(objpfx)check-execstack.h): Target removed.
25963         ($(objpfx)execstack-default): New target.
25964         (generated): Add that instead of check-execstack.h.
25965         ($(all-built-dso:=.phdr)): New static pattern rule.
25966         (generated): Add those targets.
25967         * elf/check-execstack.c: File removed.
25968
25969         * scripts/check-textrel.awk: New file.
25970         * elf/Makefile ($(objpfx)check-textrel): Target removed.
25971         (check-textrel-CFLAGS): Variable removed.
25972         (all-built-dso): Use := to define.o
25973         ($(all-built-dso:=.dyn)): New static pattern rule.
25974         (generated): Add those targets.
25975         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
25976         * config.make.in (READELF): New substituted variable.
25977         * elf/check-textrel.c: File removed.
25978
25979 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25980
25981         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25982         allow.
25983         * conform/data/ctype.h-data [C99-based standards] (isblank):
25984         Expect function.
25985         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
25986         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
25987         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25988         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
25989         Specify type.  Require positive value.
25990         (EILSEQ): Likewise.
25991         (ERANGE): Likewise.
25992         [ISO || POSIX] (EILSEQ): Do not expect.
25993         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
25994         Specify type.  Require positive value.
25995         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
25996         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
25997         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
25998         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
25999         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
26000         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
26001         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
26002         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
26003         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
26004         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
26005         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
26006         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
26007         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
26008         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
26009         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
26010         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
26011         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
26012         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
26013         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
26014         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
26015         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
26016         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
26017         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
26018         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
26019         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
26020         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
26021         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
26022         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
26023         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
26024         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
26025         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
26026         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
26027         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
26028         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
26029         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
26030         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
26031         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
26032         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
26033         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
26034         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
26035         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
26036         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
26037         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
26038         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
26039         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
26040         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
26041         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
26042         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
26043         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
26044         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
26045         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
26046         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
26047         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
26048         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
26049         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
26050         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
26051         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
26052         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
26053         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
26054         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
26055         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
26056         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
26057         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
26058         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
26059         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
26060         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
26061         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
26062         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
26063         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
26064         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
26065         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
26066         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
26067         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
26068         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
26069         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
26070         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
26071         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
26072         Require >= 2.
26073         (FLT_ROUNDS): Expect as macro, not constant.
26074         (FLT_MANT_DIG): Use macro-int-constant.
26075         (DBL_MANT_DIG): Likewise.
26076         (LDBL_MANT_DIG): Likewise.
26077         (FLT_DIG): Likewise.
26078         (DBL_DIG): Likewise.
26079         (LDBL_DIG): Likewise.
26080         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
26081         (DBL_MIN_EXP): Likewise.
26082         (LDBL_MIN_EXP): Likewise.
26083         (FLT_MAX_EXP): Use macro-int-constant.
26084         (DBL_MAX_EXP): Likewise.
26085         (LDBL_MAX_EXP): Likewise.
26086         (FLT_MAX_10_EXP): Likewise.
26087         (DBL_MAX_10_EXP): Likewise.
26088         (LDBL_MAX_10_EXP): Likewise.
26089         (FLT_MAX): Use macro-constant.
26090         (DBL_MAX): Likewise.
26091         (LDBL_MAX): Likewise.
26092         (FLT_EPSILON): Use macro-constant.  Give upper bound.
26093         (DBL_EPSILON): Likewise.
26094         (LDBL_EPSILON): Likewise.
26095         (FLT_MIN): Likewise.
26096         (DBL_MIN): Likewise.
26097         (LDBL_MIN): Likewise.
26098         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
26099         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
26100         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
26101         [ISO11] (FLT_HAS_SUBNORM): Likewise.
26102         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
26103         [ISO11] (DBL_DECIMAL_DIG): Likewise.
26104         [ISO11] (FLT_DECIMAL_DIG): Likewise.
26105         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
26106         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
26107         [ISO11] (FLT_TRUE_MIN): Likewise.
26108         [ISO11] (LDBL_TRUE_MIN): Likewise.
26109         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26110         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
26111         (SCHAR_MIN): Use macro-int-constant.  Specify type.
26112         (SCHAR_MAX): Likewise.
26113         (UCHAR_MAX): Likewise.
26114         (CHAR_MIN): Likewise.
26115         (CHAR_MAX): Likewise.
26116         (MB_LEN_MAX): Use macro-int-constant.
26117         (SHRT_MIN): Use macro-int-constant.  Specify type.
26118         (SHRT_MAX): Likewise.
26119         (USHRT_MAX): Likewise.
26120         (INT_MAX): Likewise.
26121         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
26122         bound negative.
26123         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26124         bound with "U".
26125         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26126         bound with "L".
26127         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
26128         bound negative.  Suffix upper bound with "L".
26129         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26130         bound with "UL".
26131         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
26132         Specify type.
26133         [C99-based standards] (LLONG_MAX): Likewise.
26134         [C99-based standards] (ULLONG_MAX): Likewise.
26135         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
26136         == 0.
26137         [ISO11] (max_align_t): Require type.
26138         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26139
26140         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
26141         from $CFLAGS, without defining away __attribute__ calls.
26142         (checknamespace): Use $CFLAGS_namespace.
26143
26144         * conform/conformtest.pl (@keywords): Only include C99 keywords
26145         for standards based on C99 or C11.
26146
26147         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
26148         Disable tests.
26149         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
26150         UNIX98]: Likewise.
26151
26152         * conform/conformtest.pl: Handle "macro-int-constant" and test for
26153         usability of symbols in #if.
26154
26155         * conform/conformtest.pl: If macro or constant types start
26156         "promoted:", expect the symbol to be of the following type
26157         promoted by the integer promotions.
26158
26159         * conform/conformtest.pl: Parse all "constant" and "macro" lines
26160         in one place.  Also handle "macro-constant".
26161
26162         * conform/conformtest.pl: Only accept expected macro values with
26163         "==".  Parse all "macro" lines in one place.
26164         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
26165
26166         * conform/conformtest.pl: Handle braced types on "constant" lines
26167         instead of handling "typed-constant".
26168         * conform/data/signal.h-data: Use "constant" instead of
26169         "typed-constant".
26170
26171         * conform/conformtest.pl: Handle "optional-" at start of lines in
26172         one place rather than duplicating several cases.  Handle each
26173         format of "macro" line with initial "optional-".
26174
26175         * conform/conformtest.pl: Only accept expected constant or
26176         optional-constant values with "==".  Parse all "constant" lines in
26177         one place.  Parse all "optional-constant" lines in one place.
26178         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
26179         * conform/data/fmtmsg.h-data: Likewise.
26180         * conform/data/netinet/in.h-data: Likewise.
26181         * conform/data/tar.h-data: Likewise.
26182         * conform/data/limits.h-data: Use "==" form on "constant" and
26183         "optional-constant" lines.
26184
26185         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
26186         Use -std=c99 for XOPEN2K.
26187         (@knownproblems): Remove.
26188         (newtoken): Don't check %isknown.
26189
26190         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
26191         Do not expect macro.
26192         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
26193         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
26194         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
26195         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
26196         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
26197         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
26198         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
26199         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
26200         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
26201         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
26202         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
26203         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
26204         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
26205         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
26206         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
26207         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
26208         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
26209         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
26210         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
26211         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
26212         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
26213         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
26214         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
26215         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
26216         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
26217         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
26218         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
26219         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
26220         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
26221         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
26222         [XPG3] (acosh): Likewise.
26223         [XPG3] (asinh): Likewise.
26224         [XPG3] (atanh): Likewise.
26225         [XPG3] (cbrt): Likewise.
26226         [XPG3] (expm1): Likewise.
26227         [XPG3] (ilogb): Likewise.
26228         [XPG3] (log1p): Likewise.
26229         [XPG3] (logb): Likewise.
26230         [XPG3] (nextafter): Likewise.
26231         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
26232         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
26233         [XPG3] (remainder): Likewise.
26234         [XPG3] (rint): Likewise.
26235         [XPG3 || XPG4 || UNIX98] (round): Likewise.
26236         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
26237         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
26238         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
26239         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
26240         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
26241         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
26242         [UNIX98 || XOPEN2K] (scalb): Expect.
26243         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
26244         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
26245         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
26246         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
26247         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
26248         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
26249         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
26250         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
26251         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
26252         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
26253         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
26254         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
26255         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
26256         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
26257         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
26258         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
26259         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
26260         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
26261         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
26262         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
26263         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
26264         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
26265         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
26266         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
26267         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
26268         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
26269         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
26270         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
26271         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
26272         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
26273         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
26274         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
26275         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
26276         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
26277         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
26278         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
26279         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
26280         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
26281         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
26282         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
26283         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
26284         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
26285         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
26286         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
26287         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
26288         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
26289         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
26290         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
26291         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
26292         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
26293         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
26294         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
26295         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
26296         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
26297         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
26298         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
26299         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
26300         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
26301         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
26302         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
26303         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
26304         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
26305         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
26306         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
26307         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
26308         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
26309         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
26310         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
26311         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
26312         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
26313         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
26314         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
26315         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
26316         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
26317         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
26318         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
26319         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
26320         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
26321         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
26322         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
26323         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
26324         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
26325         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
26326         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
26327         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
26328         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
26329         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
26330         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
26331         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
26332         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
26333         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
26334         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
26335         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
26336         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
26337         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
26338         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
26339         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
26340         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
26341         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
26342         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
26343         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
26344         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
26345         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
26346         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
26347         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
26348         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
26349         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
26350         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
26351         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
26352         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
26353         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
26354         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
26355         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
26356         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
26357         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
26358         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
26359         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
26360         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
26361         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
26362         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
26363         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
26364         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
26365         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
26366         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
26367         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
26368         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
26369         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
26370         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
26371         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
26372         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
26373         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
26374         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
26375         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
26376         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
26377         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
26378         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
26379         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
26380
26381         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
26382         _XOPEN_SOURCE_EXTENDED for XPG4.
26383
26384         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
26385
26386         * Makeconfig (localtime): Remove variable.
26387         (inst_localtime-file): Likewise.
26388
26389 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26390
26391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
26392         Update.
26393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26394         Update.
26395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
26396         Update.
26397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
26398         Update.
26399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
26400         Update.
26401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
26402         Update.
26403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26404         Update.
26405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
26406         Update.
26407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26408         Update.
26409
26410 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
26411
26412         [BZ #2550]
26413         [BZ #2570]
26414         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
26415         comparisons to determine direction to adjust input.
26416         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
26417         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
26418         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
26419         Likewise.
26420         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
26421         Likewise.
26422         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
26423         Likewise.
26424         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
26425         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
26426         Likewise.
26427         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
26428         Likewise.
26429         * math/libm-test.inc (nexttoward_test): Add more tests.
26430
26431 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26432
26433         [BZ #14040]
26434         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
26435         in version GLIBC_2.1, not GLIBC_2.0.
26436         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
26437         Likewise.
26438
26439 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
26440
26441         [BZ #13942]
26442         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
26443         (1 - x) * (1 + x).
26444         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26445         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
26446         * math/libm-test.inc (acos_test): Add more tests.
26447         (asin_test): Likewise.
26448         * sysdeps/i386/fpu/libm-test-ulps: Update.
26449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26450
26451         [BZ #14034]
26452         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
26453         of square root.
26454         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
26455         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26456         * math/libm-test.inc (acos_test_tonearest): New function.
26457         (acos_test_towardzero): Likewise.
26458         (acos_test_downward): Likewise.
26459         (acos_test_upward): Likewise.
26460         (asin_test_tonearest): Likewise.
26461         (asin_test_towardzero): Likewise.
26462         (asin_test_downward): Likewise.
26463         (asin_test_upward): Likewise.
26464         (main): Call the new functions.
26465         * sysdeps/i386/fpu/libm-test-ulps: Update.
26466         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26467
26468         [BZ #13884]
26469         [BZ #13924]
26470         * math/e_exp10.c: Include <float.h>.
26471         (__ieee754_exp10): Handle underflow here rather than multiplying
26472         large negative argument by M_LN10.
26473         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
26474         of __ieee754_expf.
26475         * math/e_exp10l.c: Include <float.h>.
26476         (__ieee754_exp10l): Handle underflow here rather than multiplying
26477         large negative argument by M_LN10l.
26478         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
26479         spurious overflow exception on underflow.
26480
26481 2012-04-29  Marek Polacek  <polacek@redhat.com>
26482
26483         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
26484         (__fortify_function): New macro.
26485         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
26486         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
26487         __extern_always_inline.
26488         * libio/bits/stdio2.h: Likewise.
26489         * libio/bits/stdio.h: Likewise.
26490         * string/string.h: Likewise.
26491         * string/bits/string3.h: Likewise.
26492         * include/stdio.h: Likewise.
26493         * stdlib/bits/stdlib.h: Likewise.
26494         * stdlib/stdlib.h: Likewise.
26495         * rt/bits/mqueue2.h: Likewise.
26496         * rt/mqueue.h: Likewise.
26497         * posix/bits/unistd.h: Likewise.
26498         * posix/unistd.h: Likewise.
26499         * io/bits/poll2.h: Likewise.
26500         * io/bits/fcntl2.h: Likewise.
26501         * io/fcntl.h: Likewise.
26502         * io/sys/poll.h: Likewise.
26503         * misc/bits/syslog.h: Likewise.
26504         * misc/bits/syslog-ldbl.h: Likewise.
26505         * misc/sys/syslog.h: Likewise.
26506         * socket/bits/socket2.h: Likewise.
26507         * socket/sys/socket.h: Likewise.
26508         * debug/tst-chk1.c: Likewise.
26509         * wcsmbs/bits/wchar2.h: Likewise.
26510         * wcsmbs/bits/wchar-ldbl.h: Likewise.
26511         * wcsmbs/wchar.h: Likewise.
26512
26513 2012-04-29  Andreas Jaeger  <aj@suse.de>
26514
26515         * Makerules (tests): Remove enable-check-abi protection.
26516         (check-abi-warn): Remove.
26517         (check-abi-%): Remove check-abi-warn usage.
26518
26519         * configure.in: Remove check-abi configure option.
26520         * configure: Regenerated.
26521         * config.make.in (enable-check-abi): Remove.
26522
26523 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
26524
26525         [BZ #14033]
26526         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
26527         double functions to double *_finite functions.
26528
26529         [BZ #13941]
26530         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
26531         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
26532         LDBL_MIN_EXP.
26533         * stdio-common/Makefile (tests): Add tst-sprintf3.
26534         * stdio-common/tst-sprintf3.c: New file.
26535
26536         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
26537         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
26538
26539 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26540
26541         * conform/conformtest.pl: Remove duplicate typed-constant
26542         handling.
26543
26544 2012-04-28  David S. Miller  <davem@davemloft.net>
26545
26546         * Makerules (%.abilist): Add vpath on sysdep_dirs.
26547         (check-abi-%): Remove AWK script prerequisite and explicit
26548         abilist directory.
26549         (check-abi): Rewrite to just diff the symlist with the abilist.
26550         (config-tls, config-abi-config): Delete, no longer used.
26551         (update-abi-%): Remove AWK script and explicit abilist directory.
26552         (update-abi): Rewrite to simply compare and conditionally copy the
26553         symlist and the sysdep abilist file.  Remove update-abi-config
26554         checks.
26555         * abilist/ld.abilist: Remove.
26556         * abilist/libBrokenLocale.abilist: Remove.
26557         * abilist/libanl.abilist: Remove.
26558         * abilist/libcrypt.abilist: Remove.
26559         * abilist/libdl.abilist: Remove.
26560         * abilist/librt.abilist: Remove.
26561         * abilist/libthread_db.abilist: Remove.
26562         * abilist/libutil.abilist: Remove.
26563         * scripts/extract-abilist.awk: Remove.
26564         * scripts/merge-abilist.awk: Remove.
26565         * sysdeps/generic/libcidn.abilist: New file.
26566         * sysdeps/generic/libnss_compat.abilist: New file.
26567         * sysdeps/generic/libnss_db.abilist: New file.
26568         * sysdeps/generic/libnss_dns.abilist: New file.
26569         * sysdeps/generic/libnss_files.abilist: New file.
26570         * sysdeps/generic/libnss_hesiod.abilist: New file.
26571         * sysdeps/generic/libnss_nis.abilist: New file.
26572         * sysdeps/generic/libnss_nisplus.abilist: New file.
26573         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
26574         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
26575         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
26576         file.
26577         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
26578         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
26579         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
26580         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
26581         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
26582         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
26583         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
26584         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
26585         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
26586         file.
26587         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
26588         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
26589         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
26590         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
26591         file.
26592         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
26593         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
26594         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
26595         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
26596         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
26597         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
26598         file.
26599         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
26600         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
26601         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
26602         file.
26603         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
26604         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
26605         New file.
26606         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
26607         New file.
26608         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
26609         New file.
26610         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
26611         New file.
26612         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
26613         New file.
26614         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
26615         New file.
26616         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
26617         New file.
26618         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
26619         New file.
26620         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
26621         New file.
26622         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
26623         New file.
26624         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
26625         New file.
26626         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
26627         New file.
26628         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
26629         New file.
26630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
26631         file.
26632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
26633         New file.
26634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
26635         New file.
26636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
26637         file.
26638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
26639         New file.
26640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
26641         New file.
26642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
26643         file.
26644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
26645         New file.
26646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26647         New file.
26648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
26649         New file.
26650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
26651         New file.
26652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
26653         New file.
26654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
26655         New file.
26656         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
26657         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
26658         file.
26659         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
26660         New file.
26661         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
26662         file.
26663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
26664         file.
26665         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
26666         file.
26667         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
26668         file.
26669         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
26670         file.
26671         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
26672         New file.
26673         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
26674         file.
26675         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
26676         file.
26677         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
26678         New file.
26679         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
26680         file.
26681         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
26682         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
26683         file.
26684         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
26685         New file.
26686         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
26687         file.
26688         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
26689         file.
26690         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
26691         file.
26692         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
26693         file.
26694         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
26695         file.
26696         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
26697         New file.
26698         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
26699         file.
26700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
26701         file.
26702         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
26703         New file.
26704         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
26705         file.
26706         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
26707         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
26708         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
26709         file.
26710         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
26711         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
26712         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
26713         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
26714         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
26715         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
26716         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
26717         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
26718         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
26719         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
26720         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
26721         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
26722         file.
26723         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
26724         New file.
26725         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
26726         file.
26727         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
26728         file.
26729         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
26730         file.
26731         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
26732         file.
26733         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
26734         file.
26735         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
26736         New file.
26737         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
26738         New file.
26739         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
26740         file.
26741         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
26742         New file.
26743         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
26744         file.
26745         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
26746         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
26747         file.
26748         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
26749         New file.
26750         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
26751         file.
26752         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
26753         file.
26754         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
26755         file.
26756         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
26757         file.
26758         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
26759         file.
26760         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
26761         New file.
26762         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
26763         New file.
26764         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
26765         file.
26766         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
26767         New file.
26768         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
26769         file.
26770
26771 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26772
26773         * conform/conformtest.pl: Fix typo in handling typed-constant from
26774         allow-header.
26775
26776 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26777
26778         * README: Cut down references to pre-2.6 Linux kernels and
26779         Linuxthreads.  Update lists of configurations in libc and ports
26780         and sort alphabetically.  Say "or newer" with Linux kernel version
26781         requirements.
26782
26783         * config.h.in [IS_IN_build]: Allow compiling without optimization.
26784
26785 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
26786
26787         [BZ #887]
26788         * math/libm-test.inc (logb_test_downward): New test to expose
26789         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
26790         rounding mode.
26791
26792 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26793
26794         [BZ #14027]
26795         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
26796         to be done.
26797         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
26798         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
26799
26800 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
26801
26802         * sysdeps/unix/i386/brk.S: Remove file.
26803         * sysdeps/unix/i386/dl-brk.S: Likewise.
26804         * sysdeps/unix/i386/pipe.S: Likewise.
26805         * sysdeps/unix/i386/sigreturn.S: Likewise.
26806         * sysdeps/unix/i386/syscall.S: Likewise.
26807         * sysdeps/unix/i386/vfork.S: Likewise.
26808         * sysdeps/unix/i386/wait.S: Likewise.
26809
26810         * sysdeps/unix/common/tcsendbrk.c: Move to ...
26811         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
26812
26813         * configure.in (arm*-none*): Do not allow without
26814         --enable-hacker-mode.
26815         (netbsd*): Remove case setting base_os.
26816         (386bsd*): Likewise.
26817         (freebsd*): Likewise.
26818         (bsdi*): Likewise.
26819         (osf*): Likewise.
26820         (sunos*): Likewise.
26821         (ultrix*): Likewise.
26822         (newsos*): Likewise.
26823         (dynix*): Likewise.
26824         (*bsd*): Likewise.
26825         (sysv*): Likewise.
26826         (isc*): Likewise.
26827         (esix*): Likewise.
26828         (sco*): Likewise.
26829         (minix*): Likewise.
26830         (irix4*): Likewise.
26831         (irix6*): Likewise.
26832         (solaris[2-9]*): Likewise.
26833         (none): Likewise.
26834         * configure: Regenerated.
26835
26836 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26837
26838         [BZ #11521]
26839         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
26840         overflow or cancellation in calculating denominator.
26841         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
26842         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
26843         down expression to avoid unexpected rounding in newer GCCs.
26844         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
26845
26846 2012-04-26  David S. Miller  <davem@davemloft.net>
26847
26848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
26849         long-double compat symbols.
26850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
26851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
26852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
26853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
26854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
26855         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
26856         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
26857         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
26858         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
26859         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
26860         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
26861         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
26862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26863
26864 2012-04-25  David S. Miller  <davem@davemloft.net>
26865
26866         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
26867         HWCAP_* values only after the memory barriers have been defined.
26868         (atomic_full_barrier): Define.
26869         (atomic_read_barrier): Define.
26870         (atomic_write_barrier): Define.
26871
26872 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26873
26874         * shlib-versions: Add libgcc_s version information.
26875         * sysdeps/generic/libgcc_s.h: Remove.
26876         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
26877         libgcc_s.h.
26878         * sysdeps/gnu/unwind-resume.c: Likewise.
26879         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
26880
26881 2012-04-25  David S. Miller  <davem@davemloft.net>
26882
26883         * sysdeps/unix/sparc/brk.S: Delete.
26884         * sysdeps/unix/sparc/dl-brk.S: Delete.
26885         * sysdeps/unix/sparc/pipe.S: Delete.
26886         * sysdeps/unix/sparc/sysdep.S: Delete.
26887         * sysdeps/unix/sparc/sysdep.h: Delete.
26888         * sysdeps/unix/sparc/vfork.S: Delete.
26889         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
26890         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
26891         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
26892         ret_ERRVAL, r0, r1, MOVE): Define.
26893         (JUMPTARGET): Remove.
26894         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
26895         sysdeps/unix/sparc/sysdep.h
26896         (ENTRY, END): Remove.
26897         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26898
26899 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
26900
26901         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
26902         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
26903         -DIS_IN_build.
26904
26905         * timezone/README: Update upstream location and email address for
26906         tzcode and tzdata.
26907         * timezone/zdump.c: Update from tzcode 2012b.
26908         * timezone/zic.c: Likewise.
26909
26910         * configure.in (libc_cv_as_needed): Remove test.
26911         * configure: Regenerated.
26912         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
26913         conditional definition.
26914         [$(have-as-needed) != yes] (no-as-needed): Likewise.
26915         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
26916         * config.make.in (have-as-needed): Remove variable.
26917
26918 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26919             Paul Pluzhnikov  <ppluzhnikov@google.com>
26920
26921         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
26922         strings correctly.
26923
26924 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
26925
26926         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
26927         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
26928         * sysdeps/sh/strlen.S: Likewise.
26929
26930 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26931
26932         * sysdeps/unix/fork.S: Remove file.
26933         * sysdeps/unix/i386/fork.S: Likewise.
26934         * sysdeps/unix/sparc/fork.S: Likewise.
26935
26936         * sysdeps/unix/system.c: Remove file.
26937         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
26938
26939         * sysdeps/unix/getegid.S: Remove file.
26940         * sysdeps/unix/geteuid.S: Likewise.
26941
26942 2012-04-24  Roland McGrath  <roland@hack.frob.com>
26943
26944         * scripts/check-localplt.awk: New file.
26945         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
26946         of diff.
26947         * scripts/data/localplt-generic.data: Add a comment.
26948
26949         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
26950         NODE when __dir_mkfile failed.
26951         * sysdeps/mach/hurd/symlinkat.c: Likewise.
26952         Reported by Ludovic Courtès <ludo@gnu.org>.
26953
26954 2012-04-24  Andreas Jaeger  <aj@suse.de>
26955
26956         * Makerules (common-clean): Also remove gen-as-const-headers
26957         files.
26958
26959 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26960
26961         * Makerules (native-compile): Do not change working directory for
26962         build.  Use $(OUTPUT_OPTION) in command.
26963         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
26964
26965 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26966
26967         [BZ #13886]
26968         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
26969         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
26970         * math/libm-test.inc (floor_test): Add more tests.
26971         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
26972
26973 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26974
26975         * sysdeps/unix/getdents.c: Remove file.
26976         * sysdeps/unix/sysv/getdents.c: Likewise.
26977         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
26978
26979         * sysdeps/unix/syscalls.list (madvise): Add syscall from
26980         sysdeps/unix/mman/syscalls.list.
26981         (mmap): Likewise.
26982         (mprotect): Likewise.
26983         (msync): Likewise.
26984         (munmap): Likewise.
26985         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
26986         * sysdeps/unix/mman/syscalls.list: Remove.
26987         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
26988
26989         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
26990         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
26991         * configure: Regenerated.
26992         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
26993         $(libgcc_s_suffix).
26994         * config.make.in (libgcc_s_suffix): Remove variable.
26995
26996 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
26997
26998         * sysdeps/unix/sysv/gethostname.c: Move to ...
26999         * sysdeps/posix/gethostname.c: ... here.
27000
27001         * sysdeps/unix/execve.S: Remove file.
27002
27003         * sysdeps/unix/_exit.S: Remove file.
27004
27005 2012-04-23  Andreas Jaeger  <aj@suse.de>
27006
27007         [BZ #13739]
27008         * manual/Makefile: Remove make dist support, there's no
27009         need for a stand-alone documentation tar ball.
27010         (TEXI2DVI): Define always, it's not in Makeconfig.
27011         (dist): Removed.
27012         (tar-it): Removed.
27013         (edition): Removed.
27014         (glibc-doc-$(edition).tar): Removed
27015         (%.Z): Removed.
27016         (%.gz): Removed.
27017         (%.uu): Removed.
27018         (ETAGS): Remove, it's in Makeconfig.
27019         (move-if-change): Remove, it's in Makeconfig.
27020
27021 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
27022
27023         [BZ #13970]
27024         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
27025         (strtod, strtof, strtold, strtol, strtoul, strtoq)
27026         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
27027         (strtod_l, strtof_l, strtold_l): Remove __wur.
27028         It is not necessarily an error to ignore strtol's return value.
27029         One can reliably look at the stored endptr to decide whether
27030         the number had valid syntax.
27031
27032 2012-04-21  Andreas Jaeger  <aj@suse.de>
27033
27034         [BZ #13739]
27035         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
27036
27037 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
27038
27039         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
27040         * sysdeps/unix/sysv/Versions: Remove file.
27041
27042 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
27043
27044         [BZ #13927]
27045         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27046
27047 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
27048
27049         [BZ #7064]
27050         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
27051         version from __vm86.
27052
27053 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
27054
27055         * sysdeps/unix/common/lxstat.c: Remove file.
27056         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
27057
27058         * sysdeps/unix/sysv/Makefile: Remove file.
27059
27060         * sysdeps/unix/sysv/direct.h: Remove file.
27061
27062         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
27063         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
27064         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
27065         * sysdeps/unix/sysv/bits/signum.h: Likewise.
27066         * sysdeps/unix/sysv/bits/stat.h: Likewise.
27067         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
27068         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
27069
27070         * sysdeps/unix/sysv/setrlimit.c: Remove file.
27071
27072         * sysdeps/unix/xmknod.c: Remove file.
27073         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
27074
27075         * sysdeps/unix/sysv/settimeofday.c: Remove file.
27076
27077         * sysdeps/unix/sysv/i386/time.S: Remove file.
27078
27079         * sysdeps/unix/fxstat.c: Remove file.
27080         * sysdeps/unix/xstat.c: Likewise.
27081         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
27082
27083         * sysdeps/unix/sysv/sigaction.c: Remove file.
27084
27085         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
27086         (sysdep_headers): Remove variable.
27087         [termio.h not in sysdep_headers] (generated): Likewise.
27088         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
27089         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
27090         * sysdeps/unix/sysv/tcdrain.c: Likewise.
27091         * sysdeps/unix/sysv/tcflow.c: Likewise.
27092         * sysdeps/unix/sysv/tcflush.c: Likewise.
27093         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
27094         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
27095         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
27096         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
27097         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
27098
27099         * sysdeps/unix/siglist.c: Remove file.
27100
27101         * sysdeps/unix/getppid.S: Remove file.
27102
27103         * sysdeps/unix/mkdir.c: Remove file.
27104         * sysdeps/unix/rmdir.c: Likewise.
27105
27106 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
27107
27108         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
27109         ERR_MAX value.
27110         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
27111         errlist-compat value.
27112
27113 2012-04-18  David S. Miller  <davem@davemloft.net>
27114
27115         * sysdeps/generic/memcopy.h (reg_char): Delete.
27116         * debug/strcat_chk.c: Use char, not reg_char.
27117         * debug/strcpy_chk.c: Likewise.
27118         * debug/strncat_chk.c: Likewise.
27119         * debug/strncpy_chk.c: Likewise.
27120         * string/memchr.c: Likewise.
27121         * string/memrchr.c: Likewise.
27122         * string/rawmemchr.c: Likewise.
27123         * string/strcat.c: Likewise.
27124         * string/strchr.c: Likewise.
27125         * string/strchrnul.c: Likewise.
27126         * string/strcmp.c: Likewise.
27127         * string/strcpy.c: Likewise.
27128         * string/strncat.c: Likewise.
27129         * string/strncmp.c: Likewise.
27130         * string/strncpy.c: Likewise.
27131
27132 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27133
27134         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
27135         __builtin_memcopy is called when src and dest ranges are known to not
27136         overlap.
27137
27138 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27139
27140         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
27141         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
27142         fwd_align_merge macro call.
27143         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
27144         bwd_align_merge macro call.
27145         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27146
27147 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27148
27149         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
27150         bwd_align_merge macros.
27151         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
27152         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
27153         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27154
27155 2012-04-18  David S. Miller  <davem@davemloft.net>
27156
27157         * sysdeps/sparc/sparc64/memcopy.h: Delete.
27158
27159 2012-04-18  Andreas Jaeger  <aj@suse.de>
27160
27161         [BZ# 6794]
27162         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
27163         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
27164         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27165
27166         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
27167         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
27168         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27169
27170         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
27171         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
27172         Adjust for changed ldbl-128 files.
27173
27174         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
27175         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
27176         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27177
27178 2012-04-17  David S. Miller  <davem@davemloft.net>
27179
27180         * sysdeps/sparc/sparc32/memcopy.h: Delete.
27181
27182 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
27183
27184         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
27185         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
27186         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
27187         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
27188         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
27189         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
27190
27191 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27192
27193         [BZ #6794]
27194         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
27195         * math/libm-test.inc: Add ilogb errno and exception tests.
27196         * math/w_ilogb.c: New file: ilogb wrapper.
27197         * math/w_ilogbf.c: New file: ilogbf wrapper.
27198         * math/w_ilogbl.c: New file: ilogbl wrapper.
27199         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
27200         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
27201         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
27202         exception being thrown with 0.0 as argument.
27203         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
27204         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
27205         exception being thrown with 0.0 as argument.
27206         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
27207         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27208         exception being thrown with 0.0 as argument.
27209         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
27210         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27211         exception being thrown with 0.0 as argument.
27212         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
27213         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
27214         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
27215         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
27216         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
27217         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
27218         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
27219         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
27220         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
27221
27222 2012-04-17  Petr Baudis  <pasky@ucw.cz>
27223
27224         * include/sys/uio.h: Change __vector to __iovec to avoid clash
27225         with altivec.
27226
27227 2012-04-16  Marek Polacek  <polacek@redhat.com>
27228
27229         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
27230
27231 2012-04-16  Marek Polacek  <polacek@redhat.com>
27232
27233         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
27234         operands of fdivp instruction.
27235
27236 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27237
27238         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
27239         * elf/tst-auditmod3b.c: Likewise.
27240         * elf/tst-auditmod4b.c: Likewise.
27241         * elf/tst-auditmod5b.c: Likewise.
27242         * elf/tst-auditmod6b.c: Likewise.
27243         * elf/tst-auditmod6c.c: Likewise.
27244         * elf/tst-auditmod7b.c: Likewise.
27245         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
27246         * sysdeps/x86_64/preconfigure.in: Likewise.
27247         * sysdeps/x86_64/preconfigure: Regenerated.
27248
27249 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27250
27251         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
27252         __ILP32__.
27253
27254 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
27255
27256         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27257         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
27258
27259 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
27260
27261         [BZ #13973]
27262         * locale/iso-639.def: Fix gl language name. Spotted by
27263         Yaron Shahrabani.
27264
27265 2012-04-12  Roland McGrath  <roland@hack.frob.com>
27266
27267         [BZ #2074]
27268         * libio/libio.h (__io_write_fn): Update comment.
27269
27270 2012-04-12  Petr Baudis  <pasky@ucw.cz>
27271
27272         [BZ #2074]
27273         * stdio.texi (Hook Functions): The user provided writer function
27274         is not allowed to return -1.
27275
27276 2012-04-11  David S. Miller  <davem@davemloft.net>
27277
27278         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27279
27280 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
27281
27282         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
27283         Add a leading slash to rtkaio.
27284
27285 2012-04-11  Jim Meyering  <meyering@redhat.com>
27286
27287         [BZ #11959]
27288         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
27289         It is not necessarily an error to ignore fwrite's return
27290         value.  One can reliably use ferror to test for errors after
27291         the fact.
27292
27293 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27294
27295         * bits/types.h (__snseconds_t): New type.
27296         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
27297
27298         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
27299         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27300         (__SNSECONDS_T_TYPE): Likewise.
27301         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27302         (__SNSECONDS_T_TYPE): Likewise.
27303         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27304         (__SNSECONDS_T_TYPE): Likewise.
27305
27306 2012-04-10  Andreas Jaeger  <aj@suse.de>
27307
27308         [BZ #2636]
27309         * manual/time.texi (Processor Time): Return type of times is
27310         elapsed real time since an arbitrary point in the past.
27311         (CPU Time): Move CLK_TCK from here...
27312         (Processor Time): ...to here.  Correct description.
27313         * manual/conf.texi (Constants for Sysconf): Correct description of
27314         _SC_CLK_TCK.
27315
27316 2012-04-10  David S. Miller  <davem@davemloft.net>
27317
27318         [BZ #13967]
27319         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
27320         where the is a gap between DT_REL(A) and DT_JMPREL.
27321
27322 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27323
27324         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
27325         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27326         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27327
27328 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27329
27330         * elf/dl-support.c (_dl_inhibit_cache): New variable.
27331         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
27332         (dl_main): Handle --inhibit-cache.
27333         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
27334         _dl_inhibit_cache.
27335         * elf/dl-load.c (_dl_map_object): Use it.
27336         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
27337
27338 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27339
27340         [BZ #13872]
27341         * sysdeps/i386/fpu/e_powl.S (p78): New object.
27342         (__ieee754_powl): Saturate large exponents rather than testing for
27343         overflow of y*log2(x).
27344         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27345         * math/libm-test.inc (pow_test): Do not permit spurious overflow
27346         exceptions.
27347
27348         [BZ #11521]
27349         * math/s_ctan.c: Include <float.h>.
27350         (__ctan): Avoid internal overflow or cancellation in calculating
27351         denominator.
27352         * math/s_ctanf.c: Likewise.
27353         * math/s_ctanl.c: Likewise.
27354         * math/s_ctanh.c: Likewise.
27355         * math/s_ctanhf.c: Likewise.
27356         * math/s_ctanhl.c: Likewise.
27357         * math/libm-test.inc (ctan_test): Add more tests.
27358         (ctanh_test): Likewise.
27359         * sysdeps/i386/fpu/libm-test-ulps: Update.
27360         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27361
27362 2012-04-09  Andreas Jaeger  <aj@suse.de>
27363
27364         [BZ #6894]
27365         * manual/filesys.texi (Directory Entries): Mention that d_namlen
27366         is an optional BSD extension.
27367
27368         [BZ #10254]
27369         * manual/stdio.texi (Opening Streams): Document additional fopen
27370         parameters.
27371
27372 2012-04-09  Roland McGrath  <roland@hack.frob.com>
27373
27374         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
27375         %eax without telling the compiler.
27376
27377 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
27378
27379         [BZ # 13963]
27380         * manual/install.texi: Use sourceware.org.
27381
27382 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27383
27384         [BZ #13873]
27385         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
27386         (__ieee754_pow): Generate overflow and underflow using huge*huge
27387         and tiny*tiny rather than just returning constant infinity or zero
27388         for large exponents.
27389         * math/libm-test.inc (pow_test): Require overflow exceptions for
27390         applicable cases of large exponents.
27391
27392         [BZ #706]
27393         * sysdeps/i386/fpu/e_pow.S (p10): New object.
27394         (__ieee754_pow): Use iterative multiplication algorithm only for
27395         integer exponents with absolute value below 1024.  Check for odd
27396         integer exponents when using algorithm for real exponents.
27397         * math/libm-test.inc (pow_test): Add more tests.
27398         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27399
27400 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
27401
27402         [BZ #13705]
27403         * math/libm-test.inc (exp_test): Do not allow overflow exception
27404         on underflow test.
27405
27406 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
27407
27408         [BZ #13705]
27409         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
27410         instead of __kernel_standard_f.
27411
27412 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
27413
27414         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
27415         * sysdeps/x86_64/memset_chk.S: Likewise.
27416
27417 2012-04-08  Andreas Jaeger  <aj@suse.de>
27418
27419         [BZ #10153]
27420         * manual/startup.texi (Environment Access): Describe return value
27421         for putenv and setenv.
27422
27423         [BZ #6895]
27424         * manual/filesys.texi (Directory Entries): Add description for
27425         DT_LNK.
27426
27427         [BZ #6890]
27428         * manual/filesys.texi (Directory Entries): Clarify that it's file
27429         system not operating system in the description of DT_UNKNOWN.
27430
27431         [BZ #6578]
27432         * manual/syslog.texi (closelog): Fix reference, it's openlog.
27433
27434 2012-04-08  Stephen Compall  <s11@member.fsf.org>
27435
27436         [BZ #6649]
27437         * manual/llio.texi (Opening and Closing Files): Add cross
27438         reference to explain mode argument.
27439
27440 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
27441
27442         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
27443         * sysdeps/x86_64/memset_chk.S: Likewise.
27444
27445 2012-04-07  David S. Miller  <davem@davemloft.net>
27446
27447         * elf/elf.h (R_SPARC_WDISP10): Define.
27448         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
27449         R_SPARC_SIZE32.
27450         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
27451         R_SPARC_SIZE64 and R_SPARC_H34.
27452
27453 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
27454
27455         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
27456         conditions and remove no longer applicable assertion.
27457
27458 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27459
27460         * bits/byteswap.h: Include <features.h>.
27461         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27462         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27463
27464 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27465
27466         * bits/byteswap.h (__bswap_16): Removed.
27467         Include <bits/byteswap-16.h> to get __bswap_16.
27468         * sysdeps/i386/bits/byteswap.h: Likewise.
27469         * sysdeps/s390/bits/byteswap.h: Likewise.
27470         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27471         * bits/byteswap-16.h: New file.
27472         * sysdeps/i386/bits/byteswap-16.h: Likewise.
27473         * sysdeps/s390/bits/byteswap-16.h: Likewise.
27474         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
27475         * string/Makefile (headers): Add bits/byteswap-16.h.
27476
27477 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27478
27479         [BZ #13895]
27480         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
27481         extra indirection.
27482         * nss/Makefile (tests-static, tests): Add tst-nss-static.
27483         * nss/tst-nss-static.c: New.
27484
27485 2012-04-06  Robert Millan  <rmh@gnu.org>
27486
27487         [BZ #6486]
27488         * manual/llio.texi (File Position Primitive): lseek
27489         refers to WHENCE when it really means OFFSET.
27490
27491 2012-04-06  Andreas Jaeger  <aj@suse.de>
27492
27493         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
27494         strncmp declarations.
27495
27496         * abilist/libc.abilist: Add __poll and __ppoll.
27497
27498 2012-04-05  David S. Miller  <davem@davemloft.net>
27499
27500         * scripts/check-local-headers.sh: Accept a host triplet in the
27501         path matched by the exclude regexp.
27502
27503         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
27504         definition.
27505         * sysdeps/powerpc/powerpc32/dl-machine.h
27506         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
27507         * sysdeps/s390/s390-32/dl-machine.h
27508         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27509         * sysdeps/sparc/sparc32/dl-machine.h
27510         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27511         * sysdeps/sparc/sparc64/dl-machine.h
27512         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27513
27514         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
27515         lazy binding.
27516         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
27517         undefined symbol errors.
27518
27519         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
27520         DT_NEEDED entries.
27521
27522 2012-04-05  Michael Matz  <matz@suse.de>
27523
27524         [BZ #13592]
27525         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
27526
27527 2012-04-05  Andreas Jaeger  <aj@suse.de>
27528
27529         [BZ #13908]
27530         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
27531         comment.
27532
27533 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27534
27535         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
27536         which ROUND is no valid rounding mode.
27537
27538 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27539
27540         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
27541         read again.
27542         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
27543
27544 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27545
27546         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
27547         an exception using FPU order intentionally.
27548
27549 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27550
27551         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
27552         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
27553         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
27554         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
27555
27556 2012-04-05  Simon Josefsson  <simon@josefsson.org>
27557
27558         [BZ #12340]
27559         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
27560         EINVAL when BUFLEN is too smal.
27561
27562 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
27563
27564         [BZ #13553]
27565         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
27566         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
27567
27568 2012-04-03  Andreas Jaeger  <aj@suse.de>
27569
27570         [BZ #13938]
27571         * manual/setjmp.texi (System V contexts): Fix sentence.
27572
27573         [BZ #13926]
27574         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
27575         New macro for this case.
27576         [!__GNUC__] (__bswap_64): New inline function for this case.
27577         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27578         * bits/byteswap.h: Likewise.
27579         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
27580         ull, guard with __GLIBC_HAVE_LONG_LONG.
27581
27582         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
27583         __GLIBC_HAVE_LONG_LONG.
27584
27585         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
27586         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
27587
27588 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27589
27590         [BZ #13691]
27591         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
27592         inptr and inend, rather than using last_ch.
27593
27594 2012-04-02  David S. Miller  <davem@davemloft.net>
27595
27596         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
27597         * stdio-common/printf-parse.h (read_int): Change return type to
27598         'int', return -1 on INT_MAX overflow.
27599         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
27600         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
27601         overflows INT_MAX.  Check for overflow of in-format-string precision
27602         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
27603         SIZE_MAX not INT_MAX for integer overflow test.
27604         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
27605         skip the construct in the format string but do not record anything.
27606         * stdio-common/bug22.c: Adjust to test both width/prevision
27607         INT_MAX overflow as well as total length INT_MAX overflow.  Check
27608         explicitly for proper errno values.
27609
27610 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
27611
27612         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
27613         CHAR_MAX.
27614         * string/test-strcmp.c [! WIDE]: Likewise.
27615         * time/tst-mktime2.c: Likewise for INT_MAX.
27616         * string/test-string.h: #include <sys/param.h> for MIN.
27617
27618         * csu/init-first.c (__libc_init_first): Call __ctype_init.
27619         * sysdeps/i386/init-first.c (init): Likewise.
27620         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
27621         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
27622         * sysdeps/sh/init-first.c (init): Likewise.
27623
27624 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
27625
27626         * po/ru.po: Update from translation team.
27627         * po/vi.po: Likewise.
27628
27629 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
27630
27631         * resolv/nss_dns/dns-host.c: Merge copyright years.
27632
27633 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27634
27635         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27636         Optimize memcpy with prefetch if
27637         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
27638         src, dst pointers have unequal 16 byte alignments.
27639
27640 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
27641
27642         [BZ #13928]
27643         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
27644         from a CNAME entry and return the minimum ttl for the query.
27645         (gaih_getanswer_slice): Likewise.
27646
27647 2012-03-30  Jeff Law  <law@redhat.com>
27648
27649         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
27650         due to long keys.
27651         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
27652         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
27653
27654         * resolv/nss_dns/dns-host.c: Update copyright year.
27655
27656 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
27657
27658         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
27659         requests to save a system call.  Fix check that all bytes are sent.
27660
27661         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
27662         comments for sendmmsg.
27663
27664 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27665
27666         [BZ #13691]
27667         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
27668         with only 1 character between 0x0041 and 0x01b0.
27669         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
27670         * wcsmbs/tst-mbsnrtowcs.c: New file.
27671
27672 2012-03-29  David S. Miller  <davem@davemloft.net>
27673
27674         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
27675         small copies by hand.
27676
27677 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27678
27679         [BZ #13761]
27680         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
27681         _nss_compat_initgroups_dyn): Fall back to malloc/free
27682         for large group memberships.
27683
27684 2012-03-28  David S. Miller  <davem@davemloft.net>
27685
27686         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
27687         that branches into memcpy.
27688         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
27689         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27690         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27691         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27692         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
27693         bits.
27694         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
27695         implementation too.
27696         * sysdeps/sparc/mempcpy.S: New file.
27697
27698         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
27699         the IFUNC routine in the libc case.
27700         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27701
27702         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
27703         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
27704         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
27705         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
27706         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
27707         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
27708         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
27709         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
27710
27711         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
27712         loop to 256 bytes instead of 64 bytes and fix test signedness.
27713
27714         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
27715         * sysdeps/sparc/sparc32/Makefile: rather than here...
27716         * sysdeps/sparc/sparc64/Makefile: and here.
27717
27718 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
27719
27720         * malloc/mallocbug.c: Avoid warnings about unused variables.
27721
27722 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
27723
27724         [BZ #13760]
27725         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
27726         in the right place. Discard and retry query if response is
27727         larger than input buffer size.
27728
27729 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
27730
27731         [BZ #369]
27732         [BZ #2678]
27733         [BZ #3866]
27734         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
27735         x for large integer exponent.
27736         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
27737         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
27738         sign of result as needed afterwards.
27739         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
27740         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
27741         result for underflowing pow the same as for overflow.
27742         (__kernel_standard_l): Handle powl overflow and underflow here
27743         rather than calling __kernel_standard.
27744         * math/libm-test.inc (pow_test): Add more tests.
27745
27746         [BZ #3868]
27747         [BZ #13879]
27748         [BZ #13910]
27749         [BZ #13911]
27750         [BZ #13912]
27751         [BZ #13913]
27752         [BZ #13915]
27753         [BZ #13916]
27754         [BZ #13917]
27755         [BZ #13918]
27756         [BZ #13919]
27757         [BZ #13920]
27758         [BZ #13921]
27759         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
27760         * sysdeps/ieee754/k_standard.c: Include <float.h>.
27761         (__kernel_standard_l): New function.
27762         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
27763         __kernel_standard.
27764         * math/w_acosl.c (__acosl): Likewise.
27765         * math/w_asinl.c (__asinl): Likewise.
27766         * math/w_atan2l.c (__atan2l): Likewise.
27767         * math/w_atanhl.c (__atanhl): Likewise.
27768         * math/w_coshl.c (__coshl): Likewise.
27769         * math/w_exp10l.c (__exp10l): Likewise.
27770         * math/w_exp2l.c (__exp2l): Likewise.
27771         * math/w_fmodl.c (__fmodl): Likewise.
27772         * math/w_hypotl.c (__hypotl): Likewise.
27773         * math/w_j0l.c (__j0l, __y0l): Likewise.
27774         * math/w_j1l.c (__j1l, __y1l): Likewise.
27775         * math/w_jnl.c (__jnl, __ynl): Likewise.
27776         * math/w_lgammal.c (__lgammal): Likewise.
27777         * math/w_log10l.c (__log10l): Likewise.
27778         * math/w_log2l.c (__log2l): Likewise.
27779         * math/w_logl.c (__logl): Likewise.
27780         * math/w_powl.c (__powl): Likewise.
27781         * math/w_remainderl.c (__remainderl): Likewise.
27782         * math/w_scalbl.c (sysv_scalbl): Likewise.
27783         * math/w_sinhl.c (__sinhl): Likewise.
27784         * math/w_sqrtl.c (__sqrtl): Likewise.
27785         * math/w_tgammal.c (__tgammal): Likewise.
27786         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
27787         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
27788         * math/libm-test.inc (acos_test): Add more tests.
27789         (acosh_test): Likewise.
27790         (asin_test): Likewise.
27791         (atanh_test): Likewise.
27792         (exp_test): Likewise.
27793         (exp10_test): Likewise.
27794         (exp2_test): Likewise.
27795         (expm1_test): Likewise.
27796         (lgamma_test): Likewise.
27797         (log_test): Likewise.
27798         (log10_test): Likewise.
27799         (log1p_test): Likewise.
27800         (log2_test): Likewise.
27801         (pow_test): Do not allow some spurious overflow exceptions.
27802         (sqrt_test): Add more tests.
27803         (tgamma_test): Likewise.
27804         (y0_test): Likewise.
27805         (y1_test): Likewise.
27806         (yn_test): Likewise.
27807
27808 2012-03-27  Anton Blanchard  <anton@samba.org>
27809
27810         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
27811         MAP_HUGETLB.
27812         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27813         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27814         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27815
27816 2012-03-27  David S. Miller  <davem@davemloft.net>
27817
27818         * conform/Makefile: Run run-conformtest.sh using $(BASH).
27819
27820         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
27821         have-as-vis3 check.
27822
27823 2012-03-27  Andreas Jaeger  <aj@suse.de>
27824
27825         * sysdeps/x86_64/elf/configure.in: Moved to ...
27826         * sysdeps/x86_64/configure.in: ... here.
27827         * sysdeps/x86_64/elf/start.S: Moved to ...
27828         * sysdeps/x86_64/start.S: ... here.
27829         * sysdeps/x86_64/elf/configure: Delete.
27830
27831         * sysdeps/x86_64/configure.in: Merge contents from
27832         sysdeps/i386/configure.in (without i686 check).
27833
27834         * sysdeps/i386/elf/Versions: Merge into ...
27835         * sysdeps/i386/Versions: ... this.
27836         * sysdeps/i386/elf/Versions: Delete file.
27837         * sysdeps/i386/elf/start.S: Moved to ...
27838         * sysdeps/i386/start.S: ...here.
27839         * sysdeps/i386/elf/configure.in: Merge into...
27840         * sysdeps/i386/configure.in: ...here.
27841         * sysdeps/i386/elf/configure.in: Delete file.
27842         * sysdeps/i386/elf/configure: Delete file.
27843
27844         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
27845         * debug/backtracesyms.c: ... here.
27846         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
27847         * debug/backtracesymsfd.c: ... here.
27848         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
27849         * sysdeps/generic/ifunc-sel.h: ... here.
27850
27851         * sysdeps/unix/i386/start.c: Delete file.
27852         * sysdeps/unix/sparc/start.c: Delete file.
27853         * sysdeps/unix/start.c: Delete file.
27854
27855         * sysdeps/sh/elf/configure.in: Moved to ...
27856         * sysdeps/sh/configure.in: ... here.
27857         * sysdeps/sh/elf/start.S: Moved to ...
27858         * sysdeps/sh/start.S: ... here.
27859         * sysdeps/sh/elf/configure: Delete file.
27860
27861         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
27862         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
27863         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
27864         * sysdeps/powerpc/powerpc64/entry.h: ... here.
27865         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
27866         * sysdeps/powerpc/powerpc64/start.S: here.
27867         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
27868         * sysdeps/powerpc/powerpc64/Makefile: ... this.
27869         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
27870         * sysdeps/powerpc/powerpc64/configure.in: ... this.
27871         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
27872
27873         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
27874         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
27875         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
27876         * sysdeps/powerpc/powerpc32/start.S: ... here.
27877         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
27878         * sysdeps/powerpc/powerpc32/configure.in: ... this.
27879         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
27880
27881         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
27882         * sysdeps/powerpc/ifunc-sel.h: ... here.
27883         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
27884         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
27885
27886         * sysdeps/sparc/elf/configure.in: Moved to ...
27887         * sysdeps/sparc/configure.in: ... here.
27888         * sysdeps/sparc/elf/configure: Delete file.
27889         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
27890         * sysdeps/sparc/sparc32/start.S: ... here.
27891         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
27892         * sysdeps/sparc/sparc64/start.S: ... here.
27893         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
27894         * sysdeps/sparc/sparc32/Makefile: ... this.
27895         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
27896         * sysdeps/sparc/sparc64/Makefile: ... this.
27897
27898         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
27899         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
27900         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
27901         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
27902         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
27903         * sysdeps/s390/s390-32/setjmp.S: ... here.
27904         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
27905         * sysdeps/s390/s390-32/configure.in: ... here.
27906         * sysdeps/s390/s390-32/elf/configure: Delete file.
27907         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
27908         * sysdeps/s390/s390-32/start.S: ... here.
27909
27910         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
27911         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
27912         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
27913         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
27914         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
27915         * sysdeps/s390/s390-64/setjmp.S: ... here.
27916         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
27917         * sysdeps/s390/s390-64/configure.in: ... here
27918         * sysdeps/s390/s390-64/elf/configure: Delete file.
27919         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
27920         * sysdeps/s390/s390-64/start.S: ... here.
27921         * sysdeps/s390/s390-64/elf/configure: Delete.
27922
27923         * configure.in: Remove support for elf directories in sysdeps.
27924
27925         * configure: Regenerated.
27926         * sysdeps/i386/configure: Regenerated.
27927         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27928         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27929         * sysdeps/s390/s390-32/configure: Regenerated.
27930         * sysdeps/s390/s390-64/configure: Regenerated.
27931         * sysdeps/sh/configure: Regenerated.
27932         * sysdeps/sparc/configure: Regenerated.
27933         * sysdeps/x86_64/configure: Regenerated.
27934
27935 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
27936
27937         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27938
27939         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
27940         denormal result into account.
27941
27942 2012-03-25  Roland McGrath  <roland@hack.frob.com>
27943
27944         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
27945         Reported by Allan McRae <allan@archlinux.org>.
27946
27947 2012-03-23  Jeff Law  <law@redhat.com>
27948
27949         * nss/getnssent.c (__nss_getent): Fix typo.
27950
27951 2012-03-23  David S. Miller  <davem@davemloft.net>
27952
27953         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27954
27955 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
27956
27957         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
27958         to pad to uint64_t for each field.
27959         (dl_tls_index): Replace unsigned long with uint64_t.
27960
27961 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
27962         Paul Pluzhnikov  <ppluzhnikov@google.com>
27963
27964         [BZ #6528]
27965         * grp/Makefile (otherlibs): Don't set it.
27966         * inet/Makefile (otherlibs): Likewise.
27967         * login/Makefile (otherlibs): Likewise.
27968         * nscd/Makefile (otherlibs): Likewise.
27969         * posix/Makefile (otherlibs): Likewise.
27970         * pwd/Makefile (otherlibs): Likewise.
27971         * rt/Makefile (otherlibs): Likewise.
27972         * sunrpc/Makefile (otherlibs): Likewise.
27973         * nss/Makefile (otherlibs): Likewise.
27974         Add libnss_files to routines and static-only-routines.
27975         ($(objpfx)getent): Remove rule.
27976         * resolv/Makefile: Add libnss_dns and libresolv to routines and
27977         static-only-routines.
27978
27979 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27980
27981         [BZ #13892]
27982         * math/s_cexp.c: Include <float.h>.
27983         (__cexp): Handle exp result overflowing not necessarily
27984         overflowing both real and imaginary parts of result.
27985         * math/s_cexpf.c: Likewise.
27986         * math/s_cexpl.c: Likewise.
27987         * math/libm-test.inc (cexp_test): Add more tests.
27988         * sysdeps/i386/fpu/libm-test-ulps: Update.
27989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27990
27991 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27992
27993         * include/link.h (ELFW): New macro.
27994         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
27995         Replace ELF64_R_TYPE with ELFW(R_TYPE).
27996
27997 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27998
27999         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
28000         with uint64_t.
28001
28002 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
28003
28004         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
28005         declaration.
28006         (struct La_x32_retval): Likewise.
28007
28008 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
28009
28010         * sysdeps/x86_64/preconfigure.in: New file.
28011         * sysdeps/x86_64/preconfigure: New generated file.
28012
28013 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
28014
28015         [BZ #13824]
28016         * math/e_exp2l.c: Include <float.h>.
28017         (__ieee754_exp2l): Handle overflow and underflow cases
28018         separately.  Only pass fractional part of argument to
28019         __ieee754_expl.
28020         * math/libm-test.inc (exp2_test): Add more tests.
28021
28022         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
28023         negating x to take absolute value.
28024         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
28025         Likewise.
28026         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
28027         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
28028         Likewise.
28029         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
28030         computing low part if x was negated.
28031         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
28032
28033 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28034
28035         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
28036         la_x32_gnu_pltexit.
28037         (pltexit): Cast int_retval to ptrdiff_t.
28038         * elf/tst-auditmod3b.c: Likewise.
28039         * elf/tst-auditmod4b.c: Likewise.
28040         * elf/tst-auditmod5b.c: Likewise.
28041         * elf/tst-auditmod6b.c: Likewise.
28042         * elf/tst-auditmod6c.c: Likewise.
28043         * elf/tst-auditmod7b.c: Likewise.
28044
28045         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
28046         and x32_gnu_pltexit.
28047
28048         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
28049         __ELF_NATIVE_CLASS.
28050         (La_x32_regs): New macro.
28051         (La_x32_retval): Likewise.
28052         (la_x32_gnu_pltenter): New function prototype.
28053         (la_x32_gnu_pltexit): Likewise.
28054
28055 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
28056
28057         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
28058         exponent.
28059
28060         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28061
28062         * configure.in (libc_cv_cc_nofma): Check for option to disable
28063         generation of FMA instructions.
28064         * configure: Regenerate.
28065         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
28066         * sysdeps/ieee754/dbl-64/Makefile: New file.
28067         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28068         Remove brandred-fma4.
28069         (CFLAGS-brandred-fma4.c): Remove.
28070         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
28071         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
28072         define.
28073         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
28074         define.
28075
28076 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28077
28078         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
28079         LLONG_MAX != LONG_MAX.
28080         (_itoa_word): Use _ITOA_WORD_TYPE on value.
28081         (_fitoa_word): Likewise.
28082         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
28083         LLONG_MAX != LONG_MAX.
28084         * stdio-common/_itowa.h: Include <_itoa.h>.
28085         (_itowa_word): Use _ITOA_WORD_TYPE on value.
28086         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
28087         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
28088         only if not defined.
28089         (_ITOA_WORD_TYPE): Likewise.
28090         (_itoa_word): Use _ITOA_WORD_TYPE on value.
28091         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
28092
28093 2012-03-21  David S. Miller  <davem@davemloft.net>
28094
28095         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28096
28097 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28098
28099         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
28100         of x86_64 when setting libc_cv_slibdir, libdir and
28101         libc_cv_localedir.
28102         * sysdeps/unix/sysv/linux/configure: Regenerated.
28103
28104 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28105
28106         * manual/lang.texi (Old Varargs): Remove section.
28107         (How Variadic): Update menu.
28108         (va_start): Do not mention varargs.h.
28109
28110 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
28111             Joseph Myers  <joseph@codesourcery.com>
28112
28113         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
28114         link test.
28115         * configure: Regenerated.
28116
28117 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
28118
28119         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
28120         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
28121         conformtest.pl
28122
28123 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28124
28125         * NOTES: Remove.
28126         * Makefile (files-for-dist): Remove NOTES.
28127         (NOTES): Remove rule.
28128         * README: Don't refer to NOTES.
28129         * manual/creature.texi: Don't include macros.texi.
28130         * manual/intro.texi (creature.texi): Remove comment referring to
28131         NOTES.
28132
28133         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
28134         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
28135         * configure: Regenerated.
28136         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
28137         LIBC_TRY_CC_OPTION.
28138         (libc_cv_as_i686): Likewise.
28139         (libc_cv_cc_avx): Likewise.
28140         (libc_cv_cc_sse2avx): Likewise.
28141         (libc_cv_cc_fma4): Likewise.
28142         (libc_cv_cc_novzeroupper): Likewise.
28143         * sysdeps/i386/configure: Regenerated.
28144
28145         [BZ #13883]
28146         * sysdeps/i386/fpu/s_cexp.S: Remove.
28147         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
28148         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
28149         * math/libm-test.inc (cexp_test): Add more tests.
28150         * sysdeps/i386/fpu/libm-test-ulps: Update.
28151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28152
28153 2012-03-21  Allan McRae  <allan@archlinux.org>
28154
28155         * timezone/Makefile: Do not install iso3166.tab and zone.tab
28156
28157 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28158
28159         [BZ #13871]
28160         * math/w_exp2.c: Do not include <float.h>.
28161         (o_threshold, u_threshold): Remove.
28162         (__exp2): Calculate result before checking finiteness and calling
28163         __kernel_standard.
28164         * math/w_exp2f.c: Likewise.
28165         * math/w_exp2l.c: Likewise.
28166         * math/libm-test.inc (exp2_test): Require overflow exception for
28167         1e6 input.
28168
28169         [BZ #3866]
28170         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
28171         range of signed 64-bit integers before using fistpll.  Remove
28172         checks for whether integers fit in mantissa bits.
28173         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
28174         the range of signed 32-bit integers before using fistpl.  Remove
28175         checks for whether integers fit in mantissa bits.
28176         * sysdeps/i386/fpu/e_powl.S (p64): New object.
28177         (__ieee754_powl): Test for y outside the range of signed 64-bit
28178         integers before using fistpll.  Reduce 64-bit values to 63-bit
28179         ones as needed.
28180         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
28181         divide-by-zero is raised for zero to large negative powers.
28182         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
28183         (__ieee754_powl): Test for y outside the range of signed 64-bit
28184         integers before using fistpll.  Reduce 64-bit values to 63-bit
28185         ones as needed.
28186         * math/libm-test.inc (pow_test): Add more tests.
28187
28188 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28189
28190         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
28191         <stdio-common/_itoa.h>.
28192         * debug/segfault.c: Likewise.
28193         * elf/dl-cache.c: Likewise.
28194         * elf/dl-minimal.c: Likewise.
28195         * elf/dl-misc.c: Likewise.
28196         * elf/dl-sysdep.c: Likewise.
28197         * elf/dl-version.c: Likewise.
28198         * elf/rtld.c: Likewise.
28199         * hurd/hurdsock.c: Likewise.
28200         * hurd/lookup-retry.c: Likewise.
28201         * malloc/malloc.c: Likewise.
28202         * malloc/mtrace.c: Likewise.
28203         * nscd/nscd_getgr_r.c: Likewise.
28204         * nscd/nscd_getpw_r.c: Likewise.
28205         * nscd/nscd_getserv_r.c: Likewise.
28206         * posix/getopt_init.c: Likewise.
28207         * posix/wordexp.c: Likewise.
28208         * stdio-common/_itoa.c: Likewise.
28209         * stdio-common/printf_fphex.c: Likewise.
28210         * stdio-common/vfprintf.c: Likewise.
28211         * string/_strerror.c: Likewise.
28212         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
28213         * sysdeps/i386/i686/hp-timing.h: Likewise.
28214         * sysdeps/mach/_strerror.c: Likewise.
28215         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
28216         * sysdeps/mach/hurd/sethostid.c: Likewise.
28217         * sysdeps/mach/hurd/xmknodat.c: Likewise.
28218         * sysdeps/mach/xpg-strerror.c: Likewise.
28219         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
28220         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28221         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
28222         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
28223         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28224         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
28225         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28226         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28227         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
28228         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
28229         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
28230         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
28231         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
28232         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
28233         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
28234         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
28235         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
28236         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
28237         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
28238         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
28239         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
28240
28241         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
28242
28243         * stdio-common/_itoa.h: Moved to ...
28244         * sysdeps/generic/_itoa.h: Here.
28245
28246         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
28247
28248         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
28249         instead of "_itoa.h" and "_itowa.h".
28250         * stdio-common/vfprintf.: Likewise.
28251
28252 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28253
28254         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
28255         <bits/wordsize.h>.
28256         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
28257         (__signbit): Likwise.
28258         (llrintf): Likwise.
28259         (llrint): Likwise.
28260
28261 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28262
28263         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
28264         __WORDSIZE != 64.
28265
28266 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
28267
28268         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
28269         OVERFLOW_EXCEPTION_OK.
28270         * math/libm-test.inc ("Philosophy"): Update comment about
28271         exception testing.
28272         (OVERFLOW_EXCEPTION): Define.
28273         (OVERFLOW_EXCEPTION_OK): Likewise.
28274         (INVALID_EXCEPTION_OK): Renumber.
28275         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
28276         (IGNORE_ZERO_INF_SIGN): Likewise.
28277         (test_exceptions): Handle FE_OVERFLOW.
28278         (exp10_test): Expect overflow exceptions.
28279         (exp2_test): Likewise.
28280         (expm1_test): Likewise.
28281         (nextafter_test): Likewise.
28282         (pow_test): Likewise.
28283         (scalbn_test): Likewise.
28284         (scalbln_test): Likewise.
28285
28286 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28287
28288         * sysdeps/x86_64/bits/atomic.h
28289         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
28290         64bit integer.
28291         (atomic_exchange_acq): Likewise.
28292         (__arch_exchange_and_add_body): Likewise.
28293         (__arch_add_body): Likewise.
28294         (atomic_add_negative): Likewise.
28295         (atomic_add_zero): Likewise.
28296
28297 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28298
28299         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
28300         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
28301
28302 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28303
28304         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
28305         Check __x86_64__ instead of __WORDSIZE.
28306
28307 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28308
28309         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
28310
28311 2012-03-19  David S. Miller  <davem@davemloft.net>
28312
28313         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28314
28315         * sysdeps/sparc/fpu/fenv_private.h: New file.
28316         * sysdeps/sparc/fpu/math_private.h: Use it.
28317         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
28318         Remove.
28319         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
28320         (libc_feholdexcept_setroundl): Remove.
28321         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
28322         Remove.
28323         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
28324         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
28325
28326 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28327
28328         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
28329         int64_t instead of long int.
28330         (INSERT_WORDS64): Likwise.
28331
28332 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28333
28334         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
28335         _Unwind_GetCFA return to _Unwind_Ptr first.
28336
28337 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
28338
28339         [BZ #13629]
28340         * math/s_clog.c: Include <float.h>.
28341         (__clog): Scale large or subnormal inputs.
28342         * math/s_clogf.c: Likewise.
28343         * math/s_clogl.c: Likewise.
28344         * math/s_clog10.c: Include <float.h>.
28345         (M_LOG10_2): Define.
28346         (__clog10): Scale large or subnormal inputs.
28347         * math/s_clog10f.c: Likewise.
28348         * math/s_clog10l.c: Likewise.
28349         * math/libm-test.inc (clog_test): Add more tests.
28350         (clog10_test): Likewise.
28351         * sysdeps/i386/fpu/libm-test-ulps: Update.
28352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28353
28354         [BZ #11451]
28355         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
28356         x and y.
28357         * math/libm-test.inc (atan2_test): Add another test.
28358
28359         * Makerules (common-objdir-compile): Remove.
28360         * sysdeps/unix/Makefile (config-generated): Do not add
28361         $(unix-generated) to variable.
28362         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
28363         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
28364         Remove rule.
28365         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
28366         Likewise.
28367         [generic bits/local_lim.h] (before-compile): Do not append to
28368         variable.
28369         [generic bits/local_lim.h] (common-generated): Likewise.
28370         [generic sys/param.h] (before-compile): Do not append to variable.
28371         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
28372         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
28373         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
28374         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
28375         include.
28376         [generic sys/param.h] (sys/param.h-includes): Remove variable.
28377         [generic sys/param.h] (sys/param.h-includes): Remove rule.
28378         [generic sys/param.h] ($(addprefix
28379         $(common-objpfx),$(sys/param.h-includes))): Likewise.
28380         [generic sys/param.h] (common-generated): Do not append to
28381         variable.
28382         [generic sys/param.h] (sysdep_headers): Likewise.
28383         [generic bits/errno.h] (before-compile): Do not append to
28384         variable.
28385         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
28386         rule.
28387         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
28388         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
28389         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
28390         [generic bits/errno.h] (common-generated): Do not append to
28391         variable.
28392         [generic bits/ioctls.h] (before-compile): Do not append to
28393         variable.
28394         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
28395         rule.
28396         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
28397         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
28398         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
28399         rule.
28400         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
28401         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
28402         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
28403         [generic bits/ioctls.h] (common-generated): Do not append to
28404         variable.
28405         [generic sys/syscall.h] (syscall.h): Remove variable.
28406         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
28407         rule.
28408         [generic sys/syscall.h] (before-compile): Do not append to
28409         variable.
28410         [generic sys/syscall.h] (common-generated): Likewise.
28411         * sysdeps/unix/errnos-tmpl.c: Remove file.
28412         * sysdeps/unix/errnos.awk: Likewise.
28413         * sysdeps/unix/ioctls-tmpl.c: Likewise.
28414         * sysdeps/unix/ioctls.awk: Likewise.
28415         * sysdeps/unix/mk-local_lim.c: Likewise.
28416         * sysdeps/unix/snarf-ioctls: Likewise.
28417
28418 2012-03-19  Richard Henderson  <rth@twiddle.net>
28419
28420         * sysdeps/i386/fpu/fenv_private.h: New file.
28421         * sysdeps/i386/fpu/math_private.h: Use it.
28422         (math_opt_barrier, math_force_eval): Remove.
28423         (libc_feholdexcept_setround_53bit): Remove.
28424         (libc_feupdateenv_53bit): Remove.
28425         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28426         (math_opt_barrier, math_force_eval): Remove.
28427         (libc_feholdexcept): Remove.
28428         (libc_feholdexcept_setround): Remove.
28429         (libc_fetestexcept, libc_fesetenv): Remove.
28430         (libc_feupdateenv_test): Remove.
28431         (libc_feupdateenv, libc_feholdsetround): Remove.
28432         (libc_feresetround): Remove.
28433
28434         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
28435         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28436
28437         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
28438         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
28439         (libc_feupdateenv_testl): New.
28440         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
28441         (libc_feupdateenv_testf): New.
28442         (libc_feupdateenv): Use libc_feupdateenv_test.
28443         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
28444         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
28445
28446         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
28447         (libc_feholdsetroundf, libc_feholdsetroundl): New.
28448         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
28449         (libc_feresetround_noex): New.
28450         (libc_feresetround_noexf): New.
28451         (libc_feresetround_noexl): New.
28452         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
28453         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
28454         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
28455         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
28456         SET_RESTORE_ROUND.
28457         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
28458         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
28459         (__cos): Likewise.
28460         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
28461         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
28462         SET_RESTORE_ROUND_NOEX.
28463         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
28464         SET_RESTORE_ROUND_NOEXF.
28465         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
28466         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
28467         (libc_feholdsetroundf): New.
28468         (libc_feresetround, libc_feresetroundf): New.
28469
28470         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
28471         (libc_feholdexcept_setround_53bit): Convert from macro to function.
28472         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
28473
28474         * sysdeps/generic/math_private.h: Include <fenv.h>.
28475         (default_libc_feholdexcept): New.
28476         (default_libc_feholdexcept_setround): New.
28477         (default_libc_fesetenv, default_libc_feupdateenv): New.
28478         (libc_feholdexcept): Only define if undefined.
28479         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
28480         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
28481         (libc_feholdexcept_setroundl): Likewise.
28482         (libc_feholdexcept_setround_53bit): Likewise.
28483         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
28484         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
28485         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
28486         (libc_feupdateenv_53bit): Likewise.
28487         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
28488         (libc_feholdexcept): Convert from macro to inline function.
28489         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
28490         (libc_fesetenv, libc_feupdateenv): Likewise.
28491
28492         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
28493         not previously defined.
28494         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
28495         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
28496         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
28497         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
28498         * sysdeps/ieee754/flt-32/math_private.h: New file.
28499         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
28500         math_private.h below SET_FLOAT_WORD.
28501         (__isnan, __isinf_ns, __finite): Remove.
28502         (__isnanf, __isinf_nsf, __finitef): Remove.
28503
28504 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
28505
28506         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28507
28508 2012-03-17  David S. Miller  <davem@davemloft.net>
28509
28510         [BZ #6471]
28511         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
28512         for 2.16.
28513
28514 2012-03-16  David S. Miller  <davem@davemloft.net>
28515
28516         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
28517         warnings.
28518
28519         [BZ #6471]
28520         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
28521         properly.
28522         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
28523         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
28524         sysdep_routines when subdir is sysvipc.
28525         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
28526         __getshmlba helper.
28527
28528         * sysdeps/sparc/fpu/libm-test/ulps: Update.
28529
28530 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28531
28532         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
28533         [__LP64__].
28534
28535 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28536
28537         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
28538         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
28539         (__lround): Renamed to ...
28540         (__llround): This.  Replace long int with long long int.
28541         Define lround functions as aliases of llround functions.
28542         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
28543
28544 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28545
28546         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
28547         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
28548         adresses to uintptr_t.  Replace "long int" and "unsigned long
28549         int" with "greg_t" on va_arg.
28550
28551 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28552
28553         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
28554         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
28555
28556         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
28557         Move e_machine check before EI_CLASS check.  Handle x32
28558         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
28559         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
28560         SKIP_EM_IA_64 and include
28561         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
28562
28563         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
28564         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
28565         (add_system_dir): New macro.
28566
28567         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
28568         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
28569
28570 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28571
28572         [BZ #2551]
28573         [BZ #2552]
28574         [BZ #2553]
28575         [BZ #2554]
28576         [BZ #2562]
28577         [BZ #2563]
28578         [BZ #2565]
28579         [BZ #2566]
28580         [BZ #2576]
28581         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
28582         (y0): Likewise.
28583         * math/w_j0f.c (j0f): Likewise.
28584         (y0f): Likewise.
28585         * math/w_j0l.c (__j0l): Likewise.
28586         (__y0l): Likewise.
28587         * math/w_j1.c (j1): Likewise.
28588         (y1): Likewise.
28589         * math/w_j1f.c (j1f): Likewise.
28590         (y1f): Likewise.
28591         * math/w_j1l.c (__j1l): Likewise.
28592         (__y1l): Likewise.
28593         * math/w_jn.c (jn): Likewise.
28594         (yn): Likewise.
28595         * math/w_jnf.c (jnf): Likewise.
28596         (ynf): Likewise.
28597         * math/w_jnl.c (__jnl): Likewise.
28598         (__ynl): Likewise.
28599         * math/libm-test.inc (j0_test): Add more tests.
28600         (j1_test): Likewise.
28601         (jn_test): Likewise.  Add trailing semicolon to existing test.
28602         (y0_test): Likewise.
28603         (y1_test): Likewise.
28604         * sysdeps/i386/fpu/libm-test-ulps: Update.
28605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28606
28607         [BZ #13851]
28608         [BZ #13854]
28609         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
28610         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
28611         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
28612         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
28613         (__tanl): Set errno for infinite argument.
28614         * sysdeps/i386/fpu/mptan.c: Remove.
28615         * sysdeps/i386/fpu/s_tan.S: Likewise.
28616         * sysdeps/i386/fpu/s_tanl.S: Likewise.
28617         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
28618         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
28619         * math/libm-test.inc (tan_test): Add more tests and enable more
28620         tests for double and long double.
28621         * sysdeps/i386/fpu/libm-test-ulps: Update.
28622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28623
28624 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
28625
28626         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
28627         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
28628
28629 2012-03-16  Roland McGrath  <roland@hack.frob.com>
28630
28631         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
28632         * configure.in: Use it for both main tree and add-ons.
28633         * configure: Regenerated.
28634
28635 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28636
28637         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
28638
28639 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28640
28641         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
28642         in comment.
28643
28644         [BZ #13851]
28645         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
28646         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
28647         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
28648         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
28649         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
28650         infinite argument.
28651         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
28652         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
28653         != 0 for prec == 2.
28654         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
28655         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
28656         * sysdeps/i386/fpu/s_cosl.S: Likewise.
28657         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
28658         * sysdeps/i386/fpu/s_sinl.S: Likewise.
28659         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
28660         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
28661         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
28662         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
28663         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
28664         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
28665         * math/libm-test.inc (cos_test): Add more tests and enable more
28666         tests for long double.
28667         (sin_test): Likewise.
28668         (sincos_test): Likewise.
28669         * sysdeps/i386/fpu/libm-test-ulps: Update.
28670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28671
28672 2012-03-16  David S. Miller  <davem@davemloft.net>
28673
28674         * sysdeps/sparc/fpu/math_private.h: New file.
28675
28676 2012-03-15  David S. Miller  <davem@davemloft.net>
28677
28678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
28679         file.
28680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
28681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
28682         file.
28683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
28684         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
28685         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
28686         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
28687         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
28688         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
28689         sysdep routines.
28690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28691
28692         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
28693         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
28694
28695         * sysdeps/sparc/sparc-ifunc.h: New file.
28696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
28697         sparc-ifunc.h
28698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
28699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28700         Likewise.
28701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
28702         Likewise.
28703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
28704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
28705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
28706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
28707         Likewise.
28708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
28709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
28710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
28711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
28712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
28713         Likewise.
28714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
28715         Likewise.
28716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
28717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
28718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
28719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
28720         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
28721         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
28722         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
28723         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
28724         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
28725         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
28726         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
28727         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
28728         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
28729         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
28730         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
28731         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
28732         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
28733         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
28734         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
28735         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
28736         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
28737         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
28738         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
28739         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
28740
28741 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28742
28743         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
28744         scaling.
28745         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28746
28747 2012-03-15  Andreas Jaeger  <aj@suse.de>
28748
28749         [BZ #13852]
28750         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
28751         ieee754/flt-32 implementation for sin, cos and sincos.
28752         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
28753         * sysdeps/i386/fpu/s_cosf.S: Likewise.
28754         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
28755         * sysdeps/i386/fpu/s_sinf.S: Likewise.
28756         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
28757         ieee754/flt-32 implementation for tan.
28758
28759         * math/libm-test.inc (cos_test): Enable some large input tests for
28760         float as well
28761         (sin_test): Likewise.
28762         (sincos_test): Likewise.
28763         (tan_test): Add tests for large input.
28764
28765         * sysdeps/i386/fpu/libm-test-ulps: Update.
28766
28767 2012-03-15  Andreas Jaeger  <aj@suse.de>
28768
28769         [BZ #13658]
28770         * math/libm-test.inc (cos_test): Add more test cases.
28771         (sin_test): Likewise.
28772         (sincos_test): Likewise.
28773
28774 2012-03-15  Andreas Jaeger  <aj@suse.de>
28775
28776         [BZ #13837]
28777         * math/libm-test.inc (cos_test): Add a test case for large input
28778         value.
28779         (sin_test): Likewise.
28780         (sincos_test): Likewise.
28781
28782 2012-03-15  Andreas Jaeger  <aj@suse.de>,
28783         Joseph Myers  <joseph@codesourcery.com>
28784
28785         [BZ #13658]
28786         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
28787         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
28788         * sysdeps/i386/fpu/branred.c: Likewise.
28789         * sysdeps/i386/fpu/dosincos.c: Likewise.
28790         * sysdeps/i386/fpu/mpa.c: Likewise.
28791         * sysdeps/i386/fpu/s_cos.S: Likewise.
28792         * sysdeps/i386/fpu/s_sin.S: Likewise.
28793         * sysdeps/i386/fpu/s_sincos.S: Likewise.
28794         * sysdeps/i386/fpu/sincos32.c: Likewise.
28795
28796         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
28797         Define.
28798         (libc_feupdateenv_53bit): Define.
28799         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
28800         Define.
28801         (libc_feupdateenv_53bit): Define.
28802
28803         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
28804         53 bit (without extend i386 double precision).
28805
28806         * math/libm-test.inc (sincos_test): Add tests for large input.
28807         (sin): Likewise.
28808         (cos): Likewise.
28809
28810         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28811
28812 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28813
28814         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28815
28816 2012-03-15  David S. Miller  <davem@davemloft.net>
28817
28818         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
28819         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
28820         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
28821         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
28822         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
28823         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
28824         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
28825         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
28826         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
28827         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
28828         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
28829         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
28830         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
28831         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
28832         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
28833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
28834         file.
28835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
28836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
28837         file.
28838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
28839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
28840         file.
28841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
28842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
28843         file.
28844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
28845         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
28846         fmin/fmax sysdep routines.
28847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28848
28849 2012-03-14  David S. Miller  <davem@davemloft.net>
28850
28851         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
28852         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
28853         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
28854         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
28855         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
28856         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
28857         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
28858         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
28859         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
28860         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
28861         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
28862         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
28863         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
28864         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
28865         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
28866         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
28867         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
28868         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
28869         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
28870         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
28871         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
28872         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
28873         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
28874         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
28875         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
28876         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
28877         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
28878         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
28879         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
28880         routines.
28881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
28882         file.
28883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
28884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
28885         file.
28886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
28887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
28888         file.
28889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
28890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
28891         file.
28892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
28893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
28894         file.
28895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
28896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
28897         file.
28898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
28899         file.
28900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
28901         file.
28902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
28903         file.
28904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
28905         New file.
28906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
28907         file.
28908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
28909         file.
28910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
28911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
28912         file.
28913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
28914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
28915         file.
28916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
28917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
28918         file.
28919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
28920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
28921         VIS3 routines.
28922
28923         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
28924         New file.
28925
28926         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28927
28928         * sysdeps/sparc/configure.in: New file.
28929         * sysdeps/sparc/configure: Generate.
28930         * configure.in (libc_cv_sparc_as_vis3): Substitute.
28931         * configure: Regenerate.
28932         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
28933         * config.make.in (have-as-vis3): New.
28934         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
28935         available use -Av9d instead of -Av9a.
28936         * sysdeps/sparc/sparc64/Makefile: Likewise.
28937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
28938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
28939         New file.
28940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
28941         file.
28942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
28943         New file.
28944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
28945         file.
28946         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
28947         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
28948         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
28949         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
28950         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
28951
28952         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
28953         fzeros/fnegs to load 0x80000000 into a float register instead of
28954         using the stack.
28955         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
28956
28957 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28958
28959         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28960         bits/syscall.h.
28961         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
28962         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
28963         ($(inst_includedir)/bits/syscall.h): Remove rule.
28964         ($(objpfx)bits/syscall.d): Include instead of
28965         $(objpfx)syscall-list.d.
28966         (generated): Change syscall-list.h and syscall-list.d to
28967         bits/syscall.h and bits/syscall.d.
28968
28969 2012-03-14  Roland McGrath  <roland@hack.frob.com>
28970
28971         [BZ #13846]
28972         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
28973
28974 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28975
28976         [BZ #13841]
28977         * math/s_csqrt.c: Include <float.h>.
28978         (__csqrt): Scale large or subnormal inputs.
28979         * math/s_csqrtf.c: Likewise.
28980         * math/s_csqrtl.c: Likewise.
28981         * math/libm-test.inc (csqrt_test): Add more tests.
28982         * sysdeps/i386/fpu/libm-test-ulps: Update.
28983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28984
28985         [BZ #13840]
28986         * math/libm-test.inc (hypot_test): Add more tests.
28987
28988 2012-03-13  David S. Miller  <davem@davemloft.net>
28989
28990         [BZ #13840]
28991         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
28992         double-precision for the calculation instead of scaling.
28993
28994 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
28995
28996         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
28997         manipulate bits before adding and subtracting TWO52[sx].
28998         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
28999         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29000         Likewise.
29001         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
29002
29003 2012-03-13  David S. Miller  <davem@davemloft.net>
29004
29005         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
29006         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
29007         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
29008         rtld-global-offsets.h
29009         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
29010
29011         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
29012         large parameters.
29013
29014         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
29015
29016         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
29017         'err' in the ifdef scope in which it is actually used.
29018
29019         * nss/nss_db/db-init.c: Include string.h
29020
29021 2012-03-12  David S. Miller  <davem@davemloft.net>
29022
29023         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
29024         masking out of the most significant byte of random value used.
29025         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
29026         Fix coding style in previous change.
29027
29028         * sysdeps/unix/sysv/linux/kernel-features.h
29029         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
29030         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
29031         expression.
29032         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
29033         later.
29034
29035 2012-03-11  David S. Miller  <davem@davemloft.net>
29036
29037         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
29038         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
29039         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
29040         for 'resultvar' otherwise things get truncated on 64-bit.
29041
29042         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
29043         Fix masking out of the most significant byte of random value used.
29044
29045         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29046
29047 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
29048
29049         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29050
29051 2012-03-09  David S. Miller  <davem@davemloft.net>
29052
29053         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
29054         variables with appropriate CPP guards.
29055         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
29056         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
29057         on resulting framesize and the management of the outregs buffer for pltexit.
29058         Preserve floating point return values across _dl_call_pltexit call.
29059         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
29060         framesize and the management of the outregs buffer for pltexit.
29061         Preserve floating point return values across _dl_call_pltexit
29062         call.
29063         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
29064         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
29065         (print_exit): Fix format string for return register value.
29066
29067 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
29068
29069         * sunrpc/Makefile (others): Add rpcgen.
29070         ($(objpfx)rpcgen): Remove special build rule and dependency on
29071         libc.
29072         * sunrpc/rpcgen.c: New file.
29073
29074 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
29075
29076         [BZ #13673]
29077         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
29078         * stdio-common/bug-vfprintf-nargs.c: Likewise.
29079         * sysdeps/i386/crti.S: Likewise.
29080         * sysdeps/i386/crtn.S: Likewise.
29081         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
29082         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
29083         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
29084         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
29085         * sysdeps/sh/crti.S: Likewise.
29086         * sysdeps/sh/crtn.S: Likewise.
29087         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29088
29089         [BZ #13673]
29090         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
29091         with URL.
29092         * locale/programs/locfile-kw.gperf: Likewise.
29093         * locale/programs/charmap-kw.h: Regenerated.
29094         * locale/programs/locfile-kw.h: Likewise.
29095
29096         [BZ #13673]
29097         * intl/plural.y: Replace FSF snail mail address with URL.
29098         * intl/plural.c: Regenerated.
29099
29100 2012-03-09  Richard Henderson  <rth@twiddle.net>
29101
29102         * include/math_private.h: Remove file.
29103         * math/math_private.h: Move file ...
29104         * sysdeps/generic/math_private.h: ... here.
29105
29106         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
29107         * sysdeps/powerpc/fpu/math_private.h: Likewise.
29108         * sysdeps/x86_64/fpu/math_private.h: Likewise.
29109
29110         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
29111         and <math_private.h>.
29112         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
29113         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
29114         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
29115         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
29116         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
29117         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
29118         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
29119         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29120         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
29121         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29122         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29123         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29124         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
29125         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29126         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
29127         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
29128         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29129         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
29130         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
29131         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
29132         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29133         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
29134         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
29135         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29136         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
29137         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
29138         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
29139         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29140         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29141         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
29142         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
29143         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29144         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
29145         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
29146         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
29147         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
29148         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
29149         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
29150         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
29151         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29152         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
29153         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
29154         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
29155         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
29156         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
29157         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
29158         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
29159         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
29160         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
29161         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
29162         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
29163         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
29164         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
29165         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
29166         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
29167         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
29168         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
29169         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
29170         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
29171         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
29172         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
29173         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
29174         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29175         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
29176         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
29177         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
29178         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
29179         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
29180         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
29181         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
29182         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
29183         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
29184         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
29185         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
29186         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
29187         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
29188         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
29189         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
29190         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
29191         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
29192         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
29193         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
29194         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
29195         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
29196         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
29197         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
29198         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
29199         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
29200         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29201         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29202         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29203         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29204         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29205         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29206         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29207         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29208         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29209         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29210         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29211         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29212         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29213         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29214         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29215         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29216         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
29217         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29218         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29219         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29220         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
29221         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
29222         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
29223         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
29224         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29225         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
29226         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
29227         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29228         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
29229         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
29230         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
29231         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
29232         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
29233         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
29234         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29235         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
29236         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
29237         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
29238         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29239         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
29240         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
29241         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
29242         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
29243         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
29244         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
29245         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
29246         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
29247         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
29248         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29249         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
29250         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
29251         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
29252         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
29253         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
29254         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
29255         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
29256         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
29257         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
29258         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
29259         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
29260         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
29261         * sysdeps/ieee754/k_standard.c: Likewise.
29262         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29263         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29264         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29265         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29266         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29267         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29268         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29269         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29270         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29271         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29272         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29273         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29274         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29275         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29276         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29277         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29278         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
29279         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29280         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29281         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
29282         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
29283         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
29284         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
29285         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
29286         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
29287         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
29288         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
29289         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
29290         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
29291         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
29292         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
29293         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
29294         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
29295         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
29296         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
29297         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
29298         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
29299         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
29300         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
29301         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
29302         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
29303         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
29304         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
29305         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
29306         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
29307         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
29308         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
29309         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
29310         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
29311         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
29312         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
29313         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
29314         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
29315         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
29316         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
29317         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
29318         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
29319         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
29320         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
29321         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
29322         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
29323         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
29324         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
29325         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29326         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29327         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29328         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29329         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29330         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29331         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29332         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29333         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29334         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29335         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29336         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29337         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29338         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
29339         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29340         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29341         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
29342         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
29343         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
29344         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
29345         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
29346         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
29347         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
29348         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
29349         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29350         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29351         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
29352         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
29353         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
29354         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
29355         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
29356         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
29357         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
29358         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
29359         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
29360         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
29361         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
29362         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
29363         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
29364         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
29365         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
29366         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
29367         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
29368         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
29369         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
29370         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
29371         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
29372         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
29373         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
29374         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29375         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29376         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29377         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29378         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29379         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29380         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29381         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29382         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29383         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29384         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29385         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29386         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29387         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
29388         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
29389         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
29390         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
29391         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
29392         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
29393         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
29394         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
29395         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
29396         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
29397         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
29398         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
29399         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
29400         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
29401         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
29402         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
29403         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
29404         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
29405         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
29406         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
29407         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
29408         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
29409         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
29410         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
29411         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
29412         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
29413         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
29414         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
29415         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
29416         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
29417         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
29418         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
29419         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
29420         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
29421         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
29422         * sysdeps/ieee754/s_lib_version.c: Likewise.
29423         * sysdeps/ieee754/s_matherr.c: Likewise.
29424         * sysdeps/ieee754/s_signgam.c: Likewise.
29425         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29426         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29427         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
29428         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
29429         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
29430         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
29431         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
29432         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
29433         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
29434         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
29435         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
29436         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
29437         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
29438         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
29439         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
29440         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
29441         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
29442         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
29443         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
29444         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
29445         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
29446
29447 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29448
29449         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
29450         * sunrpc/rpc_main.c: Likewise.
29451         * sunrpc/rpc_svcout.c: Likewise.
29452
29453 2012-03-09  David S. Miller  <davem@davemloft.net>
29454
29455         * include/math_private.h: New file.
29456
29457 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29458
29459         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
29460         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
29461         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
29462         from <bits/socket_type.h>.
29463         (enum __socket_type): Don't define here.
29464         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
29465         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29466         bits/socket_type.h.
29467
29468         [BZ #13566]
29469         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
29470         checking __USE_GNU.
29471
29472         * Makerules ($(inst_includedir)/%.h): New rule.
29473         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
29474         (install-others): Remove variable setting.
29475         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
29476
29477 2012-03-08  Richard Henderson  <rth@twiddle.net>
29478
29479         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
29480         from macro to inline function; merge with the
29481         !__LIBC_INTERNAL_MATH_INLINES version.
29482         (__ieee754_sqrtf): Likewise.
29483
29484         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
29485         to inline function.
29486         (__rintf, __floor, __floorf): Likewise.
29487
29488         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
29489         macro to inline function.
29490         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
29491
29492         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
29493         not <math/math_private.h>.
29494
29495 2012-03-08  David S. Miller  <davem@davemloft.net>
29496
29497         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
29498         copyright year.
29499         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
29500
29501 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
29502
29503         * resolv/gai_misc.c (handle_requests): Fix struct timespec
29504         normalization.
29505         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
29506         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29507
29508 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
29509
29510         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
29511         be defined individually, they must be defined as a block.  Define
29512         S for printing a string instead of hidint the different by using a
29513         macro for adding the 'l'.
29514         * stdio-common/tst-fphex-wide.c: Adjust.
29515
29516 2012-03-07  Marek Polacek  <polacek@redhat.com>
29517
29518         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
29519
29520 2012-03-08  Marek Polacek  <polacek@redhat.com>
29521
29522         [BZ #13806]
29523         * stdio-common/Makefile (tests): Add tst-fphex-wide.
29524         * stdio-common/tst-fphex.c: Define a few macros to make the
29525         test reusable.  Use them.
29526         * stdio-common/tst-fphex-wide.c: New file.
29527
29528 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
29529
29530         [BZ #6911]
29531         * manual/macros.texi (gnusystems): New macro.
29532         (nongnusystems): Likewise.
29533         (gnulinuxhurdsystems): Likewise.
29534         (gnuhurdsystems): Likewise..
29535         (gnulinuxsystems): Likewise.
29536         * manual/charset.texi: Use new macros or @theglibc{} to refer to
29537         variants of the GNU system, not "GNU system".
29538         * manual/conf.texi: Likewise.
29539         * manual/errno.texi: Likewise.  Update example of errno macro
29540         expansion.
29541         * manual/filesys.texi: Likewise.
29542         (getumask): Document as specific to GNU/Hurd.
29543         * manual/install.texi: Likewise.  Reword some references to
29544         GNU/Linux.
29545         * manual/intro.texi: Likewise.
29546         * manual/io.texi: Likewise.
29547         (File Name Portability): Detail which constraints are inapplicable
29548         to all GNU systems and which are only inapplicable to GNU/Hurd.
29549         * manual/job.texi: Likewise.
29550         * manual/llio.texi: Likewise.
29551         (O_NOCTTY): Document as present on GNU/Linux.
29552         * manual/maint.texi: Likewise.
29553         * manual/memory.texi: Likewise.
29554         * manual/pattern.texi: Likewise.
29555         * manual/pipe.texi: Likewise.
29556         * manual/process.texi: Likewise.
29557         * manual/resource.texi: Likewise.
29558         (RUSAGE_CHILDREN): Remove statement about specifying a particular
29559         child on GNU/Hurd.
29560         * manual/setjmp.texi: Likewise.
29561         * manual/signal.texi: Likewise.
29562         * manual/startup.texi: Likewise.
29563         * manual/stdio.texi: Likewise.
29564         * manual/terminal.texi: Likewise.
29565         (ONLCR): Document as POSIX.
29566         (OXTABS): Document availability on GNU/Linux as XTABS.
29567         (ONOEOT): Document availability separately from other bits.
29568         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
29569         * manual/time.texi: Likewise.
29570         * manual/users.texi: Likewise.
29571         * INSTALL: Regenerated.
29572         * sysdeps/gnu/errlist.c: Regenerated.
29573
29574         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
29575         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
29576         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
29577         puts.
29578         * configure: Regenerated.
29579
29580 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
29581
29582         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
29583         default includes instead of AC_HEADER_CHECK.
29584         * sysdeps/i386/configure: Regenerated.
29585
29586         [BZ #10716]
29587         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
29588         * math/s_cacoshf.c (__cacoshf): Likewise.
29589         * math/s_cacoshl.c (__cacoshl): Likewise.
29590         * math/s_casinh.c (__casinh): Set signs of result from argument.
29591         * math/s_casinhf.c (__casinhf): Likewise.
29592         * math/s_casinhl.c (__casinhl): Likewise.
29593         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
29594         (casinh_test): Add more tests.
29595         * sysdeps/i386/fpu/libm-test-ulps: Update.
29596         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29597
29598 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
29599
29600         * po/zh_TW.po: Update from translation team.
29601
29602         * login/Makefile (distribute): Remove variable.
29603         * catgets/Makefile: Likewise.
29604         * mach/Makefile: Likewise.
29605         * malloc/Makefile: Likewise.
29606         * misc/Makefile: Likewise.
29607         * iconv/Makefile: Likewise.
29608         * nscd/Makefile: Likewise.
29609         * hurd/Makefile: Likewise.
29610         * manual/Makefile: Likewise.
29611         * locale/Makefile: Likewise.
29612         * intl/Makefile: Likewise.
29613         * conform/Makefile: Likewise.
29614         * nss/Makefile: Likewise.
29615         * time/Makefile: Likewise.
29616         * soft-fp/Makefile: Likewise.
29617         * dirent/Makefile: Likewise.
29618         * gmon/Makefile: Likewise.
29619         * po/Makefile: Likewise.
29620         * rt/Makefile: Likewise.
29621         * socket/Makefile: Likewise.
29622         * math/Makefile: Likewise.
29623         * signal/Makefile: Likewise.
29624         * debug/Makefile: Likewise.
29625         * elf/Makefile: Likewise.
29626         * timezone/Makefile: Likewise.
29627         * stdlib/Makefile: Likewise.
29628         * iconvdata/Makefile: Likewise.
29629         * sunrpc/Makefile: Likewise.
29630         * io/Makefile: Likewise.
29631         * argp/Makefile: Likewise.
29632         * inet/Makefile: Likewise.
29633         * hesiod/Makefile: Likewise.
29634         * grp/Makefile: Likewise.
29635         * csu/Makefile: Likewise.
29636         * wctype/Makefile: Likewise.
29637         * crypt/Makefile: Likewise.
29638         * libio/Makefile: Likewise.
29639         * string/Makefile: Likewise.
29640         * nis/Makefile: Likewise.
29641         * resolv/Makefile: Likewise.
29642         * stdio-common/Makefile: Likewise.
29643         * wcsmbs/Makefile: Likewise.
29644         * dlfcn/Makefile: Likewise.
29645         * posix/Makefile: Likewise.
29646
29647         [BZ #6959]
29648         * timezone/Makefile: Don't install timezone files, just the programs
29649         and scripts.
29650
29651 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
29652
29653         * nss/databases.def: Add missing gshadow entry.
29654
29655         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
29656
29657 2012-03-06  Marek Polacek  <polacek@redhat.com>
29658
29659         [BZ #13726]
29660         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
29661         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
29662         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
29663         * stdio-common/tst-long-dbl-fphex.c: New file.
29664
29665 2012-03-06  David S. Miller  <davem@davemloft.net>
29666
29667         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
29668         (set_obp_int): New function.
29669         (get_obp_int): New function.
29670         (__get_clockfreq_via_dev_openprom): Likewise.
29671         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
29672         Avoid unused variable warnings on 'val' and use builtin_expect.
29673         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
29674         __builtin_expect.
29675         (INLINE_CLONE_SYSCALL): Likewise.
29676
29677 2012-03-05  David S. Miller  <davem@davemloft.net>
29678
29679         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29680
29681 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
29682
29683         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29684
29685         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
29686         only for |x| >= 40.
29687         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29688
29689 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
29690
29691         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
29692         Replace gettimeofday with __vdso_gettimeofday.
29693
29694         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29695         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
29696         __vdso_clock_gettime and __vdso_getcpu.
29697
29698         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
29699         time with __vdso_time.
29700
29701 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29702
29703         * manual/lang.texi (size_t): Note types to which size_t may be
29704         equivalent with the GNU C Library, but do not describe when
29705         differences between them are significant.
29706
29707 2012-03-05  Andreas Jaeger  <aj@suse.de>
29708
29709         * sysdeps/i386/fpu/libm-test-ulps: Update.
29710
29711 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29712
29713         [BZ #3976]
29714         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
29715         (__ieee754_pow): Save and restore rounding mode and use
29716         round-to-nearest for main computations.
29717         * math/libm-test.inc (pow_test_tonearest): New function.
29718         (pow_test_towardzero): Likewise.
29719         (pow_test_downward): Likewise.
29720         (pow_test_upward): Likewise.
29721         (main): Call the new functions.
29722         * sysdeps/i386/fpu/libm-test-ulps: Update.
29723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29724
29725         [BZ #3976]
29726         * math/libm-test.inc (cosh_test_tonearest): New function.
29727         (cosh_test_towardzero): Likewise.
29728         (cosh_test_downward): Likewise.
29729         (cosh_test_upward): Likewise.
29730         (sinh_test_tonearest): Likewise.
29731         (sinh_test_towardzero): Likewise.
29732         (sinh_test_downward): Likewise.
29733         (sinh_test_upward): Likewise.
29734         (main): Call the new functions.
29735         * sysdeps/i386/fpu/libm-test-ulps: Update.
29736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29737
29738 2012-03-05  Tom de Vries  <tom@codesourcery.com>
29739
29740         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
29741         default stack guard is set in last bytes.
29742         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
29743
29744 2012-03-05  Kees Cook  <keescook@chromium.org>
29745
29746         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
29747
29748         [BZ #13656]
29749         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
29750         possibly allocate from heap instead of stack.
29751         * stdio-common/bug-vfprintf-nargs.c: New file.
29752         * stdio-common/Makefile (tests): Add nargs overflow test.
29753
29754 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
29755
29756         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29757
29758 2012-03-03  Marek Polacek  <polacek@redhat.com>
29759
29760         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
29761         * math/math_private.h: Likewise.
29762         * stdlib/tst-strtod.c: Likewise.
29763         * sysdeps/i386/i486/bits/atomic.h: Likewise.
29764         * sysdeps/x86_64/bits/atomic.h: Likewise.
29765
29766 2012-03-02  David S. Miller  <davem@davemloft.net>
29767
29768         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
29769         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
29770         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
29771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
29772         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
29773         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
29774         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
29775         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
29776
29777 2012-03-02  Roland McGrath  <roland@hack.frob.com>
29778
29779         [BZ #13792]
29780         * manual/examples/README: New file, says the example source files
29781         can be used under GPL>=2.
29782         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
29783         line containing just "*/".
29784         * manual/examples/add.c: Add copyright header (GPL>=2).
29785         * manual/examples/argp-ex1.c: Likewise.
29786         * manual/examples/argp-ex2.c: Likewise.
29787         * manual/examples/argp-ex3.c: Likewise.
29788         * manual/examples/argp-ex4.c: Likewise.
29789         * manual/examples/atexit.c: Likewise.
29790         * manual/examples/db.c: Likewise.
29791         * manual/examples/dir.c: Likewise.
29792         * manual/examples/dir2.c: Likewise.
29793         * manual/examples/execinfo.c: Likewise.
29794         * manual/examples/filecli.c: Likewise.
29795         * manual/examples/filesrv.c: Likewise.
29796         * manual/examples/fmtmsgexpl.c: Likewise.
29797         * manual/examples/genpass.c: Likewise.
29798         * manual/examples/inetcli.c: Likewise.
29799         * manual/examples/inetsrv.c: Likewise.
29800         * manual/examples/isockad.c: Likewise.
29801         * manual/examples/longopt.c: Likewise.
29802         * manual/examples/memopen.c: Likewise.
29803         * manual/examples/memstrm.c: Likewise.
29804         * manual/examples/mkfsock.c: Likewise.
29805         * manual/examples/mkisock.c: Likewise.
29806         * manual/examples/mygetpass.c: Likewise.
29807         * manual/examples/pipe.c: Likewise.
29808         * manual/examples/popen.c: Likewise.
29809         * manual/examples/rprintf.c: Likewise.
29810         * manual/examples/search.c: Likewise.
29811         * manual/examples/select.c: Likewise.
29812         * manual/examples/setjmp.c: Likewise.
29813         * manual/examples/sigh1.c: Likewise.
29814         * manual/examples/sigusr.c: Likewise.
29815         * manual/examples/stpcpy.c: Likewise.
29816         * manual/examples/strdupa.c: Likewise.
29817         * manual/examples/strftim.c: Likewise.
29818         * manual/examples/strncat.c: Likewise.
29819         * manual/examples/subopt.c: Likewise.
29820         * manual/examples/swapcontext.c: Likewise.
29821         * manual/examples/termios.c: Likewise.
29822         * manual/examples/testopt.c: Likewise.
29823         * manual/examples/testpass.c: Likewise.
29824         * manual/examples/timeval_subtract.c: Likewise.
29825
29826         [BZ #13792]
29827         * manual/time.texi (Elapsed Time): Move timeval_subtract example
29828         function to ...
29829         * manual/timeval_subtract.c.texi: ... here, new file.
29830
29831 2012-03-02  David S. Miller  <davem@davemloft.net>
29832
29833         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
29834
29835 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
29836
29837         [BZ #3976]
29838         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
29839         (__sin): Save and restore rounding mode and use round-to-nearest
29840         for all computations.
29841         (__cos): Save and restore rounding mode and use round-to-nearest
29842         for all computations.
29843         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
29844         <fenv.h>.
29845         (tan): Save and restore rounding mode and use round-to-nearest for
29846         all computations.
29847         * math/libm-test.inc (cos_test_tonearest): New function.
29848         (cos_test_towardzero): Likewise.
29849         (cos_test_downward): Likewise.
29850         (cos_test_upward): Likewise.
29851         (sin_test_tonearest): Likewise.
29852         (sin_test_towardzero): Likewise.
29853         (sin_test_downward): Likewise.
29854         (sin_test_upward): Likewise.
29855         (tan_test_tonearest): Likewise.
29856         (tan_test_towardzero): Likewise.
29857         (tan_test_downward): Likewise.
29858         (tan_test_upward): Likewise.
29859         (main): Call the new functions.
29860         * sysdeps/i386/fpu/libm-test-ulps: Update.
29861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29862
29863         [BZ #10135]
29864         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
29865         small n, then large n, before computing and testing k+n.
29866         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
29867         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
29868         Likewise.
29869         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
29870         Likewise.
29871         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
29872         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
29873         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
29874         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
29875         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
29876         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
29877         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
29878         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
29879         * math/libm-test.inc (scalbn_test): Add more tests.
29880         (scalbln_test): Likewise.
29881
29882         * manual/filesys.texi (mode_t): Describe constraints on size and
29883         signedness, not exact equivalence to a particular type.
29884         (ino_t): Likewise.
29885         (ino64_t): Likewise.
29886         (dev_t): Likewise.
29887         (nlink_t): Likewise.
29888         (blkcnt_t): Likewise.
29889         (blkcnt64_t): Likewise.
29890         * manual/llio.texi (off_t): Likewise.
29891
29892         [BZ #3976]
29893         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
29894         (__ieee754_exp): Save and restore rounding mode and use
29895         round-to-nearest for all computations.
29896         * math/libm-test.inc (exp_test_tonearest): New function.
29897         (exp_test_towardzero): Likewise.
29898         (exp_test_downward): Likewise.
29899         (exp_test_upward): Likewise.
29900         (main): Call the new functions.
29901         * sysdeps/i386/fpu/libm-test-ulps: Update.
29902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29903
29904 2012-03-01  Chris Demetriou  <cgd@google.com>
29905
29906         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
29907         have predictable order.
29908
29909 2012-03-01  David S. Miller  <davem@davemloft.net>
29910
29911         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
29912
29913         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
29914         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
29915         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
29916         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
29917
29918         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
29919         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
29920         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
29921         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
29922         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
29923         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
29924         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
29925         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
29926         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
29927
29928         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29929
29930         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
29931         * sysdeps/sparc/fpu/libm-test-ulps: to here.
29932         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
29933
29934         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
29935         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29936         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29937         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
29938         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
29939         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
29940         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
29941         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29942         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29943         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
29944         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
29945         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29946         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29947         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29948         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29949         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29950         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
29951         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
29952         * sysdeps/sparc/elf/configure: Regenerated.
29953
29954 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
29955
29956         * configure.in (AS, LD): Require binutils 2.20 or later.
29957         * configure: Regenerated.
29958         * manual/install.texi (Tools for Compilation): Give binutils 2.20
29959         as required minimum version.
29960         * INSTALL: Regenerated.
29961
29962         [BZ #2541]
29963         [BZ #4108]
29964         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
29965         before squaring exponent.
29966         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
29967         bottom long double and 27 bits of top long double before squaring
29968         exponent.
29969         * math/libm-test.inc (erfc_test): Add more tests.
29970         * sysdeps/i386/fpu/libm-test-ulps: Update.
29971         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29973
29974 2012-03-01  Kai Tietz  <ktietz@redhat.com>
29975
29976         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
29977         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
29978         containing bit-fields.
29979         * soft-fp/extended.h (_FP_UNION_E): Likewise.
29980         * soft-fp/single.h (_FP_UNION_S): Likewise.
29981         * soft-fp/double.h (_FP_UNION_D): Likewise.
29982
29983 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29984
29985         [BZ #13786]
29986         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
29987         not include ../strcmp.S.
29988         [USE_AS_STRNCASECMP_L]: Likewise.
29989         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
29990         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
29991         * sysdeps/i386/i686/multiarch/strncase_l-c.c
29992         (__strncasecmp_l_ia32): Define as alias to
29993         __strncasecmp_l_nonascii.
29994
29995         [BZ #5794]
29996         * math/libm-test.inc (expm1_test): Add test for bug 5794.
29997         * sysdeps/i386/fpu/libm-test-ulps: Update.
29998         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29999
30000         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
30001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30002
30003 2012-02-29  Jeff Law  <law@redhat.com>
30004
30005         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
30006         out of bounds read.
30007
30008 2012-02-29  Marek Polacek  <polacek@redhat.com>
30009
30010         [BZ #13706]
30011         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
30012         * elf/Makefile: Add rules to run tst-unused-dep.out.
30013
30014 2012-02-28  David S. Miller  <davem@davemloft.net>
30015
30016         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
30017         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
30018         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
30019         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
30020         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
30021         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
30022
30023 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
30024
30025         * math/libm-test.inc (llround_test): Move one test from
30026         lround_test.  Use TEST_f_L in moved test.
30027         (lround_test): Move misplaced test to llround_test.  Add testcase
30028         from bug 2561.
30029
30030 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
30031
30032         * sysdeps/x86_64/fpu/e_expf.S: New file.
30033         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
30034
30035 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
30036
30037         [BZ #13637]
30038         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
30039         of remain_len that may cause incomplete multi-byte character and
30040         false match.
30041         * posix/bug-regex33.c: New file.
30042         * posix/Makefile (tests): Add bug-regex33.
30043
30044 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
30045
30046         * manual/macros.texi: New file.
30047         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
30048         * manual/libc.texinfo: Include macros.texi.
30049         * manual/creatute.texi: Likewise.
30050         * manual/install.texi: Likewise.
30051         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
30052         @glibcadj{} in references to the GNU C Library.
30053         * manual/charset.texi: Likewise.
30054         * manual/conf.texi: Likewise.
30055         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
30056         when not using those macros.
30057         * manual/creature.texi: Likewise.
30058         * manual/crypt.texi: Likewise.
30059         * manual/errno.texi: Likewise.
30060         * manual/filesys.texi: Likewise.
30061         * manual/header.texi: Likewise.
30062         * manual/install.texi: Likewise.
30063         * manual/intro.texi: Likewise.
30064         * manual/io.texi: Likewise.
30065         * manual/job.texi: Likewise.
30066         * manual/lang.texi: Likewise.
30067         * manual/libc.texiinfo: Likewise.
30068         * manual/llio.texi: Likewise.
30069         * manual/locale.texi: Likewise.
30070         * manual/maint.texi: Likewise.
30071         * manual/math.texi: Likewise.
30072         * manual/memory.texi: Likewise.
30073         * manual/message.texi: Likewise.
30074         * manual/nss.texi: Likewise.
30075         * manual/pattern.texi: Likewise.
30076         * manual/process.texi: Likewise.
30077         * manual/resource.texi: Likewise.
30078         * manual/search.texi: Likewise.
30079         * manual/setjmp.texi: Likewise.
30080         * manual/signal.texi: Likewise.
30081         * manual/socket.texi: Likewise.
30082         * manual/startup.texi: Likewise.
30083         * manual/stdio.texi: Likewise.
30084         * manual/string.texi: Likewise.
30085         * manual/sysinfo.texi: Likewise.
30086         * manual/syslog.texi: Likewise.
30087         * manual/terminal.texi: Likewise.
30088         * manual/time.texi: Likewise.
30089         * manual/users.texi: Likewise.
30090         * INSTALL: Regenerated.
30091         * NOTES: Regenerated.
30092         * sysdeps/gnu/errlist.c: Regenerated.
30093
30094 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
30095
30096         * include/dirent.h: Include <dirstream.h> before
30097         <dirent/dirent.h>.
30098
30099 2012-02-28  David S. Miller  <davem@davemloft.net>
30100
30101         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
30102         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
30103         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
30104         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
30105
30106 2012-02-27  David S. Miller  <davem@davemloft.net>
30107
30108         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
30109         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
30110         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
30111         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
30112
30113         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
30114         frame pointer instead of stack pointer relative arg slot.
30115         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
30116         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
30117         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
30118
30119 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
30120
30121         [BZ #3992]
30122         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
30123
30124 2012-02-27  David S. Miller  <davem@davemloft.net>
30125
30126         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
30127         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
30128         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
30129         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
30130         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
30131         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
30132         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
30133         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
30134
30135 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30136
30137         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
30138         later.  Allow versions 5-9.
30139         * configure: Regenerated.
30140         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
30141         required minimum version and 4.6 as recommended version.  Do not
30142         mention bugs in GCC 2.7 and 2.8.
30143         * INSTALL: Regenerated.
30144
30145 2012-02-27  David S. Miller  <davem@davemloft.net>
30146
30147         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
30148         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
30149         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
30150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
30151         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
30152         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
30153         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
30154         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
30155
30156         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
30157         manipulate bits before adding and subtracting TWO112[sx].
30158         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
30159
30160 2012-02-27  Roland McGrath  <roland@hack.frob.com>
30161
30162         [BZ #13775]
30163         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
30164         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
30165         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
30166         being in POSIX, because they are in 1003.1-2008.
30167
30168         * rt/tst-aio.c: Include <fcntl.h>.
30169         * rt/tst-aio7.c: Likewise.
30170         * rt/tst-aio64.c: Likewise.
30171
30172         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
30173
30174 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30175
30176         * manual/install.texi (--with-headers): Describe headers as
30177         interface headers, not private headers.
30178         (Specific advice for GNU/Linux systems): Describe use of headers
30179         from "make headers_install", not private headers from older
30180         kernels.
30181         * INSTALL: Regenerated.
30182         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
30183         Change to 2.6.19.
30184         * sysdeps/unix/sysv/linux/configure: Regenerated.
30185
30186         * manual/llio.texi (fclean): Remove documentation.
30187
30188         * manual/Makefile (libc-texi-generated): New variable.  Include
30189         version.texi.
30190         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
30191         $(libc-texi-generated), not duplicated list of files.
30192         (version.texi, stamp-version): New rules.
30193         (realclean): Remove $(libc-texi-generated), not individual files
30194         from that list.  Do not remove dir-add.texinfo.
30195         * manual/libc.texinfo: Comment out uses of edition numbers and
30196         references to printed manual.  Remove last-updated dates.
30197         (EDITION): Comment out.
30198         (ISBN): Likewise.
30199         (VERSION, UPDATED): Remove.
30200         (version.texi): Include.
30201
30202 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
30203
30204         * sysdeps/posix/spawni.c: Include <signal.h>.
30205         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
30206         * sysdeps/pthread/aio_fsync.c: Likewise.
30207
30208 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
30209
30210         * conform/Makefile (tests): Run only when not cross-compiling and
30211         when fast-check is not defined.
30212
30213         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
30214         * conform/data/limits.h-data: Fixes for POSIX2008.
30215         * conform/run-conformtest.sh: Run all tests.
30216         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
30217         headers.
30218         * include/bits/dlfcn.h: Likewise.
30219         * include/langinfo.h: Likewise.
30220         * include/monetary.h: Likewise.
30221         * include/sys/poll.h: Likewise.
30222
30223         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
30224         for __USE_GNU.
30225         * posix/spawn.h: Define __need_sigset_t.
30226         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
30227         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
30228         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
30229         to get sigevent_t only.
30230         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
30231         only for __USE_GNU.
30232         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30233         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
30234         process_vm_writev only for __USE_GNU.
30235         * termios/termios.h: Declare tcgetsid also for POSIX2008.
30236
30237         * conform/Makefile: For now ignore errors from run-conformtest.
30238         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
30239         POSIX to avoid namespace pollution.  Don't prepend headers.
30240         * conform/data/aio.h-data: Fixes for POSIX testing.
30241         * conform/data/fcntl.h-data: Likewise.
30242         * conform/data/glob.h-data: Likewise.
30243         * conform/data/grp.h-data: Likewise.
30244         * conform/data/pthread.h-data: Likewise.
30245         * conform/data/pwd.h-data: Likewise.
30246         * conform/data/signal.h-data: Likewise.
30247         * conform/data/spawn.h-data: Likewise.
30248         * conform/data/stdio.h-data: Likewise.
30249         * conform/data/stdlib.h-data: Likewise.
30250         * conform/data/stropts.h-data: Likewise.
30251         * conform/data/sys/mman.h-data: Likewise.
30252         * conform/data/sys/stat.h-data: Likewise.
30253         * conform/data/sys/types.h-data: Likewise.
30254         * conform/data/sys/wait.h-data: Likewise.
30255         * conform/data/time.h-data: Likewise.
30256         * conform/data/unistd.h-data: Likewise.
30257         * conform/data/utime.h-data: Likewise.
30258
30259         * io/sys/stat.h: fchmod was always in POSIX.
30260         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
30261         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
30262         * rt/aio.h: Define __need_timespec before including <time.h>.
30263         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
30264         struct.  Add forward declaration of pthread_attr_t and use it in
30265         sigevent.
30266         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
30267         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
30268         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
30269         always remove CLK_TCK definition.
30270
30271 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
30272
30273         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
30274
30275 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
30276
30277         * conform/run-conformtest.sh: New file.
30278         * conform/Makefile: Run run-conformtest for tests.
30279         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
30280         support.
30281
30282         * conform/data/uchar.h-data: New file.
30283         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
30284         * conform/data/arpa/inet.h-data: Likewise.
30285         * conform/data/assert.h-data: Likewise.
30286         * conform/data/complex.h-data: Likewise.
30287         * conform/data/cpio.h-data: Likewise.
30288         * conform/data/ctype.h-data: Likewise.
30289         * conform/data/dirent.h-data: Likewise.
30290         * conform/data/dlfcn.h-data: Likewise.
30291         * conform/data/errno.h-data: Likewise.
30292         * conform/data/fcntl.h-data: Likewise.
30293         * conform/data/float.h-data: Likewise.
30294         * conform/data/fmtmsg.h-data: Likewise.
30295         * conform/data/fnmatch.h-data: Likewise.
30296         * conform/data/ftw.h-data: Likewise.
30297         * conform/data/glob.h-data: Likewise.
30298         * conform/data/grp.h-data: Likewise.
30299         * conform/data/iconv.h-data: Likewise.
30300         * conform/data/inttypes.h-data: Likewise.
30301         * conform/data/langinfo.h-data: Likewise.
30302         * conform/data/libgen.h-data: Likewise.
30303         * conform/data/limits.h-data: Likewise.
30304         * conform/data/locale.h-data: Likewise.
30305         * conform/data/math.h-data: Likewise.
30306         * conform/data/monetary.h-data: Likewise.
30307         * conform/data/mqueue.h-data: Likewise.
30308         * conform/data/ndbm.h-data: Likewise.
30309         * conform/data/net/if.h-data: Likewise.
30310         * conform/data/netdb.h-data: Likewise.
30311         * conform/data/netinet/in.h-data: Likewise.
30312         * conform/data/nl_types.h-data: Likewise.
30313         * conform/data/poll.h-data: Likewise.
30314         * conform/data/pthread.h-data: Likewise.
30315         * conform/data/pwd.h-data: Likewise.
30316         * conform/data/regex.h-data: Likewise.
30317         * conform/data/sched.h-data: Likewise.
30318         * conform/data/search.h-data: Likewise.
30319         * conform/data/semaphore.h-data: Likewise.
30320         * conform/data/setjmp.h-data: Likewise.
30321         * conform/data/signal.h-data: Likewise.
30322         * conform/data/spawn.h-data: Likewise.
30323         * conform/data/stdarg.h-data: Likewise.
30324         * conform/data/stdio.h-data: Likewise.
30325         * conform/data/stdlib.h-data: Likewise.
30326         * conform/data/string.h-data: Likewise.
30327         * conform/data/strings.h-data: Likewise.
30328         * conform/data/stropts.h-data: Likewise.
30329         * conform/data/sys/ipc.h-data: Likewise.
30330         * conform/data/sys/mman.h-data: Likewise.
30331         * conform/data/sys/msg.h-data: Likewise.
30332         * conform/data/sys/resource.h-data: Likewise.
30333         * conform/data/sys/select.h-data: Likewise.
30334         * conform/data/sys/sem.h-data: Likewise.
30335         * conform/data/sys/shm.h-data: Likewise.
30336         * conform/data/sys/socket.h-data: Likewise.
30337         * conform/data/sys/stat.h-data: Likewise.
30338         * conform/data/sys/statvfs.h-data: Likewise.
30339         * conform/data/sys/time.h-data: Likewise.
30340         * conform/data/sys/timeb.h-data: Likewise.
30341         * conform/data/sys/times.h-data: Likewise.
30342         * conform/data/sys/types.h-data: Likewise.
30343         * conform/data/sys/uio.h-data: Likewise.
30344         * conform/data/sys/un.h-data: Likewise.
30345         * conform/data/sys/utsname.h-data: Likewise.
30346         * conform/data/sys/wait.h-data: Likewise.
30347         * conform/data/syslog.h-data: Likewise.
30348         * conform/data/tar.h-data: Likewise.
30349         * conform/data/termios.h-data: Likewise.
30350         * conform/data/utime.h-data: Likewise.
30351         * conform/data/utmpx.h-data: Likewise.
30352         * conform/data/varargs.h-data: Likewise.
30353         * conform/data/wchar.h-data: Likewise.
30354         * conform/data/wctype.h-data: Likewise.
30355         * conform/data/wordexp.h-data: Likewise.
30356
30357         * include/stropts.h: New file.
30358         * include/uchar.h: New file.
30359         * include/aio.h: Changes to allow conformtest.pl to use the headers.
30360         * include/assert.h: Likewise.
30361         * include/ctype.h: Likewise.
30362         * include/dirent.h: Likewise.
30363         * include/dlfcn.h: Likewise.
30364         * include/fcntl.h: Likewise.
30365         * include/fnmatch.h: Likewise.
30366         * include/glob.h: Likewise.
30367         * include/grp.h: Likewise.
30368         * include/libio.h: Likewise.
30369         * include/locale.h: Likewise.
30370         * include/math.h: Likewise.
30371         * include/net/if.h: Likewise.
30372         * include/netdb.h: Likewise.
30373         * include/netinet/in.h: Likewise.
30374         * include/pthread.h: Likewise.
30375         * include/pwd.h: Likewise.
30376         * include/regex.h: Likewise.
30377         * include/sched.h: Likewise.
30378         * include/search.h: Likewise.
30379         * include/setjmp.h: Likewise.
30380         * include/signal.h: Likewise.
30381         * include/stdio.h: Likewise.
30382         * include/stdlib.h: Likewise.
30383         * include/string.h: Likewise.
30384         * include/sys/cdefs.h: Likewise.
30385         * include/sys/mman.h: Likewise.
30386         * include/sys/msg.h: Likewise.
30387         * include/sys/resource.h: Likewise.
30388         * include/sys/select.h: Likewise.
30389         * include/sys/socket.h: Likewise.
30390         * include/sys/stat.h: Likewise.
30391         * include/sys/statvfs.h: Likewise.
30392         * include/sys/time.h: Likewise.
30393         * include/sys/times.h: Likewise.
30394         * include/sys/uio.h: Likewise.
30395         * include/sys/utsname.h: Likewise.
30396         * include/sys/wait.h: Likewise.
30397         * include/termios.h: Likewise.
30398         * include/time.h: Likewise.
30399         * include/ulimit.h: Likewise.
30400         * include/unistd.h: Likewise.
30401         * include/utime.h: Likewise.
30402         * include/wchar.h: Likewise.
30403         * include/wctype.h: Likewise.
30404         * include/wordexp.h: Likewise.
30405
30406         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
30407
30408         * time/time.h: TIME_UTC must be a macro.
30409         Make timespec_get available for ISO C11 only as well.
30410
30411 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
30412
30413         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
30414         Reported by Peng Haitao <penght@cn.fujitsu.com>.
30415
30416 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30417
30418         * configure.in: Use -o not -a in test for unsupported multi-arch.
30419
30420 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30421
30422         * manual/texinfo.tex: Update to version 2012-01-19.16.
30423
30424 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30425
30426         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
30427
30428 2012-02-24  Roland McGrath  <roland@hack.frob.com>
30429
30430         [BZ #13738]
30431         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
30432         * manual/fdl-1.3.texi: New file.
30433         * manual/fdl-1.1.texi: File removed.
30434
30435         [BZ #13738]
30436         * manual/libc.texinfo (FDL_VERSION): New @set.
30437         Use it for mention of FDL in cover text.
30438         (Documentation License): Use it in @include file name.
30439
30440 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30441             Roland McGrath  <roland@hack.frob.com>
30442
30443         [BZ #5461]
30444         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
30445         not LONG_LONG_MAX and LONG_LONG_MIN.
30446         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
30447         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
30448         name.
30449         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
30450
30451 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30452
30453         [BZ #2547]
30454         [BZ #11365]
30455         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
30456         manipulate bits before adding and subtracting TWO23[sx].
30457         * math/libm-test.inc (nearbyint_test): Add more tests.
30458
30459 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30460
30461         [BZ #2548]
30462         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
30463         bits before adding and subtracting TWO23[sx].
30464         * math/libm-test.inc (rint_test): Add more tests.
30465         (rint_test_tonearest): Likewise.
30466         (rint_test_towardzero): Likewise.
30467         (rint_test_downward): Likewise.
30468         (rint_test_upward: Likewise.
30469
30470 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30471
30472         [BZ #10110]
30473         * include/stdc-predef.h: New file.  Extracted from features.h.
30474         * include/features.h: Include stdc-predef.h.
30475         * Makefile (headers): Add stdc-predef.h.
30476         * CONFORMANCE (Compiler limitations): Update.
30477
30478 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30479
30480         * manual/libc.texinfo (VERSION, UPDATED): Revert.
30481
30482 2012-02-21  David S. Miller  <davem@davemloft.net>
30483
30484         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
30485         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30486
30487 2012-02-20  David S. Miller  <davem@davemloft.net>
30488
30489         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
30490         using a normal save/restore sequence, rather than allocating a
30491         dummy stack frame just to store a frame pointer and restore.
30492         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30493
30494 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30495
30496         * manual/install.texi: Fix stray word in line-wrapped comment.
30497
30498 2012-02-20  David S. Miller  <davem@davemloft.net>
30499
30500         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
30501         both binutils and gcc support GOTDATA.
30502
30503         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
30504         "rd %pc" in the PIC register setup sequences.
30505
30506         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
30507         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
30508         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
30509         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
30510         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
30511         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30512         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30513         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30514         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
30515         (SYSCALL_ERROR_HANDLER): Likewise.
30516         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
30517         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30518         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
30519         (SYSCALL_ERROR_HANDLER): Likewise.
30520
30521         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
30522         (HAVE_GCC_GOTDATA): New.
30523         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
30524         relocation support in both binutils and gcc.
30525         * sysdeps/sparc/elf/configure: Regenerate.
30526
30527         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
30528         * sysdeps/sparc/sparc32/elf/configure: Delete.
30529         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
30530         * sysdeps/sparc/sparc64/elf/configure: Delete.
30531         * sysdeps/sparc/elf/configure.in: New file.
30532         * sysdeps/sparc/elf/configure: Generate.
30533
30534         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
30535         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
30536         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30537         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
30538         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
30539
30540 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30541
30542         * manual/install.texi: Do not mention specific glibc version
30543         numbers.
30544         * manual/libc.texinfo (VERSION, UPDATED): Update.
30545         (@copying): Use @copyright{} and range of years.
30546
30547 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30548
30549         [BZ #13695]
30550         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
30551         [crti.S not in sysdirs] (generated): Do not append.
30552         [crti.S not in sysdirs] (omit-deps): Likewise.
30553         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
30554         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
30555         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
30556         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
30557         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
30558         Likewise.
30559         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
30560         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
30561         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
30562         * csu/defs.awk: Remove file.
30563         * sysdeps/generic/initfini.c: Likewise.
30564         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
30565         variable.
30566         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
30567         Likewise.
30568
30569 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30570
30571         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
30572         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
30573         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
30574         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
30575         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30576         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
30577         <bits/epoll.h>.
30578         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
30579         (__EPOLL_PACKED): Define to empty if not defined by
30580         <bits/epoll.h>.
30581         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
30582         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30583         bits/epoll.h.
30584
30585 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30586
30587         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
30588         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
30589         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
30590         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
30591         <bits/timerfd.h>.
30592         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
30593         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30594         bits/timerfd.h.
30595
30596 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30597
30598         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
30599         in C locale.
30600         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30601         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
30602         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
30603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30604
30605 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
30606
30607         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30608         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30609
30610 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
30611
30612         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
30613         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
30614         defined.
30615         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
30616         Likewise.
30617         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
30618         entry for 2.16.
30619
30620 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
30621
30622         * math/w_acos.c: Use non-signaling floating-point comparisons.
30623         * math/w_acosf.c: Likewise.
30624         * math/w_acosh.c: Likewise.
30625         * math/w_acoshf.c: Likewise.
30626         * math/w_acoshl.c: Likewise.
30627         * math/w_acosl.c: Likewise.
30628         * math/w_asin.c: Likewise.
30629         * math/w_asinf.c: Likewise.
30630         * math/w_asinl.c: Likewise.
30631         * math/w_atanh.c: Likewise.
30632         * math/w_atanhf.c: Likewise.
30633         * math/w_atanhl.c: Likewise.
30634         * math/w_exp2.c: Likewise.
30635         * math/w_exp2f.c: Likewise.
30636         * math/w_exp2l.c: Likewise.
30637         * math/w_j0.c: Likewise.
30638         * math/w_j0f.c: Likewise.
30639         * math/w_j0l.c: Likewise.
30640         * math/w_j1.c: Likewise.
30641         * math/w_j1f.c: Likewise.
30642         * math/w_j1l.c: Likewise.
30643         * math/w_jn.c: Likewise.
30644         * math/w_jnf.c: Likewise.
30645         * math/w_log.c: Likewise.
30646         * math/w_log10.c: Likewise.
30647         * math/w_log10f.c: Likewise.
30648         * math/w_log10l.c: Likewise.
30649         * math/w_log2.c: Likewise.
30650         * math/w_log2f.c: Likewise.
30651         * math/w_log2l.c: Likewise.
30652         * math/w_logf.c: Likewise.
30653         * math/w_logl.c: Likewise.
30654         * math/w_sqrt.c: Likewise.
30655         * math/w_sqrtf.c: Likewise.
30656         * math/w_sqrtl.c: Likewise.
30657         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
30658         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30659         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30660         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30661         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30662
30663 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30664
30665         [BZ #9739]
30666         * manual/string.texi (strnlen): Use correct parameter name in
30667         equivalent expression.
30668
30669 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30670
30671         [BZ #11174]
30672         * manual/users.texi (seteuid): Consistently use neweuid for
30673         argument name.
30674
30675 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30676
30677         [BZ #13704]
30678         * manual/nss.texi (Services in the NSS configuration): Correct
30679         list of services in example configuration file.
30680
30681 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
30682
30683         [BZ #11322]
30684         * manual/arith.texi: Remove statements about negative zero
30685         behaving identically to zero.
30686
30687 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30688
30689         [BZ #5993]
30690         * manual/install.texi: Do not document upgrading from libc5.
30691
30692 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30693
30694         [BZ #4596]
30695         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
30696
30697 2012-02-18  David S. Miller  <davem@davemloft.net>
30698
30699         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
30700         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
30701         %o7 across the call.
30702         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
30703         instead.
30704         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
30705         SETUP_PIC_REG_LEAF.
30706         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30707         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
30708         * sysdeps/sparc/crtn.S: Likewise.
30709
30710 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
30711
30712         * aout/Makefile: Remove.
30713
30714 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
30715
30716         [BZ #13058]
30717         * manual/examples/argp-ex1.c (main): Format definition in GNU
30718         style.
30719         * manual/examples/argp-ex2.c (main): Likewise.
30720         * manual/examples/argp-ex3.c (main): Likewise.
30721         * manual/examples/argp-ex4.c (main): Likewise.
30722         * manual/examples/longopt.c (main): Use new-style prototype
30723         definition.
30724         * manual/examples/strncat.c (main): Specify return type and use
30725         (void) for arguments.
30726         * manual/examples/subopt.c (main): Use char **argv argument.
30727
30728 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30729
30730         [BZ #5077]
30731         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
30732         rounding modes.
30733
30734 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
30735
30736         [BZ #6907]
30737         * manual/string.texi (strchr): Change when strchrnul is
30738         recommended.
30739
30740 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
30741
30742         [BZ #174]
30743         * manual/locale.texi (setlocale): Document LOCPATH.
30744
30745 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30746
30747         [BZ #10210]
30748         * manual/process.texi (execle): Move @dots{} before last argument.
30749
30750 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
30751
30752         [BZ #12047]
30753         * manual/charset.texi (Generic Charset Conversion): Fix typo
30754         (LC_TYPE -> LC_CTYPE).
30755
30756 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
30757
30758         [BZ #5805]
30759         * manual/arith.texi (scalbn): Use @var{} on parameter names.
30760         (scalbnf): Likewise.
30761         (scalbnl): Likewise.
30762         (scalbln): Likewise.
30763         (scalblnf): Likewise.
30764         (scalblnl): Likewise.
30765         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
30766         (vwarnx): Likewise.
30767         (verr): Likewise.
30768         (verrx): Likewise.
30769         * manual/filesys.texi (telldir): Use braces around return type.
30770         * manual/llio.texi (mmap): Add space after comma.
30771         (mmap64): Likewise.
30772         * manual/math.texi (jn): Use @var{} on parameter names.
30773         (jnf): Likewise.
30774         (jnl): Likewise.
30775         (yn): Likewise.
30776         (ynf): Likewise.
30777         (ynl): Likewise.
30778         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
30779         line.
30780         * manual/resource.texi (ulimit): Use @dots{} instead of literal
30781         "...".
30782         (sched_get_priority_min): Remove semicolon on @deftypefun line.
30783         (sched_get_priority_max): Likewise.
30784         * manual/signal.texi (sigvec): Add space after comma.
30785         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
30786         names.
30787         (if_indextoname): Likewise.
30788         (if_freenameindex): Likewise.
30789         (sendto): Use ',' instead of '.' in prototype.
30790         * manual/startup.texi (syscall): Use @dots{} instead of literal
30791         "...".
30792         * manual/stdio.texi (__fpending): Separate initial words of
30793         paragraph from @deftypefun line.
30794         * manual/syslog.texi (syslog): Use @dots{} instead of literal
30795         "...".
30796         (vsyslog): Use @var{} on parameter names.
30797         * manual/terminal.texi (stty): Use @var{} on parameter names.
30798         * manual/users.texi (getutmp): Use @var{} on parameter names.
30799         (getutmpx): Likewise.
30800
30801 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30802
30803         [BZ #6884]
30804         * manual/stdio.texi (fopen): Fix typos in description of
30805         ",ccs=STRING".
30806
30807 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
30808
30809         [BZ #4026]
30810         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
30811         get clock_id definition.
30812
30813 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
30814
30815         [BZ #4822]
30816         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
30817         (madvise): Cast every argument to void on its own.
30818
30819 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30820
30821         [BZ #9902]
30822         * manual/startup.texi (Exit Status): Fix typo.
30823
30824 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30825
30826         [BZ #10140]
30827         * manual/examples/argp-ex1.c: Include <stdlib.h>.
30828         * manual/examples/argp-ex2.c: Likewise.
30829         * manual/examples/argp-ex3.c: Likewise.
30830
30831 2012-02-16  Richard Henderson  <rth@redhat.com>
30832
30833         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
30834         * sysdeps/s390/s390-32/initfini.c: Remove.
30835         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
30836         * sysdeps/s390/s390-64/initfini.c: Remove.
30837
30838 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30839
30840         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
30841         compiler output for sysdeps/generic/initfini.c.
30842         * sysdeps/sh/elf/initfini.c: Remove file.
30843
30844 2012-02-16  David S. Miller  <davem@davemloft.net>
30845
30846         [BZ #11494]
30847         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
30848
30849         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
30850         * sysdeps/sparc/crti.S: New file.
30851         * sysdeps/sparc/crtn.S: New file.
30852         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
30853         * sysdeps/sparc/sparc64/Makefile: Likewise.
30854
30855 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
30856
30857         [BZ #3335]
30858         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
30859
30860 2012-02-15  Roland McGrath  <roland@hack.frob.com>
30861
30862         [BZ #4822]
30863         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
30864
30865         * mach/devstream.c (cookie_io_functions_t): Macro removed.
30866         (write, read, close): Likewise.
30867         Patch by Aurelien Jarno <aurelien@aurel32.net>.
30868
30869 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
30870
30871         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
30872         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
30873         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
30874         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
30875         <bits/signalfd.h>.
30876         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
30877         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30878         bits/signalfd.h.
30879
30880 2012-02-14  Marek Polacek  <polacek@redhat.com>
30881
30882         * sysdeps/x86_64/crti.S: New file.
30883         * sysdeps/x86_64/crtn.S: New file.
30884         * sysdeps/x86_64/elf/initfini.c: Remove file.
30885
30886 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30887
30888         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
30889         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
30890         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
30891         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
30892         <bits/inotify.h>.
30893         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
30894         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30895         bits/inotify.h.
30896
30897 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30898
30899         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
30900         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
30901         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
30902         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
30903         <bits/eventfd.h>.
30904         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
30905         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30906         bits/eventfd.h.
30907
30908 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
30909
30910         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
30911         __feraiseexcept instead of feraiseexcept.
30912
30913         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
30914         nanosleep invocations.
30915         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
30916         strings, and add error checking for a nanosleep invocations.
30917
30918 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
30919
30920         Replace FSF snail mail address with URLs, as per GNU coding standards.
30921         Most of the snail mail addresses were wrong anyway, and omitting
30922         them makes the source code easier to maintain.  Almost all of the
30923         changes are to license notices and to locale LC_IDENTIFICATION
30924         addresses, except for this one:
30925         * manual/libc.texinfo: In "Published by", give the FSF's URL,
30926         not its snail mail address.
30927
30928 2012-02-09  Richard Henderson  <rth@twiddle.net>
30929
30930         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
30931         of kernel-features.h.
30932
30933         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
30934
30935 2012-02-08  Marek Polacek  <polacek@redhat.com>
30936
30937         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
30938         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
30939         * sysdeps/gnu/_G_config.h: Likewise.
30940         * sysdeps/generic/_G_config.h: Likewise.
30941
30942 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
30943
30944         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
30945         tests.
30946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30947
30948         * sysdeps/powerpc/powerpc32/crti.S: New file.
30949         * sysdeps/powerpc/powerpc32/crtn.S: New file.
30950         * sysdeps/powerpc/powerpc64/crti.S: New file.
30951         * sysdeps/powerpc/powerpc64/crtn.S: New file.
30952
30953         * Makeconfig (have-initfini): Don't set.
30954         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
30955         * configure.in (nopic_initfini): Don't substitute.
30956         * config.h.in (HAVE_INITFINI): Don't #undef.
30957         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
30958         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
30959
30960 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
30961
30962         Support crti.S and crtn.S provided directly by architectures.
30963         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
30964         [crti.S in sysdirs] (omit-deps): Likewise.
30965         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
30966         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
30967         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
30968         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
30969         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
30970         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
30971         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
30972         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
30973         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
30974         compiler output for sysdeps/generic/initfini.c.
30975         * sysdeps/i386/elf/Makefile: Remove file.
30976         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
30977
30978 2012-02-07  Marek Polacek  <polacek@redhat.com>
30979
30980         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
30981         * sysdeps/gnu/_G_config.h: Likewise.
30982         * sysdeps/mach/hurd/_G_config.h: Likewise.
30983
30984 2012-02-07  Marek Polacek  <polacek@redhat.com>
30985
30986         * math/Makefile (tests): Add tst-CMPLX2.
30987         * math/tst-CMPLX2.c: New file.
30988
30989 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
30990
30991         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30992
30993         * math/libm-test.inc (jn_test): Add missing L suffix.
30994
30995 2012-02-06  Marek Polacek  <polacek@redhat.com>
30996
30997         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
30998         * sysdeps/i386/fpu/e_powf.S: Likewise.
30999         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
31000         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
31001         * sysdeps/i386/fpu/e_acosh.S: Likewise.
31002         * sysdeps/i386/fpu/e_pow.S: Likewise.
31003         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
31004         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
31005         * sysdeps/i386/fpu/s_expm1.S: Likewise.
31006         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
31007         * sysdeps/i386/fpu/e_log2.S: Likewise.
31008         * sysdeps/i386/fpu/e_log2l.S: Likewise.
31009         * sysdeps/i386/fpu/e_scalb.S: Likewise.
31010         * sysdeps/i386/fpu/e_powl.S: Likewise.
31011         * sysdeps/i386/fpu/s_log1p.S: Likewise.
31012         * sysdeps/i386/fpu/e_log10f.S: Likewise.
31013         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
31014         * sysdeps/i386/fpu/e_logl.S: Likewise.
31015         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
31016         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
31017         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
31018         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
31019         * sysdeps/i386/fpu/e_log2f.S: Likewise.
31020         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
31021         * sysdeps/i386/fpu/e_log.S: Likewise.
31022         * sysdeps/i386/fpu/s_cexp.S: Likewise.
31023         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
31024         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
31025         * sysdeps/i386/fpu/e_logf.S: Likewise.
31026         * sysdeps/i386/fpu/e_log10l.S: Likewise.
31027         * sysdeps/i386/fpu/e_atanh.S: Likewise.
31028         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
31029         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
31030         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
31031         * sysdeps/i386/fpu/e_log10.S: Likewise.
31032         * sysdeps/i386/fpu/s_frexp.S: Likewise.
31033         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
31034         * sysdeps/i386/fpu/s_asinh.S: Likewise.
31035         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
31036         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
31037         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
31038         * sysdeps/i386/asm-syntax.h: Likewise.
31039         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
31040         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
31041         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
31042         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
31043         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
31044         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
31045         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
31046         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
31047         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
31048         * sysdeps/powerpc/sysdep.h: Likewise.
31049         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
31050         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
31051
31052 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
31053
31054         [BZ #411]
31055         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
31056
31057 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
31058
31059         * sysdeps/i386/sysdep.h: Include <features.h>.
31060         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
31061         version.
31062
31063 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
31064
31065         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
31066         Define.
31067         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
31068         LOAD_PIC_REG_STR.
31069
31070 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31071
31072         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
31073         (SETUP_PIC_REG): Use GET_PC_THUNK.
31074         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
31075         macro.
31076
31077 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31078
31079         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
31080         for non-PIC compilation.
31081         (SETUP_PIC_REG): Add .p2align directive.
31082         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
31083         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
31084         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31085         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31086         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
31087         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31088         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
31089         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
31090         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31091         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31092         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31093         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31094         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31095         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31096         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31097         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
31098         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
31099         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31100         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31101         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31102         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31103         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
31104         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31105         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
31106         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
31107         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
31108         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31109         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
31110         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31111         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31112         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31113         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31114         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31115         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31116         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31117         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31118         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31119         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31120         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31121         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31122         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31123
31124 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31125
31126         * math/tst-CMPLX.c: Include <stdio.h>.
31127
31128 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
31129
31130         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
31131         float.
31132         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31133         * sysdeps/sparc/bits/mathdef.h: Likewise.
31134
31135 2012-01-31  Marek Polacek  <polacek@redhat.com>
31136
31137         * libio/libio.h: Don't define _PARAMS.
31138         * locale/programs/config.h: Don't define PARAMS.
31139         * stdlib/strtol_l.c: Likewise.
31140         (__strtol_l): Remove PARAMS from the prototype.
31141
31142 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
31143
31144         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
31145         names.  Just use the correct names.  Remove unnecessary wrapper
31146         functions.
31147         * malloc/arena.c: Likewise.
31148         * malloc/hooks.c: Likewise.
31149
31150         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
31151         ARENA_TEST says not to.  Simplify test for creation of a new arena.
31152         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
31153
31154 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
31155
31156         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
31157         into tail calls.
31158         (update_get_addr): New function.
31159         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
31160         GET_ADDR_MODULE parameter.
31161
31162 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31163
31164         * crypt/cert.c: Remove __STDC__ conditionals.
31165         * crypt/crypt-entry.c: Likewise.
31166         * crypt/crypt_util.c: Likewise.
31167         * libio/filedoalloc.c: Likewise.
31168         * libio/fileops.c: Likewise.
31169         * libio/genops.c: Likewise.
31170         * libio/iofclose.c: Likewise.
31171         * libio/iofdopen.c: Likewise.
31172         * libio/iofopen.c: Likewise.
31173         * libio/iofopen64.c: Likewise.
31174         * libio/iogetdelim.c: Likewise.
31175         * libio/iopopen.c: Likewise.
31176         * libio/obprintf.c: Likewise.
31177         * libio/oldfileops.c: Likewise.
31178         * libio/oldiofclose.c: Likewise.
31179         * libio/oldiofdopen.c: Likewise.
31180         * libio/oldiofopen.c: Likewise.
31181         * libio/oldiopopen.c: Likewise.
31182         * libio/wfiledoalloc.c: Likewise.
31183         * libio/wgenops.c: Likewise.
31184         * locale/programs/xmalloc.c: Likewise.
31185         * misc/syslog.c: Likewise.
31186         * stdio-common/xbug.c: Likewise.
31187         * string/memchr.c: Likewise.
31188         * string/memcmp.c: Likewise.
31189         * string/memrchr.c: Likewise.
31190         * string/rawmemchr.c: Likewise.
31191         * sysdeps/posix/getcwd.c: Likewise.
31192         * time/strftime_l.c: Likewise.
31193
31194 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31195
31196         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
31197         * config.make.in (config-cflags-sse2avx): Define.
31198         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
31199         Fix typo.
31200
31201 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
31202
31203         * scripts/config.guess: Update from upstream config git repository.
31204         * scripts/config.sub: Likewise.
31205
31206 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
31207
31208         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
31209         (EM_NUM): Update.
31210         (R_TILEPRO_*, R_TILEGX_*): New macros.
31211
31212         * scripts/firstversions.awk: Fix bug in version range handling.
31213
31214         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
31215
31216         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
31217
31218         * include/sys/epoll.h: New file.
31219         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
31220         libc_hidden_def.
31221
31222 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
31223
31224         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
31225         Avoid unnecessary __WORDSIZE == 64 test.
31226         (fmaxf): Use VEX format if possible.
31227         (fmax): Likewise.
31228         (fminf): Likewise.
31229         (fmin): Likewise.
31230
31231         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
31232         * math/math_private.h: Remove libc_fegetround* and
31233         libc_fesetround*.
31234         * sysdeps/i386/configure.in: Check for -msse2avx.
31235         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
31236         also if SSE2AVX is defined.
31237         Remove libc_fegetround* and libc_fesetround*.
31238         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
31239         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
31240         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
31241         of HAS_YMM_USABLE.
31242         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31243         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31244         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31245         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31246         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31247
31248         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
31249
31250 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31251
31252         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
31253         size is not set.
31254         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
31255
31256 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
31257
31258         [BZ #13618]
31259         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
31260         relocation.
31261         * Makeconfig (libm): Define.
31262         * elf/Makefile: Add rules to build and run tst-relsort1.
31263         * elf/tst-relsort1.c: New file.
31264         * elf/tst-relsort1mod1.c: New file.
31265         * elf/tst-relsort1mod2.c: New file.
31266
31267 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
31268
31269         * math/s_ldexp.c: Remove __STDC__ conditionals.
31270         * math/s_ldexpf.c: Likewise.
31271         * math/s_ldexpl.c: Likewise.
31272         * math/s_nextafter.c: Likewise.
31273         * math/s_nexttowardf.c: Likewise.
31274         * math/s_significand.c: Likewise.
31275         * math/s_significandf.c: Likewise.
31276         * math/s_significandl.c: Likewise.
31277         * math/w_jnl.c: Likewise.
31278         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
31279         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
31280         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
31281         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
31282         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
31283         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
31284         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
31285         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
31286         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
31287         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
31288         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
31289         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31290         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
31291         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
31292         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
31293         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
31294         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
31295         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
31296         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
31297         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
31298         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
31299         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
31300         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
31301         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
31302         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
31303         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
31304         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
31305         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
31306         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
31307         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
31308         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
31309         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
31310         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
31311         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
31312         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
31313         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
31314         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
31315         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
31316         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
31317         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
31318         * sysdeps/ieee754/k_standard.c: Likewise.
31319         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
31320         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
31321         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
31322         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
31323         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
31324         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
31325         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
31326         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
31327         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
31328         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
31329         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
31330         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
31331         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
31332         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
31333         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
31334         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
31335         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
31336         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
31337         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
31338         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
31339         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31340         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
31341         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
31342         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
31343         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
31344         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31345         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31346         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31347         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31348         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
31349         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
31350         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
31351         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
31352         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
31353         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
31354         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
31355         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
31356         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
31357         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
31358         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
31359         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
31360         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
31361         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
31362         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
31363         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
31364         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
31365         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
31366         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
31367         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
31368         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
31369         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
31370         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
31371         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
31372         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
31373         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
31374         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
31375         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
31376         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
31377         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
31378         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
31379         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
31380         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
31381         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
31382         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
31383         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
31384         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
31385         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
31386         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
31387         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
31388         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
31389         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
31390         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
31391         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
31392         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
31393         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
31394         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
31395         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
31396         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
31397         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
31398         * sysdeps/ieee754/s_matherr.c: Likewise.
31399         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
31400         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
31401         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
31402         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
31403
31404 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31405
31406         * crypt/md5.h: Remove __STDC__ conditionals.
31407         * libio/libioP.h: Likewise.
31408         * locale/programs/config.h: Likewise.
31409         * sysdeps/generic/sysdep.h: Likewise.
31410         * sysdeps/i386/asm-syntax.h: Likewise.
31411         * sysdeps/s390/asm-syntax.h: Likewise.
31412         * sysdeps/unix/sysdep.h: Likewise.
31413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
31414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
31415
31416 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31417
31418         * libio/libio.h: Remove __STDC__ conditionals.
31419         * malloc/obstack.h: Likewise.
31420         * math/complex.h: Likewise.
31421         * math/math.h: Likewise.
31422         * sysdeps/generic/_G_config.h: Likewise.
31423         * sysdeps/gnu/_G_config.h: Likewise.
31424         * sysdeps/mach/hurd/_G_config.h: Likewise.
31425         * sysdeps/powerpc/bits/mathdef.h: Likewise.
31426         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31427         * sysdeps/sparc/bits/mathdef.h: Likewise.
31428
31429 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
31430
31431         [BZ #13583]
31432         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
31433         Clean up HAS_* macros.
31434         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
31435         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
31436         possible.
31437         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
31438         HAS_AVX.
31439         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31440         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31441         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31442         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31443         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31444
31445 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
31446
31447         * elf/tst-unique3.cc (gets): Remove declaration.
31448         * elf/tst-unique3lib.cc (gets): Likewise.
31449         * elf/tst-unique3lib2.cc (gets): Likewise.
31450         * elf/tst-unique4.cc (gets): Likewise.
31451
31452 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
31453
31454         * include/stdio.h: Add C++ protection.  Add gets declarations and
31455         definitions.
31456         * debug/tst-chk1.c: Don't declare gets here.
31457         * stdio-common/tst-gets.c: Likewise.
31458
31459 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31460
31461         * posix/glob: Remove directory.
31462
31463 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31464
31465         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
31466
31467 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
31468
31469         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
31470         of the non-standard EPFNOSUPPORT.
31471
31472 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31473
31474         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
31475         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
31476         ANYWHERE set to 1 only on KERN_NO_SPACE error.
31477
31478 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
31479
31480         * wcsmbs/uchar.h: Test __STDC_VERSION__.
31481
31482 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
31483
31484         * nscd/aicache.c (addhstaiX): Do not cache negative results of
31485         transient errors.
31486         * nscd/grpcache.c (cache_addgr): Likewise.
31487         * nscd/hstcache.c (cache_addhst): Likewise.
31488         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31489         * nscd/pwdcache.c (cache_addpw): Likewise.
31490         * nscd/servicescache.c (cache_addserv): Likewise.
31491
31492 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
31493
31494         * malloc/malloc.c: Various cleanups.
31495         * malloc/hooks.c: Likewise.
31496
31497         * stdlib/Makefile (tests): Add bug-fmtmsg1.
31498         * stdlib/bug-fmtmsg1.c: New file.
31499
31500         * stdlib/fmtmsg.c (init): Add missing unlock.
31501         Patch by Peng Haitao <penght@cn.fujitsu.com>.
31502
31503 2012-01-12  Marek Polacek  <polacek@redhat.com>
31504
31505         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
31506         and _GNU_SOURCE.
31507
31508 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
31509
31510         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
31511         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
31512         macro to ensure uniqueness of label name.
31513         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31514         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31515
31516 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
31517
31518         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
31519
31520         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
31521         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
31522         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31523         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
31524
31525 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
31526
31527         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
31528
31529         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
31530         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
31531         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
31532
31533         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
31534
31535         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
31536         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
31537         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
31538         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
31539
31540         * math/bits/math-finite.h: Add ldexp support.
31541
31542 2012-01-10  Marek Polacek  <polacek@redhat.com>
31543
31544         * locale/programs/localedef.h (show_archive_content): Add noreturn
31545         attribute.
31546
31547 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
31548
31549         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
31550
31551 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31552
31553         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
31554
31555         * io/Makefile (headers): Add bits/poll2.h.
31556
31557 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
31558
31559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
31560         typo #include statement.
31561
31562 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31563
31564         * include/sys/cdefs.h: Define __attribute_alloc_size.
31565         * catgets/gencat.c: Add alloc_size attribute and apply consistently
31566         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
31567         * elf/pldd.c: Likewise.
31568         * iconv/iconv_charmap.c: Likewise.
31569         * iconv/iconvconfig.c: Likewise.
31570         * iconv/strtab.c: Likewise.
31571         * locale/programs/locale.c: Likewise.
31572         * locale/programs/localedef.h: Likewise.
31573         * locale/programs/simple-hash.c: Likewise.
31574         * nscd/nscd.h: Likewise.
31575         * nss/makedb.c: Likewise.
31576         * sysdeps/generic/ldconfig.h: Likewise.
31577         * locale/programs/localedef.c: Remove xmalloc prototype.
31578         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
31579
31580 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31581
31582         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
31583         appropriate.
31584
31585 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31586
31587         * math/Makefile (tests): Add tst-CMPLX.
31588         * math/tst-CMPLX.c: New file.
31589
31590         * math/complex.h (CMPLXL): Fix typo.
31591
31592         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
31593         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
31594         GLIBC_2.16.
31595         * debug/tst-chk1.c: Add poll and ppoll tests.
31596         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
31597         * include/sys/poll.h: Add hidden proto for ppoll.
31598         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
31599         * sysdeps/mach/hurd/ppoll.c: Likewise.
31600         * io/ppoll.c: Likewise.
31601         * debug/poll_chk.c: New file.
31602         * debug/ppoll_chk.c: New file.
31603         * include/bits/poll2.h: New file.
31604         * io/bits/poll2.h: New file.
31605
31606         [BZ #1350]
31607         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
31608
31609         * configure.in: static is always set to yes.  Remove.
31610         * config.make.in: Don't set build-static.
31611         * Makeconfig: Remove use of build-static.
31612         * dlfcn/Makefile: Likewise.
31613         * elf/Makefile: Likewise.
31614         * math/Makefile: Likewise.
31615         * misc/Makefile: Likewise.
31616         * nptl/Makefile: Likewise.
31617         * sysdeps/mach/hurd/Makefile: Likewise.
31618
31619         * configure.in: PWD_P is not used anymore.
31620         * config.make.in: Remove PWD_P entry.
31621
31622         * configure.in: Remove last remnants of RANLIB.
31623         No need to check for signed size_t anymore.
31624         Don't set libc_commonpagesize and libc_relro_required here for Alpha
31625         and IA-64.
31626         Remove __builtin_expect test because we require at least gcc 3.4.
31627         * aclocal.m4: Likewise.
31628
31629         * wcsmbs/mbrtoc16.c: Implement using towc function.
31630         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
31631         * wcsmbs/wcsmbsload.c: Likewise.
31632         * iconv/gconv_simple.c: Likewise.
31633         * iconv/gconv_int.h: Likewise.
31634         * iconv/gconv_builtin.h: Likewise.
31635         * iconv/iconv_prog.c: Remove CHAR16 handling.
31636
31637         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
31638
31639         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
31640
31641         * configure.in: Remove --with-elf and --enable-bounded options.
31642         Dont set base_machine for ia64.  More non-ELF conditions removed.
31643         Remove testing and setting of leading underscore information.
31644         * config.make.in (build-bounded): Set to no.
31645         * config.h.in: Remove NO_UNDERSCORES entry.
31646         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
31647         them.
31648         * csu/start.c: Remove !NO_UNDERSCORE code.
31649         * locale/localeinfo.h: Likewise.
31650         * sysdeps/generic/machine-gmon.h: Likewise.
31651         * sysdeps/generic/sysdep.h: Likewise.
31652         * sysdeps/i386/sysdep.h: Likewise.
31653         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31654         * sysdeps/mach/sysdep.h: Likewise.
31655         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31656         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31657         * sysdeps/sh/sysdep.h: Likewise.
31658         * sysdeps/sparc/sparc32/alloca.S: Likewise.
31659         * sysdeps/unix/i386/sysdep.S: Likewise.
31660         * sysdeps/unix/sparc/start.c: Likewise.
31661         * sysdeps/unix/sparc/sysdep.S: Likewise.
31662         * sysdeps/unix/sparc/sysdep.h: Likewise.
31663         * sysdeps/unix/start.c: Likewise.
31664         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31665         * sysdeps/x86_64/sysdep.h: Likewise.
31666
31667 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
31668
31669         [BZ #13553]
31670         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
31671         for non-gcc.
31672         * argp/argp-fmtstream.h: Use const instead __const.
31673         * argp/argp.h: Likewise.
31674         * assert/assert.h: Likewise.
31675         * bits/fenv.h: Likewise.
31676         * bits/sched.h: Likewise.
31677         * bits/sigset.h: Likewise.
31678         * bits/sigthread.h: Likewise.
31679         * catgets/nl_types.h: Likewise.
31680         * conform/data/pthread.h-data: Likewise.
31681         * crypt/crypt-private.h: Likewise.
31682         * crypt/crypt.h: Likewise.
31683         * crypt/crypt_util.c: Likewise.
31684         * ctype/ctype.h: Likewise.
31685         * debug/execinfo.h: Likewise.
31686         * debug/mbsnrtowcs_chk.c: Likewise.
31687         * debug/mbsrtowcs_chk.c: Likewise.
31688         * debug/wcsnrtombs_chk.c: Likewise.
31689         * debug/wcsrtombs_chk.c: Likewise.
31690         * debug/wcstombs_chk.c: Likewise.
31691         * dirent/dirent.h: Likewise.
31692         * dlfcn/dlfcn.h: Likewise.
31693         * elf/neededtest4.c: Likewise.
31694         * grp/grp.h: Likewise.
31695         * gshadow/gshadow.h: Likewise.
31696         * iconv/gconv.h: Likewise.
31697         * iconv/gconv_int.h: Likewise.
31698         * iconv/gconv_simple.c: Likewise.
31699         * iconv/iconv.h: Likewise.
31700         * iconv/loop.c: Likewise.
31701         * iconv/skeleton.c: Likewise.
31702         * include/aio.h: Likewise.
31703         * include/aliases.h: Likewise.
31704         * include/argz.h: Likewise.
31705         * include/arpa/inet.h: Likewise.
31706         * include/assert.h: Likewise.
31707         * include/dirent.h: Likewise.
31708         * include/dlfcn.h: Likewise.
31709         * include/execinfo.h: Likewise.
31710         * include/fcntl.h: Likewise.
31711         * include/fenv.h: Likewise.
31712         * include/glob.h: Likewise.
31713         * include/grp.h: Likewise.
31714         * include/libintl.h: Likewise.
31715         * include/mntent.h: Likewise.
31716         * include/netdb.h: Likewise.
31717         * include/pwd.h: Likewise.
31718         * include/rpc/netdb.h: Likewise.
31719         * include/sched.h: Likewise.
31720         * include/search.h: Likewise.
31721         * include/shadow.h: Likewise.
31722         * include/signal.h: Likewise.
31723         * include/stdio.h: Likewise.
31724         * include/stdlib.h: Likewise.
31725         * include/string.h: Likewise.
31726         * include/sys/socket.h: Likewise.
31727         * include/sys/stat.h: Likewise.
31728         * include/sys/statfs.h: Likewise.
31729         * include/sys/statvfs.h: Likewise.
31730         * include/sys/syslog.h: Likewise.
31731         * include/sys/time.h: Likewise.
31732         * include/sys/uio.h: Likewise.
31733         * include/time.h: Likewise.
31734         * include/unistd.h: Likewise.
31735         * include/utmp.h: Likewise.
31736         * include/wchar.h: Likewise.
31737         * include/wctype.h: Likewise.
31738         * inet/aliases.h: Likewise.
31739         * inet/arpa/inet.h: Likewise.
31740         * inet/netinet/ether.h: Likewise.
31741         * inet/netinet/in.h: Likewise.
31742         * intl/libintl.h: Likewise.
31743         * io/bits/fcntl2.h: Likewise.
31744         * io/fcntl.h: Likewise.
31745         * io/ftw.h: Likewise.
31746         * io/sys/poll.h: Likewise.
31747         * io/sys/stat.h: Likewise.
31748         * io/sys/statfs.h: Likewise.
31749         * io/sys/statvfs.h: Likewise.
31750         * io/utime.h: Likewise.
31751         * libio/bits/stdio.h: Likewise.
31752         * libio/bits/stdio2.h: Likewise.
31753         * libio/libio.h: Likewise.
31754         * libio/libioP.h: Likewise.
31755         * libio/stdio.h: Likewise.
31756         * locale/lc-ctype.c: Likewise.
31757         * locale/locale.h: Likewise.
31758         * login/utmp.h: Likewise.
31759         * malloc/arena.c: Likewise.
31760         * malloc/malloc.c: Likewise.
31761         * malloc/malloc.h: Likewise.
31762         * malloc/mcheck.c: Likewise.
31763         * malloc/mtrace.c: Likewise.
31764         * math/bits/mathcalls.h: Likewise.
31765         * math/fenv.h: Likewise.
31766         * math/math_private.h: Likewise.
31767         * misc/bits/error.h: Likewise.
31768         * misc/bits/syslog.h: Likewise.
31769         * misc/err.h: Likewise.
31770         * misc/error.h: Likewise.
31771         * misc/fstab.h: Likewise.
31772         * misc/mntent.h: Likewise.
31773         * misc/regexp.h: Likewise.
31774         * misc/search.h: Likewise.
31775         * misc/sgtty.h: Likewise.
31776         * misc/sys/mman.h: Likewise.
31777         * misc/sys/syslog.h: Likewise.
31778         * misc/sys/uio.h: Likewise.
31779         * misc/sys/xattr.h: Likewise.
31780         * misc/ttyent.h: Likewise.
31781         * nis/rpcsvc/ypclnt.h: Likewise.
31782         * nss/nss.h: Likewise.
31783         * posix/bits/unistd.h: Likewise.
31784         * posix/fnmatch.h: Likewise.
31785         * posix/glob.h: Likewise.
31786         * posix/sched.h: Likewise.
31787         * posix/spawn.h: Likewise.
31788         * posix/sys/wait.h: Likewise.
31789         * posix/unistd.h: Likewise.
31790         * posix/wordexp.h: Likewise.
31791         * pwd/pwd.h: Likewise.
31792         * resolv/netdb.h: Likewise.
31793         * resource/sys/resource.h: Likewise.
31794         * rt/aio.h: Likewise.
31795         * rt/bits/mqueue2.h: Likewise.
31796         * rt/mqueue.h: Likewise.
31797         * shadow/shadow.h: Likewise.
31798         * signal/signal.h: Likewise.
31799         * socket/send.c: Likewise.
31800         * socket/sendto.c: Likewise.
31801         * socket/sys/socket.h: Likewise.
31802         * stdio-common/printf.h: Likewise.
31803         * stdlib/bits/stdlib.h: Likewise.
31804         * stdlib/fmtmsg.h: Likewise.
31805         * stdlib/monetary.h: Likewise.
31806         * stdlib/stdlib.h: Likewise.
31807         * stdlib/ucontext.h: Likewise.
31808         * streams/stropts.h: Likewise.
31809         * string/argz.h: Likewise.
31810         * string/bits/string2.h: Likewise.
31811         * string/string.h: Likewise.
31812         * string/strings.h: Likewise.
31813         * sunrpc/rpc/auth.h: Likewise.
31814         * sunrpc/rpc/auth_des.h: Likewise.
31815         * sunrpc/rpc/clnt.h: Likewise.
31816         * sunrpc/rpc/netdb.h: Likewise.
31817         * sunrpc/rpc/pmap_clnt.h: Likewise.
31818         * sunrpc/rpc/xdr.h: Likewise.
31819         * sysdeps/generic/inttypes.h: Likewise.
31820         * sysdeps/generic/net/if.h: Likewise.
31821         * sysdeps/generic/sys/swap.h: Likewise.
31822         * sysdeps/gnu/net/if.h: Likewise.
31823         * sysdeps/gnu/utmpx.h: Likewise.
31824         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
31825         * sysdeps/i386/i486/bits/string.h: Likewise.
31826         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
31827         * sysdeps/s390/bits/string.h: Likewise.
31828         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
31829         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
31830         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31831         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
31832         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
31833         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
31834         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
31835         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
31836         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
31837         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31838         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
31839         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
31840         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
31841         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
31842         * sysdeps/unix/sysv/linux/readv.c: Likewise.
31843         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
31844         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
31845         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31846         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31847         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31848         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31849         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
31850         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
31851         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
31852         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
31853         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
31854         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
31855         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31856         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
31857         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
31858         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
31859         * sysvipc/sys/ipc.h: Likewise.
31860         * sysvipc/sys/msg.h: Likewise.
31861         * sysvipc/sys/sem.h: Likewise.
31862         * sysvipc/sys/shm.h: Likewise.
31863         * termios/termios.h: Likewise.
31864         * time/sys/time.h: Likewise.
31865         * time/time.h: Likewise.
31866         * wcsmbs/bits/wchar2.h: Likewise.
31867         * wcsmbs/uchar.h: Likewise.
31868         * wcsmbs/wchar.h: Likewise.
31869         * wctype/wctype.h: Likewise.
31870
31871         [BZ #13551]
31872         * Makeconfig: Remove all but ELF support including AIX support.
31873         * Makerules: Likewise.
31874         * config.h.in: Likewise.
31875         * config.make.in: Likewise.
31876         * configure: Likewise.
31877         * configure.in: Likewise.
31878         * csu/Makefile: Likewise.
31879         * csu/version.c: Likewise.
31880         * debug/Makefile: Likewise.
31881         * dlfcn/Makefile: Likewise.
31882         * elf/Makefile: Likewise.
31883         * extra-lib.mk: Likewise.
31884         * iconv/Makefile: Likewise.
31885         * include/libc-symbols.h: Likewise.
31886         * include/shlib-compat.h: Likewise.
31887         * resolv/Makefile: Likewise.
31888         * resolv/res_libc.c: Likewise.
31889         * rt/Makefile: Likewise.
31890         * sysdeps/i386/asm-syntax.h: Likewise.
31891         * sysdeps/i386/sysdep.h: Likewise.
31892         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31893         * sysdeps/mach/sysdep.h: Likewise.
31894         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
31895         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
31896         * sysdeps/s390/asm-syntax.h: Likewise.
31897         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31898         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31899         * sysdeps/sh/sysdep.h: Likewise.
31900         * sysdeps/unix/sparc/sysdep.h: Likewise.
31901         * sysdeps/wordsize-32/divdi3.c: Likewise.
31902         * sysdeps/x86_64/sysdep.h: Likewise.
31903
31904         * argp/Versions: Remove _argp_unlock_xxx.
31905
31906         [BZ #13559]
31907         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
31908         * abilist/libBrokenLocale.abilist: Likewise.
31909         * abilist/libanl.abilist: Likewise.
31910         * abilist/libc.abilist: Likewise.
31911         * abilist/libcrypt.abilist: Likewise.
31912         * abilist/libdl.abilist: Likewise.
31913         * abilist/libm.abilist: Likewise.
31914         * abilist/libnsl.abilist: Likewise.
31915         * abilist/libpthread.abilist: Likewise.
31916         * abilist/libresolv.abilist: Likewise.
31917         * abilist/librt.abilist: Likewise.
31918         * abilist/libthread_db.abilist: Likewise.
31919         * abilist/libutil.abilist: Likewise.
31920         * abilist/libnss_db.abilist: New file.
31921
31922         * scripts/abilist.awk: Add support for indirect functions.
31923
31924         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
31925
31926         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
31927
31928         * shlib-versions: Remove entries for ports architectures.
31929
31930         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
31931         files in ports.
31932         * elf/stackguard-macros.h: Remove support for IA-64.
31933         * elf/tst-auditmod1.c: Likewise.
31934         * sysdeps/generic/ldsodefs.h: Likewise.
31935
31936         * sysdeps/unix/sysv/linux/configure.in: Ports should define
31937         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
31938         configure files.
31939
31940         [BZ #13552]
31941         * configure.in: Remove --enable-omitfp support.
31942         * FAQ.in: Adjust.
31943         * config.make.in: Likewise.
31944         * Makeconfig: Likewise.
31945         * manual/install.texi: Likewise.
31946
31947         In case anyone cares, the IA-64 architecture could move to ports.
31948         * sysdeps/ia64/*: Removed.
31949         * sysdeps/unix/sysv/linux/ia64/*: Removed.
31950         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
31951
31952         [BZ #13555]
31953         * configure.in: Remove entries for unsupported architectures.
31954
31955         [BZ #13533]
31956         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
31957         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
31958         routines.
31959         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
31960         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
31961         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
31962         fall back to using wcrtomb.
31963         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
31964         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
31965         renaming.
31966         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
31967         * wcsmbs/tst-c16c32-1.c: New file.
31968
31969         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
31970         local variable.
31971
31972         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
31973
31974         * elf/tst-unique3.cc: Add explicit declaration of gets.
31975         * elf/tst-unique3lib.cc: Likewise.
31976         * elf/tst-unique3lib2.cc: Likewise.
31977         * elf/tst-unique4.cc: Likewise.
31978
31979         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
31980
31981 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
31982
31983         [BZ #13566]
31984         * assert/assert.h (static_assert): Don't define for C++.
31985         * libio/stdio.h (gets): Do declare for C++ <= C++11.
31986         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
31987
31988 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
31989
31990         * iconv/loop.c (single loop): Fix assertion in storing of
31991         remaining bytes.
31992
31993         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
31994
31995 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
31996
31997         * posix/getconf.c: Update copyright year.
31998         * nss/getent.c: Likewise.
31999         * nss/makedb.c: Likewise.
32000         * iconv/iconvconfig.c: Likewise.
32001         * iconv/iconv_prog.c: Likewise.
32002         * elf/ldconfig.c: Likewise.
32003         * elf/pldd.c: Likewise.
32004         * elf/sotruss.ksh: Likewise.
32005         * catgets/gencat.c: Likewise.
32006         * csu/version.c: Likewise.
32007         * elf/ldd.bash.in: Likewise.
32008         * elf/sprof.c (print_version): Likewise.
32009         * locale/programs/locale.c: Likewise.
32010         * locale/programs/localedef.c: Likewise.
32011         * login/programs/pt_chown.c: Likewise.
32012         * nscd/nscd.c (print_version): Likewise.
32013         * debug/xtrace.sh: Likewise.
32014         * malloc/memusage.sh: Likewise.
32015         * malloc/mtrace.pl: Likewise.
32016         * debug/catchsegv.sh: Likewise.
32017
32018 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
32019
32020         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
32021         pure attribute.
32022
32023 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
32024
32025         [BZ #13533]
32026         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
32027         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
32028         transformations.
32029         * iconv/gconv_int.h: Likewise.
32030         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
32031         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
32032         from libc for GLIBC_2.16.
32033         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
32034         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
32035         * wcsmbs/uchar.h: Really define mbstate_t.
32036         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
32037         * wcsmbs/c16rtomb.c: New file.
32038         * wcsmbs/mbrtoc16.c: New file.
32039         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
32040         for C/POSIX locale.
32041         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
32042         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
32043
32044         * wcsmbs/wchar.h: Add missing __restrict.
32045
32046 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
32047
32048         [BZ #13532]
32049         * time/Makefile (routines): Add timespec_get.
32050         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
32051         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
32052         timespec for ISO C11.
32053         * time/timespec_get.c: New file.
32054         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
32055         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
32056
32057         [BZ #13531]
32058         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
32059         * stdlib/stdlib.h: Declare aligned_alloc.
32060         * Versions.def: Add GLIBC_2.16 for libc.
32061         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
32062
32063         [BZ 13527]
32064         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
32065         ISO C11.
32066
32067         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
32068         code.
32069
32070         [BZ #13528]
32071         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
32072
32073         [BZ #13529]
32074         * assert/assert.h (static_assert): Define.
32075
32076         * version.h: Update for 2.16 development version.
32077
32078         [BZ #13526]
32079         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
32080         _ISOC11_SOURCE.
32081
32082         * version.h (RELEASE): Bump for 2.15 release.
32083         * include/features.h (__GLIBC_MINOR__): Bump to 15.
32084
32085         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
32086         Patch by Marek Polacek <mpolacek@redhat.com>.
32087
32088         * bits/byteswap.h: Protect long long constants with __extension__.
32089         * sysdeps/i386/bits/byteswap.h: Likewise.
32090         * sysdeps/ia64/bits/byteswap.h: Likewise.
32091         * sysdeps/s390/bits/byteswap.h: Likewise.
32092         * sysdeps/x86_64/bits/byteswap.h: Likewise.
32093
32094 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32095
32096         [BZ #13540]
32097         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
32098         destination buffer.
32099         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
32100
32101 2011-12-23  Marek Polacek  <polacek@redhat.com>
32102
32103         * elf/dl-addr.c (determine_info): Add inline keyword.
32104         * elf/tst-auditmod4b.c (check_avx): Likewise.
32105         * elf/tst-auditmod6b.c (check_avx): Likewise.
32106         * elf/tst-auditmod6c.c (check_avx): Likewise.
32107         * elf/tst-auditmod7b.c (check_avx): Likewise.
32108
32109 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
32110
32111         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
32112         !__SSE_MATH__.
32113
32114 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32115
32116         [BZ #13540]
32117         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
32118         processing for last bytes.
32119
32120 2011-08-06  Bruno Haible  <bruno@clisp.org>
32121
32122         [BZ #13061]
32123         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
32124         U+0385, not to U+1FEE.
32125
32126         [BZ #13062]
32127         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
32128         entry for U+00A5 U+0301.
32129
32130 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32131
32132         [BZ #13166]
32133         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
32134         buffer for the output is too small.
32135
32136         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
32137         optimization.
32138
32139         [BZ #13185]
32140         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
32141         SSE flags if possible.
32142
32143 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32144
32145         [BZ #13540]
32146         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
32147         processing for last bytes.
32148
32149 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
32150
32151         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
32152         (syscall-list-default-options, syscall-list-default-condition)
32153         (syscall-list-includes): Define.
32154         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
32155         list of ABIs and options and #if conditions for each ABI.  Do not
32156         handle common syscalls between ABIs specially.
32157         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
32158         Remove.
32159         (syscall-list-variants, syscall-list-32bit-options)
32160         (syscall-list-32bit-condition, syscall-list-64bit-options)
32161         (syscall-list-64bit-condition): Define.
32162         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
32163         (syscall-list-variants, syscall-list-32bit-options)
32164         (syscall-list-32bit-condition, syscall-list-64bit-options)
32165         (syscall-list-64bit-condition): Define.
32166         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
32167         Remove.
32168         (syscall-list-variants, syscall-list-32bit-options)
32169         (syscall-list-32bit-condition, syscall-list-64bit-options)
32170         (syscall-list-64bit-condition): Define.
32171         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
32172         Remove.
32173         (syscall-list-variants, syscall-list-32bit-options)
32174         (syscall-list-32bit-condition, syscall-list-64bit-options)
32175         (syscall-list-64bit-condition): Define.
32176
32177 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32178
32179         * locale/iso-639.def: Add brx entry.
32180
32181         [BZ #13328]
32182         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
32183         Proposed by Mariusz_Cukr <marcukr@op.pl>.
32184
32185         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
32186         __feraiseexcept_renamed.
32187
32188 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32189
32190         [BZ #13538]
32191         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
32192         EPOLLET with unsigned values.
32193         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
32194         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
32195
32196         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
32197         to large cancellation.
32198         * math/s_cacoshf.c: Likewise.
32199         * math/s_cacoshl.c: Likewise.
32200
32201 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
32202
32203         [BZ #13305]
32204         [BZ #12786]
32205         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
32206         * math/s_cacoshf.c: Likewise.
32207         * math/s_cacoshl.c: Likewise.
32208
32209 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32210
32211         [BZ #13439]
32212         * iconv/gconv.h: Define __GCONV_SWAP.
32213         * iconvdata/unicode.c: The swap bit must be stored in __flags.
32214         * iconvdata/utf-16.c: Likewise.
32215         * iconvdata/utf-32.c: Likewise.
32216
32217 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
32218
32219         [BZ #13524]
32220         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
32221         numerator after shifting it by one limb.
32222
32223 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
32224
32225         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
32226         under [__USE_EXTERN_INLINES].
32227
32228 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32229
32230         [BZ #13446]
32231         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
32232
32233 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32234
32235         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
32236         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
32237         optimized code.
32238         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
32239         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
32240         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
32241         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
32242         for strncasecmp/strncasecmp_l compilation.
32243         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
32244         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
32245
32246 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
32247
32248         [BZ #13484]
32249         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
32250         of __asm__.
32251
32252 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32253
32254         [BZ #13506]
32255         * time/tzfile.c (__tzfile_read): Check values from file header.
32256
32257 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
32258
32259         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
32260         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
32261         * powerpc/powerpc32/dl-start.S: Likewise.
32262         * powerpc/powerpc32/elf/start.S: Likewise.
32263         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
32264         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
32265         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
32266         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
32267         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
32268         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
32269         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
32270         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
32271         * powerpc/powerpc32/fpu/s_round.S: Likewise.
32272         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
32273         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
32274         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
32275         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
32276         * powerpc/powerpc32/memset.S: Likewise.
32277         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
32278         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
32279         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
32280         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
32281         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
32282         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
32283         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
32284         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
32285         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
32286         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
32287         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
32288         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
32289         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
32290
32291 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32292
32293         * math/libm-test.inc: Added more nearbyint tests.
32294         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
32295         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
32296         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
32297         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
32298
32299 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
32300
32301         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
32302         FD_CLOEXEC.
32303
32304 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32305
32306         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
32307         Add wcscpy-ssse3 wcscpy-c.
32308         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
32309         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
32310         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
32311         * sysdeps/x86_64/wcschr.S: New file.
32312         * sysdeps/x86_64/wcsrchr.S: New file.
32313         * string/test-strcmp.c: Remove checking of wcscmp function for
32314         wrong alignments.
32315         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
32316         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
32317         wcsrchr-sse2 wcsrchr-c.
32318         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
32319         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
32320         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
32321         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
32322         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
32323         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
32324         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
32325         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
32326         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
32327         * wcsmbc/wcschr.c (WCSCHR): New macro.
32328
32329 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32330
32331         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
32332         * wcsmbs/test-wcsrchr.c: New file.
32333         * string/test-strrchr.c: Add wcsrchr support.
32334         (WIDE): New macro.
32335         * wcsmbs/test-wcscpy.c: New file.
32336         * string/test-strcpy.c: Add wcscpy support.
32337         (WIDE): New macro.
32338
32339 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
32340
32341         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
32342         the inner loop.
32343
32344 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
32345
32346         [BZ #13472]
32347         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
32348
32349 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
32350
32351         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
32352         Minor optimizations.
32353
32354         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
32355         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
32356         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32357
32358 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
32359
32360         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
32361         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
32362         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
32363         for gcc to avoid warnings.
32364         * inet/Makefile (tests): Add tst-checks.
32365         * inet/tst-checks.c: New file.
32366
32367         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
32368         warning.
32369
32370         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
32371         __wmemcmp_sse2.
32372
32373         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
32374         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
32375
32376         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
32377
32378 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
32379
32380         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
32381         problem.
32382
32383         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
32384
32385 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
32386
32387         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
32388         conditional on GCC version.
32389         (__arch_compare_and_exchange_val_8_acq)
32390         (__arch_compare_and_exchange_val_16_acq)
32391         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
32392         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
32393         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
32394
32395 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
32396
32397         * sysdeps/sh/backtrace.c: New file.
32398
32399 2011-12-02  Andreas Schwab  <schwab@redhat.com>
32400
32401         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
32402         parenthesis.
32403
32404 2011-12-01  Andreas Schwab  <schwab@redhat.com>
32405
32406         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
32407         falling back to utime.
32408
32409 2011-11-30  Andreas Schwab  <schwab@redhat.com>
32410
32411         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
32412         expectations for float.
32413
32414 2011-11-29  Andreas Schwab  <schwab@redhat.com>
32415
32416         * locale/weight.h (findidx): Add parameter len.
32417         * locale/weightwc.h (findidx): Likewise.
32418         * posix/fnmatch_loop.c (FCT): Adjust caller.
32419         * posix/regcomp.c (build_equiv_class): Likewise.
32420         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
32421         * posix/regexec.c (check_node_accept_bytes): Likewise.
32422         * string/strcoll_l.c (STRCOLL): Likewise.
32423         * string/strxfrm_l.c (STRXFRM): Likewise.
32424
32425 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
32426
32427         * Makefile.in: Remove CVSOPT handling.
32428         * configure.in: Remove use of AC_REVISION.
32429         * iconvdata/Makefile (distribute): No need to filter out CVS.
32430         * scripts/list-sources.sh: Remove CVS, subversion and monotone
32431         handling.
32432
32433 2011-11-16  Andreas Schwab  <schwab@redhat.com>
32434
32435         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
32436         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
32437         [USE_AS_STRNCASECMP_L]: Likewise.
32438         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
32439         NO_TLS_DIRECT_SEG_REFS.
32440         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
32441         Fix argument offsets for non-PIC.
32442         [USE_AS_STRNCASECMP_L]: Likewise.
32443         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
32444         NO_TLS_DIRECT_SEG_REFS.
32445
32446 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32447
32448         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
32449         O_CLOEXEC.
32450         * locale/loadlocale.c (_nl_load_locale): Likewise.
32451
32452 2011-11-15  Andreas Schwab  <schwab@redhat.com>
32453
32454         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
32455         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
32456         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
32457         (SYSCALL_GETTIME): Set errno on error.
32458
32459         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
32460         count references to noai6ai_cached.
32461
32462 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32463
32464         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
32465
32466         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
32467         FD_CLOEXEC for /proc/self/maps.
32468
32469         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
32470         FD_CLOEXEC for /proc/meminfo.
32471
32472         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
32473         gai.conf.
32474
32475         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
32476         FD_CLOEXEC for given file.
32477
32478         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
32479
32480         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
32481         FD_CLOEXEC for /etc/hosts.
32482         (_gethtent): Likewise.
32483
32484         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
32485
32486         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
32487         cancellation and set FD_CLOEXEC for /etc/netgroup.
32488
32489         * nss/nss_files/files-key.c (search): Don't allow cancellation when
32490         reading /etc/publickey.
32491
32492         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
32493         allow cancellation when reading /etc/group.
32494
32495         * nss/nss_files/files-alias.c (internal_setent): Don't allow
32496         cancellation.
32497         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
32498
32499         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
32500         when using data file.
32501
32502         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
32503
32504         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
32505         (write_nis_obj): Use "c" and "e" in fopen.
32506
32507         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
32508
32509         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
32510
32511         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
32512
32513         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
32514
32515         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
32516         locale.alias.
32517
32518         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
32519
32520         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
32521
32522         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
32523
32524         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
32525         file parsing and set FD_CLOEXEC.
32526
32527 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32528
32529         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
32530
32531 2011-11-14  Andreas Schwab  <schwab@redhat.com>
32532
32533         * malloc/arena.c (arena_get2): Don't call reused_arena when
32534         _int_new_arena failed.
32535
32536 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32537
32538         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
32539         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
32540         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
32541         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32542         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32543         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
32544         to compile strcasecmp and strncasecmp.
32545         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
32546         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
32547
32548         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
32549
32550 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
32551
32552         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
32553         locale-defines.sym to gen-as-const-headers.
32554         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
32555         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
32556         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
32557         to compile strcasecmp and strncasecmp.
32558         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
32559         strcasecmp_l and strncasecmp_l.
32560         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
32561         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
32562         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
32563         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
32564         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
32565         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
32566         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
32567         * sysdeps/i386/i686/multiarch/strncase.S: New file.
32568         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
32569         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
32570         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
32571
32572 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
32573
32574         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
32575         result of SYSDEP_GETTIME_CPU to retval.
32576         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
32577         parameter list to macro.  Remove trailing semicolon.  Adjust users.
32578
32579         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
32580         variable.
32581
32582         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
32583         mantissa words.
32584         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32585
32586         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
32587         from unused variable.
32588
32589         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
32590         DWARF definitions.
32591         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
32592         for assembling.
32593
32594         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
32595         over namespaces.
32596
32597         * sunrpc/rpc_prot.c (rejected): Fix case value.
32598
32599         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
32600         unsigned long long int to avoid warnings in shift.
32601
32602         * posix/regex_internal.c (re_string_reconstruct): Actually use result
32603         of use of trans.
32604         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
32605         variable tmp.
32606
32607         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
32608         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
32609         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
32610
32611         * nis/nis_table.c (nis_list): Use variable of correct type for
32612         result of __follow_path call.
32613
32614 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32615
32616         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
32617         of math functions ceil, trunc, floor, round, and sqrt, when
32618         avaliable on the platform.
32619         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
32620         name clash.
32621         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32622         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32623         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32624
32625 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
32626
32627         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
32628         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
32629
32630 2011-11-11  Roland McGrath  <roland@hack.frob.com>
32631
32632         * include/unistd.h: Fix __readlink return type.
32633         Reported by Chris Metcalf <cmetcalf@tilera.com>.
32634
32635 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
32636
32637         * stdlib/ucontext.h: Undo last change for makecontext.
32638
32639 2011-11-11  Andreas Schwab  <schwab@redhat.com>
32640
32641         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
32642
32643         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
32644         * setjmp/setjmp.h: Mark functions as non-leaf.
32645         * setjmp/bits/setjmp2.h: Likewise.
32646         * stdlib/ucontext.h: Likewise.
32647
32648 2011-11-10  Andreas Schwab  <schwab@redhat.com>
32649
32650         * malloc/arena.c (_int_new_arena): Don't increment narenas.
32651         (reused_arena): Don't check arena limit.
32652         (arena_get2): Atomically check arena limit.
32653
32654 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
32655
32656         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
32657         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
32658
32659         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
32660         instructions.
32661
32662 2011-11-07  Andreas Schwab  <schwab@redhat.com>
32663
32664         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
32665         handler when locking.
32666
32667         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
32668         Fix size of allocated buffer.
32669
32670 2011-11-04  Andreas Schwab  <schwab@redhat.com>
32671
32672         [BZ #10103]
32673         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
32674         declarations for long double functions.
32675         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
32676
32677         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
32678
32679 2011-11-03  Andreas Schwab  <schwab@redhat.com>
32680
32681         * nscd/nscd.c (main): Don't start AVC thread until credentials are
32682         installed.
32683
32684         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
32685         is disabled.
32686
32687 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32688
32689         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
32690
32691 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
32692
32693         * include/alloca.h (stackinfo_alloca_round): Define.
32694         (extend_alloca): Use it.
32695         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
32696         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
32697         here.
32698
32699         * scripts/check-local-headers.sh: Ignore libaudit.h.
32700
32701         * nscd/Makefile (extra-objs): Make recursively expanded.
32702
32703 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
32704
32705         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
32706         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
32707
32708         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
32709         * posix/tst-rfc3484-2.c: Likewise.
32710         * posix/tst-rfc3484-3.c: Likewise.
32711
32712         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
32713         process_vm_writev.
32714         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
32715         process_vm_writev.
32716         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
32717         process_vm_writev from libc using GLIBC_2.15 version.
32718
32719         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
32720
32721 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
32722
32723         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
32724         stack usage.
32725
32726 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
32727
32728         [BZ #13367]
32729         * nss/getent.c (initgroups_keys): Show error message in case no group
32730         names are given.
32731
32732         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
32733         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
32734         __bump_nl_timestamp.
32735         * nscd/connections (nscd_init): When host database is served open
32736         netlink socket and request notification about configuration changes.
32737         (main_loop_poll): Track netlink file descriptor and bump timestamp
32738         in case data becomes available.
32739         (main_loop_epoll): Likewise.
32740         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
32741         (database_pers_head): Add extra_data fileds.
32742         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
32743         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
32744         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
32745         Adjust caller.
32746         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
32747         in6ai data, call __free_in6ai.
32748         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
32749         Add -DHAVE_NETLINK.
32750         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
32751         interface information.  Reuse previous data if netlink timestamp
32752         is not changed.
32753         (__bump_nl_timestamp): New function.
32754         (__free_in6ai): New function.
32755
32756 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
32757
32758         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
32759         close_not_cancel_no_status here.
32760         (__check_pf): Reorganize code a bit to not call close twice if OOM.
32761
32762 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32763
32764         [BZ #13276]
32765         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
32766         return value.
32767
32768         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
32769         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
32770         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
32771
32772 2011-07-03  Andreas Jaeger  <aj@suse.de>
32773
32774         [BZ #10709]
32775         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
32776         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
32777         * math/libm-test.inc (sin_test): Add test case.
32778
32779 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32780
32781         [BZ #13337]
32782         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
32783         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32784
32785         * elf/chroot_canon.c (chroot_canon): Cleanups.
32786
32787         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
32788
32789         [BZ #13335]
32790         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
32791         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32792
32793         * string/test-strchr.c: Make usable for strchrnul testing.
32794         * string/test-strchrnul.c: New file.
32795         * string/Makefile (strop-tests): Add strchrnul.
32796
32797         * po/it.po: Update from translation team.
32798         * po/es.po: Likewise.
32799
32800 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
32801
32802         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
32803         the three constants needed as parameters.  Drop the others.
32804         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
32805         __m128i_strloadu_tolower.
32806         Create and initialize variable zero and use it in all the places
32807         where _mm_setzero_si128 was used.
32808
32809         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
32810         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
32811         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
32812         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
32813         anymore.
32814         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
32815         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
32816         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
32817         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
32818         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
32819         __mpranred, __mptan.
32820         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
32821         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
32822         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
32823         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
32824         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
32825         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
32826         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
32827         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
32828         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
32829
32830 2011-10-28  Andreas Schwab  <schwab@redhat.com>
32831
32832         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
32833         redefine if SHARED.
32834         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
32835
32836         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
32837         wide char related routines to wcsmbs subdir.
32838
32839 2011-10-27  Andreas Schwab  <schwab@redhat.com>
32840
32841         [BZ #13344]
32842         * misc/sys/cdefs.h (__THROWNL): Define.
32843         * posix/unistd.h: Use __THREADNL instead of __THREAD
32844         for memory synchronization functions.
32845
32846 2011-10-26  Roland McGrath  <roland@hack.frob.com>
32847
32848         [BZ #13349]
32849         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
32850         doesn't exist.
32851         * manual/stdio.texi (Obstack Streams): Node removed.
32852
32853 2011-10-26  Andreas Schwab  <schwab@redhat.com>
32854
32855         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
32856         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32857         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32858
32859         * math/math_private.h (math_force_eval): Allow non-addressable
32860         arguments.
32861         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
32862
32863 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32864
32865         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
32866         file is not needed.
32867
32868         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
32869         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32870         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32871         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32872         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32873         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32874         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32875         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
32876         Add AVX variants.
32877         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
32878         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
32879         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
32880         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
32881         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
32882         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
32883         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
32884         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
32885         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
32886         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
32887         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
32888         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
32889         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
32890         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
32891         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
32892         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
32893         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
32894         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
32895         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
32896
32897         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
32898         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
32899
32900         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
32901         place.  Use VEX encoding when compiling for AVX.
32902
32903 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32904
32905         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
32906         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
32907
32908         * string/test-strchr.c (do_test): Don't generate NUL bytes.
32909
32910 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32911
32912         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
32913         useless if() expression.
32914         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32915         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
32916         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
32917         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32918         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
32919         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32920         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32921         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32922         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
32923         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
32924         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
32925         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32926         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
32927         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32928         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
32929         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32930         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
32931         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
32932         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
32933
32934         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
32935
32936 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32937
32938         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
32939         condition.
32940         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32941
32942 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32943
32944         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
32945         .text section.  Avoid duplicate constants.
32946         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
32947         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32948         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
32949         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32950         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32951         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32952         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32953         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32954         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
32955         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
32956         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
32957         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
32958         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
32959         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
32960         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
32961         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
32962         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
32963         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
32964         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
32965         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32966         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
32967         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
32968         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
32969         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
32970         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
32971         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
32972         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
32973         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
32974         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
32975         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
32976         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
32977         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
32978         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
32979         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
32980         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
32981         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
32982         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
32983         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
32984         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
32985         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
32986         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
32987         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
32988         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
32989         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
32990         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
32991
32992 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
32993
32994         * sysdeps/x86_64/dla.h: Move to ...
32995         * sysdeps/x86_64/fpu/dla.h: ...here.
32996         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
32997         situations.  Use __builtin_fma only for gcc 4.6 and up.
32998
32999         * config.make.in: Add have-mfma4 entry.
33000         * configure.in: Substitute libc_cv_cc_fma4.
33001         * math/Makefile (dbl-only-routines): Add sincostab.
33002         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
33003         Use __sincostab not sincos.
33004         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
33005         name is a macro.
33006         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33007         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33008         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33009         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
33010         using __copysign.
33011         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
33012         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
33013         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
33014         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
33015         and __inv.
33016         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
33017         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
33018         __copysign.
33019         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
33020         define aliases when function name is a macro.
33021         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
33022         sysdeps/ieee754/dbl-64/sincos.tbl.
33023         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
33024         fma4-enabled routines.
33025         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
33026         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
33027         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
33028         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
33029         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
33030         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
33031         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
33032         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
33033         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
33034         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
33035         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
33036         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
33037         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
33038         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
33039         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
33040         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
33041         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
33042         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
33043         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
33044         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
33045         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
33046         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
33047         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
33048         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
33049         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
33050         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
33051         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
33052         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
33053         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
33054         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
33055
33056         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
33057         rename.
33058         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33059         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33060         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33061         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33062         * sysdeps/ieee754/dbl-64/e_pow.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-24  Andreas Schwab  <schwab@redhat.com>
33068
33069         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
33070
33071 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33072
33073         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
33074
33075         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
33076         prediction.
33077         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
33078
33079         * string/strnlen.c: Don't define STRNLEN, reverse logic.
33080         Remove unused variable magic_bits.
33081         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
33082
33083         * string/strnlen.c: Define and use STRNLEN macro.
33084         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
33085         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
33086         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
33087         * wcsmbs/wcslen.c: Define and use WCSLEN.
33088         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
33089         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
33090         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
33091         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
33092         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
33093         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
33094         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33095
33096 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33097
33098         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33099         strnlen-sse2-no-bsf.
33100         Rename strlen-no-bsf to strlen-sse2-no-bsf.
33101         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
33102         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
33103         Add strnlen support.
33104         (USE_AS_STRNLEN): New macro.
33105         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
33106         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
33107         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
33108         * sysdeps/x86_64/wcslen.S: New file.
33109
33110 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
33111
33112         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
33113         XMM-moves are used for copying on small sizes.
33114
33115 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33116
33117         * wcsmbs/Makefile (strop-tests): Add wcschr.
33118         * wcsmbs/test-wcschr.c: New file.
33119         * string/test-strchr.c: Update.
33120         Add wcschr support.
33121         (WIDE): New macro.
33122
33123 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33124
33125         * wcsmbs/Makefile (strop-tests): Add wcslen.
33126         * wcsmbs/test-wcslen.c: New file.
33127         * string/test-strlen.c: Update.
33128         Add wcslen support.
33129         (WIDE): New macro.
33130
33131 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33132
33133         * po/it.po: Update from translation team.
33134
33135 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33136
33137         * sysdeps/x86_64/wcscmp.S: Update.
33138         Fix wrong comparison semantics.
33139         wcscmp shall use signed comparison not unsigned.
33140         Don't use substraction to avoid overflow bug.
33141         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
33142         * wcsmbc/wcscmp.c: Likewise.
33143         * string/test-strcmp.c: Likewise.
33144         Add new tests to check cases with negative values.
33145
33146 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33147
33148         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
33149         * sysdeps/x86_64/dla.h: ...here.  New file.
33150         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
33151         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33152         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33153         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33154         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33155         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33156         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33157         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33158         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33159
33160 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
33161
33162         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
33163         __ynl_finite aliases.
33164
33165 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33166
33167         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33168
33169         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
33170         define DLA_FMA.
33171         [DLA_FMA] (EMULV): Use DLA_FMA.
33172         [DLA_FMA] (MUL12): Use EMULV.
33173         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
33174         that are not needed.
33175         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33176         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33177         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33178         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33179         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33180         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33181         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33182
33183 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
33184
33185         * math/s_nan.c: Undef __nan.
33186         * math/s_nanf.c: Undef __nanf.
33187         * math/s_nanl.c: Undef __nanl.
33188         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
33189         "math_private.h".
33190
33191 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33192
33193         * math/s_catan.c: Add branch predictions.
33194         * math/s_catanf.c: Likewise.
33195         * math/s_catanh.c: Likewise.
33196         * math/s_catanhf.c: Likewise.
33197         * math/s_catanhl.c: Likewise.
33198         * math/s_catanl.c: Likewise.
33199         * math/s_cexp.c: Likewise.
33200         * math/s_cexpf.c: Likewise.
33201         * math/s_cexpl.c: Likewise.
33202         * math/s_clog.c: Likewise.
33203         * math/s_clog10.c: Likewise.
33204         * math/s_clog10f.c: Likewise.
33205         * math/s_clog10l.c: Likewise.
33206         * math/s_clogf.c: Likewise.
33207         * math/s_clogl.c: Likewise.
33208         * math/s_csqrt.c: Likewise.
33209         * math/s_csqrtf.c: Likewise.
33210         * math/s_csqrtl.c: Likewise.
33211         * math/s_ctanf.c: Likewise.
33212         * math/s_ctanh.c: Likewise.
33213         * math/s_ctanhf.c: Likewise.
33214         * math/s_ctanhl.c: Likewise.
33215         * math/s_ctanl.c: Likewise.
33216
33217         * math/math_private.h: Define __nan, __nanf, __nanl.
33218         * math/s_cacosh.c: Include <math_private.h>.
33219         * math/s_cacoshl.c: Likewise.
33220         * math/s_casinh.c: Likewise.
33221         * math/s_casinhf.c: Likewise.
33222         * math/s_casinhl.c: Likewise.
33223         * math/s_ccos.c: Rely entire on ccosh.
33224         * math/s_ccosf.c: Rely entire on ccoshf.
33225         * math/s_ccosl.c: Rely entirely on ccoshl.
33226         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
33227         Remove tests for FE_INVALID.
33228         * math/s_ccoshf.c: Likewise.
33229         * math/s_ccoshl.c: Likewise.
33230         * math/s_csin.c: Likewise.
33231         * math/s_csinf.c: Likewise.
33232         * math/s_csinh.c Likewise.
33233         * math/s_csinhf.c: Likewise.
33234         * math/s_csinhl.c: Likewise.
33235         * math/s_csinl.c: Likewise.
33236         * math/s_ctan.c: Likewise.
33237         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
33238         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
33239         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
33240
33241 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
33242
33243         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
33244         compilation problems.
33245
33246         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
33247         __builtin_expect.
33248
33249 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
33250
33251         * sysdeps/i386/configure.in: Test for -mfma4 option.
33252         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
33253         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
33254         COMMON_CPUID_INDEX_80000001.
33255         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
33256         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
33257         use it if FMA3 is not supported.
33258         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
33259
33260         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
33261         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33262
33263 2011-10-20  Andreas Schwab  <schwab@redhat.com>
33264
33265         [BZ #12892]
33266         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
33267         it would create a cycle with a link time dependency.
33268
33269 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
33270
33271         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
33272         instruction.
33273         * string/Makefile (strop-tests): Add rawmemchr.
33274         * string/test-rawmemchr.c: New file.
33275
33276         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
33277         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
33278         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
33279         when compiling str{,n}casecmp and when AVX is available.  Hook up
33280         new optimized code in initializers.
33281
33282 2011-10-19  Andreas Schwab  <schwab@redhat.com>
33283
33284         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
33285         __feraiseexcept instead of feraiseexcept.
33286
33287 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
33288
33289         * math/math_private.h: Define defaults for libc_fetestexcept and
33290         libc_feupdateenv.
33291         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
33292         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
33293         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33294         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33295         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
33296         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33297         libc_fetestexcept and libc_feupdateenv.
33298
33299         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
33300         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
33301         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
33302         * sysdeps/x86_64/fpu/math_private.h: Define special version of
33303         libc_feholdexcept_setround.
33304
33305         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
33306         Add s_nearbyint-c and s_nearbyintf-c.
33307         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
33308         nearbyintf inlines.
33309         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
33310         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
33311         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
33312         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
33313
33314         * math/math_private.h: Define defaults for libc_fegetround,
33315         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
33316         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
33317         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
33318         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
33319         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
33320         standard functions.
33321         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33322         Remove comments and hacks for old compiler versions.
33323         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33324         libc_fegetround, libc_fesetround, libc_feholdexcept, and
33325         libc_feholdexceptl.
33326
33327 2011-10-18  Andreas Schwab  <schwab@redhat.com>
33328
33329         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
33330         (__feraiseexcept_renamed): Add __NTH.
33331         (feraiseexcept): Add __NTH.  Rename local variables to fix
33332         namespace violations.
33333
33334 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
33335
33336         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
33337
33338         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
33339
33340         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
33341         recently added interfaces.
33342         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
33343
33344         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
33345         about macro parameter expansion.
33346
33347         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
33348         __NO_MATH_INLINES is defined.  Cleanups.
33349
33350         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
33351         and __floorf is target has SSE4.1.
33352         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
33353         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
33354         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
33355         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
33356
33357         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
33358         name.
33359         (floorf): Likewise.
33360
33361         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
33362
33363 2011-10-17  Andreas Schwab  <schwab@redhat.com>
33364
33365         * misc/sys/cdefs.h: Fix last change.
33366
33367         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
33368         database lookup.
33369
33370 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
33371
33372         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
33373
33374         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
33375         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
33376         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
33377         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
33378         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
33379         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
33380         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
33381         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
33382         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
33383         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
33384         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
33385         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
33386         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
33387         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
33388         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
33389         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
33390         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
33391         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
33392         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
33393         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
33394         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
33395         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
33396
33397         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
33398         ceil, ceilf, floor, floorf.
33399
33400         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
33401         Perform IRELATIVE relocations last.
33402
33403         * elf/do-rel.h: Add another parameter nrelative, replacing the
33404         local variable with the same name.  Change name of the function
33405         to end in Rel or Rela (uppercase).
33406         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
33407         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
33408         elf_dynamic_do_##reloc function.
33409
33410 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33411
33412         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
33413         is sufficient, at least on modern CPUs.
33414
33415         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
33416
33417         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
33418         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
33419
33420         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
33421         __expl_finite.
33422         * math/bits/math-finite.h: Add entries for exp.
33423         * math/e_expl.c: Add __*_finite alias.
33424         * sysdeps/i386/fpu/e_exp.S: Likewise.
33425         * sysdeps/i386/fpu/e_expf.S: Likewise.
33426         * sysdeps/i386/fpu/e_expl.c: Likewise.
33427         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33428         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33429         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
33430         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
33431         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
33432         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
33433         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
33434
33435         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
33436         is sufficient, at least on modern CPUs.
33437
33438         * ctype/ctype-info.c (__ctype_init): Define.
33439         * include/ctype.h (__ctype_init): Declare.
33440         (__ctype_b_loc): The variable is always initialized.
33441         (__ctype_toupper_loc): Likewise.
33442         (__ctype_tolower_loc): Likewise.
33443         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
33444         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
33445
33446 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
33447
33448         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
33449
33450         * configure.in: Also look in $cxxmachine/include for C++ system
33451         headers.
33452
33453 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33454
33455         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
33456         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
33457         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
33458         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
33459         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
33460         (USE_AS_WMEMCMP): New macro.
33461         Fixing indents.
33462         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
33463         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
33464         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
33465         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
33466         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33467         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
33468         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
33469         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
33470         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
33471         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
33472         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
33473         (USE_AS_WMEMCMP): New macro.
33474         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
33475         * sysdeps/string/test-memcmp.c: Update.
33476         Fix simple_wmemcmp.
33477         Add new tests.
33478         * wcsmbs/wmemcmp.c: Update.
33479         (WMEMCMP): New macro.
33480         Fix overflow bug.
33481
33482 2011-10-12  Andreas Jaeger  <aj@suse.de>
33483
33484         [BZ #13268]
33485         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
33486
33487 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33488
33489         * libio/iofwide.c (do_length): Avoid warning.
33490
33491         * ctype/ctype.h (__isctype_f): Add missing __THROW.
33492
33493 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
33494
33495         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
33496
33497         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
33498         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
33499         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
33500         * sysdeps/i386/i686/fpu/e_log.S: New file.
33501         * sysdeps/i386/i686/fpu/e_logf.S: New file.
33502         * sysdeps/i386/i686/fpu/e_logl.S: New file.
33503
33504         * ctype/ctype.h: Add support for inlined isXXX functions when
33505         compiling C++ code.
33506
33507 2011-10-14  Andreas Schwab  <schwab@redhat.com>
33508
33509         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33510
33511         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
33512
33513 2011-10-13  Roland McGrath  <roland@hack.frob.com>
33514
33515         [BZ #13291]
33516         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
33517
33518 2011-10-13  Andreas Schwab  <schwab@redhat.com>
33519
33520         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
33521         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
33522         feraiseexcept.
33523
33524         * sysdeps/x86_64/memrchr.S: Check for zero size.
33525
33526         * string/stratcliff.c: Add memrchr tests.
33527
33528 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33529
33530         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33531         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
33532         rawmemchr-sse2 rawmemchr-sse2-bsf.
33533         * sysdeps/i386/i686/multiarch/memchr.S: New file.
33534         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
33535         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
33536         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
33537         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
33538         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
33539         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
33540         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
33541         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
33542         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
33543         * string/memrchr.c (MEMRCHR): New macro.
33544
33545 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
33546
33547         Add integration with gcc's -ffinite-math-only and optimize wrapper
33548         functions in libm.
33549         * Versions.def: Define GLIBC_2.15 version for libm.
33550         * math/Makefile (headers): Add bits/math-finite.h.
33551         * math/bits/math-finite.h: New file.
33552         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
33553         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
33554         * math/e_acoshl.c: Add __*_finite alias.
33555         * math/e_acosl.c: Likewise.
33556         * math/e_asinl.c: Likewise.
33557         * math/e_atan2l.c: Likewise.
33558         * math/e_atanhl.c: Likewise.
33559         * math/e_coshl.c: Likewise.
33560         * math/e_exp10.c: Likewise.
33561         * math/e_exp10f.c: Likewise.
33562         * math/e_exp10l.c: Likewise.
33563         * math/e_exp2l.c: Likewise.
33564         * math/e_fmodl.c: Likewise.
33565         * math/e_gammal_r.c: Likewise.
33566         * math/e_hypotl.c: Likewise.
33567         * math/e_j0l.c: Likewise.
33568         * math/e_j1l.c: Likewise.
33569         * math/e_jnl.c: Likewise.
33570         * math/e_lgammal_r.c: Likewise.
33571         * math/e_log10l.c: Likewise.
33572         * math/e_log2l.c: Likewise.
33573         * math/e_logl.c: Likewise.
33574         * math/e_powl.c: Likewise.
33575         * math/e_sinhl.c: Likewise.
33576         * math/e_sqrtl.c: Likewise.
33577         * math/e_scalb.c: Completely rewritten and optimized.
33578         * math/e_scalbf.c: Likewise.
33579         * math/e_scalbl.c: Likewise.
33580         * math/w_acos.c: Likewise.
33581         * math/w_acosf.c: Likewise.
33582         * math/w_acosl.c: Likewise.
33583         * math/w_acosh.c: Likewise.
33584         * math/w_acoshf.c: Likewise.
33585         * math/w_acoshl.c: Likewise.
33586         * math/w_asin.c: Likewise.
33587         * math/w_asinf.c: Likewise.
33588         * math/w_asinl.c: Likewise.
33589         * math/w_atan2.c: Likewise.
33590         * math/w_atan2f.c: Likewise.
33591         * math/w_atan2l.c: Likewise.
33592         * math/w_atanh.c: Likewise.
33593         * math/w_atanhf.c: Likewise.
33594         * math/w_atanhl.c: Likewise.
33595         * math/w_exp10.c: Likewise.
33596         * math/w_exp10f.c: Likewise.
33597         * math/w_exp10l.c: Likewise.
33598         * math/w_fmod.c: Likewise.
33599         * math/w_fmodf.c: Likewise.
33600         * math/w_fmodl.c: Likewise.
33601         * math/w_j0.c: Likewise.
33602         * math/w_j0f.c: Likewise.
33603         * math/w_j0l.c: Likewise.
33604         * math/w_j1.c: Likewise.
33605         * math/w_j1f.c: Likewise.
33606         * math/w_j1l.c: Likewise.
33607         * math/w_jn.c: Likewise.
33608         * math/w_jnf.c: Likewise.
33609         * math/w_log.c: Likewise.
33610         * math/w_logf.c: Likewise.
33611         * math/w_logl.c: Likewise.
33612         * math/w_log10.c: Likewise.
33613         * math/w_log10f.c: Likewise.
33614         * math/w_log10l.c: Likewise.
33615         * math/w_log2.c: Likewise.
33616         * math/w_log2f.c: Likewise.
33617         * math/w_log2l.c: Likewise.
33618         * math/w_pow.c: Likewise.
33619         * math/w_powf.c: Likewise.
33620         * math/w_powl.c: Likewise.
33621         * math/w_remainder.c: Likewise.
33622         * math/w_remainderf.c: Likewise.
33623         * math/w_remainderl.c: Likewise.
33624         * math/w_scalb.c: Likewise.
33625         * math/w_scalbf.c: Likewise.
33626         * math/w_scalbl.c: Likewise.
33627         * math/w_sqrt.c: Likewise.
33628         * math/w_sqrtf.c: Likewise.
33629         * math/w_sqrtl.c: Likewise.
33630         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
33631         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
33632         used.
33633         * math/math_private.h: Declare __kernel_standard_f.
33634         * math/w_cosh.c: Remove cruft and optimize a bit.
33635         * math/w_coshf.c: Likewise.
33636         * math/w_coshl.c: Likewise.
33637         * math/w_exp2.c: Likewise.
33638         * math/w_exp2f.c: Likewise.
33639         * math/w_exp2l.c: Likewise.
33640         * math/w_hypot.c: Likewise.
33641         * math/w_hypotf.c: Likewise.
33642         * math/w_hypotl.c: Likewise.
33643         * math/w_lgamma.c: Likewise.
33644         * math/w_lgamma_r.c: Likewise.
33645         * math/w_lgammaf.c: Likewise.
33646         * math/w_lgammaf_r.c: Likewise.
33647         * math/w_lgammal.c: Likewise.
33648         * math/w_lgammal_r.c: Likewise.
33649         * math/w_sinh.c: Likewise.
33650         * math/w_sinhf.c: Likewise.
33651         * math/w_sinhl.c: Likewise.
33652         * math/w_tgamma.c: Likewise.
33653         * math/w_tgammaf.c: Likewise.
33654         * math/w_tgammal.c: Likewise.
33655         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
33656         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33657         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
33658         Minor optimizations.  Pretty printing.  Remove cruft.
33659         * sysdeps/i386/fpu/e_acosf.S: Likewise.
33660         * sysdeps/i386/fpu/e_acosh.S: Likewise.
33661         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
33662         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
33663         * sysdeps/i386/fpu/e_acosl.c: Likewise.
33664         * sysdeps/i386/fpu/e_asin.S: Likewise.
33665         * sysdeps/i386/fpu/e_asinf.S: Likewise.
33666         * sysdeps/i386/fpu/e_atan2.S: Likewise.
33667         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
33668         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
33669         * sysdeps/i386/fpu/e_atanh.S: Likewise.
33670         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
33671         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
33672         * sysdeps/i386/fpu/e_exp10.S: Likewise.
33673         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
33674         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
33675         * sysdeps/i386/fpu/e_exp2.S: Likewise.
33676         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
33677         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
33678         * sysdeps/i386/fpu/e_fmod.S: Likewise.
33679         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
33680         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
33681         * sysdeps/i386/fpu/e_hypot.S: Likewise.
33682         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
33683         * sysdeps/i386/fpu/e_log.S: Likewise.
33684         * sysdeps/i386/fpu/e_log10.S: Likewise.
33685         * sysdeps/i386/fpu/e_log10f.S: Likewise.
33686         * sysdeps/i386/fpu/e_log10l.S: Likewise.
33687         * sysdeps/i386/fpu/e_log2.S: Likewise.
33688         * sysdeps/i386/fpu/e_log2f.S: Likewise.
33689         * sysdeps/i386/fpu/e_log2l.S: Likewise.
33690         * sysdeps/i386/fpu/e_logf.S: Likewise.
33691         * sysdeps/i386/fpu/e_logl.S: Likewise.
33692         * sysdeps/i386/fpu/e_pow.S: Likewise.
33693         * sysdeps/i386/fpu/e_powf.S: Likewise.
33694         * sysdeps/i386/fpu/e_powl.S: Likewise.
33695         * sysdeps/i386/fpu/e_remainder.S: Likewise.
33696         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
33697         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
33698         * sysdeps/i386/fpu/e_scalb.S: Likewise.
33699         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
33700         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
33701         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
33702         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
33703         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
33704         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
33705         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33706         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33707         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
33708         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33709         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
33710         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
33711         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
33712         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
33713         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
33714         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
33715         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
33716         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33717         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
33718         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
33719         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33720         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
33721         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
33722         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33723         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33724         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
33725         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
33726         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
33727         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
33728         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
33729         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
33730         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33731         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
33732         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
33733         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
33734         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33735         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
33736         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33737         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
33738         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
33739         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
33740         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
33741         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
33742         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
33743         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
33744         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
33745         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
33746         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
33747         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
33748         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
33749         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
33750         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
33751         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
33752         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
33753         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
33754         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
33755         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
33756         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
33757         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33758         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
33759         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
33760         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
33761         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
33762         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
33763         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
33764         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
33765         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
33766         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
33767         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
33768         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
33769         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
33770         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
33771         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
33772         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
33773         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
33774         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
33775         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
33776         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
33777         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
33778         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
33779         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
33780         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
33781         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
33782         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
33783         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
33784         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33785         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
33786         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
33787         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
33788         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33789         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
33790         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33791         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
33792         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
33793         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
33794         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
33795         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
33796         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
33797         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
33798         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
33799         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
33800         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
33801         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
33802         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
33803         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
33804         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
33805         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
33806         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
33807         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
33808         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
33809         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
33810         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
33811         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33812         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
33813         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
33814         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
33815         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
33816         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
33817         (__isnanf): Likewise.
33818         (__isinf_ns): Likewise.
33819         (__isinf_nsf): Likewise.
33820         (__finite): Likewise.
33821         (__finitef): Likewise.
33822         (__ieee754_sqrt): Define as macro.
33823         (__ieee754_sqrtf): Define as macro.
33824         (__ieee754_sqrtl): Define as macro.
33825         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
33826         inlined copy.
33827         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
33828         __FINITE_MATH_ONLY__ consistent.
33829         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
33830
33831 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
33832
33833         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
33834         of rawmemchr.
33835
33836         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
33837
33838 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
33839
33840         * po/ja.po: Update from translation team.
33841
33842 2011-10-08  Roland McGrath  <roland@hack.frob.com>
33843
33844         * locale/programs/locarchive.c (prepare_address_space): New function.
33845         (create_archive, enlarge_archive, open_archive): Use it.
33846
33847         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
33848         inside [SHARED], where it is used.
33849
33850         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
33851
33852         * nss/getent.c (netgroup_keys): Remove unused variable.
33853         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
33854
33855 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
33856
33857         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
33858         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
33859         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
33860         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
33861         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
33862         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
33863         * math/Makefile (libm-calls): Add s_isinf_ns.
33864         * math/divtc3.c: Use __isinf_nsl instead of isinf.
33865         * math/multc3.c: Likewise.
33866         * math/s_casin.c: Likewise.
33867         * math/s_casinf.c: Likewise.
33868         * math/s_casinl.c: Likewise.
33869         * math/s_ccos.c: Likewise.
33870         * math/s_ccosf.c: Likewise.
33871         * math/s_ccosl.c: Likewise.
33872         * math/s_ctan.c: Likewise.
33873         * math/s_ctanf.c: Likewise.
33874         * math/s_ctanh.c: Likewise.
33875         * math/s_ctanhf.c: Likewise.
33876         * math/s_ctanhl.c: Likewise.
33877         * math/s_ctanl.c: Likewise.
33878         * math/w_fmod.c: Likewise.
33879         * math/w_fmodf.c: Likewise.
33880         * math/w_fmodl.c: Likewise.
33881         * math/w_remainder.c: Likewise.
33882         * math/w_remainderf.c: Likewise.
33883         * math/w_remainderl.c: Likewise.
33884         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
33885         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
33886         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
33887         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
33888         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
33889         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
33890         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
33891         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
33892
33893         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
33894         of the number.
33895         * stdio-common/printf_fphex.c: Likewise.
33896         * stdio-common/printf_size.c: Likewise.
33897
33898         * math/e_exp10.c: Include math_private.h using <...> not "...".
33899         * math/e_exp10f.c: Likewise.
33900         * math/e_exp10l.c: Likewise.
33901         * math/e_exp2l.c: Likewise.
33902         * math/e_j0l.c: Likewise.
33903         * math/e_j1l.c: Likewise.
33904         * math/e_jnl.c: Likewise.
33905         * math/e_lgammal_r.c: Likewise.
33906         * math/e_rem_pio2l.c: Likewise.
33907         * math/e_scalb.c: Likewise.
33908         * math/e_scalbf.c: Likewise.
33909         * math/e_scalbl.c: Likewise.
33910         * math/k_cosl.c: Likewise.
33911         * math/k_sinl.c: Likewise.
33912         * math/k_tanl.c: Likewise.
33913         * math/s_cacoshf.c: Likewise.
33914         * math/s_catan.c: Likewise.
33915         * math/s_catanf.c: Likewise.
33916         * math/s_catanh.c: Likewise.
33917         * math/s_catanhf.c: Likewise.
33918         * math/s_catanhl.c: Likewise.
33919         * math/s_catanl.c: Likewise.
33920         * math/s_ccosh.c: Likewise.
33921         * math/s_ccoshf.c: Likewise.
33922         * math/s_ccoshl.c: Likewise.
33923         * math/s_cexp.c: Likewise.
33924         * math/s_cexpf.c: Likewise.
33925         * math/s_cexpl.c: Likewise.
33926         * math/s_clog.c: Likewise.
33927         * math/s_clog10.c: Likewise.
33928         * math/s_clog10f.c: Likewise.
33929         * math/s_clog10l.c: Likewise.
33930         * math/s_clogf.c: Likewise.
33931         * math/s_clogl.c: Likewise.
33932         * math/s_csin.c: Likewise.
33933         * math/s_csinf.c: Likewise.
33934         * math/s_csinh.c: Likewise.
33935         * math/s_csinhf.c: Likewise.
33936         * math/s_csinhl.c: Likewise.
33937         * math/s_csinl.c: Likewise.
33938         * math/s_csqrt.c: Likewise.
33939         * math/s_csqrtf.c: Likewise.
33940         * math/s_csqrtl.c: Likewise.
33941         * math/s_ctan.c: Likewise.
33942         * math/s_ctanf.c: Likewise.
33943         * math/s_ctanh.c: Likewise.
33944         * math/s_ctanhf.c: Likewise.
33945         * math/s_ctanhl.c: Likewise.
33946         * math/s_ctanl.c: Likewise.
33947         * math/s_ldexp.c: Likewise.
33948         * math/s_ldexpf.c: Likewise.
33949         * math/s_ldexpl.c: Likewise.
33950         * math/s_significand.c: Likewise.
33951         * math/s_significandf.c: Likewise.
33952         * math/s_significandl.c: Likewise.
33953         * math/w_acos.c: Likewise.
33954         * math/w_acosf.c: Likewise.
33955         * math/w_acosh.c: Likewise.
33956         * math/w_acoshf.c: Likewise.
33957         * math/w_acoshl.c: Likewise.
33958         * math/w_acosl.c: Likewise.
33959         * math/w_asin.c: Likewise.
33960         * math/w_asinf.c: Likewise.
33961         * math/w_asinl.c: Likewise.
33962         * math/w_atan2.c: Likewise.
33963         * math/w_atan2f.c: Likewise.
33964         * math/w_atan2l.c: Likewise.
33965         * math/w_atanh.c: Likewise.
33966         * math/w_atanhf.c: Likewise.
33967         * math/w_atanhl.c: Likewise.
33968         * math/w_cosh.c: Likewise.
33969         * math/w_coshf.c: Likewise.
33970         * math/w_coshl.c: Likewise.
33971         * math/w_dremf.c: Likewise.
33972         * math/w_exp10.c: Likewise.
33973         * math/w_exp10f.c: Likewise.
33974         * math/w_exp10l.c: Likewise.
33975         * math/w_exp2.c: Likewise.
33976         * math/w_exp2f.c: Likewise.
33977         * math/w_fmod.c: Likewise.
33978         * math/w_fmodf.c: Likewise.
33979         * math/w_fmodl.c: Likewise.
33980         * math/w_hypot.c: Likewise.
33981         * math/w_hypotf.c: Likewise.
33982         * math/w_hypotl.c: Likewise.
33983         * math/w_j0.c: Likewise.
33984         * math/w_j0f.c: Likewise.
33985         * math/w_j0l.c: Likewise.
33986         * math/w_j1.c: Likewise.
33987         * math/w_j1f.c: Likewise.
33988         * math/w_j1l.c: Likewise.
33989         * math/w_jn.c: Likewise.
33990         * math/w_jnf.c: Likewise.
33991         * math/w_jnl.c: Likewise.
33992         * math/w_lgamma.c: Likewise.
33993         * math/w_lgamma_r.c: Likewise.
33994         * math/w_lgammaf.c: Likewise.
33995         * math/w_lgammaf_r.c: Likewise.
33996         * math/w_lgammal.c: Likewise.
33997         * math/w_lgammal_r.c: Likewise.
33998         * math/w_log.c: Likewise.
33999         * math/w_log10.c: Likewise.
34000         * math/w_log10f.c: Likewise.
34001         * math/w_log10l.c: Likewise.
34002         * math/w_log2.c: Likewise.
34003         * math/w_log2f.c: Likewise.
34004         * math/w_log2l.c: Likewise.
34005         * math/w_logf.c: Likewise.
34006         * math/w_logl.c: Likewise.
34007         * math/w_pow.c: Likewise.
34008         * math/w_powf.c: Likewise.
34009         * math/w_powl.c: Likewise.
34010         * math/w_remainder.c: Likewise.
34011         * math/w_remainderf.c: Likewise.
34012         * math/w_remainderl.c: Likewise.
34013         * math/w_scalb.c: Likewise.
34014         * math/w_scalbf.c: Likewise.
34015         * math/w_scalbl.c: Likewise.
34016         * math/w_sinh.c: Likewise.
34017         * math/w_sinhf.c: Likewise.
34018         * math/w_sinhl.c: Likewise.
34019         * math/w_sqrt.c: Likewise.
34020         * math/w_sqrtf.c: Likewise.
34021         * math/w_sqrtl.c: Likewise.
34022         * math/w_tgamma.c: Likewise.
34023         * math/w_tgammaf.c: Likewise.
34024         * math/w_tgammal.c: Likewise.
34025
34026         * po/ja.po: Update from translation team.
34027
34028 2011-09-29  Andreas Jaeger  <aj@suse.de>
34029
34030         [BZ #13179]
34031         * sunrpc/netname.c (netname2host): Fix logic.
34032
34033         [BZ #6779]
34034         [BZ #6783]
34035         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
34036         correctly.
34037         * math/w_remainder.c (__remainder): Likewise.
34038         * math/w_remainderf.c (__remainderf): Likewise.
34039         * math/libm-test.inc (remainder_test): Add test cases.
34040
34041 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34042
34043         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
34044         sdiv_qrnnd.
34045
34046 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
34047
34048         * string/test-memcmp.c: Avoid unncessary #defines.
34049         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
34050
34051 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34052
34053         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
34054         Use new sse2 version for core i3 - i7 as it's faster
34055         than sse42 version.
34056         (bit_Prefer_PMINUB_for_stringop): New.
34057         * sysdeps/x86_64/rawmemchr.S: Update.
34058         Replace with faster SSE2 version.
34059         * sysdeps/x86_64/memrchr.S: New file.
34060         * sysdeps/x86_64/memchr.S: Update.
34061         Replace with faster SSE2 version.
34062
34063 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
34064
34065         * elf/dl-load.c (lose): Add cast to avoid warning.
34066
34067 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
34068
34069         * po/ca.po: Update from translation team.
34070
34071         * inet/getnetgrent_r.c: Hook up nscd.
34072         * nscd/Makefile (routines): Add nscd_netgroup.
34073         (nscd-modules): Add netgroupcache.
34074         (CFLAGS-netgroupcache.c): Define.
34075         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
34076         (cache_search): Add const to second parameter.
34077         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
34078         INNETGR.
34079         (dbs): Add netgrdb entry.
34080         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
34081         (verify_persistent_db): Handle netgrdb.
34082         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
34083         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
34084         GETFDNETGR.
34085         (netgroup_response_header): Define.
34086         (innetgroup_response_header): Define.
34087         (datahead): Add netgroup_response_header and innetgroup_response_header
34088         elements.
34089         * nscd/nscd.conf: Add entries for netgroup cache.
34090         * nscd/nscd.h (dbtype): Add netgrdb.
34091         (_PATH_NSCD_NETGROUP_DB): Define.
34092         (netgroup_iov_disabled): Declare.
34093         (xmalloc, xcalloc, xrealloc): Move declarations here.
34094         (cache_search): Adjust prototype.
34095         Add netgroup-related prototypes.
34096         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
34097         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
34098         (__nscd_innetgr): Declare.
34099         * nscd/selinux.c (perms): Use access_vector_t as element type and
34100         add netgroup-related initializers.
34101         * nscd/netgroupcache.c: New file.
34102         * nscd/nscd_netgroup.c: New file.
34103         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
34104         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
34105         For four parameters use innetgr.
34106         * nss/nss_files/files-init.c: Add definition and callback for netgr.
34107         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
34108         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
34109         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
34110
34111         * nscd/connections.c (register_traced_file): Don't register file
34112         for disabled databases.
34113
34114 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
34115
34116         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
34117
34118         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
34119         from tree and freeing node.
34120
34121 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
34122
34123         * nss/nsswitch.c (__nss_database_lookup): Handle
34124         nss_parse_service_list out of memory case.
34125
34126 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
34127
34128         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
34129         out of memory case.
34130
34131 2011-10-04  Andreas Schwab  <schwab@redhat.com>
34132
34133         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
34134         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
34135         pass it down.
34136         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
34137         elf_machine_rela, elf_machine_lazy_rel.
34138         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
34139         (ELF_DYNAMIC_DO_REL): Likewise.
34140         (ELF_DYNAMIC_DO_RELA): Likewise.
34141         (ELF_DYNAMIC_RELOCATE): Likewise.
34142         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
34143         to ELF_DYNAMIC_DO_REL.
34144         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
34145         (dl_main): In trace mode always set __RTLD_NOIFUNC.
34146         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
34147         elf_machine_rela.
34148         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
34149         skip_ifunc, don't call ifunc function if non-zero.
34150         (elf_machine_rela): Likewise.
34151         (elf_machine_lazy_rel): Likewise.
34152         (elf_machine_lazy_rela): Likewise.
34153         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
34154         (elf_machine_lazy_rel): Likewise.
34155         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
34156         Likewise.
34157         (elf_machine_lazy_rel): Likewise.
34158         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34159         Likewise.
34160         (elf_machine_lazy_rel): Likewise.
34161         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
34162         (elf_machine_lazy_rel): Likewise.
34163         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
34164         (elf_machine_lazy_rel): Likewise.
34165         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
34166         (elf_machine_lazy_rel): Likewise.
34167         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
34168         (elf_machine_lazy_rel): Likewise.
34169         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
34170         (elf_machine_lazy_rel): Likewise.
34171         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
34172         (elf_machine_lazy_rel): Likewise.
34173
34174 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
34175
34176         * nss/nss_files/files-init.c (_nss_files_init): Use static
34177         initialization for all the *_traced_file variables.
34178
34179 2011-09-28  Andreas Schwab  <schwab@redhat.com>
34180
34181         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34182
34183 2011-09-27  Roland McGrath  <roland@hack.frob.com>
34184
34185         [BZ #13226]
34186         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
34187
34188 2011-09-27  Andreas Schwab  <schwab@redhat.com>
34189
34190         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
34191         Reread the line before reparsing it.
34192
34193 2011-09-26  Andreas Schwab  <schwab@redhat.com>
34194
34195         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
34196
34197 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
34198             Maxim Kuvyrkov  <maxim@codesourcery.com>
34199             Joseph Myers  <joseph@codesourcery.com>
34200
34201         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
34202         if needed for __stack_chk_guard.
34203
34204 2011-09-19  Roland McGrath  <roland@hack.frob.com>
34205
34206         * sysdeps/posix/spawni.c (script_execute): Always define it.
34207         It will be optimized away if unused.
34208         (maybe_script_execute): New function.
34209         (__spawni): Call it.
34210
34211         * Makerules: Don't include tls.make.
34212         (config-tls): Always set to thread.
34213         * tls.make.c: File removed.
34214
34215 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
34216
34217         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
34218         * config.make.in (CPPFLAGS-config): New substituted variable.
34219
34220 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34221
34222         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
34223
34224         [BZ #13192]
34225         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
34226         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
34227
34228 2011-09-15  Roland McGrath  <roland@hack.frob.com>
34229
34230         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
34231         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
34232         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
34233         (CALL_FAIL): Likewise.
34234         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
34235         (CALL_FAIL): Macro removed.
34236         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
34237
34238 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34239
34240         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
34241         for __FINITE_MATH_ONLY__ == 1.
34242
34243 2011-09-15  Andreas Schwab  <schwab@redhat.com>
34244
34245         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
34246         __ieee754_sqrt instead of sqrt.
34247         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
34248         __ieee754_sqrtf instead of sqrtf.
34249         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
34250         __floorf instead of floorf.
34251         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
34252         __floorf, __truncf instead of floorf, truncf.
34253
34254 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
34255
34256         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
34257
34258         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
34259         __extern_always_inline.
34260         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
34261         32-bit.
34262
34263 2011-09-14  Andreas Schwab  <schwab@redhat.com>
34264
34265         * elf/rtld.c (dl_main): Also relocate in dependency order when
34266         doing symbol dependency testing.
34267
34268 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
34269
34270         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34271         Always define `refsym'.
34272
34273 2011-09-13  Andreas Schwab  <schwab@redhat.com>
34274
34275         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
34276         (__FD_ELT): Renamed from __FDELT.
34277         * misc/bits/select2.h (__FD_ELT): Likewise.
34278         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
34279         __FD_MASK instead of __FDELT, __FDMASK.
34280         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34281         Likewise.
34282         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34283         Likewise.
34284
34285         * elf/Makefile (gen-ldd): Fix pattern.
34286
34287         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
34288         (init_tls): Likewise.
34289
34290 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
34291
34292         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
34293
34294 2011-09-12  Andreas Schwab  <schwab@redhat.com>
34295
34296         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
34297         `struct cmsghdr *' instead of `void *'.
34298         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
34299         Likewise.
34300
34301 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
34302
34303         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
34304         if non-absolute.
34305         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
34306         ldd_rewrite_script.
34307
34308 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
34309
34310         * configure.in: Remove --with-tls option.
34311         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
34312         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
34313         out in case it is missing.
34314         * sysdeps/ia64/elf/configure.in: Likewise.
34315         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
34316         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
34317         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
34318         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
34319         * sysdeps/sh/elf/configure.in: Likewise.
34320         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
34321         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
34322         * sysdeps/x86_64/elf/configure.in: Likewise.
34323         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
34324         * sysdeps/mach/hurd/tls.h: Likewise.
34325
34326         [BZ #13067]
34327         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
34328
34329         [BZ #13090]
34330         * configure.in: Fix use of AC_INIT.
34331
34332         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
34333
34334 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
34335
34336         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
34337         __set_errno.
34338         * malloc/hooks.c: Likewise.
34339
34340         [BZ #11929]
34341         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
34342         variables statically.
34343         (narenas): Initialize.
34344         (list_lock): Initialize.
34345         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
34346         initializtion of main_arena and list_lock.  Small cleanups.
34347         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
34348         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
34349         Add initializers to main_arena and mp_.
34350         (malloc_state): Remove pagesize member.  Change all users to use
34351         GLRO(dl_pagesize).
34352
34353         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
34354         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
34355         is always initialized.
34356
34357         * malloc/malloc.c: Removed unused configurations and dead code.
34358         * malloc/arena.c: Likewise.
34359         * malloc/hooks.c: Likewise.
34360         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
34361
34362         * include/tls.h: Removed.  USE___THREAD must always be defined.
34363         * bits/libc-tsd.h: Don't handle !USE___THREAD.
34364         * elf/dl-libc.c: Likewise.
34365         * elf/dl-tsd.c: Likewise.
34366         * include/errno.h: Likewise.
34367         * include/netdb.h: Likewise.
34368         * include/resolv.h: Likewise.
34369         * inet/herrno-loc.c: Likewise.
34370         * inet/herrno.c: Likewise.
34371         * malloc/arena.c: Likewise.
34372         * malloc/hooks.c: Likewise.
34373         * malloc/malloc.c: Likewise.
34374         * resolv/res-state.c: Likewise.
34375         * resolv/res_libc.c: Likewise.
34376         * sysdeps/i386/dl-machine.h: Likewise.
34377         * sysdeps/ia64/dl-machine.h: Likewise.
34378         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
34379         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
34380         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
34381         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
34382         * sysdeps/sh/dl-machine.h: Likewise.
34383         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
34384         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
34385         * sysdeps/unix/i386/sysdep.S: Likewise.
34386         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
34387         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
34388         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
34389         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
34390         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
34391         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
34392         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
34393         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
34394         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34395         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
34396         * sysdeps/unix/x86_64/sysdep.S: Likewise.
34397         * sysdeps/x86_64/dl-machine.h: Likewise.
34398         * tls.make.c: Likewise.
34399
34400         * configure.in: Remove --with-__thread option.  Make tests for
34401         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
34402         tls_model attribute fail if no support is available.  Remove
34403         USE_IN_LIBIO.
34404         * Makeconfig: Adjust for dropped configure option.  All features are
34405         now mandatory.
34406         * Makerules: Likewise.
34407         * Versions.def: Likewise.
34408         * argp/argp-fmtstream.c: Likewise.
34409         * argp/argp-fmtstream.h: Likewise.
34410         * argp/argp-help.c: Likewise.
34411         * assert/assert.c: Likewise.
34412         * config.h.in: Likewise.
34413         * config.make.in: Likewise.
34414         * configure: Likewise.
34415         * configure.in: Likewise.
34416         * csu/Versions: Likewise.
34417         * csu/init.c: Likewise.
34418         * elf/tst-audit2.c: Likewise.
34419         * elf/tst-tls10.c: Likewise.
34420         * elf/tst-tls10.h: Likewise.
34421         * elf/tst-tls11.c: Likewise.
34422         * elf/tst-tls12.c: Likewise.
34423         * elf/tst-tls14.c: Likewise.
34424         * elf/tst-tlsmod11.c: Likewise.
34425         * elf/tst-tlsmod12.c: Likewise.
34426         * elf/tst-tlsmod13.c: Likewise.
34427         * elf/tst-tlsmod13a.c: Likewise.
34428         * elf/tst-tlsmod14a.c: Likewise.
34429         * elf/tst-tlsmod15b.c: Likewise.
34430         * elf/tst-tlsmod16a.c: Likewise.
34431         * elf/tst-tlsmod16b.c: Likewise.
34432         * elf/tst-tlsmod7.c: Likewise.
34433         * elf/tst-tlsmod8.c: Likewise.
34434         * elf/tst-tlsmod9.c: Likewise.
34435         * gmon/gmon.c: Likewise.
34436         * grp/fgetgrent_r.c: Likewise.
34437         * grp/putgrent.c: Likewise.
34438         * hurd/fopenport.c: Likewise.
34439         * include/libc-symbols.h: Likewise.
34440         * include/tls.h: Likewise.
34441         * intl/gettextP.h: Likewise.
34442         * intl/loadinfo.h: Likewise.
34443         * locale/global-locale.c: Likewise.
34444         * locale/localeinfo.h: Likewise.
34445         * mach/devstream.c: Likewise.
34446         * malloc/arena.c: Likewise.
34447         * malloc/set-freeres.c: Likewise.
34448         * misc/err.c: Likewise.
34449         * misc/getttyent.c: Likewise.
34450         * misc/mntent_r.c: Likewise.
34451         * posix/getopt.c: Likewise.
34452         * posix/wordexp.c: Likewise.
34453         * pwd/fgetpwent_r.c: Likewise.
34454         * resolv/Versions: Likewise.
34455         * resolv/res_hconf.c: Likewise.
34456         * shadow/fgetspent_r.c: Likewise.
34457         * shadow/putspent.c: Likewise.
34458         * stdio-common/printf_fphex.c: Likewise.
34459         * stdio-common/tmpfile.c: Likewise.
34460         * stdlib/abort.c: Likewise.
34461         * stdlib/fmtmsg.c: Likewise.
34462         * sunrpc/auth_unix.c: Likewise.
34463         * sunrpc/clnt_perr.c: Likewise.
34464         * sunrpc/clnt_tcp.c: Likewise.
34465         * sunrpc/clnt_udp.c: Likewise.
34466         * sunrpc/clnt_unix.c: Likewise.
34467         * sunrpc/openchild.c: Likewise.
34468         * sunrpc/svc_simple.c: Likewise.
34469         * sunrpc/svc_tcp.c: Likewise.
34470         * sunrpc/svc_udp.c: Likewise.
34471         * sunrpc/svc_unix.c: Likewise.
34472         * sunrpc/xdr.c: Likewise.
34473         * sunrpc/xdr_array.c: Likewise.
34474         * sunrpc/xdr_rec.c: Likewise.
34475         * sunrpc/xdr_ref.c: Likewise.
34476         * sunrpc/xdr_stdio.c: Likewise.
34477
34478 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34479
34480         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34481
34482 2011-07-03  Andreas Jaeger  <aj@suse.de>
34483
34484         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
34485         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
34486         regenerate with gen-libm-tests.pl.
34487
34488 2010-05-12  Petr Baudis  <pasky@suse.cz>
34489
34490         [BZ #11589]
34491         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
34492         around j0() zero points by switching to j1().
34493         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
34494         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
34495         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
34496         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
34497
34498 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34499
34500         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
34501         instead of 0.
34502         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
34503         instead of 0.
34504         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
34505         Patch in part by Pavel Roskin <proski@gnu.org>.
34506
34507         [BZ #13138]
34508         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
34509         realloc.
34510         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
34511         Free memory block if necessary.
34512
34513         [BZ #12847]
34514         * libio/genops.c (INTDEF): For string streams the _lock pointer can
34515         be NULL.  Don't lock in this case.
34516
34517 2011-09-09  Roland McGrath  <roland@hack.frob.com>
34518
34519         * elf/elf.h (ELFOSABI_GNU): New macro.
34520         (ELFOSABI_LINUX): Define to that.
34521
34522 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
34523
34524         * string/strncat.c (strncat): Undef the symbol in case it has been
34525         defined in bits/string.h.
34526
34527 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34528
34529         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
34530
34531         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
34532         link map.
34533
34534 2011-08-17  Andreas Jaeger  <aj@suse.de>
34535
34536         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
34537
34538 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
34539             Ian Lance Taylor  <iant@google.com>
34540
34541         * math/libm-test.inc (lround_test): New testcase.
34542         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
34543
34544 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
34545
34546         * Makefile: Remove support for automatic cvs check-ins.
34547         * Makerules: Likewise.
34548         * config.make.in: Likewise.
34549         * configure.in: Likewise.
34550         * intl/Makefile: Likewise.
34551         * locale/Makefile: Likewise.
34552         * po/Makefile: Likewise.
34553         * posix/Makefile: Likewise.
34554         * sysdeps/gnu/Makefile: Likewise.
34555         * sysdeps/mach/hurd/Makefile: Likewise.
34556         * sysdeps/sparc/sparc32/Makefile: Likewise.
34557
34558         [BZ #13118]
34559         * posix/Makefile (bug-regex32-ENV): Define.
34560         Patch by John Stanley <jpsinthemix@verizon.net>.
34561
34562         * misc/Makefile (headers): Add bits/select2.h.
34563         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
34564         * misc/bits/select2.h: New file.
34565         * include/bits/select2.h: New file.
34566         * debug/Makefile (routines): Add fdelt_chk.
34567         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
34568         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
34569         FD_ISSET.
34570         * debug/fdelt_chk.c: New file.
34571
34572         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
34573         * wcsmbs/test-wmemcmp.c: Likewise.
34574         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
34575         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
34576
34577 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34578
34579         * string/Makefile (strop-tests): Add memcmp.
34580         * string/test-wmemcmp.c: New file.
34581         * string/test-memcmp.c: Add wmemcmp support.
34582
34583 2011-09-08  Roland McGrath  <roland@hack.frob.com>
34584
34585         [BZ #13153]
34586         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
34587         2011-07-19 change.
34588
34589         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
34590         garbage value in a __mach_port_mod_refs call in the cases of the
34591         task-self and thread-self ports.
34592
34593 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34594
34595         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
34596
34597 2011-09-08  Andreas Schwab  <schwab@redhat.com>
34598
34599         * elf/dl-load.c (lose): Check for non-null L.
34600
34601 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34602
34603         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
34604
34605         * elf/dl-libc.c (dlerror_run): Pass back error code from
34606         dl_catch_error.
34607
34608         [BZ #13123]
34609         * elf/dl-load.c (lose): Free l_origin if it is valid.
34610
34611         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
34612         names.
34613         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
34614         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34615         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34616         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34617         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
34618         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
34619
34620 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34621
34622         * sysdeps/powerpc/fpu/e_hypot.c: New file.
34623         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
34624         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
34625         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
34626         * sysdeps/powerpc/fpu/k_cosf.c: New file.
34627         * sysdeps/powerpc/fpu/k_sinf.c: New file.
34628         * sysdeps/powerpc/fpu/s_cosf.c: New file.
34629         * sysdeps/powerpc/fpu/s_sinf.c: New file.
34630         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
34631         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
34632
34633 2011-08-15  Alan Modra  <amodra@gmail.com>
34634
34635         [BZ #13092]
34636         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
34637         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
34638         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
34639         ppc_mcount to static-only-routines.
34640         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
34641         __mcount_internal.
34642         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
34643         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
34644
34645 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
34646
34647         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
34648         for finite and infinity parameters.
34649
34650 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
34651
34652         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
34653         and add nop instructions for throughput optimization.
34654         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
34655
34656 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
34657
34658         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
34659         aligned copy for power7 with vector-scalar instructions.
34660         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
34661
34662 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
34663
34664         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
34665         AVX check.
34666
34667 2011-09-07  Andreas Schwab  <schwab@redhat.com>
34668
34669         [BZ #13144]
34670         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
34671         last change.
34672
34673 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34674
34675         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34676         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
34677         syscall wrapper around clock_gettime in __vdso_clock_gettime.
34678         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
34679         clock_gettime.
34680
34681 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34682
34683         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
34684         Forgot to demangle the pointer.
34685
34686         * sysdeps/i386/sysdep.h: Define atom_text_section.
34687         * sysdeps/x86_64/sysdep.h: Likewise.
34688         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
34689         section with atom_text_section.
34690         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34691         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34692         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
34693         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34694         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
34695
34696         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
34697         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
34698         already be defined.  Change to take two parameters and don't assign
34699         result to variable.  Adjust all users.
34700         Define INTERNAL_GETTIME if not already defined.
34701         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
34702         call.
34703         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
34704         HAVE_CLOCK_GETTIME_VSYSCALL.
34705         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
34706
34707         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
34708         gettimeofday vsyscall, just use time.
34709
34710 2011-09-06  Andreas Schwab  <schwab@redhat.com>
34711
34712         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
34713         <errno.h>.
34714
34715 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34716
34717         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
34718         syscall on x86-64.
34719         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
34720         syscall.
34721         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
34722         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
34723         syscall if possible.
34724
34725 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34726
34727         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
34728         e_ident.  Don't pass to find_mapsXX.
34729         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
34730
34731 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34732
34733         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34734         strchr-sse2-no-bsf strrchr-sse2-no-bsf
34735         * sysdeps/x86_64/multiarch/strchr.S: Update.
34736         Check bit_slow_BSF bit.
34737         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
34738         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
34739         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
34740
34741 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34742
34743         [BZ #13134]
34744         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
34745         before glibc 2.15.
34746         (tryshell): Define.
34747         (__spawni): Change last parameter to be flag.  Test
34748         SPAWN_XFLAGS_USE_PATH flag to use path or not.
34749         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
34750         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
34751         * posix/spawni.c: Likewise.
34752         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
34753         * posix/spawnp.c: Likewise.  Change normal version to use
34754         SPAWN_XFLAGS_USE_PATH.
34755         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
34756         SPAWN_XFLAGS_TRY_SHELL.
34757
34758         [BZ #13150]
34759         * posix/glob.h: Remove gcc 1.x support.
34760
34761         [BZ #13068]
34762         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
34763
34764 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34765
34766         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34767         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
34768         strrchr-sse2-bsf
34769         * sysdeps/i386/i686/multiarch/strchr.S: New file.
34770         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
34771         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
34772         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
34773         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
34774         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
34775
34776 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34777
34778         * sysdeps/x86_64/wcscmp.S: New file.
34779
34780         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
34781         wcscmp-c wcscmp-sse2
34782         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
34783         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
34784         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
34785         * wcsmbs/wcscmp.c: Allow renaming.
34786
34787 2011-09-05  David S. Miller  <davem@davemloft.net>
34788
34789         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
34790         stack slot, rather than the struct return pointer slot.
34791         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
34792         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
34793         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
34794         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
34795
34796 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34797
34798         * po/ja.po: Update from translation team.
34799
34800         [BZ #13144]
34801         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
34802         kernel in 64-bit binaries.
34803
34804 2011-09-01  David S. Miller  <davem@davemloft.net>
34805
34806         * elf/elf.h (HWCAP_SPARC_*): Move to..
34807         * sysdeps/sparc/sysdep.h: this new file and add new values.
34808         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
34809         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
34810         _DL_HWCAP_COUNT to 24.
34811         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
34812         entries.
34813         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
34814         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
34815         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
34816         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
34817         instead of magic constants.
34818         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
34819
34820 2011-08-31  David S. Miller  <davem@davemloft.net>
34821
34822         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
34823         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
34824         Reimplement to do errno handling inline.
34825         (SYSCALL_ERROR_HANDLER): New macro.
34826         (__SYSCALL_STRING): Do not do errno handling in asm.
34827         (__CLONE_SYSCALL_STRING): Delete.
34828         (__INTERNAL_SYSCALL_STRING): Delete.
34829         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
34830         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
34831         (PSEUDO): Reimplement to do errno handling inline.
34832         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
34833         (SYSCALL_ERROR_HANDLER): New macro.
34834         (__SYSCALL_STRING): Do not do errno handling in asm.
34835         (__CLONE_SYSCALL_STRING): Delete.
34836         (__INTERNAL_SYSCALL_STRING): Delete.
34837         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
34838         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
34839         i386.
34840         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
34841         (inline_syscall*): Add 'err' argument.
34842         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
34843         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
34844         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
34845         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
34846
34847         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
34848         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34849
34850 2011-08-30  Andreas Schwab  <schwab@redhat.com>
34851
34852         * elf/rtld.c (dl_main): Relocate objects in dependency order.
34853
34854 2011-08-29  Jiri Olsa <jolsa@redhat.com>
34855
34856         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
34857         directive.
34858
34859 2011-08-24  David S. Miller  <davem@davemloft.net>
34860
34861         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
34862
34863 2011-08-24  Andreas Schwab  <schwab@redhat.com>
34864
34865         * elf/Makefile: Add rules to build and run unload8 test.
34866         * elf/unload8.c: New file.
34867         * elf/unload8mod1.c: New file.
34868         * elf/unload8mod1x.c: New file.
34869         * elf/unload8mod2.c: New file.
34870         * elf/unload8mod3.c: New file.
34871
34872         * elf/dl-close.c (_dl_close_worker): Reset private search list if
34873         it wasn't used.
34874
34875 2011-08-23  David S. Miller  <davem@davemloft.net>
34876
34877         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
34878         subtract stack bias.
34879         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
34880         %sp not %fp in calculations.
34881         (_JMPBUF_UNWINDS_ADJ): Likewise.
34882
34883         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
34884         (aio_suspend): Call it to force an exception region around the
34885         AIO_MISC_WAIT() invocation.
34886
34887 2011-08-23  Andreas Schwab  <schwab@redhat.com>
34888
34889         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
34890         backslash.
34891
34892 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
34893
34894         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
34895         protection macro.
34896         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
34897         and <dl-machine.h>.
34898         (Elf64_FuncDesc): Remove.
34899
34900 2011-08-22  David S. Miller  <davem@davemloft.net>
34901
34902         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
34903         sigaltstack check, add missing cfi directives.
34904         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
34905         missing cfi directives, and sigaltstack handling.
34906
34907 2011-08-16  Andreas Schwab  <schwab@redhat.com>
34908
34909         [BZ #11724]
34910         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
34911         object is seen twice.
34912         * elf/dl-fini.c (_dl_sort_fini): Likewise.
34913
34914         * elf/Makefile (distribute): Add tst-initorder2.c.
34915         (tests): Add tst-initorder2.
34916         (modules-names): Add tst-initorder2a tst-initorder2b
34917         tst-initorder2c tst-initorder2d.  Add rules to build them.
34918         ($(objpfx)tst-initorder2.out): New rule.
34919         * elf/tst-initorder2.c: New file.
34920         * elf/tst-initorder2.exp: New file.
34921
34922 2011-08-22  Andreas Schwab  <schwab@redhat.com>
34923
34924         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
34925
34926         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
34927         dependencies back to end of function.
34928
34929         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34930         $(elfobjdir)/ld.so.
34931
34932 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
34933
34934         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
34935         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
34936         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
34937         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
34938         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
34939         of __vdso_gettimeofday.
34940         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
34941         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
34942         attribute_hidden.
34943         (_libc_vdso_platform_setup): Remove initialization of
34944         __vdso_gettimeofday and __vdso_time.
34945
34946 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34947
34948         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
34949         and fgetc_unlocked.
34950         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
34951         getc_unlocked.
34952
34953         * elf/dl-open.c (add_to_global): Report additions to the global scope
34954         for LD_DEBUG=scopes.
34955         (dl_open_worker): Also print scope of newly loaded dependencies.
34956         (_dl_show_scope): Indicate if there is no scope.
34957
34958         [BZ #13114]
34959         * stdio-common/Makefile (tests): Add bug24.
34960         * stdio-common/bug24.c: New file.
34961
34962 2011-08-19  Andreas Jaeger  <aj@suse.de>
34963
34964         [BZ #13114]
34965         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
34966         non-existant file when using close-on-exec mode.
34967
34968 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34969
34970         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
34971         the very first instruction.
34972
34973         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
34974         the CFI state in the end.
34975         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
34976         inclusion of dl-trampoline.h.
34977         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
34978
34979 2011-08-19  Andreas Schwab  <schwab@redhat.com>
34980
34981         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
34982         expectations for long double.
34983
34984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
34985         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
34986
34987 2011-08-14  David S. Miller  <davem@davemloft.net>
34988
34989         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
34990         artificual limit depends upon the system page size.
34991
34992 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34993
34994         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
34995         * resolv/Makefile: Define CFLAGS-libresolv.
34996
34997 2011-08-17  Andreas Schwab  <schwab@redhat.com>
34998
34999         * nss/makedb.c (compute_tables): Make variables used in nested
35000         function static.
35001
35002 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
35003
35004         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
35005         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
35006         if buffer was too small.
35007
35008         * elf/pldd.c (main): Attach to all threads in the process.
35009         Rewrite /proc handling to use *at functions.
35010
35011 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
35012
35013         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
35014         specifies first scope to show.
35015         (dl_open_worker): Update callers.  Move printing scope of new
35016         object to before the relocation.
35017         * elf/rtld.c (dl_main): Update _dl_show_scope call.
35018         * sysdeps/generic/ldsodefs.h: Update declaration.
35019
35020         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
35021         string for the scope number.
35022
35023 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
35024
35025         * nscd/servicescache.c (cache_addserv): Make sure written is always
35026         initialized.
35027
35028 2011-08-14  Roland McGrath  <roland@hack.frob.com>
35029
35030         * sysdeps/i386/i486/bits/atomic.h
35031         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
35032         statement expression, so as to suppress "set but not used" warning.
35033         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
35034
35035         * string/strncat.c (STRNCAT): Use prototype definition.
35036
35037         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
35038         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
35039         -Iprograms here.
35040         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
35041         (localedef-modules): Add localedef.
35042         (locale-modules): Add locale.
35043
35044         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
35045         * elf/rtld.c (dl_main): Invert order of assignment in last change,
35046         to avoid a warning.
35047
35048 2011-08-14  David S. Miller  <davem@davemloft.net>
35049
35050         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
35051         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
35052
35053 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
35054
35055         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
35056         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
35057         * elf/rtld.c (dl_main): Set l_name of vDSO.
35058         Call _dl_show_scope when DL_DEBUG_SCOPES.
35059         (process_dl_debug): Recognize scopes flag and also set it for all.
35060         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
35061         Declare _dl_show_scope.
35062
35063         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
35064         (do_dlopen): Pass caller_dlopen to dl_open.
35065         (__libc_dlopen_mode): Initialize caller_dlopen.
35066
35067         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
35068         of libc.  Make tolower call locale-independent.  Optimize a bit by
35069         using isdigit instead of isalnum.
35070         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
35071
35072 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
35073
35074         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
35075         was a dependency or dynamically loaded.
35076
35077 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
35078
35079         * intl/l10nflist.c: Allow architecture-specific pop function.
35080         * sysdeps/x86_64/l10nflist.c: New file.
35081
35082         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
35083         classification.
35084
35085 2011-08-10  Andreas Schwab  <schwab@redhat.com>
35086
35087         * include/dirent.h: Add libc_hidden_proto for scandirat and
35088         scandirat64.  Don't declare __scandirat64.
35089         * dirent/scandirat.c: Add libc_hidden_def.
35090         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
35091         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
35092
35093 2011-08-10  David S. Miller  <davem@davemloft.net>
35094
35095         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
35096         enum.
35097         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35098         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35099         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35100
35101 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
35102
35103         * Versions.def [libc]: Add GLIBC_2.15.
35104         * dirent/Makefile (routines): Add scandirat and scandirat64.
35105         * dirent/Versions [libc]: Export scandirat and scandirat64 for
35106         GLIBC_2.15.
35107         * dirent/dirent.h: Declare scandirat and scandirat64.
35108         * dirent/scandirat.c: New file.
35109         * dirent/scandirat64.c: New file.
35110         * sysdeps/wordsize-64/scandirat.c: New file.
35111         * sysdeps/wordsize-64/scandirat64.c: New file.
35112         * dirent/opendir.c: Define opendirat.
35113         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
35114         using scandirat.
35115         * dirent/scandir64.c: Adjust for scandir.c change.
35116         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
35117         __scandirat64, and __scandir_cancel_handler.
35118         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
35119         additional parameter and use openat instead of open (outside of ld.so).
35120         Add new __opendir as wrapper around __opendirat.
35121         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
35122         here without requiring old scandirat implementation.
35123
35124 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
35125
35126         * dirent/scandir.c (cancel_handler): Renamed to
35127         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
35128         defined.  Adjust users.
35129         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
35130         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
35131
35132 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
35133
35134         * string/test-string.h (IMPL): Use __STRING to expand name and then
35135         stringify it.
35136
35137         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
35138         of cleanups.
35139
35140 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35141
35142         * string/Makefile: Update.
35143         (strop-tests): Append strncat.
35144         * string/test-wcscmp.c: New file.
35145         New comprehensive test for wcscmp.
35146         * string/test-strcmp.c: Update.
35147         (WIDE): New define.
35148
35149 2011-07-22  Andreas Schwab  <schwab@redhat.com>
35150
35151         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
35152         line.
35153
35154 2011-07-26  Andreas Schwab  <schwab@redhat.com>
35155
35156         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
35157         encoding to ACE if AI_IDN.
35158
35159 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
35160
35161         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
35162         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
35163
35164 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35165
35166         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
35167         Fix overflow bug in strncat.
35168         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
35169
35170         * string/test-strncat.c: Update.
35171         Add new tests for checking overflow bugs.
35172
35173 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35174
35175         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35176         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
35177         * sysdeps/i386/i686/multiarch/strcat.S: New file.
35178         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
35179         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
35180         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
35181         * sysdeps/i386/i686/multiarch/strncat.S: New file.
35182         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
35183         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
35184
35185         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
35186         (USE_AS_STRCAT): Define.
35187         Add strcat and strncat support.
35188         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
35189
35190 2011-07-25  Andreas Schwab  <schwab@redhat.com>
35191
35192         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
35193         __n bigger than INT_MAX+1.
35194         (__strncmp_g): Likewise.
35195
35196 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
35197
35198         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
35199         * libio/stido.h: Likewise.
35200
35201         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
35202         (AF_NFC): Define.
35203         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
35204         (AF_NFC): Define.
35205
35206         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
35207         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35208         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35209         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35210         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35211
35212         [BZ #13021]
35213         * scripts/test-installation.pl: Don't expect libnss_test1 to be
35214         installed.
35215
35216         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
35217         typo.
35218         (_dl_x86_64_save_sse): Likewise.
35219
35220 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
35221
35222         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
35223         OSXSAVE.
35224         (_dl_x86_64_save_sse): Likewise.
35225
35226         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
35227
35228         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
35229
35230 2011-07-21  Andreas Schwab  <schwab@redhat.com>
35231
35232         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
35233         change.
35234         (_dl_x86_64_save_sse): Use correct AVX check.
35235
35236 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35237
35238         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
35239         bug in strncpy/strncat.
35240         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
35241
35242 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
35243
35244         * string/tester.c (test_strcat): Add tests for different alignments
35245         of source and destination.
35246         (test_strncat): Likewise.
35247
35248 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35249
35250         [BZ #12852]
35251         * posix/glob.c (glob): Check passed in values before using them in
35252         expressions to avoid some overflows.
35253         (glob_in_dir): Likewise.
35254
35255         [BZ #13007]
35256         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
35257         check for AVX enablement so that we don't crash with old kernels and
35258         new hardware.
35259         * elf/tst-audit4.c: Add same checks here.
35260         * elf/tst-audit6.c: Likewise.
35261
35262         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
35263
35264 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
35265
35266         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
35267
35268 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35269
35270         * po/cs.po: Update from translation team.
35271         * po/bg.po: Likewise.
35272
35273 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
35274
35275         * misc/sys/cdefs.h: Add support for const attribute.
35276         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
35277         to gnu_dev_{major,minor,makedev} functions.
35278
35279 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
35280
35281         * intl/dcigettext.c (get_output_charset): Add missing bracket.
35282
35283 2011-07-20  Andreas Schwab  <schwab@redhat.com>
35284
35285         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
35286         strlen results.
35287
35288 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35289
35290         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
35291         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
35292         register in order to avoid conflicts with the soft frame pointer
35293         being held in r11 when necessary.
35294         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
35295         (INTERNAL_VSYSCALL_NCS): Likewise.
35296
35297 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
35298
35299         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
35300         * elf/dl-fini.c (_dl_fini): Adjust caller.
35301         * elf/dl-close.c (_dl_close_worker): Likewise.
35302         * sysdeps/generic/ldsodefs.h: Adjust declaration.
35303
35304 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35305
35306         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
35307         "aux_cache->nlibs < 0".
35308
35309         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
35310         in the reload-count case.
35311
35312 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35313
35314         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35315         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
35316         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
35317         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
35318         * sysdeps/x86_64/multiarch/strcat.S: New file.
35319         * sysdeps/x86_64/multiarch/strncat.S: New file.
35320         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
35321         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
35322         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
35323         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
35324         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
35325         (USE_AS_STRCAT): Define.
35326         Add strcat and strncat support.
35327         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
35328         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
35329         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
35330         * string/strncat.c: Update.
35331         (USE_AS_STRNCAT): Define.
35332         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35333         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
35334         and i7.
35335         * sysdeps/x86_64/multiarch/init-arch.h
35336         (bit_Prefer_PMINUB_for_stringop): New.
35337         (index_Prefer_PMINUB_for_stringop): Likewise.
35338         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
35339         bit_Prefer_PMINUB_for_stringop.
35340
35341 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35342
35343         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
35344         buffer64.
35345         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
35346         of casting of buffer.
35347         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
35348         buffer32 and buffer64.
35349         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
35350         writes instead of casting of buffer.
35351         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
35352         buffer32.
35353         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
35354         casting of buffer.
35355
35356 2011-07-19  Andreas Schwab  <schwab@redhat.com>
35357
35358         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
35359
35360 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35361
35362         * nscd/nscd.c (termination_handler): Don't do anything for a database
35363         if it has not yet been initialized.
35364
35365 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35366
35367         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35368
35369 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35370
35371         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35372
35373 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35374
35375         * po/nl.po: Update from translation team.
35376         * po/sv.po: Likewise.
35377
35378 2011-07-16  Roland McGrath  <roland@hack.frob.com>
35379
35380         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
35381         now disallowed by GCC.
35382
35383         * configure.in (use-default-link): Default to yes if a test -shared
35384         link meets our qualifications.
35385         * configure: Regenerated.
35386
35387         * config.make.in (output-format): New variable.
35388         * configure.in: Check for ld --print-output-format support.
35389         * configure: Regenerated.
35390         * Makerules ($(common-objpfx)format.lds)
35391         [$(output-format) != unknown]: Just use $(output-format),
35392         instead of the linker-script munging.
35393
35394 2011-07-14  Roland McGrath  <roland@hack.frob.com>
35395
35396         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
35397         of $(common-objpfx)shlib.lds.
35398         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
35399
35400         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
35401         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
35402
35403         * configure.in (-z relro check): Adjust test code to add a large
35404         writable data section after it.
35405         * configure: Regenerated.
35406
35407 2011-07-11  Roland McGrath  <roland@hack.frob.com>
35408
35409         * configure.in (-z relro check): Fix test code to make the variable
35410         truly const.
35411         * configure: Regenerated.
35412
35413 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
35414
35415         * nscd/nscd.h (struct traced_file): Define.
35416         (struct database_dyn): Remove inotify_descr, reset_res, and filename
35417         elements.  Add traced_files.
35418         (inotify_fd): Declare.
35419         (register_traced_file): Declare.
35420         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
35421         (inotify_fd): Export.
35422         (resolv_conf_descr): Remove.
35423         (nscd_init): Move inotify descriptor creation to main.
35424         Don't register files for notification here.
35425         (register_traced_file): New function.
35426         (invalidate_cache): Don't use reset_res to determine whether to call
35427         res_init, go through the list of registered files.
35428         (main_loop_poll): The inotify descriptors are now stored in the
35429         structures for the traced files.
35430         (main_loop_epoll): Likewise
35431         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
35432         to __nss_disable_nscd.
35433         * nscd/cache.c (prune_cache): There is no single inotify descriptor
35434         for a database anymore.  Check the records for all the registered
35435         files instead.
35436         * nss/Makefile (libnss_files-routines): Add files-init.
35437         (libnss_db-routines): Add db-init.
35438         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
35439         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
35440         * nss/nss_db/db-init.c: New file.
35441         * nss/nss_files/files-init.c: New file.
35442         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
35443         __nss_lookup_function.
35444         (__nss_lookup_function): Call nss_load_library.
35445         (nss_load_all_libraries): New function.
35446         (__nss_disable_nscd): Take parameter with callback function for files
35447         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
35448         used for the cached services.
35449         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
35450         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
35451         options for features to all the files in nscd.
35452
35453         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
35454
35455 2011-07-10  Roland McGrath  <roland@hack.frob.com>
35456
35457         * csu/elf-init.c (__libc_csu_init): Comment typo.
35458
35459 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
35460
35461         * po/pl.po: Update from translation team.
35462         * po/ja.po: Likewise.
35463         * po/ru.po: Likewise.
35464         * po/ko.po: Likewise.
35465         * po/fr.po: Likewise.
35466
35467 2011-07-09  Roland McGrath  <roland@hack.frob.com>
35468
35469         * configure.in (.ctors/.dtors header and trailer check):
35470         Use an empirical test on a built program.
35471         * configure: Regenerated.
35472
35473         * configure.in (-z relro check): Use an empirical test on a built DSO.
35474         Detect, but do not require, on ia64.
35475         * configure: Regenerated.
35476
35477         * configure.in (READELF): Find it with AC_CHECK_TOOL.
35478         Update tests that use readelf to use $READELF instead.
35479         * configure: Regenerated.
35480
35481 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
35482
35483         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
35484         if the result is not used.
35485
35486 2011-07-05  Andreas Jaeger  <aj@suse.de>
35487
35488         [BZ#9696]
35489         * stdlib/tst-strtod.c: Add testcase.
35490
35491 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35492
35493         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
35494         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
35495         The latter has a higher limit.  Take additional parameter to pass to
35496         the new function.
35497         (__pathconf): Pass file to __statfs_link_max.
35498         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
35499         __statfs_link_max.
35500         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
35501         __statfs_link_max.
35502
35503         [BZ #12868]
35504         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
35505         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35506         Handle Lustre.
35507         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
35508         (__statfs_filesize_max): Likewise.
35509         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
35510
35511 2011-07-05  Andreas Jaeger  <aj@suse.de>
35512
35513         * resolv/res_comp.c (dn_skipname): Remove unused variable.
35514
35515 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
35516
35517         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
35518         `status' variable.
35519         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
35520         Likewise.
35521
35522 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35523
35524         * Makefile (strop-tests): Add strncat.
35525         * string/test-strncat.c: New file.
35526
35527 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
35528
35529         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
35530
35531 2011-06-21  Andreas Jaeger  <aj@suse.de>
35532
35533         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
35534         Copy rule from iconvdata/Makefile.
35535
35536 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35537
35538         [BZ #12922]
35539         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
35540         but no long options are defined, just return 'W'.
35541
35542 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
35543
35544         [BZ #9696]
35545         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
35546
35547 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35548
35549         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
35550         netgroups to read.
35551         (innetgr): Likewise.
35552
35553 2011-07-05  Roland McGrath  <roland@hack.frob.com>
35554
35555         * config.make.in (install_root): Default to $(DESTDIR).
35556
35557 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
35558
35559         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
35560
35561 2011-07-02  Roland McGrath  <roland@hack.frob.com>
35562
35563         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
35564
35565         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
35566         containing directory rather than embedding absolute directory names.
35567
35568         * scripts/check-local-headers.sh: Rewritten using awk.
35569         Match by word, not by line.  Print error messages for matches.
35570         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
35571
35572         * Makerules [shlib-lds-flags empty]:
35573         ($(common-objpfx)libc_pic.opts): New target.
35574         ($(common-objpfx)libc_pic.os.clean): New target.
35575         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
35576
35577         * config.make.in (OBJCOPY): New variable.
35578         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
35579         * configure: Regenerated.
35580
35581         * config.make.in (use-default-link): New variable.
35582         * configure.in (use_default_link): Grok --with-default-link to set it.
35583         * configure: Regenerated.
35584         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
35585         (shlib-lds, shlib-lds-flags): Define to empty.
35586
35587         * Makerules (shlib-lds): New variable.
35588         (shlib-lds-flags): New variable.
35589         (build-shlib, build-moduile, build-module-asneeded): Use it.
35590         ($(common-objpfx)libc.so): Use $(shlib-lds).
35591         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
35592         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
35593
35594         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
35595         DT_FLAGS/DT_FLAGS_1 with zero flags.
35596
35597         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
35598         linker script munging.
35599
35600 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
35601
35602         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
35603         as 128-bit value.
35604         * crypt/sha512.c (sha512_process_block): Perform total addition using
35605         128-bit if possible.
35606         (__sha512_finish_ctx): Likewise.
35607         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
35608         as 64-bit value.
35609         * crypt/sha256.c (SWAP64): Define.
35610         (sha256_process_block): Perform total addition using 64-bit if
35611         possible.
35612         (__sha256_finish_ctx): Likewise.
35613
35614 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
35615
35616         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
35617         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35618         * nscd/hstcache.c (cache_addhst): Likewise.
35619         * nscd/grpcache.c (cache_addgr): Likewise.
35620         * nscd/aicache.c (addhstaiX): Likewise
35621         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
35622
35623 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
35624
35625         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
35626         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35627         * nscd/hstcache.c (cache_addhst): Likewise.
35628         * nscd/grpcache.c (cache_addgr): Likewise.
35629         * nscd/aicache.c (addhstaiX): Likewise
35630
35631 2011-07-01  Andreas Schwab  <schwab@redhat.com>
35632
35633         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
35634         domain only when needed.
35635
35636 2011-06-30  Andreas Schwab  <schwab@redhat.com>
35637
35638         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
35639         is always restored.
35640
35641 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
35642
35643         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
35644         are re-adding the entry.
35645         * nscd/servicescache.c (cache_addserv): Likewise.
35646
35647 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
35648
35649         * sysdeps/generic/dl-irel.h: fix protection against multiple
35650         inclusions.
35651         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
35652
35653 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
35654
35655         [BZ #12935]
35656         * malloc/memusage.sh: Fix quoting in message.
35657         * debug/xtrace.sh: Likewise.
35658
35659         * configure.in: Remove support for --experimental-malloc option, make
35660         it the default.
35661         * config.make.in: Likewise.
35662         * malloc/Makefile: Likewise.
35663
35664 2011-06-27  Andreas Schwab  <schwab@redhat.com>
35665
35666         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
35667         two-byte characters.
35668
35669 2011-06-27  Roland McGrath  <roland@hack.frob.com>
35670
35671         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
35672         AC_CACHE_CHECK invocation.
35673         * configure: Regenerated.
35674
35675         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
35676
35677 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
35678
35679         [BZ #12350]
35680         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
35681         bit from old_res_options.
35682
35683         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
35684
35685         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
35686         value type for setfct.
35687
35688 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
35689
35690         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35691         __gettimeofday instead of gettimeofday.
35692
35693 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
35694
35695         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
35696
35697 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
35698
35699         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
35700
35701         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
35702         info.
35703
35704 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35705
35706         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35707         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35708         strcpy-sse2-unaligned strncpy-sse2-unaligned
35709         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
35710         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
35711         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
35712         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
35713         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
35714         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
35715         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
35716         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
35717         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
35718         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
35719         (STRCPY): Support SSE2 and SSSE3 versions.
35720
35721 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
35722
35723         [BZ #12874]
35724         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
35725         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
35726         kernels which artificially limit size of requests.
35727
35728 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35729
35730         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35731         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35732         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
35733         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
35734         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
35735         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
35736         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
35737         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
35738         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
35739         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
35740         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
35741         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
35742         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
35743         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
35744         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
35745         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35746         Enable unaligned load optimization for Intel Core i3, i5 and i7
35747         processors.
35748         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
35749         Define.
35750         (index_Fast_Unaligned_Load): Define.
35751         (HAS_FAST_UNALIGNED_LOAD): Define.
35752
35753 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
35754
35755         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
35756
35757 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35758
35759         [BZ #12907]
35760         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
35761         until it is clear that the information is realy needed.
35762         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
35763
35764 2011-06-22  Andreas Schwab  <schwab@redhat.com>
35765
35766         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
35767
35768 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35769
35770         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35771         /sys/devices/system/cpu/online if it is usable.
35772
35773         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
35774         reading the information from the /proc filesystem to once a second.
35775
35776 2011-06-21  Andreas Jaeger  <aj@suse.de>
35777
35778         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
35779         NULL after inclusion of kernel headers.
35780
35781 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
35782
35783         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
35784         calls to internal_setent.
35785
35786         [BZ #12885]
35787         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
35788         addresses using gethostbyname4_r ignore IPv4 addresses.
35789
35790         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
35791         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
35792
35793         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
35794
35795 2011-06-20  David S. Miller  <davem@davemloft.net>
35796
35797         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
35798         inclusions.
35799         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
35800
35801         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
35802         (elf_irel): Use it.
35803         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
35804         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
35805         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
35806         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
35807         * sysdeps/x86_64/dl-irel.h: Likewise.
35808
35809         * elf/dl-runtime.c: Use elf_ifunc_invoke.
35810         * elf/dl-sym.c: Likewise.
35811
35812 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35813
35814         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
35815         need to dereference resplen2.
35816
35817 2011-06-14  Andreas Schwab  <schwab@redhat.com>
35818
35819         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
35820
35821 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35822
35823         * Makeconfig: Define vardbdir and inst_vardbdir.
35824         * nss/Makefile: Add rules to install db-Makefile.
35825
35826         * nss/nss_db/db-XXX.c: Cleanup.
35827
35828         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
35829         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
35830         GLIBC_PRIVATE.
35831         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
35832         * nss/makedb.c: Implement -g option to specify that value strings
35833         are generated and should not be added to table iterated over for
35834         get*ent calls.
35835         * nss/nss_db/db-initgroups.c: New file.
35836
35837         * nss/getent.c: Add support for initgroups lookups through getgrouplist
35838         interface.
35839
35840         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
35841         (internal_getgrouplist): Adjust to name change.
35842         Update use_initgroups_entry if this is not the first call.
35843         * nss/databases.def: Add initgroups entry.
35844
35845         * nss/makedb.c (compute_tables): Check result of multiple hash table
35846         sizes to minimize maximum chain length.
35847
35848 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
35849
35850         * Versions.def: Add entry for libnss_db.
35851         * shlib-versions: Likewise.
35852         * nss/Makefile: Add rules to build libnss_db.
35853         * nss/Versions: Add libnss_db information.  Organize libnss_files
35854         entries better.
35855         * nss/db-Makefile: Add gshadow support.  Change rules for the new
35856         makedb progra.  Some minor improvements to generate smaller files.
35857         * nss/nss_db/nss_db.h: Move NSS database header data structures to
35858         here from...
35859         * nss/makedb.c: ...here.
35860         Improve database format to be smaller and require less memory at
35861         runtime.
35862         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
35863         db anymore.
35864         * nss/nss_db/db-netgrp.c: Likewise.
35865         * nss/nss_db/db-open.c: Likewise.
35866         * nss/nss_files/flies-XXX.x: Adjust comments.
35867         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
35868         * nss/nss_files/files-grp.c: Likewise.
35869         * nss/nss_files/files-hosts.c: Likewise.
35870         * nss/nss_files/files-network.c: Likewise.
35871         * nss/nss_files/files-proto.c: Likewise.
35872         * nss/nss_files/files-pwd.c: Likewise.
35873         * nss/nss_files/files-rpc.c: Likewise.
35874         * nss/nss_files/files-service.c: Likewise.
35875         * nss/nss_files/files-sgrp.c: Likewise.
35876         * nss/nss_files/files-spwd.c: Likewise.
35877         * nss/nss_db/db-alias.c: Removed.
35878         * nss/nss_db/dummy-db.h: Removed.
35879
35880 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
35881
35882         * nss/makedb.c: Rewritten to not use database library.
35883         * nss/Makefile: Update to build new makedb program.
35884
35885 2011-06-14  Andreas Jaeger  <aj@suse.de>
35886
35887         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
35888         memset declaration.
35889
35890 2011-06-10  Andreas Schwab  <schwab@redhat.com>
35891
35892         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
35893         tmpbuf.
35894
35895 2011-06-10  Roland McGrath  <roland@hack.frob.com>
35896
35897         * Makerules (shlib.lds): Fail if the linker script comes out empty.
35898         * elf/Makefile ($(objpfx)ld.so): Likewise.
35899
35900         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
35901         Don't list ld.so twice in dependencies.
35902
35903         * posix/bug-regex31.c: Include <stdlib.h>.
35904
35905         * nscd/hstcache.c (cache_addhst): Remove unused variable.
35906
35907         * nis/nss_compat/compat-spwd.c
35908         (getspent_next_nss_netgr): Remove unused variable.
35909         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
35910
35911         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
35912         nonmembers" output to use the right array.
35913
35914         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
35915
35916         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
35917
35918         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
35919         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
35920         * catgets/gencat.c (read_input_file): Likewise.
35921         * locale/programs/locarchive.c (enlarge_archive): Likewise.
35922
35923         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
35924         variable definition inside #if's controlling its use.
35925
35926         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
35927
35928         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
35929
35930         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
35931
35932         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
35933         unreachable code.
35934
35935         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
35936
35937         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
35938         * configure: Regenerated.
35939
35940         * Makerules: Revert last change.
35941         * elf/Makefile: Likewise.
35942
35943 2011-06-09  Roland McGrath  <roland@hack.frob.com>
35944
35945         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
35946         * elf/Makefile ($(objpfx)librtld.os): Likewise.
35947         (reloc-link): Likewise.
35948
35949 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
35950
35951         * elf/Makefile: Add rules to build pldd.
35952         * elf/pldd.c: New file.
35953         * elf/pldd-xx.c: New file.
35954
35955 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
35956
35957         * version.h: Update for 2.15 development version.
35958
35959 2011-06-07  David S. Miller  <davem@davemloft.net>
35960
35961         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
35962         ifuncs.
35963         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
35964         elf_machine_lazy_rel): Likewise.
35965         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
35966         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
35967         elf_machine_lazy_rel): Likewise.
35968         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
35969         dl_hwcap via passed in argument.
35970         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
35971         Likewise.
35972
35973 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35974
35975         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
35976
35977 2011-06-06  Roland McGrath  <roland@hack.frob.com>
35978
35979         [BZ #12849]
35980         * manual/fdl-1.1.texi: New file, verbatim from:
35981         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
35982         * manual/lgpl-2.1.texi: New file, verbatim from:
35983         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
35984         * manual/Makefile (licenses): New variable, list those new file names.
35985         (texis): Use it.
35986         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
35987
35988         * manual/fdl.texi: File removed.
35989         * manual/lesser.texi: File removed.
35990         * manual/libc.texinfo (Copying, Documentation License):
35991         Use new @include file names, put @appendix directive before @include.
35992
35993 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
35994
35995         [BZ #12841]
35996         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
35997         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
35998         (mq_open): Add __NTH.
35999
36000 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
36001
36002         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36003         Assume Intel Core i3/i5/i7 processor if AVX is available.
36004
36005 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
36006
36007         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
36008         typo.
36009
36010 2011-05-31  Andreas Schwab  <schwab@redhat.com>
36011
36012         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
36013         memory.  Use alloca_account.  Fix memory leak when retrying.
36014
36015 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
36016
36017         * version.h (RELEASE): Bump for 2.14 release.
36018         * include/features.h (__GLIBC_MINOR__): Bump to 14.
36019
36020         * config.make.in (RANLIB): Remove entry.
36021
36022 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
36023
36024         * po/Makefile (po-sed-cmd): Add ksh to extensions.
36025         (libc.pot): Work around missing support for .ksh extension in xgettext.
36026
36027         [BZ #12684]
36028         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
36029         if both request failed.
36030         (send_dg): In case of server errors clear resplen or *resplen2.
36031
36032         [BZ #12454]
36033         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
36034         when there are multiple maps.
36035         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
36036         (_dl_fini): Remove test here.
36037
36038         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
36039
36040 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
36041
36042         [BZ #12350]
36043         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
36044         bit from old_res_options.
36045         (gaih_inet): Likewise.
36046
36047         [BZ #11099]
36048         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
36049         as signed.
36050
36051         * resolv/res_init.c (res_setoptions): Make the code more compact.
36052
36053         [BZ #11558]
36054         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
36055         set RES_USEVC.
36056
36057         [BZ #11634]
36058         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
36059
36060         * malloc/malloc.h: Mark malloc hook variables as deprecated.
36061
36062         [BZ #11781]
36063         * malloc/malloc.h: Declare malloc hook variables as volatile.
36064
36065         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
36066         in last patch.
36067
36068         [BZ #11799]
36069         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
36070         raise in the comment.
36071         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
36072         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
36073         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
36074
36075 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
36076
36077         [BZ #12811]
36078         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
36079         grow the buffers more if it already has to be sufficient.
36080         (build_wcs_upper_buffer): Likewise.
36081         * posix/regexec.c (check_matching): Likewise.
36082         (clean_state_log_if_needed): Likewise.
36083         (extend_buffers): Don't enlarge buffers beyond size of the input
36084         buffer.
36085         Patches mostly by Emil Wojak <emil@wojak.eu>.
36086         * posix/bug-regex32.c: New file.
36087         * posix/Makefile (tests): Add bug-regex32.
36088
36089         * locale/findlocale.c (_nl_find_locale): Return right away if
36090         _nl_explode_name failed.
36091         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
36092
36093         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
36094
36095         * debug/xtrace.sh: Unify messages.
36096         * malloc/memusage.sh: Likewise.
36097
36098         [BZ #12813]
36099         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
36100         time symbol from vDSO.  Substitute with vsyscall if not available.
36101         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
36102         __vdso_time.
36103
36104         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
36105         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
36106         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
36107         Add sendmmsg and internal_sendmmsg.
36108         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
36109         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
36110         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
36111
36112         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
36113         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
36114         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
36115
36116 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
36117
36118         [BZ #12813]
36119         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
36120         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
36121         available.
36122         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
36123         __vdso_getcpu.
36124
36125         [BZ #12814]
36126         * iconvdata/Makefile (tests): Add bug-iconv9.
36127         * iconvdata/bug-iconv9.c: New file.
36128
36129 2011-05-27  Andreas Schwab  <schwab@redhat.com>
36130
36131         [BZ #12814]
36132         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
36133
36134 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
36135
36136         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36137         (struct user_regs_struct): Change intcs field back to cs.
36138
36139 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
36140
36141         * po/ja.po: Update from translation team.
36142
36143 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
36144
36145         [BZ #12795]
36146         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
36147         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
36148
36149 2011-05-20  Andreas Schwab  <schwab@redhat.com>
36150
36151         * stdlib/longlong.h: Update from GCC.
36152
36153 2011-05-23  Andreas Schwab  <schwab@redhat.com>
36154
36155         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
36156         parameter name.
36157         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
36158         Add parameter name.
36159         (__sysconf): Pass it down.
36160
36161 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
36162
36163         [BZ #12671]
36164         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
36165         some situations.
36166         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36167         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
36168         add in in __libc_use_alloca calls.  Adjust callers.
36169         (glob): Use malloc in some situations.
36170
36171         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
36172         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
36173         pltexit.
36174
36175 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
36176
36177         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
36178         and CLOCK_BOOTTIME_ALARM.
36179
36180         [BZ #12782]
36181         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
36182         is returned.
36183
36184         * string/_strerror.c (__strerror_r): Print negative errors as signed
36185         numbers.
36186
36187         [BZ #12777]
36188         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
36189         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
36190         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
36191
36192         * configure.in: Fix typo in redirection and correct removal of test
36193         files in two cases.
36194
36195         [BZ #12788]
36196         * locale/setlocale.c (new_composite_name): Fix test to check for
36197         identical name of all categories.
36198
36199         [BZ #12792]
36200         * libio/filedoalloc.c (local_isatty): New function.
36201         (_IO_file_doallocate): Use local_isatty.
36202         * stdio-common/perror.c (perror): In case a new stream is used
36203         forward the stream error.
36204         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
36205         error flag.
36206
36207 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
36208
36209         [BZ #11869]
36210         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
36211         alloca.
36212         * include/alloca.h (extend_alloca_account): Define.
36213
36214         [BZ #11857]
36215         * posix/regex.h: Fix comments with documentation of user-accessible
36216         fields after compilation and describe correct free'ing of pattern
36217         after re_compile_pattern.
36218         Patch by Reuben Thomas <rrt@sc3d.org>.
36219
36220 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
36221
36222         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
36223         and -mno-altivec to prevent the compiler from using Altivec and/or
36224         VSX instructions when the corresponding registers are not available.
36225
36226 2011-05-19  Andreas Schwab  <schwab@redhat.com>
36227
36228         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
36229
36230 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
36231
36232         * libio/freopen.c (freopen): Use __dup2, not dup2.
36233         * libio/freopen64.c (freopen64): Likewise.
36234
36235 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
36236
36237         [BZ #12775]
36238         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
36239         * math/Makefile (tests): Add test-powl.
36240         (CFLAGS-test-powl.c): Define.
36241         * math/test-powl.c: New file.
36242
36243 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
36244
36245         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
36246
36247 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
36248
36249         [BZ #11837]
36250         * iconvdata/gb18030.c: Update to GB18020-2005.
36251
36252 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
36253
36254         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
36255         RE_SYNTAX_POSIX_AWK): Update to match recent development.
36256         Patch by Aharon Robbins <arnold@skeeve.com>.
36257
36258         [BZ #11892]
36259         * stdlib/putenv.c (putenv): Don't always create copy of the variable
36260         on the stack.
36261
36262         [BZ #11895]
36263         * misc/pselect.c (__pselect): Handle timeout value errors hidden
36264         through underflows.
36265
36266         [BZ #12766]
36267         * misc/error.c (error_at_line): Ensure file_name and old_file_name
36268         point to strings before performing equality test for error_one_per_line
36269         mode.
36270
36271         [BZ #11697]
36272         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
36273
36274         [BZ #11820]
36275         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36276         (struct user_fpregs_struct): Avoid __uint*_t types.
36277
36278         [BZ #6420]
36279         * malloc/mtrace.c (tr_where): Add additional parameter to point to
36280         symbol info.  Use it instead of calling _dl_addr locally.
36281         (lock_and_info): New function.
36282         (tr_freehook): Call lock_and_info and pass symbol info as additional
36283         parameter to tr_where.
36284         (tr_mallochook): Likewise.
36285         (tr_reallochook): Likewise.
36286         (tr_memalignhook): Likewise.
36287
36288         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
36289         used and couldn't be at all thread-safe.
36290
36291 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
36292
36293         * libio/freopen.c (freopen): Don't close old file descriptor
36294         before the new one is opened.  Instead dup the new file descriptor
36295         to the old one after the new stream is created.
36296         * libio/freopen64.c (freopen64): Likewise.
36297         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
36298         * libio/fileops.c (_IO_new_file_close_it): Handle new
36299         _IO_FLAGS2_NOCLOSE flag.
36300         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
36301         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
36302         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
36303         _IO_FLAGS2_NOCLOSE flag.
36304         * include/unistd.h: Add hidden_proto for dup3.
36305         Define __have_dup3.
36306         * io/dup3.c: Define hidden symbol.
36307         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
36308
36309         [BZ #7101]
36310         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
36311         when an incomplete long option is used.
36312         * posix/tst-getopt_long1.c: New file.
36313         * posix/Makefile (tests): Add tst-getopt_long1.
36314
36315         [BZ #10138]
36316         * scripts/config.guess: Update from autoconf-2.68.
36317         * scripts/config.sub: Likewise.
36318
36319         [BZ #10157]
36320         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
36321         tests into ...
36322         (has_cpuclock): ...this.  New function.
36323         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
36324         macro here based on has_cpuclock code.
36325
36326         [BZ #10149]
36327         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36328         First byte (not low byte) is now always NUL.
36329         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
36330
36331         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36332         Use non-cancelable interfaces.
36333
36334         [BZ #9809]
36335         * locale/iso-639.def: Add entry for Sorani.
36336
36337         [BZ #11901]
36338         * include/stdlib.h: Move include protection to the right place.
36339         Define abort_msg_s.  Declare __abort_msg with it.
36340         * stdlib/abort.c (__abort_msg): Adjust type.
36341         * assert/assert.c (__assert_fail_base): New function.  Majority
36342         of code from __assert_fail.  Allocate memory for __abort_msg with
36343         mmap.
36344         (__assert_fail): Now call __assert_fail_base.
36345         * assert/assert-perr.c: Remove bulk of implementation.  Use
36346         __assert_fail_base.
36347         * include/assert.hL Declare __assert_fail_base.
36348         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
36349         mmap.
36350         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
36351
36352 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
36353
36354         [BZ #11952]
36355         [BZ #12453]
36356         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
36357         until all modules are registered in the DTV.
36358         * elf/Makefile: Add rules to build and run tst-tls19.
36359         * elf/tst-tls19.c: New file.
36360         * elf/tst-tls19mod1.c: New file.
36361         * elf/tst-tls19mod2.c: New file.
36362         * elf/tst-tls19mod3.c: New file.
36363         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
36364
36365         [BZ #12083]
36366         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
36367         correctly.
36368
36369         [BZ #12601]
36370         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
36371         two-byte sequence errors.
36372         * iconvdata/Makefile (tests): Add bug-iconv8.
36373         * iconvdata/bug-iconv8.c: New file.
36374
36375         [BZ #12626]
36376         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
36377         buf2 definition.
36378
36379         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
36380
36381         [BZ #12432]
36382         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
36383         (dummy_getcfa): New function.
36384         (init): Get _Unwind_GetCFA address, use dummy if not found.
36385         (backtrace_helper): In recursion check, also check whether CFA changes.
36386         (__backtrace): Completely initialize arg.
36387
36388         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
36389         storing incomplete byte sequence in state object.  Avoid testing for
36390         guaranteed too small input if we know there is enough data available.
36391
36392 2011-05-11  Andreas Schwab  <schwab@redhat.com>
36393
36394         * Makeconfig (+link-pie): Indent.
36395         * Rules (binaries-pie): Define if $(have-fpie) and
36396         $(build-shared).
36397         (binaries-shared): Also filter out $(binaries-pie).
36398         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
36399         * nscd/Makefile (others-pie): Add nscd.
36400         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
36401         ($(objpfx)nscd): Remove command override.
36402         * login/Makefile (others-pie): Add pt_chown.
36403         ($(objpfx)pt_chown): Remove command override.
36404         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
36405         remove command overrides.
36406
36407 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
36408
36409         * libio/tst_putwc.c: Fix error messages.
36410
36411         [BZ #12724]
36412         * libio/fileops.c (_IO_new_file_close_it): Always flush when
36413         currently writing and seek to current position when not.
36414         * libio/Makefile (tests): Add bug-fclose1.
36415         * libio/bug-fclose1.c: New file.
36416
36417 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
36418
36419         [BZ #12511]
36420         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
36421         don't set DF_1_NODELETE here.
36422         (do_lookup_x): When entering new entry test for copy relocation
36423         and if necessary set DF_1_NODELETE flag.
36424         * elf/tst-unique4.cc: New file.
36425         * elf/tst-unique4.h: New file.
36426         * elf/tst-unique4lib.cc: New file.
36427         * elf/Makefile: Add rules to build and run tst-unique4.
36428         Patch by Piotr Bury <pbury@goahead.com>.
36429
36430 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36431
36432         [BZ #12052]
36433         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
36434
36435         [BZ #12625]
36436         * misc/mntent_r.c (addmntent): Flush the stream after the output
36437
36438         [BZ #12393]
36439         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
36440         (is_trusted_path_normalize): Skip initial colon.  Append slash
36441         to empty buffer.  Duplicate is_trusted_path code but allow
36442         constructed patch to be prefix.
36443         (is_dst): Allow $ORIGIN followed by /.
36444         (_dl_dst_substitute): Correct clearing of check_for_trusted.
36445         Correct testing of result of is_trusted_path_normalize
36446         (decompose_rpath): Fix warning.
36447
36448 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
36449
36450         [BZ #11257]
36451         * grp/initgroups.c (internal_getgrouplist): When we found the service
36452         list through the initgroups entry in nsswitch.conf do not always
36453         continue on a successful lookup.  Don't always use the
36454         __nss_group_database value if it is set.
36455         * nss/nsswitch.conf (initgroups): Change action for successful db
36456         lookup to continue for compatibility.
36457
36458 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
36459
36460         [BZ #11532]
36461         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
36462         and CP774 modules.
36463         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
36464         and CP774 modules.
36465         * iconvdata/tst-tables.sh: Likewise.
36466         * iconvdata/cp770.c: New file.
36467         * iconvdata/cp771.c: New file.
36468         * iconvdata/cp772.c: New file.
36469         * iconvdata/cp773.c: New file.
36470         * iconvdata/cp774.c: New file.
36471         * iconvdata/testdata/CP770: New file.
36472         * iconvdata/testdata/CP770..UTF8: New file.
36473         * iconvdata/testdata/CP771: New file.
36474         * iconvdata/testdata/CP771..UTF8: New file.
36475         * iconvdata/testdata/CP772: New file.
36476         * iconvdata/testdata/CP772..UTF8: New file.
36477         * iconvdata/testdata/CP773: New file.
36478         * iconvdata/testdata/CP773..UTF8: New file.
36479         * iconvdata/testdata/CP774: New file.
36480         * iconvdata/testdata/CP774..UTF8: New file.
36481
36482         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
36483         END CHARMAP line.
36484         * iconvdata/gen-8bit-gap.sh: Likewise.
36485         * iconvdata/gen-8bit.sh: Likewise.
36486
36487         * locale/iso-639.def: Add ary entry.
36488
36489         [BZ #11258]
36490         * locale/C-translit.h.in: Add U20A1 transliteration.
36491
36492         [BZ #12178]
36493         * locale/iso-639.def: Add wae entry.
36494         Patch by Kevin Bortis <bortis@translate-wae.ch>.
36495
36496         [BZ #12545]
36497         * locale/programs/localedef.c (construct_output_path): Use ssize_t
36498         for n.
36499
36500         [BZ #12711]
36501         * locale/C-translit.h.in: Add entry for U20B9.
36502         Patch by pravin.d.s@gmail.com.
36503
36504 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
36505
36506         [BZ #12713]
36507         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
36508         ENAMETOOLONG use generic getcwd.
36509         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
36510         in rtld.  Use *stat64.
36511         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
36512         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
36513         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
36514         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
36515         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
36516         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
36517         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
36518         __fstatat64 macros.
36519         * include/dirent.h: Add libc_hidden_proto for rewinddir.
36520         * dirent/rewinddir.c: Add libc_hidden_def.
36521         * sysdeps/mach/hurd/rewinddir.c: Likewise.
36522         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
36523
36524         * include/dirent.h (__alloc_dir): Add flags parameter.
36525         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
36526         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
36527         __alloc_dir.
36528         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
36529         from fdopendir if O_CLOEXEC is already set.
36530
36531 2011-03-15  Alan Modra  <amodra@gmail.com>
36532
36533         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
36534         l_tls_firstbyte_offset non-zero.  Save padding offset in
36535         l_tls_firstbyte_offset for later use.
36536         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
36537         freeing static tls block.
36538
36539 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
36540
36541         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
36542         where #ifdef was intended.  The intent is to prevent ARG_MAX from
36543         being defined by the kernel headers.
36544
36545 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
36546
36547         [BZ #12734]
36548         * resolv/resolv.h: Define RES_NOTLDQUERY.
36549         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
36550         no-tld-query and set RES_NOTLDQUERY.
36551         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
36552         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
36553         modern BIND to search name as TLD unless forbidden.
36554
36555 2011-05-07  Petr Baudis  <pasky@suse.cz>
36556             Ulrich Drepper  <drepper@gmail.com>
36557
36558         [BZ #12393]
36559         * elf/dl-load.c (fillin_rpath): Move trusted path check...
36560         (is_trusted_path): ...to here.
36561         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
36562         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
36563         using is_trusted_path_normalize() in setuid scripts.
36564
36565 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36566
36567         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
36568         __BEGIN/__END_DECLS.
36569
36570 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
36571
36572         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
36573         NSS_STATUS_NOTFOUND if no record was found.
36574
36575 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36576
36577         * sunrpc/Makefile (headers): Add rpc/netdb.h.
36578         (headers-not-in-tirpc): Remove rpc/netdb.h
36579         * resolv/netdb.h: Revert last change.
36580
36581 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
36582
36583         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
36584         circular dependency between libgcc.a and libc.a.
36585
36586 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36587
36588         * resolv/netdb.h: Don't include <rpc/netdb.h>.
36589         * nis/Makefile: Don't install rpcsvc/*.
36590         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
36591         instead of <rpc/types.h>.
36592         (MAXHOSTNAMELEN): Define.
36593
36594 2011-05-03  Andreas Schwab  <schwab@redhat.com>
36595
36596         * elf/ldconfig.c (add_dir): Don't crash on empty path.
36597
36598 2011-04-28  Maciej Babinski  <mbabinski@google.com>
36599
36600         [BZ #12714]
36601         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
36602         gethostbyname4_r when IPv6 results are possible.
36603
36604 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
36605
36606         [BZ #12723]
36607         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
36608         _PC_PIPE_BUF handling.
36609
36610 2011-04-30  Bruno Haible  <bruno@clisp.org>
36611
36612         [BZ #12717]
36613         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
36614         * resolv/netdb.h (getnameinfo): Change type of flags parameter
36615         to 'int'.
36616         * inet/getnameinfo.c (getnameinfo): Likewise.
36617
36618 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
36619
36620         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
36621         to groups setting in database lookup.
36622         * nss/nsswitch.conf: Add initgroups entry.
36623
36624 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
36625
36626         [BZ #12685]
36627         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
36628         mode string.
36629         Patch by Eric Blake <eblake@redhat.com>.
36630
36631 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
36632
36633         * sunrpc/Makefile (need-export-routines): Add svc_run.
36634         (routines): Remove svc_run.
36635         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
36636         * sunrpc/clnt_perr.c (clnt_perrno): Export.
36637         * sunrpc/svc_run.c (svc_run): Likewise.
36638         * sunrpc/svc_udp.c (svcudp_create): Likewise.
36639
36640 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
36641
36642         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
36643         problem in reallocation in last patch.
36644
36645 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
36646
36647         * sunrpc/Makefile: Move inclusion of Rules.
36648
36649 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36650
36651         * nss/nss_files/files-initgroups.c: New file.
36652         * nss/Makefile (libnss_files-routines): Add files-initgroups.
36653         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
36654         _nss_files_initgroups_dyn.
36655
36656 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
36657
36658         * elf/elf.h (R_ARM_IRELATIVE): Define.
36659
36660 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36661
36662         * po/ru.po: Update from translation team.
36663
36664 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36665
36666         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
36667         dependencies.
36668
36669 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
36670
36671         [BZ #12653]
36672         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
36673         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
36674         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36675         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36676         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
36677
36678 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
36679
36680         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
36681         differing bytes.
36682         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
36683         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
36684         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
36685
36686 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36687
36688         [BZ #12420]
36689         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
36690         storing it.
36691         * stdlib/bug-getcontext.c: New file.
36692         * stdlib/Makefile: Add rules to build and run bug-getcontext.
36693
36694 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36695
36696         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
36697         instructions into .machine "z9-109".
36698         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
36699         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
36700
36701 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36702
36703         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
36704         between environment variables and auxiliary vector.
36705
36706 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
36707
36708         * Makefile: Add rules to build linkobj/libc.so.
36709         * include/libc-symbols.h: Define libc_hidden_nolink.
36710         * include/rpc/auth.h: Mark functions which are to be hidden.
36711         * include/rpc/auth_des.h: Likewise.
36712         * include/rpc/auth_unix.h: Likewise.
36713         * include/rpc/clnt.h: Likewise.
36714         * include/rpc/des_crypt.h: Likewise.
36715         * include/rpc/key_prot.h: Likewise.
36716         * include/rpc/pmap_clnt.h: Likewise.
36717         * include/rpc/pmap_prot.h: Likewise.
36718         * include/rpc/pmap_rmt.h: Likewise.
36719         * include/rpc/rpc_msg.h: Likewise.
36720         * include/rpc/svc.h: Likewise.
36721         * include/rpc/svc_auth.h: Likewise.
36722         * include/rpc/xdr.h: Likewise.
36723         * nis/Makefile: Link all DSOs against linkobj/libc.so.
36724         * nss/Makefile: Likewise.
36725         * sunrpc/Makefile: Don't install headers.  Build library with normal
36726         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
36727         * sunrpc/auth_des.c: Hide exported symbols by default, export some
36728         for the compat linking library.  Remove use of INTDEF/INTUSE.
36729         * sunrpc/auth_none.c: Likewise.
36730         * sunrpc/auth_unix.c: Likewise.
36731         * sunrpc/authdes_prot.c: Likewise.
36732         * sunrpc/authuxprot.c: Likewise.
36733         * sunrpc/clnt_gen.c: Likewise.
36734         * sunrpc/clnt_perr.c: Likewise.
36735         * sunrpc/clnt_raw.c: Likewise.
36736         * sunrpc/clnt_simp.c: Likewise.
36737         * sunrpc/clnt_tcp.c: Likewise.
36738         * sunrpc/clnt_udp.c: Likewise.
36739         * sunrpc/clnt_unix.c: Likewise.
36740         * sunrpc/des_crypt.c: Likewise.
36741         * sunrpc/des_soft.c: Likewise.
36742         * sunrpc/get_myaddr.c: Likewise.
36743         * sunrpc/key_call.c: Likewise.
36744         * sunrpc/key_prot.c: Likewise.
36745         * sunrpc/netname.c: Likewise.
36746         * sunrpc/pm_getmaps.c: Likewise.
36747         * sunrpc/pm_getport.c: Likewise.
36748         * sunrpc/pmap_clnt.c: Likewise.
36749         * sunrpc/pmap_prot.c: Likewise.
36750         * sunrpc/pmap_prot2.c: Likewise.
36751         * sunrpc/pmap_rmt.c: Likewise.
36752         * sunrpc/publickey.c: Likewise.
36753         * sunrpc/rpc_cmsg.c: Likewise.
36754         * sunrpc/rpc_common.c: Likewise.
36755         * sunrpc/rpc_dtable.c: Likewise.
36756         * sunrpc/rpc_prot.c: Likewise.
36757         * sunrpc/rpc_thread.c: Likewise.
36758         * sunrpc/rtime.c: Likewise.
36759         * sunrpc/svc.c: Likewise.
36760         * sunrpc/svc_auth.c: Likewise.
36761         * sunrpc/svc_authux.c: Likewise.
36762         * sunrpc/svc_raw.c: Likewise.
36763         * sunrpc/svc_run.c: Likewise.
36764         * sunrpc/svc_simple.c: Likewise.
36765         * sunrpc/svc_tcp.c: Likewise.
36766         * sunrpc/svc_udp.c: Likewise.
36767         * sunrpc/svc_unix.c: Likewise.
36768         * sunrpc/svcauth_des.c: Likewise.
36769         * sunrpc/xcrypt.c: Likewise.
36770         * sunrpc/xdr.c: Likewise.
36771         * sunrpc/xdr_array.c: Likewise.
36772         * sunrpc/xdr_float.c: Likewise.
36773         * sunrpc/xdr_intXX_t.c: Likewise.
36774         * sunrpc/xdr_mem.c: Likewise.
36775         * sunrpc/xdr_rec.c: Likewise.
36776         * sunrpc/xdr_ref.c: Likewise.
36777         * sunrpc/xdr_sizeof.c: Likewise.
36778         * sunrpc/xdr_stdio.c: Likewise.
36779
36780 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
36781
36782         [BZ #12650]
36783         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
36784         * sysdeps/ia64/dl-tls.h: Likewise.
36785         * sysdeps/powerpc/dl-tls.h: Likewise.
36786         * sysdeps/s390/dl-tls.h: Likewise.
36787         * sysdeps/sh/dl-tls.h: Likewise.
36788         * sysdeps/sparc/dl-tls.h: Likewise.
36789         * sysdeps/x86_64/dl-tls.h: Likewise.
36790         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
36791
36792 2011-03-14  Andreas Schwab  <schwab@redhat.com>
36793
36794         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
36795         rpath element also skip the following colon.
36796         (expand_dynamic_string_token): Add is_path parameter and pass
36797         down to DL_DST_REQUIRED and _dl_dst_substitute.
36798         (decompose_rpath): Call expand_dynamic_string_token with
36799         non-zero is_path.  Ignore empty rpaths.
36800         (_dl_map_object_from_fd): Call expand_dynamic_string_token
36801         with zero is_path.
36802
36803 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
36804
36805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
36806         Make cancelable.
36807
36808 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
36809
36810         [BZ #12655]
36811         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
36812         Patch by Filipe David Manana <fdmanana@apache.org>.
36813
36814 2011-04-07  Andreas Schwab  <schwab@redhat.com>
36815
36816         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
36817         Maintain aligned stack.
36818         (CHECK_RSP): Remove unused macro.
36819
36820 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
36821
36822         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
36823         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
36824
36825 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
36826
36827         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
36828
36829         * include/features.h: Mention __USE_XOPEN2K8 in comment.
36830
36831 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
36832
36833         [BZ #12518]
36834         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
36835         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
36836         * sysdeps/x86_64/memmove.c: New file.
36837         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
36838         (memcpy): Renamed to ...
36839         (__new_memcpy): This.
36840         (memcpy): Provide GLIBC_2_14 memcpy.
36841         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
36842         (memcpy): Provide GLIBC_2_2_5 memcpy.
36843
36844 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36845
36846         [BZ #12631]
36847         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
36848
36849 2011-03-30  Andreas Schwab  <schwab@redhat.com>
36850
36851         * misc/syncfs.c: New file.
36852         * misc/Makefile (routines): Add syncfs.
36853         * posix/unistd.h: Declare syncfs.
36854         * sysdeps/unix/syscalls.list: Add syncfs.
36855
36856 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36857
36858         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
36859         open_by_handle_at.
36860         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
36861         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36862         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36863         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36864         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36865         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
36866         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36867
36868 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36869
36870         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
36871         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36872         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
36873         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36874         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36875         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36876         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36877
36878         * io/Makefile: Compile fallocate.c, fallocate64.c, and
36879         sync_file_range.c with -fexceptions.
36880         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
36881         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
36882         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
36883         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
36884         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
36885         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
36886         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
36887         sync_file_range as cancellation point
36888         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
36889         now a wrapper around __call_sync_file_range with cancellation handling.
36890         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
36891         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
36892         function name to __call_sync_file_range.
36893         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
36894         Add call_sync_file_range.
36895
36896 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36897
36898         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36899         bits/timex.h.
36900
36901 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36902
36903         * iconv/iconv.h: Fix typo in comment.
36904         * io/fcntl.h: Likewise.
36905         * libio/stdio.h: Likewise.
36906         * posix/spawn.h: Likewise.
36907         * posix/unistd.h: Likewise.
36908         * stdlib/stdlib.h: Likewise.
36909         * time/time.h: Likewise.
36910         * wcsmbs/wchar.h: Likewise.
36911
36912         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
36913         open_by_handle): Add.
36914         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
36915         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
36916         Augment a few comments.
36917         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36918         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36919         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36920         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36921         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36922         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
36923         open_by_handle.
36924
36925         * io/fcntl.h (AT_EMPTY_PATH): Define.
36926
36927 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
36928
36929         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
36930         * sysdeps/unix/sysv/linux/bits/time.h: New file.
36931         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
36932         to...
36933         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
36934         * Versions.def: Add GLIBC_2.14.
36935         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
36936         Export.
36937
36938 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
36939
36940         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
36941         round counter.
36942         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36943
36944 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36945
36946         [BZ #12597]
36947         * string/test-strncmp.c (do_page_test): New function.
36948         (check2): Likewise.
36949         (test_main): Call check2.
36950         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
36951
36952 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
36953
36954         [BZ #12587]
36955         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
36956         Handle cache information in CPU leaf 4.
36957         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36958
36959 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
36960
36961         [BZ #12583]
36962         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
36963         character representation.
36964         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
36965
36966 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
36967
36968         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
36969         END(__isnan) to END(__isnanf) to match function entry point/label
36970         EALIGN(__isnanf,...).
36971
36972 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
36973
36974         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
36975
36976 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
36977
36978         [BZ #12510]
36979         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
36980         copy from the symbol referenced in the relocation to initialize the
36981         used variable.
36982         Patch by Piotr Bury <pbury@goahead.com>.
36983         * elf/Makefile: Add rules to build and tst-unique3.
36984         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
36985         * elf/tst-unique3.cc: New file.
36986         * elf/tst-unique3.h: New file.
36987         * elf/tst-unique3lib.cc: New file.
36988         * elf/tst-unique3lib2.cc: New file.
36989
36990         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
36991
36992 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
36993
36994         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
36995         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
36996         to _start.
36997
36998 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
36999
37000         * elf/dl-load.c (_dl_map_object): If we are looking for the first
37001         to-be-loaded object along a path to loader is ld.so.
37002
37003 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
37004             Ulrich Drepper  <drepper@gmail.com>
37005
37006         * sysdeps/x86_64/memset.S: After aligning destination, code
37007         branches to different locations depending on the value of
37008         misalignment, when multiarch is enabled. Fix this.
37009
37010 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
37011
37012         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
37013         Set _x86_64_preferred_memory_instruction for AMD processsors.
37014         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37015         Set bit_Prefer_SSE_for_memop for AMD processors.
37016
37017 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
37018
37019         * libio/fmemopen.c (fmemopen): Optimize a bit.
37020
37021 2011-03-03  Andreas Schwab  <schwab@redhat.com>
37022
37023         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
37024
37025 2011-03-03  Roland McGrath  <roland@redhat.com>
37026
37027         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
37028
37029 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
37030
37031         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
37032         __bzero_ultra1 instead of __memset_ultra1.
37033
37034 2011-02-23  Andreas Schwab  <schwab@redhat.com>
37035             Ulrich Drepper  <drepper@gmail.com>
37036
37037         [BZ #12509]
37038         * include/link.h (struct link_map): Add l_orig_initfini.
37039         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
37040         returning unsuccessfully.
37041         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
37042         close of a file loaded at startup, restore the original l_initfini
37043         list.
37044         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
37045         list, store the pointer.
37046         * elf/Makefile ($(objpfx)noload-mem): New rule.
37047         (noload-ENV): Define.
37048         (tests): Add $(objpfx)noload-mem.
37049         * elf/noload.c: Include <memcheck.h>.
37050         (main): Call mtrace.  Close all opened handles.
37051
37052 2011-02-17  Andreas Schwab  <schwab@redhat.com>
37053
37054         [BZ #12454]
37055         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
37056         dependencies are missing.
37057
37058 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37059
37060         Fix __if_freereq crash: Unlike the generic version which uses free,
37061         Hurd needs munmap.
37062         * sysdeps/mach/hurd/ifreq.h: New file.
37063
37064 2011-01-27  Petr Baudis  <pasky@suse.cz>
37065             Ulrich Drepper  <drepper@gmail.com>
37066
37067         [BZ 12445]#
37068         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
37069         to extend_alloca().
37070         * stdio-common/bug23.c: New file.
37071         * stdio-common/Makefile (tests): Add bug23.
37072
37073 2010-09-28  Andreas Schwab  <schwab@redhat.com>
37074             Ulrich Drepper  <drepper@gmail.com>
37075
37076         [BZ #12489]
37077         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
37078         before performing relro protection.  At old place add assertion
37079         to make sure nothing changed.
37080
37081 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
37082             Glauber de Oliveira Costa  <glommer@gmail.com>
37083
37084         * elf/elf.h: Add new ARM TLS relocs.
37085
37086 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
37087
37088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
37089         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
37090         cast from r3.
37091         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
37092         'tests' variable.
37093         * sysdeps/wordsize-64/tst-writev.c: New file.
37094
37095 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
37096
37097         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
37098         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
37099         insns in _dl_start to prevent a TOC reference before relocs are
37100         resolved.
37101
37102 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
37103
37104         [BZ #12469]
37105         * Makeconfig: Remove RANLIB definition.
37106         * Makerules: Don't use RANLIB.
37107         * aclocal.m4: Remove ranlib test.
37108         * configure.in: No need to check for ranlib.
37109         * elf/rtld-Rules: Don't use RANLIB.
37110
37111 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37112
37113         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
37114         protection macro.
37115         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
37116         inclusion protection macro.
37117
37118         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
37119         SIGRTMIN and SIGRTMAX and print information in that case only when
37120         SIGRTMIN is defined.
37121
37122 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
37123
37124         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
37125         arginfo fn returning -1.
37126
37127         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
37128         and thousands string is zero terminated.
37129
37130 2011-02-03  Andreas Schwab  <schwab@redhat.com>
37131
37132         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
37133         sysdeps/unix/sysv/linux/bits/socket.h.
37134
37135 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37136
37137         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
37138         (__CPU_COUNT): Remove old macros.
37139         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
37140         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
37141         (__CPU_ALLOC, __CPU_FREE): Add macros.
37142         (__sched_cpualloc, __sched_cpufree): Add declarations.
37143
37144 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
37145
37146         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
37147         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
37148         * nscd/aicache.c (addhstaiX): Return timeout of added value.
37149         (readdhstai): Return value of addhstaiX call.
37150         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
37151         (addgrbyX): Return value returned by cache_addgr.
37152         (readdgrbyname): Return value returned by addgrbyX.
37153         (readdgrbygid): Likewise.
37154         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
37155         (addpwbyX): Return value returned by cache_addpw.
37156         (readdpwbyname): Return value returned by addhstbyX.
37157         (readdpwbyuid): Likewise.
37158         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
37159         (addservbyX): Return value returned by cache_addserv.
37160         (readdservbyname): Return value returned by addservbyX:
37161         (readdservbyport): Likewise.
37162         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
37163         (addhstbyX): Return value returned by cache_addhst.
37164         (readdhstbyname): Return value returned by addhstbyX.
37165         (readdhstbyaddr): Likewise.
37166         (readdhstbynamev6): Likewise.
37167         (readdhstbyaddrv6): Likewise.
37168         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
37169         (readdinitgroups): Return value returned by addinitgroupsX.
37170         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
37171         (prune_cache): Keep track of timeout value of re-added entries.
37172         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
37173         * nscd/nscd.h: Adjust prototypes of readd* functions.
37174
37175 2011-02-04  Roland McGrath  <roland@redhat.com>
37176
37177         * nis/nis_server.c (nis_servstate): Use the right name for 0.
37178         (nis_stats): Likewise.
37179         * nis/nis_modify.c (nis_modify): Likewise.
37180         * nis/nis_remove.c (nis_remove): Likewise.
37181         * nis/nis_add.c (nis_add): Likewise.
37182
37183         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
37184
37185         * posix/fnmatch_loop.c: Add some consts.
37186
37187         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
37188
37189 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
37190
37191         [BZ #12460]
37192         * config.make.in (config-cflags-novzeroupper): Define.
37193         * configure.in: Substitute libc_cv_cc_novzeroupper.
37194         * elf/Makefile (AVX-CFLAGS): Define.
37195         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
37196         (CFLAGS-tst-auditmod4a.c): Likewise.
37197         (CFLAGS-tst-auditmod4b.c): Likewise.
37198         (CFLAGS-tst-auditmod6b.c): Likewise.
37199         (CFLAGS-tst-auditmod6c.c): Likewise.
37200         (CFLAGS-tst-auditmod7b.c): Likewise.
37201         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
37202
37203 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
37204
37205         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
37206         function to the callback.
37207         Patch partly by Jiri Olsa <jolsa@redhat.com>.
37208
37209 2011-02-02  Andreas Schwab  <schwab@redhat.com>
37210
37211         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
37212         of errno.
37213
37214 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
37215
37216         [BZ #11724]
37217         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
37218         of constructors.
37219         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
37220         of destructors.
37221         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
37222
37223         [BZ #11724]
37224         * elf/Makefile: Add rules to build and run new test.
37225         * elf/tst-initorder.c: New file.
37226         * elf/tst-initorder.exp: New file.
37227         * elf/tst-initordera1.c: New file.
37228         * elf/tst-initordera2.c: New file.
37229         * elf/tst-initordera3.c: New file.
37230         * elf/tst-initordera4.c: New file.
37231         * elf/tst-initorderb1.c: New file.
37232         * elf/tst-initorderb2.c: New file.
37233         * elf/tst-order-a1.c: New file.
37234         * elf/tst-order-a2.c: New file.
37235         * elf/tst-order-a3.c: New file.
37236         * elf/tst-order-a4.c: New file.
37237         * elf/tst-order-b1.c: New file.
37238         * elf/tst-order-b2.c: New file.
37239         * elf/tst-order-main.c: New file.
37240         New test case by George Gensure <werkt0@gmail.com>.
37241
37242 2010-10-01  Andreas Schwab  <schwab@redhat.com>
37243
37244         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
37245         decoding ACE if AI_CANONIDN.
37246
37247 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
37248
37249         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
37250
37251 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
37252
37253         * version.h (RELEASE): Bump for 2.13 release.
37254         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
37255
37256         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
37257
37258         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
37259         MADV_NOHUGEPAGE.
37260         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
37261         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
37262         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
37263         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
37264         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
37265         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37266
37267         * posix/getconf.c: Update copyright year.
37268         * catgets/gencat.c: Likewise.
37269         * csu/version.c: Likewise.
37270         * debug/catchsegv.sh: Likewise.
37271         * debug/xtrace.sh: Likewise.
37272         * elf/ldconfig.c: Likewise.
37273         * elf/ldd.bash.in: Likewise.
37274         * elf/sprof.c (print_version): Likewise.
37275         * iconv/iconv_prog.c: Likewise.
37276         * iconv/iconvconfig.c: Likewise.
37277         * locale/programs/locale.c: Likewise.
37278         * locale/programs/localedef.c: Likewise.
37279         * malloc/memusage.sh: Likewise.
37280         * malloc/mtrace.pl: Likewise.
37281         * nscd/nscd.c (print_version): Likewise.
37282         * nss/getent.c: Likewise.
37283
37284         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
37285         PF_CAIF, and PF_ALG.
37286         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37287
37288 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
37289
37290         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
37291         (modules-names): Use them.
37292         (ifunc-test-modules, ifunc-pie-tests): Define.
37293         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
37294         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
37295         (test-extras): Likewise.
37296         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
37297         $(compile-command.c).
37298         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
37299         (all-built-dso): Define.
37300         (check-textrel.out, check-execstack.out): Depend on it.
37301
37302         * configure.in: Don't override --enable-multi-arch.
37303
37304 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
37305
37306         [BZ #6812]
37307         * nscd/hstcache.c (tryagain): Define.
37308         (cache_addhst): Return tryagain not notfound for temporary errors.
37309         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
37310         failed.
37311
37312 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
37313
37314         [BZ #10563]
37315         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
37316         to make the syscall.
37317         * sysdeps/unix/sysv/linux/setgroups.c: New file.
37318
37319         [BZ #12378]
37320         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
37321         and fall back to matching as normal character if the string ends before
37322         the matching ']' is found.  This is what POSIX requires.
37323         * posix/testfnm.c: Adjust test result.
37324         * posix/globtest.sh: Adjust test result.  Add new test.
37325         * posix/tst-fnmatch.input: Likewise.
37326         * posix/tst-fnmatch2.c: Add new test.
37327
37328 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
37329
37330         * elf/Makefile (check-execstack): Revert last change.  Depend on
37331         check-execstack.h.
37332         (check-execstack.h): New target.
37333         (generated): Add check-execstack.h.
37334         * elf/check-execstack.c: Include "check-execstack.h".
37335         (main): Revert last change.
37336         (handle_file): Return zero if GNU_STACK is absent and
37337         DEFAULT_STACK_PERMS doesn't include PF_X.
37338
37339 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
37340
37341         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
37342         in child fails because the descriptor is already closed.
37343         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
37344         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
37345         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
37346
37347         [BZ #12397]
37348         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
37349         syscall.
37350
37351         [BZ #10484]
37352         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
37353         temporary buffer used to handle multi lookups locally.
37354         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
37355
37356 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37357
37358         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
37359         loader is ld.so.
37360
37361 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
37362
37363         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
37364         alignment for SSE2.
37365
37366 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37367
37368         [BZ #12394]
37369         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
37370         characters.  When rounding increased number of integer digits recompute
37371         number of groups.
37372         * stdio-common/tst-grouping.c: New file.
37373         * stdio-common/Makefile: Add rules to build and run tst-grouping.
37374
37375 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
37376
37377         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
37378         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
37379
37380         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
37381         void.
37382         * bits/select.h: Likewise.
37383
37384 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
37385
37386         * po/ja.po: Update from translation team.
37387
37388 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
37389
37390         [BZ #11155]
37391         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
37392         implementation just like for lxstat, fxstatat, et al.
37393
37394 2010-12-27  Jim Meyering  <meyering@redhat.com>
37395
37396         [BZ #12348]
37397         * posix/regexec.c (build_trtable): Return failure indication upon
37398         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
37399
37400 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
37401
37402         [BZ #12201]
37403         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
37404         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
37405         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
37406         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
37407
37408         [BZ #12207]
37409         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
37410
37411         [BZ #12204]
37412         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
37413         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
37414
37415 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
37416
37417         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
37418         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
37419         script has SORT_BY_INIT_PRIORITY.
37420         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
37421         NO_CTORS_DTORS_SECTIONS is defined.
37422         * elf/soinit.c: Likewise.
37423         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
37424         NO_CTORS_DTORS_SECTIONS is defined.
37425         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
37426         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
37427         * sysdeps/sh/init-first.c: Likewise.
37428         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
37429
37430 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
37431
37432         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
37433         always use the slow path.
37434
37435 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
37436
37437         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
37438         similar rule which adds the sysdep directories to the header search in
37439         order to pick up the correct platform stackinfo.h.
37440         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
37441         perform test if it is, otherwise return successfully without testing.
37442         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
37443         DEFAULT_STACK_PERMS define in stackinfo.h.
37444         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
37445         defined in stackinfo.h.
37446         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
37447         DEFAULT_STACK_PERMS defined in stackinfo.h.
37448         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
37449         * sysdeps/ia64/stackinfo.h: Likewise.
37450         * sysdeps/s390/stackinfo.h: Likewise.
37451         * sysdeps/sh/stackinfo.h: Likewise.
37452         * sysdeps/sparc/stackinfo.h: Likewise.
37453         * sysdeps/x86_64/stackinfo.h: Likewise.
37454         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
37455         PF_X for powerpc64.  Retain PF_X for powerpc32.
37456
37457 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
37458
37459         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
37460         accurately.
37461         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
37462         GETDENTS_64BIT_ALIGNED.
37463
37464 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
37465
37466         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
37467
37468 2010-12-10  Andreas Schwab  <schwab@redhat.com>
37469
37470         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
37471         _GNU_SOURCE.
37472
37473         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
37474         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
37475         Remove __restrict.
37476         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
37477         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
37478
37479 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
37480
37481         [BZ #11655]
37482         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
37483         are initialized.
37484
37485 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
37486
37487         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
37488
37489 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
37490
37491         * po/it.po: Update from translation team.
37492
37493 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
37494
37495         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
37496         unused codes.
37497
37498 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
37499
37500         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
37501
37502 2010-11-24  Andreas Schwab  <schwab@redhat.com>
37503
37504         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
37505         specially.
37506         (gaih_getanswer_slice): Likewise.
37507
37508 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
37509
37510         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
37511
37512 2010-05-31  Petr Baudis  <pasky@suse.cz>
37513
37514         [BZ #11149]
37515         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
37516         silently even in the chroot mode.
37517
37518 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
37519
37520         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
37521         last patch a bit.  Pretty printing
37522
37523 2010-05-31  Petr Baudis <pasky@suse.cz>
37524
37525         [BZ #10085]
37526         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
37527         initialization of skip_initgroups_dyn.
37528
37529 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
37530
37531         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
37532         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37533
37534 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
37535
37536         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
37537
37538 2010-11-11  Andreas Schwab  <schwab@redhat.com>
37539
37540         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
37541         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
37542         (tst-fnmatch-ENV): Set MALLOC_TRACE.
37543         ($(objpfx)tst-fnmatch-mem): New rule.
37544         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
37545         * posix/tst-fnmatch.c (main): Call mtrace.
37546
37547 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
37548
37549         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37550         Support Intel processor model 6 and model 0x2c.
37551
37552 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
37553
37554         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
37555           signed comparison.
37556
37557 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
37558
37559         [BZ #12205]
37560         * string/test-strncasecmp.c (check_result): New function.
37561         (do_one_test): Use it.
37562         (check1): New function.
37563         (test_main): Use it.
37564         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
37565         Support strcasecmp and strncasecmp.
37566
37567 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
37568
37569         [BZ #12194]
37570         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
37571         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37572
37573 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
37574
37575         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
37576         IFUNC support.
37577         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37578         memset-x86-64.
37579         * sysdeps/x86_64/multiarch/bzero.S: New file.
37580         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
37581         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
37582         * sysdeps/x86_64/multiarch/memset.S: New file.
37583         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
37584         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37585         Set bit_Prefer_SSE_for_memop for Intel processors.
37586         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
37587         Define.
37588         (index_Prefer_SSE_for_memop): Define.
37589         (HAS_PREFER_SSE_FOR_MEMOP): Define.
37590
37591 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
37592
37593         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
37594         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
37595
37596 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
37597
37598         [BZ #12191]
37599         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37600         (__x86_64_raw_data_cache_size_half): Likewise.
37601         (__x86_64_raw_shared_cache_size): Likewise.
37602         (__x86_64_raw_shared_cache_size_half): Likewise.
37603
37604         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37605         (__x86_64_raw_data_cache_size_half): Likewise.
37606         (__x86_64_raw_shared_cache_size): Likewise.
37607         (__x86_64_raw_shared_cache_size_half): Likewise.
37608         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
37609         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
37610         and __x86_64_raw_shared_cache_size_half.  Round
37611         __x86_64_data_cache_size_half, __x86_64_data_cache_size
37612         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
37613         to multiple of 256 bytes.
37614
37615 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
37616
37617         [BZ #12167]
37618         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
37619         of inacessible symlinks.  Verify result of symlink before returning it.
37620         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37621         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
37622
37623 2010-10-28  Erich Ritz  <erichritz@gmail.com>
37624
37625         * math/math.h (isinf): Fix typo in comment.
37626
37627 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
37628
37629         * po/da.po: Update from translation team.
37630
37631 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
37632
37633         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
37634         is added to the list.
37635
37636 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37637             Ulrich Drepper  <drepper@gmail.com>
37638
37639         * elf/dl-object.c (_dl_new_object): Don't append the new object to
37640         the global list here.  Move code to...
37641         (_dl_add_to_namespace_list): ...here.  New function.
37642         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
37643         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
37644         * elf/dl-load.c (lose): Don't remove the element from the list.
37645         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
37646         (_dl_map_object): Likewise.
37647
37648 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
37649
37650         [BZ #12159]
37651         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
37652         into all bytes of SSE register.
37653         Patch by Richard Li <richardpku@gmail.com>.
37654
37655 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
37656
37657         [BZ #12140]
37658         * malloc/malloc.c (_int_free): Fill correct number of bytes when
37659         perturbing.
37660
37661 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
37662
37663         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
37664         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
37665         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
37666         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
37668         submachine.
37669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
37670
37671 2010-10-22  Andreas Schwab  <schwab@redhat.com>
37672
37673         * include/dlfcn.h (__RTLD_SECURE): Define.
37674         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
37675         mode & __RTLD_SECURE instead.
37676         (open_path): Rename preloaded parameter to secure.
37677         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
37678         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
37679         * elf/dl-deps.c (openaux): Likewise.
37680         * elf/rtld.c (struct map_args): Remove is_preloaded.
37681         (map_doit): Don't use it.
37682         (dl_main): Likewise.
37683         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
37684         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
37685
37686 2010-09-09  Andreas Schwab  <schwab@redhat.com>
37687
37688         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
37689         (sysd-rules-targets): Remove duplicates.
37690         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
37691         rtld-%.$o dependency.
37692
37693 2010-10-18  Andreas Schwab  <schwab@redhat.com>
37694
37695         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
37696         _dl_map_object do it.
37697
37698 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
37699
37700         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
37701         fast fma builtins, define the macros in the C99 standard.
37702         (FP_FAST_FMAF): Likewise.
37703         (FP_FAST_FMAL): Likewise.
37704         * sysdeps/x86_64/bits/mathdef.h: Likewise.
37705
37706         * bits/mathdef.h: Update copyright year.
37707         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37708
37709 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
37710
37711         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
37712         builtins, define the macros in the C99 standard.
37713         (FP_FAST_FMAF): Likewise.
37714         (FP_FAST_FMAL): Likewise.
37715         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
37716         multiply/add.
37717         (FP_FAST_FMAF): Likewise.
37718
37719 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
37720
37721         [BZ #3268]
37722         * math/libm-test.inc (fma_test): Some new testcases.
37723         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
37724         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
37725         y and infinite z.  Do multiplication by C already in long double.
37726         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
37727         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
37728         y and infinite z.  Do bitwise or of inexact bit into u.d.
37729         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
37730         * sysdeps/i386/fpu/s_fmaf.S: Removed.
37731         * sysdeps/i386/fpu/s_fma.S: Removed.
37732         * sysdeps/i386/fpu/s_fmal.S: Removed.
37733
37734 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
37735
37736         [BZ #3268]
37737         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
37738         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
37739         computation is not scheduled after fetestexcept.  Fix value
37740         of minimum denormal long double.
37741
37742 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
37743
37744         [BZ #3268]
37745         * math/libm-test.inc (fma_test): Add some more tests.
37746         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
37747         correctly.
37748
37749 2010-10-15  Andreas Schwab  <schwab@redhat.com>
37750
37751         * scripts/data/localplt-s390-linux-gnu.data: New file.
37752         * scripts/data/localplt-s390x-linux-gnu.data: New file.
37753
37754 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
37755
37756         [BZ #3268]
37757         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
37758         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
37759         instead of dbl-64.
37760         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
37761         inlines.
37762         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
37763         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
37764         if one of x and y is very large and the other is subnormal.
37765         * sysdeps/s390/fpu/s_fmaf.c: New file.
37766         * sysdeps/s390/fpu/s_fma.c: New file.
37767         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
37768         * sysdeps/powerpc/fpu/s_fma.S: New file.
37769         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
37770         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
37771         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
37772
37773 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
37774
37775         [BZ #3268]
37776         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
37777         fma tests.
37778         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
37779         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
37780         * sysdeps/i386/i686/multiarch/s_fma.c: Include
37781         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
37782         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
37783         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
37784         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
37785
37786 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
37787
37788         [BZ #12078]
37789         * posix/regcomp.c (parse_branch): One more memory leak plugged.
37790         * posix/bug-regex31.input: Add test case.
37791
37792 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37793
37794         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
37795         * posix/bug-regex31.input: New file.
37796
37797         [BZ #12078]
37798         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
37799         (parse_sub_exp): Fix last change, use postorder.
37800
37801         * posix/bug-regex31.c: New file.
37802         * posix/Makefile: Add rules to build and run bug-regex31.
37803
37804         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
37805
37806         [BZ #12078]
37807         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
37808
37809         [BZ #12108]
37810         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
37811         to have entries in sys_siglist.
37812
37813         [BZ #12093]
37814         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
37815         be NULL.
37816
37817 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
37818
37819         [BZ #3268]
37820         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
37821         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
37822         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
37823         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
37824         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
37825         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
37826         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
37827         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
37828         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
37829         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
37830         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
37831         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
37832         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
37833         * math/ftestexcept.c (fetestexcept): Likewise.
37834         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
37835         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
37836         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
37837         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
37838         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
37839         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
37840         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
37841
37842 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37843
37844         [BZ #12107]
37845         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
37846         newline.
37847
37848 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
37849
37850         * string/bug-strstr1.c: New file.
37851         * string/Makefile: Add rules to build and run bug-strstr1.
37852
37853 2010-10-05  Eric Blake  <eblake@redhat.com>
37854
37855         [BZ #12092]
37856         * string/str-two-way.h (two_way_long_needle): Always clear memory
37857         when skipping input due to the shift table.
37858
37859 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
37860
37861         [BZ #12005]
37862         * malloc/mcheck.c: Handle large requests.
37863
37864         [BZ #12077]
37865         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
37866         for strncmp and strncasecmp.
37867         * string/stratcliff.c: Add tests for strcmp and strncmp.
37868         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
37869
37870 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37871
37872         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
37873         __set_fpscr.
37874
37875 2010-09-30  Andreas Jaeger  <aj@suse.de>
37876
37877         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
37878         (CGROUP_SUPER_MAGIC): Define.
37879         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37880         Handle btrfs and cgroup file systems.
37881         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
37882         Likewise.
37883
37884 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
37885
37886         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
37887         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
37888
37889 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37890
37891         [BZ #12067]
37892         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
37893         trying to locate the ELF header.
37894
37895 2010-09-27  Andreas Schwab  <schwab@redhat.com>
37896
37897         [BZ #11611]
37898         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
37899         Mask out sign-bit copies when constructing f_fsid.
37900
37901 2010-09-24  Petr Baudis <pasky@suse.cz>
37902
37903         * debug/stack_chk_fail_local.c: Add missing licence exception.
37904         * debug/warning-nop.c: Likewise.
37905
37906 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
37907
37908         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
37909         implementing getdents64 using getdents syscall, set d_type if
37910         __ASSUME_GETDENTS32_D_TYPE.
37911
37912 2010-09-16  Andreas Schwab  <schwab@redhat.com>
37913
37914         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
37915         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
37916
37917 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
37918
37919         [BZ #12037]
37920         * posix/unistd.h: Undo change of feature selection for ftruncate from
37921         2010-01-11.
37922
37923 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
37924
37925         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
37926         detection.
37927
37928 2010-09-20  Andreas Schwab  <schwab@redhat.com>
37929
37930         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
37931         fanotify_mark.
37932         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37933
37934 2010-09-14  Andreas Schwab  <schwab@redhat.com>
37935
37936         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
37937         variables after CHECK_SP call.
37938         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
37939
37940 2010-09-13  Andreas Schwab  <schwab@redhat.com>
37941             Ulrich Drepper  <drepper@redhat.com>
37942
37943         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
37944         re-relocationg ld.so.
37945         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
37946         _dl_init_paths call.
37947         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
37948         here anymore.
37949
37950 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
37951
37952         * resolv/res_init.c (__res_vinit): Count the default server we added.
37953
37954 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
37955             Ulrich Drepper  <drepper@redhat.com>
37956
37957         [BZ #11968]
37958         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
37959         (____longjmp_chk): Use %ebx for saving value across system call.
37960         Add unwind info.
37961
37962 2010-09-06  Andreas Schwab  <schwab@redhat.com>
37963
37964         * manual/Makefile: Don't mix pattern rules with normal rules.
37965
37966 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
37967
37968         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
37969         operation.
37970         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
37971         * libio/iofopncook.c (_IO_cookie_init): Likewise.
37972         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
37973         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
37974         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
37975         Likewise.
37976
37977 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
37978
37979         [BZ #11979]
37980         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
37981         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
37982
37983 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
37984
37985         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
37986         * sysdeps/x86_64/addmul_1.S: Likewise.
37987         * sysdeps/x86_64/lshift.S: Likewise.
37988         * sysdeps/x86_64/mul_1.S: Likewise.
37989         * sysdeps/x86_64/rshift.S: Likewise.
37990         * sysdeps/x86_64/sub_n.S: Likewise.
37991         * sysdeps/x86_64/submul_1.S: Likewise.
37992
37993 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37994
37995         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
37996         Define __sched_param instead of SCHED_* and sched_param when
37997         <bits/sched.h> is included with __need_schedparam defined.
37998         * bits/sched.h [__need_schedparam]
37999         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
38000         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
38001         (__defined_schedparam): Define to 1.
38002         (__sched_param): New structure, identical to sched_param.
38003         (__need_schedparam): Undefine.
38004
38005 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
38006
38007         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
38008         (epoll_create1): Declare.
38009
38010         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
38011
38012 2010-08-31  Andreas Schwab  <schwab@redhat.com>
38013
38014         [BZ #7066]
38015         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
38016         shifting retval into place.
38017
38018 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
38019
38020         * nis/rpcsvc/nis.h: Update copyright notice.
38021         * nis/rpcsvc/nis.x: Likewise.
38022         * nis/rpcsvc/nis_callback.h: Likewise.
38023         * nis/rpcsvc/nis_callback.x: Likewise.
38024         * nis/rpcsvc/nis_object.x: Likewise.
38025         * nis/rpcsvc/nis_tags.h: Likewise.
38026         * nis/rpcsvc/yp.h: Likewise.
38027         * nis/rpcsvc/yp.x: Likewise.
38028         * nis/rpcsvc/ypupd.h: Likewise.
38029         * nis/yp_xdr.c: Likewise.
38030         * nis/ypupdate_xdr.c: Likewise.
38031
38032         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
38033         mainly the body of pmap_getport.  Add parameters to specify timeouts.
38034         (pmap_getport): Use __libc_rpc_getport.
38035         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
38036         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
38037         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
38038
38039 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
38040
38041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
38042         fanotify_mark.
38043
38044 2010-08-27  Roland McGrath  <roland@redhat.com>
38045
38046         * sysdeps/i386/i686/multiarch/Makefile
38047         (CFLAGS-varshift.c): New variable.
38048
38049 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
38050
38051         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
38052         * sysdeps/i386/i686/multiarch/varshift.c: New file.
38053
38054         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
38055
38056         * sysdeps/x86_64/strlen.S: Minimal code improvement.
38057
38058 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
38059
38060         * sysdeps/x86_64/strlen.S: Unroll the loop.
38061         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38062         strlen-sse2 strlen-sse2-bsf.
38063         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
38064         __strlen_no_bsf if bit_Slow_BSF is set.
38065         (__strlen_sse42): Removed.
38066         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
38067         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
38068
38069 2010-08-25  Roland McGrath  <roland@redhat.com>
38070
38071         * sysdeps/x86_64/multiarch/varshift.S: File removed.
38072         * sysdeps/x86_64/multiarch/varshift.c: New file.
38073         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
38074         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
38075         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
38076         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
38077
38078 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
38079
38080         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38081         strlen-sse2 strlen-sse2-bsf.
38082         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
38083         __strlen_sse2_bsf if bit_Slow_BSF is unset.
38084         (__strlen_sse2): Removed.
38085         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
38086         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
38087         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
38088         bit_Slow_BSF for Atom.
38089         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
38090         (index_Slow_BSF): Define.
38091         (HAS_SLOW_BSF): Define.
38092
38093 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
38094
38095         [BZ #10851]
38096         * resolv/res_init.c (__res_vinit): When no server address at all
38097         is given default to loopback.
38098
38099 2010-08-24  Roland McGrath  <roland@redhat.com>
38100
38101         * configure.in: Remove config-name.h generation.
38102         * configure: Regenerated.
38103         * config-name.in: File removed.
38104         * scripts/config-uname.sh: New file.
38105         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
38106         ($(objdir)config-name.h): New target.
38107
38108         * sunrpc/rpc_parse.h: Avoid nested comment.
38109
38110 2010-08-24  Richard Henderson  <rth@redhat.com>
38111             Ulrich Drepper  <drepper@redhat.com>
38112             H.J. Lu  <hongjiu.lu@intel.com>
38113
38114         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
38115         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
38116         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
38117         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
38118         _mm_alignr_epi8 with _mm_loadu_si128.
38119         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
38120         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
38121         (__m128i_shift_right): Removed.
38122         * sysdeps/i386/i686/multiarch/varshift.h: New file.
38123         * sysdeps/i386/i686/multiarch/varshift.S: New file.
38124         * sysdeps/x86_64/multiarch/varshift.h: New file.
38125         * sysdeps/x86_64/multiarch/varshift.S: New file.
38126
38127 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
38128
38129         * configure.in: Move assembler checks to before sysdep dir checking.
38130
38131 2010-08-20  Petr Baudis  <pasky@suse.cz>
38132
38133         * LICENSES: Sync the sunrpc license.
38134
38135 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
38136
38137         * sunrpc/auth_des.c: Update copyright notice once again.
38138         * sunrpc/auth_none.c: Likewise.
38139         * sunrpc/auth_unix.c: Likewise.
38140         * sunrpc/authdes_prot.c: Likewise.
38141         * sunrpc/authuxprot.c: Likewise.
38142         * sunrpc/bindrsvprt.c: Likewise.
38143         * sunrpc/clnt_gen.c: Likewise.
38144         * sunrpc/clnt_perr.c: Likewise.
38145         * sunrpc/clnt_raw.c: Likewise.
38146         * sunrpc/clnt_simp.c: Likewise.
38147         * sunrpc/clnt_tcp.c: Likewise.
38148         * sunrpc/clnt_udp.c: Likewise.
38149         * sunrpc/clnt_unix.c: Likewise.
38150         * sunrpc/des_crypt.c: Likewise.
38151         * sunrpc/des_soft.c: Likewise.
38152         * sunrpc/get_myaddr.c: Likewise.
38153         * sunrpc/getrpcport.c: Likewise.
38154         * sunrpc/key_call.c: Likewise.
38155         * sunrpc/key_prot.c: Likewise.
38156         * sunrpc/openchild.c: Likewise.
38157         * sunrpc/pm_getmaps.c: Likewise.
38158         * sunrpc/pm_getport.c: Likewise.
38159         * sunrpc/pmap_clnt.c: Likewise.
38160         * sunrpc/pmap_prot.c: Likewise.
38161         * sunrpc/pmap_prot2.c: Likewise.
38162         * sunrpc/pmap_rmt.c: Likewise.
38163         * sunrpc/rpc/auth.h: Likewise.
38164         * sunrpc/rpc/auth_unix.h: Likewise.
38165         * sunrpc/rpc/clnt.h: Likewise.
38166         * sunrpc/rpc/des_crypt.h: Likewise.
38167         * sunrpc/rpc/key_prot.h: Likewise.
38168         * sunrpc/rpc/netdb.h: Likewise.
38169         * sunrpc/rpc/pmap_clnt.h: Likewise.
38170         * sunrpc/rpc/pmap_prot.h: Likewise.
38171         * sunrpc/rpc/pmap_rmt.h: Likewise.
38172         * sunrpc/rpc/rpc.h: Likewise.
38173         * sunrpc/rpc/rpc_des.h: Likewise.
38174         * sunrpc/rpc/rpc_msg.h: Likewise.
38175         * sunrpc/rpc/svc.h: Likewise.
38176         * sunrpc/rpc/svc_auth.h: Likewise.
38177         * sunrpc/rpc/types.h: Likewise.
38178         * sunrpc/rpc/xdr.h: Likewise.
38179         * sunrpc/rpc_clntout.c: Likewise.
38180         * sunrpc/rpc_cmsg.c: Likewise.
38181         * sunrpc/rpc_common.c: Likewise.
38182         * sunrpc/rpc_cout.c: Likewise.
38183         * sunrpc/rpc_dtable.c: Likewise.
38184         * sunrpc/rpc_hout.c: Likewise.
38185         * sunrpc/rpc_main.c: Likewise.
38186         * sunrpc/rpc_parse.c: Likewise.
38187         * sunrpc/rpc_parse.h: Likewise.
38188         * sunrpc/rpc_prot.c: Likewise.
38189         * sunrpc/rpc_sample.c: Likewise.
38190         * sunrpc/rpc_scan.c: Likewise.
38191         * sunrpc/rpc_scan.h: Likewise.
38192         * sunrpc/rpc_svcout.c: Likewise.
38193         * sunrpc/rpc_tblout.c: Likewise.
38194         * sunrpc/rpc_util.c: Likewise.
38195         * sunrpc/rpc_util.h: Likewise.
38196         * sunrpc/rpcinfo.c: Likewise.
38197         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
38198         * sunrpc/rpcsvc/key_prot.x: Likewise.
38199         * sunrpc/rpcsvc/klm_prot.x: Likewise.
38200         * sunrpc/rpcsvc/mount.x: Likewise.
38201         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
38202         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
38203         * sunrpc/rpcsvc/rex.x: Likewise.
38204         * sunrpc/rpcsvc/rstat.x: Likewise.
38205         * sunrpc/rpcsvc/rusers.x: Likewise.
38206         * sunrpc/rpcsvc/sm_inter.x: Likewise.
38207         * sunrpc/rpcsvc/spray.x: Likewise.
38208         * sunrpc/rpcsvc/yppasswd.x: Likewise.
38209         * sunrpc/rtime.c: Likewise.
38210         * sunrpc/svc.c: Likewise.
38211         * sunrpc/svc_auth.c: Likewise.
38212         * sunrpc/svc_authux.c: Likewise.
38213         * sunrpc/svc_raw.c: Likewise.
38214         * sunrpc/svc_run.c: Likewise.
38215         * sunrpc/svc_simple.c: Likewise.
38216         * sunrpc/svc_tcp.c: Likewise.
38217         * sunrpc/svc_udp.c: Likewise.
38218         * sunrpc/svc_unix.c: Likewise.
38219         * sunrpc/svcauth_des.c: Likewise.
38220         * sunrpc/xcrypt.c: Likewise.
38221         * sunrpc/xdr.c: Likewise.
38222         * sunrpc/xdr_array.c: Likewise.
38223         * sunrpc/xdr_float.c: Likewise.
38224         * sunrpc/xdr_mem.c: Likewise.
38225         * sunrpc/xdr_rec.c: Likewise.
38226         * sunrpc/xdr_ref.c: Likewise.
38227         * sunrpc/xdr_sizeof.c: Likewise.
38228         * sunrpc/xdr_stdio.c: Likewise.
38229
38230         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
38231         handling.
38232
38233 2010-08-19  Andreas Schwab  <schwab@redhat.com>
38234
38235         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
38236
38237 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
38238
38239         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
38240         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
38241         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
38242         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
38243         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
38244         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
38245         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
38246         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
38247         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
38248         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
38249         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
38250         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
38251         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
38252         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
38253
38254 2010-07-26  Anton Blanchard  <anton@samba.org>
38255
38256         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
38257         * malloc/arena.c (heap_trim): Likewise.
38258
38259 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
38260
38261         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
38262         here.  Not...
38263         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
38264         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
38265
38266 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
38267
38268         * sysdeps/i386/elf/Makefile: New file.
38269
38270 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38271
38272         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
38273         from fanotify_init.
38274         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
38275         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38276
38277 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
38278
38279         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
38280         of strncasecmp_l.
38281         * sysdeps/multiarch/strcmp.S: Likewise.
38282
38283 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
38284
38285         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38286         strncase_l-nonascii.
38287         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38288         Add strncase_l-ssse3.
38289         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
38290         * sysdeps/x86_64/strcmp.S: Likewise.
38291         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
38292         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
38293         * sysdeps/x86_64/strncase.S: New file.
38294         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
38295         * sysdeps/x86_64/strncase_l.S: New file.
38296         * string/Makefile (strop-tests): Add strncasecmp.
38297         * string/test-strncasecmp.c: New file.
38298
38299         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
38300         warning.
38301
38302         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
38303         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
38304
38305 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38306
38307         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
38308
38309 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
38310
38311         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
38312         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
38313         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
38314
38315 2010-05-01  Alan Modra  <amodra@gmail.com>
38316
38317         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
38318         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
38319         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
38320         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
38321         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
38322         tidying.  Don't tail-call __sigjmp_save for static lib.
38323         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
38324         save location.
38325         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
38326         (CALL_MCOUNT): Add eh info, and nop after bl.
38327         (TAIL_CALL_SYSCALL_ERROR): New macro.
38328         (PSEUDO_RET): Use it.
38329         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
38330         Correct save location of integer regs and cr.
38331         (_dl_profile_resolve): Correct cr save location.  Delete nops
38332         after bl when SHARED.  Reduce cfi size a little by better
38333         placement of cfi directives.
38334         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
38335         make a stack frame.  Instead use parm save area as a temp.
38336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
38337         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
38338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
38339         Don't make a stack frame for parent, use parm save area.
38340         Increase child stack frame to 112 bytes.  Don't save unused reg,
38341         and adjust reg usage.  Set up cfi on error recovery and
38342         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
38343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
38344         (__makecontext): Add dummy nop after jump to exit.
38345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
38346         Use correct parm save area and cr save, reduce stack frame.
38347         Correct cfi for possible PSEUDO_RET frame setup.
38348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
38349         Branch to local label emitted by PSEUDO_RET rather than
38350         __syscall_error.
38351
38352 2010-08-12  Andreas Schwab  <schwab@redhat.com>
38353
38354         [BZ #11904]
38355         * locale/programs/locale.c (print_assignment): New function.
38356         (show_locale_vars): Use it.
38357
38358 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
38359
38360         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
38361         field.
38362         (struct statfs64): Likewise.
38363         (_STATFS_F_FLAGS): Define.
38364         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
38365         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38366         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
38367         (ST_VALID): Define locally.
38368         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
38369         __statvfs_getflags, use the provided value.
38370         * sysdeps/unix/sysv/linux/kernel-features.h: Define
38371         __ASSUME_STATFS_F_FLAGS.
38372
38373         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
38374
38375         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
38376         Add sys/fanotify.h.
38377         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
38378         fanotify_mask for GLIBC_2.13.
38379         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
38380         fanotify_init and fanotify_mark.
38381         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38382         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
38383
38384         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
38385         Add prlimit.
38386         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
38387         prlimit64 for GLIBC_2.13.
38388         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
38389         prlimit64.
38390         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
38391         syscall.
38392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
38393         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
38394         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
38395         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
38396         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
38397         add prlimit alias.
38398         * sysdeps/unix/sysv/linux/prlimit.c: New file.
38399
38400         [BZ #11903]
38401         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
38402         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
38403
38404         * nss/Makefile: Add rules to build and run tst-nss-test1.
38405         * shlib-versions: Add entry for libnss_test1.
38406         * nss/nss_test1.c: New file.
38407         * nss/tst-nss-test1.c: New file.
38408
38409         * nss/nsswitch.c (__nss_database_custom): Define new variable.
38410         (__nss_configure_lookup): Set appropriate entry in
38411         __nss_configure_lookup to true.
38412         * nss/nsswitch.h: Define enum with indeces of databases in
38413         databases and __nss_database_custom arrays.  Declare
38414         __nss_database_custom.
38415         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
38416         to avoid using nscd when custom rules are installed.
38417         * nss/getXXbyYY_r.c: Likewise.
38418         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
38419
38420         * nss/nss_files/files-parse.c: Whitespace fixes.
38421
38422 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
38423
38424         [BZ #11883]
38425         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
38426         * posix/fnmatch_loop.c: Likewise.
38427
38428 2010-07-17  Andi Kleen  <ak@linux.intel.com>
38429
38430         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
38431         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
38432         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
38433         * Versions.def [GLIBC_2.13]: Add.
38434
38435 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
38436
38437         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38438         Also fail if tpwd after pwuid call is NULL.
38439
38440 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38441
38442         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
38443         when converting to ms.
38444
38445 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38446
38447         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
38448         EOPNOTSUPP errors with ENOTTY.
38449         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
38450         EOPNOTSUPP errors with ENOTTY.
38451
38452 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
38453
38454         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38455         Add strcasecmp_l-ssse3.
38456         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
38457         strcasecmp.
38458         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
38459         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
38460         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
38461
38462 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
38463
38464         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
38465
38466         * string/Makefile (strop-tests): Add strcasecmp.
38467         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38468         strcasecmp_l-nonascii.
38469         (gen-as-const-headers): Add locale-defines.sym.
38470         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
38471         * sysdeps/x86_64/strcasecmp.S: New file.
38472         * sysdeps/x86_64/strcasecmp_l.S: New file.
38473         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
38474         * sysdeps/x86_64/locale-defines.sym: New file.
38475         * string/test-strcasecmp.c: New file.
38476
38477         * string/test-strcasestr.c: Test both ends of the range of characters.
38478         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
38479
38480 2010-07-29  Roland McGrath  <roland@redhat.com>
38481
38482         [BZ #11856]
38483         * manual/locale.texi (Yes-or-No Questions): Fix example code.
38484
38485 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
38486
38487         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
38488         for ld.so.
38489
38490 2010-07-27  Andreas Schwab  <schwab@redhat.com>
38491
38492         * manual/memory.texi (Malloc Tunable Parameters): Document
38493         M_PERTURB.
38494
38495 2010-07-26  Roland McGrath  <roland@redhat.com>
38496
38497         [BZ #11840]
38498         * configure.in (-fgnu89-inline check): Set and substitute
38499         gnu89_inline, not libc_cv_gnu89_inline.
38500         * configure: Regenerated.
38501         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
38502
38503 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
38504
38505         * string/test-strnlen.c: New file.
38506         * string/Makefile (strop-tests): Add strnlen.
38507         * string/tester.c (test_strnlen): Add a few more test cases.
38508         * string/tst-strlen.c: Better error reporting.
38509
38510         * sysdeps/x86_64/strnlen.S: New file.
38511
38512 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
38513
38514         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
38515         lower-latency instructions.
38516
38517 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
38518
38519         * string/test-strcasestr.c: New file.
38520         * string/test-strstr.c: New file.
38521         * string/Makefile (strop-tests): Add strstr and strcasestr.
38522         * string/str-two-way.h: Don't undefine MAX.
38523         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
38524
38525 2010-07-21  Andreas Schwab  <schwab@redhat.com>
38526
38527         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38528         strcasestr-nonascii.
38529         (CFLAGS-strcasestr-nonascii.c): Define.
38530         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
38531         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
38532         Remove unused attribute.
38533
38534 2010-07-20  Roland McGrath  <roland@redhat.com>
38535
38536         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
38537         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
38538         ld.so.cache was broken.  With it, there is no way to disable dsocaps
38539         like LD_HWCAP_MASK can disable hwcaps.
38540
38541 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38542
38543         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
38544
38545 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
38546
38547         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
38548         call in strcasestr.
38549         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
38550         __strcasestr_sse42_nonascii.
38551         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
38552         strcasestr-nonascii.c.
38553         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
38554
38555 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
38556
38557         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
38558         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
38559         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
38560         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
38561
38562 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
38563
38564         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
38565         fcntl.
38566
38567 2010-07-06  Andreas Schwab  <schwab@redhat.com>
38568
38569         [BZ #11577]
38570         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
38571         dl_signal_cerror.
38572
38573 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
38574
38575         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
38576         _PC_PIPE_BUF using F_GETPIPE_SZ.
38577
38578 2010-07-05  Roland McGrath  <roland@redhat.com>
38579
38580         * manual/arith.texi (Rounding Functions): Fix rint description
38581         implicit in round description.
38582
38583 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
38584
38585         * elf/Makefile: Fix linking for a few tests to make recent linker
38586         happy.
38587
38588 2010-06-30  Andreas Schwab  <schwab@redhat.com>
38589
38590         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
38591         $(common-objpfx)libc_nonshared.a.
38592
38593 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
38594
38595         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
38596         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
38597         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38598         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38599         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
38600         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
38601         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38602         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
38604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
38605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
38606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
38608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
38610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
38611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
38612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
38613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
38615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
38617         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
38618         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
38619         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
38620         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
38621         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
38622         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
38623         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
38624         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
38625         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
38626         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
38627         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
38628         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
38629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
38630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
38631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
38632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
38633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
38634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
38635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
38636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
38637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
38638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
38639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
38640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
38641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
38642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
38643
38644 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
38645
38646         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
38647         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
38648         * string/memmove.c (memmove): Renamed to ...
38649         (MEMMOVE): ...this.  Default to memmove.
38650         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
38651         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
38652         (END_CHK): Define.
38653         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38654         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
38655         mempcpy-ssse3-back memmove-ssse3-back.
38656         * sysdeps/x86_64/multiarch/bcopy.S: New file .
38657         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
38658         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
38659         * sysdeps/x86_64/multiarch/memcpy.S: New file.
38660         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
38661         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
38662         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
38663         * sysdeps/x86_64/multiarch/memmove.c: New file.
38664         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
38665         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
38666         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
38667         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
38668         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
38669         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
38670         Define.
38671         (index_Fast_Copy_Backward): Define.
38672         (HAS_ARCH_FEATURE): Define.
38673         (HAS_FAST_REP_STRING): Define.
38674         (HAS_FAST_COPY_BACKWARD): Define.
38675
38676 2010-06-21  Andreas Schwab  <schwab@redhat.com>
38677
38678         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38679         Restore proper fallback handling.
38680
38681 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
38682
38683         [BZ #11701]
38684         * posix/group_member.c (__group_member): Correct checking loop.
38685
38686         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
38687         OOM in getpwuid_r correctly.  Return error number when the caller
38688         should return, otherwise -1.
38689         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
38690         call returning > 0 value.
38691         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
38692
38693 2010-06-07  Andreas Schwab  <schwab@redhat.com>
38694
38695         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
38696         libc_nonshared.a from targets in modules-names.
38697
38698 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
38699
38700         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
38701         requires it.
38702
38703 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
38704
38705         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
38706         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
38707         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
38708         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
38709
38710 2010-06-02  Andreas Schwab  <schwab@redhat.com>
38711
38712         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
38713
38714 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
38715
38716         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
38717         and F_GETPIPE_SZ.
38718         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
38719         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
38720         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
38721         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
38722         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
38723         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
38724
38725 2010-06-14  Roland McGrath  <roland@redhat.com>
38726
38727         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
38728
38729 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
38730
38731         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
38732         __REDIRECT followed by __THROW.
38733         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
38734         * posix/getopt.h (getopt): Likewise.
38735
38736 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38737
38738         * hurd/lookup-at.c (__file_name_lookup_at): Accept
38739         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
38740         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
38741         in AT_FLAGS.
38742         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
38743         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
38744
38745 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
38746
38747         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
38748
38749 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
38750
38751         [BZ #11640]
38752         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38753         Properly check family and model.
38754
38755 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
38756
38757         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
38758
38759 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
38760
38761         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
38762
38763 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
38764
38765         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
38766         symbol reference.
38767
38768 2010-05-19  Andreas Schwab  <schwab@redhat.com>
38769
38770         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
38771         symbol reference.
38772
38773 2010-05-21  Andreas Schwab  <schwab@redhat.com>
38774
38775         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
38776         and internal_recvmmsg.
38777         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
38778         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
38779         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
38780         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
38781
38782         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
38783         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
38784         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
38785
38786 2010-05-20  Andreas Schwab  <schwab@redhat.com>
38787
38788         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
38789
38790 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
38791
38792         POWER7 optimizations.
38793         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
38794         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
38795
38796 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
38797
38798         * version.h: Update for 2.13 development version.
38799
38800 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
38801
38802         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
38803         exceptions.  Return 0.
38804
38805 2010-05-07  Roland McGrath  <roland@redhat.com>
38806
38807         * elf/ldconfig.c (main): Add a const.
38808
38809 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
38810
38811         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
38812         (args_options): Add no-idn option.
38813         (ahosts_keys_int): Add idn_flags to ai_flags.
38814         (parse_option): Handle 'i' option to clear idn_flags.
38815
38816         * malloc/malloc.c (_int_free): Possible race in the most recently
38817         added check.  Only act on the data if no current modification
38818         happened.
38819
38820 See ChangeLog.17 for earlier changes.