9c0a003aa8352eb5ae9767cdd213ce4f741663f7
[jlayton/glibc.git] / ChangeLog
1 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
4         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
5         Leonard and Allan McRae.
6
7 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8
9         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist: New
10         file
11         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
12         New file
13         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist: New
14         file.
15         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist: New
16         file.
17         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
18         New file.
19         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist: New
20         file.
21         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist: New
22         file.
23         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
24         New file.
25         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
26         New file.
27         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
28         New file.
29         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30         New file.
31         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
32         New file.
33         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
34         New file.
35
36 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37
38         * nptl/shlib-versions: Change powerpc*le start to 2.17.
39         * shlib-versions: Likewise.
40
41 2014-02-04  Roland McGrath  <roland@hack.frob.com>
42             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43
44         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
45         (abilist-pattern): New variable, set to %-le.abilist.
46
47         * Makerules (abilist-pattern): New variable.
48         (vpath): Use $(abilist-pattern) in place of %.abilist.
49         (check-abi-% pattern rule): Likewise.
50         (check-abi, update-abi): Likewise.
51
52 2014-02-04  Eric Wong  <normalperson@yhbt.net>
53
54         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55
56 2014-02-04  Eric Wong  <normalperson@yhbt.net>
57
58         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59
60 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
61
62         * manual/startup.texi: Add next, previous, and top entries for
63         the `Program Arguments' and `Environment Variables' nodes.
64
65 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
66
67         * manual/macros.texi: Add comments before MTASC-safety macros.
68
69         * manual/users.texi: Document MTASC-safety properties.
70
71         * manual/threads.texi (pthread_key_create, pthread_key_delete,
72         pthread_getspecific, pthread_setspecific): Format with
73         @deftypefun, and add @safety note.
74         * manual/signal.texi: Move comments that analyze the above
75         functions to their home place.
76
77 2014-02-03  Allan McRae  <allan@archlinux.org>
78
79         * po/sl.po: Update Slovenian translation from translation project.
80
81 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
82
83         * manual/time.texi (timegm): Add missing blank after @c.
84         Reported by Joseph Myers <joseph@codesourcery.com>.
85
86 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
87
88         * manual/check-safety.sh: New.
89         * manual/Makefile ($(objpfx)stamp-summary): Run it.
90
91         * manual/terminal.texi: Document MTASC-safety properties.
92
93         * manual/filesys.texi: Document MTASC-safety properties.
94
95         * manual/errno.texi: Document MTASC-safety properties.
96
97         * manual/intro.texi: Document safety identifiers and
98         conditionals.
99
100         * manual/string.texi (wcstok): Fix prototype.
101         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
102
103         * manual/time.texi: Document MTASC-safety properties.
104
105         * manual/string.texi: Document MTASC-safety properties.
106
107         * manual/threads.texi: Document MTASC-safety properties.
108
109         * manual/stdio.texi: Document MTASC-safety properties.
110
111         * manual/syslog.texi: Document MTASC-safety properties.
112
113         * manual/sysinfo.texi: Document MTASC-safety properties.
114
115         * manual/startup.texi: Document MTASC-safety properties.
116
117         * manual/socket.texi: Document MTASC-safety properties.
118
119         * manual/signal.texi: Document MTASC-safety properties.
120
121 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
122
123         * manual/setjmp.texi: Document MTASC-safety properties.
124
125         * manual/search.texi: Document MTASC-safety properties.
126
127         * manual/resource.texi: Document MTASC-safety properties.
128
129         * manual/process.texi: Document MTASC-safety properties.
130
131         * manual/platform.texi: Document MTASC-safety properties.
132
133         * manual/pipe.texi: Document MTASC-safety properties.
134
135         * manual/pattern.texi: Document MTASC-safety properties.
136
137         * manual/message.texi: Document MTASC-safety properties.
138
139         [BZ #12751]
140         * manual/memory.texi: Document MTASC-safety properties.
141
142         * manual/math.texi: Document MTASC-safety properties.
143
144         * manual/locale.texi: Document MTASC-safety properties.
145
146         * manual/llio.texi: Document MTASC-safety properties.
147
148         * manual/libdl.texi: New.
149
150         * manual/lang.texi: Document MTASC-safety properties.
151
152         * manual/job.texi: Document MTASC-safety properties.
153
154         * manual/getopt.texi: Document MTASC-safety properties.
155
156         * manual/ctype.texi: Document MTASC-safety properties.
157
158 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
159
160         [BZ #16046]
161         * csu/libc-tls.c (static_map): Remove variable.
162         (__libc_setup_tls): Use main executable's link map for TLS data.
163         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
164         casing for LM_ID_BASE and GL(dl_nns).
165         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
166         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
167         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
168         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
169         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
170         member.
171         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
172         l_phnum members.
173
174 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
175
176         * manual/debug.texi: Document MTASC-safety properties.
177
178 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
179
180         [BZ #16510]
181         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
182         of __x86_64__ when disabling x87 inline functions.
183
184 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
185
186         * manual/charset.texi: Document MTASC-safety properties.
187
188         * manual/crypt.texi: Document MTASC-safety properties.
189
190         * manual/conf.texi: Document MTASC-safety properties.
191
192         * manual/arith.texi: Document MTASC-safety properties.
193
194         * manual/argp.texi: Document MTASC-safety properties.
195
196         * manual/macros.texi: Introduce macros to document multi
197         thread, asynchronous signal and asynchronous cancellation
198         safety properties.
199         * manual/intro.texi: Introduce the properties themselves.
200
201 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
202
203         * sysdeps/sh/sh4/Makefile: New file.
204
205 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
206
207         * math/gen-libm-test.pl ($srcdir): New variable.
208         ($auto_input): Use it.
209
210 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
211
212         [BZ #16506]
213         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
214         access beyond array bounds when parsing netgroups file.
215
216         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
217         the old buffer before realloc.
218
219 2014-01-27  Allan McRae  <allan@archlinux.org>
220
221         * po/fr.po: Update French translation from translation project.
222
223 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
224
225         * sysdeps/sh/libm-test-ulps: Regenerate.
226
227 2014-01-24  David S. Miller  <davem@davemloft.net>
228
229         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
230
231 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
232
233         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
234         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
235
236 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
237
238         [BZ #16474]
239         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
240         string pointers after reallocation.
241
242 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
243
244         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
245         __SH4A__ instead of __SH_FPU_ANY__.
246
247 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
248
249         * sysdeps/sh/fpu_control.h: New file.
250         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
251         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
252         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
253         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
254         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
255         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
256         * sysdeps/sh/sys/ucontext.h: Remove.
257         * sysdeps/sh/sys: Remove directory.
258
259 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
260
261         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
262         s390/sys/ucontext.h.
263         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
264         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
265
266 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
267
268         [BZ #15605]
269         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
270
271 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
272
273         [BZ#16431]
274         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
275         Adjust the vDSO correctly for internal calls.
276         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
277
278 2014-01-20  Allan McRae  <allan@archlinux.org>
279
280         * po/ca.po: Update Catalan translation from translation project.
281
282 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
283
284         * sysdeps/s390/sotruss-lib.c: New file.
285
286 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
287
288         [BZ#16430]
289         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
290         (__GI___gettimeofday): Alias for a different internal symbol to avoid
291         local calls issues by not having a PLT stub required for IFUNC calls.
292         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
293
294 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
295
296         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
297         * math/test-fpucw-static.c: Likewise.
298
299 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
300
301         [BZ #16453]
302         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
303
304 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
305
306         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
307         implementation for powerpc.
308
309 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
310
311         [BZ #14782]
312         * sysdeps/posix/system.c (__libc_system): Do not enable
313         asynchronous cancellation.
314
315 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
316
317         [BZ #16427]
318         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
319         handling only for numbers special also in the IEEE case.
320
321 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
322
323         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
324
325 2014-01-11  Allan McRae  <allan@archlinux.org>
326
327         * po/bg.po: Update Bulgarian translation from translation project.
328
329         * po/de.po: Update German translation from translation project.
330
331 2014-01-10  Roland McGrath  <roland@hack.frob.com>
332
333         * sysdeps/generic/gcc-compat.h: New file.
334
335 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
336
337         * benchtests/asin-inputs: Correct slow inputs.
338         * benchtests/acos-inputs: Likewise.
339
340 2014-01-10  Allan McRae  <allan@archlinux.org>
341
342         * po:sv.po: Update Swedish translation from translation project.
343
344         * po/vi.po: Update Vietnamese translation from translation project.
345
346         * po/eo.po: Update Esperanto translation from translation project.
347
348         * po/cs.po: Update Czech translation from translation project.
349
350         * po/nl.po: Update Dutch translation from translation project.
351
352         * po/pl.po: Update Polish translation from translation project.
353
354         * po/ru.po: Update Russian translation from translation project.
355
356         * po/uk.po: Update Ukrainian translation from translation project.
357
358 2014-01-08  Brooks Moses  <bmoses@google.com>
359
360         * elf/dl-load.c: Fix comment typo.
361
362 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
363
364         * po/header.pot: Rename to...
365         * po/pot.header: ... this.
366         * po/Makefile: Use pot.header.
367
368 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
369             Maxim Kuvyrkov  <maxim@kugelworks.com>
370
371         [BZ #16394]
372         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
373         SRC and DEST against LEN.
374
375 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
376
377         [BZ #16414]
378         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
379         implementation.
380         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
381
382 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
383
384         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
385
386 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
387
388         [BZ #16408]
389         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
390         for large positive arguments.
391
392 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
393
394         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
395
396         * math/auto-libm-test-in: Mark various tests with
397         xfail-rounding:ldbl-128ibm.
398         * math/auto-libm-test-out: Regenerated.
399
400         [BZ #16407]
401         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
402         Increase overflow threshold.
403
404 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
405
406         [BZ #14286]
407         * stdio-common/vfprintf.c: Check for integer overflow.
408
409 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
410
411         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
412         the first argument and return value of __tls_get_addr_internal.
413
414 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
415
416         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
417         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
418
419 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
420
421         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
422         * sysdeps/s390/rtld-global-offsets.sym: New file.
423         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
424         GLIBC_2.19 symbol.
425         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
426         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
427         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
428         ... this.
429         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
430         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
431         ... this.
432         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
433         Regenerate.
434         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
435         Regenerate.
436         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
437         halfs of GPRs for high_gprs contexts.
438         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
439         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
440         field.
441         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
442         uc_flags field.
443         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
444         64 bit versions:
445         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
446         for high GPRs (uc_high_gprs) and for future extensions
447         (__reserved).
448         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
449         for future extensions (__reserved).
450         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
451         64 bit versions:
452         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
453         SC_HIGHGPRS offset definition.
454         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
455         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
456
457 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
458
459         * Versions.def: Add GLIBC_2.19 for libpthread.
460         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
461         siglongjmp for libpthread with GLIBC_2.19 symver.
462         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
463         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
464         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
465         * sysdeps/s390/__longjmp.c: New file.
466         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
467         * sysdeps/s390/longjmp.c: New file.
468         * sysdeps/s390/setjmp.S: New file.
469         * sysdeps/s390/sigjmp.S: New file.
470         * sysdeps/s390/v1-longjmp.c: New file.
471         * sysdeps/s390/v1-setjmp.h: New file.
472         * sysdeps/s390/v1-sigjmp.c: New file.
473         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
474         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
475         GLIBC_2.19 version.
476         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
477         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
478         versioned symbols for ____longjmp_chk.
479         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
480         Likewise.
481         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
482         Regenerate.
483         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
484         Regenerate.
485         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
486         Regenerate.
487         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
488         Regenerate.
489         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
490         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
491         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
492         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
493         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
494         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
495         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
496         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
497         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
498         * sysdeps/s390/rtld-__longjmp.c: New file.
499         * sysdeps/s390/rtld-setjmp.S: New file.
500
501 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
502
503         [BZ #16400]
504         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
505         Return -__logl (x) for small positive arguments without evaluating
506         a polynomial.
507
508 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
509
510         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
511         Rename to ...
512         (__ptrace_peeksiginfo_args): ... this.
513         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
514         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
515         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
516
517 2014-01-06  Allan McRae  <allan@archlinux.org>
518
519         * inet/netinet/in.h: Fix typo in comment.
520
521 2014-01-05  Andreas Jaeger  <aj@suse.de>
522
523         * sysdeps/i386/fpu/libm-test-ulps: Update.
524
525 2014-01-05  Allan McRae  <allan@archlinux.org>
526
527         * po/libc.pot: Regenerated.
528
529         * malloc/memusagestat.c: Fix gettext call formatting.
530
531 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
532
533         * nscd/nscd.c: Improve usage() output.
534
535 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
536
537         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
538         * sysdeps/unix/sysv/linux/configure: Regenerated.
539         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
540         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
541
542 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
543
544         [BZ #16390]
545         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
546         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
547
548 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
549
550         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
551         extra tokens at end of #undef directive.
552         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
553         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
554         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
555
556 2014-01-03  Andrew Hunter  <ahh@google.com>
557
558         * elf/dl-open.c (dl_open_worker): New comment.
559         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Use
560         atomic_compare_and_exchange_bool_acq
561         (_dl_allocate_static_tls): Block signals.
562         * elf/dl-tls.c (allocate_and_init): Return void.
563         (_dl_update_slotinfo): Block signals, use atomic update.
564
565 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
566
567         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
568
569         * math/auto-libm-test-in: Mark various tests with
570         xfail-rounding:ldbl-128ibm.
571         * math/auto-libm-test-out: Regenerated.
572
573 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
574
575         [BZ #16386]
576         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
577         numbers with subnormal high part when calculating exponent.
578
579         [BZ #16385]
580         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
581         fabs.
582
583         [BZ #16384]
584         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
585         M_LN2l.
586         (__ieee754_acoshl): Use __log1pl not __log1p.
587
588 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
589
590         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all,
591         ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry,
592         __failing_morecore, ptmalloc_init, dump_heap, new_heap, grow_heap,
593         heap_trim, _int_new_arena, get_free_list, reused_arena, arena_get2):
594         Convert to GNU style.
595         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init,
596         mem2mem_check, mem2chunk_check, top_check, realloc_check,
597         memalign_check, __malloc_set_state): Likewise.
598         * malloc/mallocbug.c (main): Likewise.
599         * malloc/malloc.c (__malloc_assert, malloc_init_state, free_perturb,
600         do_check_malloced_chunk, do_check_malloc_state, sysmalloc, systrim,
601         mremap_chunk, __libc_malloc, __libc_free, __libc_realloc, _mid_memalign,
602         _int_malloc, malloc_consolidate, _int_realloc, _int_memalign, mtrim,
603         musable, __libc_mallopt, __posix_memalign, malloc_info): Likewise.
604         * malloc/malloc.h: Likewise.
605         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook, mallochook,
606         memalignhook, reallochook, mabort): Likewise.
607         * malloc/mcheck.h: Likewise.
608         * malloc/memusage.c (update_data, me, malloc, realloc, calloc, free, mmap,
609         mmap64, mremap, munmap, dest): Likewise.
610         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
611         * malloc/morecore.c (__default_morecore): Likewise.
612         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
613         * malloc/obstack.c (_obstack_begin, _obstack_newchunk,
614         _obstack_allocated_p, obstack_free, _obstack_memory_used,
615         print_and_abort): Likewise.
616         * malloc/obstack.h: Likewise.
617         * malloc/set-freeres.c (__libc_freeres): Likewise.
618         * malloc/tst-mallocstate.c (main): Likewise.
619         * malloc/tst-mtrace.c (main): Likewise.
620         * malloc/tst-realloc.c (do_test): Likewise.
621
622 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
623
624         [BZ #16366]
625         * nscd/netgroupcache.c (do_notfound): New function.
626         (addgetnetgrentX): Use it.
627
628         [BZ # 16365]
629         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
630         NSS_STATUS_NOTFOUND.
631
632 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
633
634         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
636
637 2014-01-01  Allan McRae  <allan@archlinux.org>
638
639         * scripts/update-copyrights: Update configure input file suffix.
640
641         * NEWS: Update copyright year.
642         * catgets/gencat.c: Likewise.
643         * csu/version.c: Likewise.
644         * debug/catchsegv.sh: Likewise.
645         * debug/pcprofiledump.c: Likewise.
646         * debug/xtrace.sh: Likewise.
647         * elf/ldconfig.c: Likewise.
648         * elf/ldd.bash.in: Likewise.
649         * elf/pldd.c: Likewise.
650         * elf/sotruss.ksh: Likewise.
651         * elf/sprof.c: Likewise.
652         * iconv/iconv_prog.c: Likewise.
653         * iconv/iconvconfig.c: Likewise.
654         * locale/programs/locale.c: Likewise.
655         * locale/programs/localedef.c: Likewise.
656         * login/programs/pt_chown.c: Likewise.
657         * malloc/memusage.sh: Likewise.
658         * malloc/memusagestat.c: Likewise.
659         * malloc/mtrace.pl: Likewise.
660         * manual/libc.texinfo: Likewise.
661         * nscd/nscd.c: Likewise.
662         * nss/getent.c: Likewise.
663         * nss/makedb.c: Likewise.
664         * posix/getconf.c: Likewise.
665         * scripts/test-installation.pl: Likewise.
666
667         * All files with FSF copyright notices: Update copyright dates
668         using scripts/update-copyrights.
669         * intl/plural.c: Regenerated.
670         * locale/programs/charmap-kw.h: Likewise.
671         * locale/programs/locfile-kw.h: Likewise.
672
673 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
674
675         * sysdeps/unix/sysv/linux/configure: Regenerated.
676         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
677         the linux/fanotify.h header.
678         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
679         HAVE_LINUX_FANOTIFY_H is defined.
680
681 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
682
683         * benchtests/cos-inputs: New inputs.
684         * benchtests/sin-inputs: Likewise.
685
686         * benchtests/atan-inputs: New inputs. Fix name of multiple
687         precision fallback inputs.
688
689         * benchtests/atanh-inputs: New inputs.
690         * benchtests/tanh-inputs: Likewise.
691
692         * benchtests/acosh-inputs: New inputs.
693         * benchtests/asinh-inputs: Likewise.
694
695         * benchtests/cosh-inputs: New inputs.
696         * benchtests/sinh-inputs: Likewise.
697
698         * benchtests/acos-inputs: Add more inputs.
699         * benchtests/asin-inputs: Likewise.
700
701 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
702
703         [BZ #16375]
704         * manual/arith.texi: Fix spelling.
705         * manual/charset.texi: Likewise.
706         * manual/errno.texi: Likewise.
707         * manual/filesys.texi: Likewise.
708         * manual/lang.texi: Likewise.
709         * manual/llio.texi: Likewise.
710         * manual/locale.texi: Likewise.
711         * manual/message.texi: Likewise.
712         * manual/resource.texi: Likewise.
713         * manual/search.texi: Likewise.
714         * manual/setjmp.texi: Likewise.
715         * manual/stdio.texi: Likewise.
716         * manual/string.texi: Likewise.
717         * manual/sysinfo.texi: Likewise.
718         * manual/time.texi: Likewise.
719
720 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
721
722         * po/sl.po: New file.
723
724 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
725
726         * .gitignore: Add core/.gdbinit/.gdb_history.
727
728 2013-12-27  Allan McRae  <allan@archlinux.org>
729
730         [BZ #16369]
731         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
732         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
733
734 2013-12-24  Brooks Moses  <bmoses@google.com>
735
736         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
737         all compilers that claim C++98 compliance, not just GCC.
738         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
739         Likewise.
740
741 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
742
743         * NEWS: Restore accidentally deleted bug-fix entries.
744
745 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
746             Ondřej Bílka  <neleai@seznam.cz>
747
748         [BZ #15073]
749         * malloc/malloc.c (_int_free): Perform sanity check only if we
750         have_lock.
751
752 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
753
754         [BZ #12986]
755         * manual/stdio.texi (String Input Conversions): Clarify that character
756         classes are not supported.
757
758 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
759
760         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
761
762 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
763
764         [BZ #16337]
765         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
766         Calculate results for small negative arguments directly rather
767         than using reflection formula with special underflow handling.
768
769         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
770         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
771         sysdeps/unix/bsd/bsd4.4/syscalls.list.
772         (fchflags): Likewise.
773         (revoke): Likewise.
774         (setlogin): Likewise.
775         (sigaltstack): Likewise.
776         (wait4): Likewise.
777         (sigblock): Remove.
778         (sigsetmask): Likewise.
779         (wait3): Likewise.
780         (waitpid): Likewise.
781         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
782         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
783         file.
784         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
785         * sysdeps/unix/bsd/Makefile: ... here.
786         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
787         * sysdeps/unix/bsd/Versions: ... here.
788         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
789         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
790         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
791         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
792         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
793         * sysdeps/unix/bsd/sigblock.c: ... here.
794         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
795         * sysdeps/unix/bsd/sigsetmask.c: ... here.
796         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
797         * sysdeps/unix/bsd/sigvec.c: ... here.
798         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
799         * sysdeps/unix/bsd/tcdrain.c: ... here.
800         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
801         * sysdeps/unix/bsd/tcgetattr.c: ... here.
802         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
803         * sysdeps/unix/bsd/tcsetattr.c: ... here.
804         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
805         * sysdeps/unix/bsd/wait.c: ... here.
806         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
807         * sysdeps/unix/bsd/wait3.c: ... here.
808         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
809         * sysdeps/unix/bsd/waitpid.c: ... here.
810
811 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
812
813         [BZ #16356]
814         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
815         round-to-nearest for [!USE_AS_EXPM1L].
816         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
817         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
818         more tests of exp and exp10.  Expect some exp10 tests to miss
819         exceptions or fail in directed rounding modes.
820         * math/auto-libm-test-out: Regenerated.
821         * math/libm-test.inc (exp10_tonearest_test_data): New array.
822         (exp10_test_tonearest): New function.
823         (exp10_towardzero_test_data): New array.
824         (exp10_test_towardzero): New function.
825         (exp10_downward_test_data): New array.
826         (exp10_test_downward): New function.
827         (exp10_upward_test_data): New array.
828         (exp10_test_upward): New function.
829         (main): Call the new functions.
830         * sysdeps/i386/fpu/libm-test-ulps: Update.
831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
832
833 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
834
835         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
836         asinh, atan, atan2, atanh, cbrt, cos and cosh.
837         * math/auto-libm-test-out: Regenerated.
838         * math/libm-test.inc (acosh_test_data): Add more tests.
839         (atanh_test_data): Likewise.
840         (ceil_test_data): Likewise.
841         (copysign_test_data): Likewise.
842         * sysdeps/i386/fpu/libm-test-ulps: Update.
843         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
844
845         * timezone/checktab.awk: Update from tzcode 2013i.
846         * timezone/private.h: Likewise.
847         * timezone/scheck.c: Likewise.
848         * timezone/tzfile.h: Likewise.
849         * timezone/tzselect.ksh: Likewise.
850         * timezone/zdump.c: Likewise.
851         * timezone/zic.c: Likewise.
852
853         * math/auto-libm-test-in: Add tests of cpow.
854         * math/auto-libm-test-out: Regenerated.
855         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
856         * * math/gen-auto-libm-tests.c (func_calc_method): Add value
857         mpc_cc_c.
858         (func_calc_desc): Add mpc_cc_c union field.
859         (test_functions): Add cpow.
860         (special_fill_2pi): New function.
861         (special_real_inputs): Add 2pi.
862         (calc_generic_results): Handle mpc_cc_c.
863         * sysdeps/i386/fpu/libm-test-ulps: Update.
864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
865
866         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
867         csqrt, ctan and ctanh.
868         * math/auto-libm-test-out: Regenerated.
869         * math/libm-test.inc (TEST_COND_x86_64): New macro.
870         (TEST_COND_x86): Likewise.
871         (ccos_test_data): Use AUTO_TESTS_c_c.
872         (ccosh_test_data): Likewise.
873         (cexp_test_data): Likewise.
874         (clog_test_data): Likewise.
875         (csqrt_test_data): Likewise.
876         (ctan_test_data): Likewise.
877         (ctan_tonearest_test_data): Likewise.
878         (ctan_towardzero_test_data): Likewise.
879         (ctan_downward_test_data): Likewise.
880         (ctan_upward_test_data): Likewise.
881         (ctanh_test_data): Likewise.
882         (ctanh_tonearest_test_data): Likewise.
883         (ctanh_towardzero_test_data): Likewise.
884         (ctanh_downward_test_data): Likewise.
885         (ctanh_upward_test_data): Likewise.
886         * math/gen-auto-libm-tests.c (func_calc_method): Add value
887         mpc_c_c.
888         (func_calc_desc): Add mpc_c_c union field.
889         (FUNC_mpc_c_c): New macro.
890         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
891         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
892         ctanh.
893         (special_fill_min_subnorm_p120): New function.
894         (special_real_inputs): Add min_subnorm_p120.
895         (calc_generic_results): Handle mpc_c_c.
896         * sysdeps/i386/fpu/libm-test-ulps: Update.
897         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
898
899 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
900
901         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin,
902         do_sin_slow): New functions.
903         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2,
904         cslow2, csloww1, csloww2): Use the new functions.
905
906         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
907         Use M to change sign of result instead of X.  Assume X is
908         positive.
909         (csloww1): Likewise.
910         (__sin): Adjust.
911         (__cos): Adjust.
912
913         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
914         arguments A and DA.
915         (__sin): Adjust.
916         (__cos): Likewise.
917
918         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
919         (__cos): Likewise.
920         (sloww1): Don't adjust sign of DX.
921         (csloww1): Likewise.
922         (sloww2): Use X directly and don't adjust sign of DX.
923         (csloww2): Likewise.
924
925 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
926
927         * math/auto-libm-test-in: Add tests of cabs and carg.
928         * math/auto-libm-test-out: Regenerated.
929         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
930         (carg_test_data): Likewise.
931         * math/gen-auto-libm-tests.c (func_calc_method): Add value
932         mpc_c_f.
933         (func_calc_desc): Add mpc_c_f union field.
934         (test_functions): Add cabs and carg.
935         (calc_generic_results): Handle mpc_c_f.
936
937         * sysdeps/powerpc/powerpc32/libgcc-compat.S
938         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
939         as a macro and a compat symbol.
940         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
941         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
942         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
943         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
944         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
945         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
946         not use .hidden.
947         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
948         Likewise.
949         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
950         Likewise.
951         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
952         Likewise.
953         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
954         Likewise.
955         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
956         Likewise.
957         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
958         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
959         from GLIBC_2.3.2.
960
961 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
962
963         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
964
965 2013-12-19  Paul Pluzhnikov  <ppluzhnikov@google.com>
966
967         * elf/dl-misc.c (ptr_to_signal_safe_allocator_header): New function.
968         (__signal_safe_memalign, __signal_safe_free): Use it.
969         (__signal_safe_realloc): Likewise.
970
971 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
972
973         * manual/texinfo.tex: Update to version 2013-11-26.10 with
974         trailing whitespace removed.
975         * scripts/config.guess: Update to version 2013-11-29.
976         * scripts/config.sub: Update to version 2013-10-01.
977
978         * math/auto-libm-test-in: Add tests of sincos.
979         * math/auto-libm-test-out: Regenerated.
980         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
981         * math/gen-auto-libm-tests.c (func_calc_method): Add value
982         mpfr_f_11.
983         (func_calc_desc): Add mpfr_f_11 union field.
984         (test_functions): Add sincos.
985         (calc_generic_results): Handle mpfr_f_11.
986         * sysdeps/i386/fpu/libm-test-ulps: Update.
987         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
988
989 2013-12-19  Andreas Schwab  <schwab@suse.de>
990
991         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
992         CALL_MCOUNT.
993         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
994         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
995         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
996
997 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
998
999         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
1000         * sysdeps/i386/fpu/libm-test-ulps: Update.
1001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1002
1003         [BZ #16293]
1004         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
1005         round-to-nearest mode when using frndint.
1006         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
1007         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
1008         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
1009         Likewise.
1010         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
1011         sinh test to fail.
1012         * math/auto-libm-test-out: Regenerated.
1013         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
1014         (TEST_COND_x86): Likewise.
1015         (expm1_tonearest_test_data): New array.
1016         (expm1_test_tonearest): New function.
1017         (expm1_towardzero_test_data): New array.
1018         (expm1_test_towardzero): New function.
1019         (expm1_downward_test_data): New array.
1020         (expm1_test_downward): New function.
1021         (expm1_upward_test_data): New array.
1022         (expm1_test_upward): New function.
1023         (main): Run the new test functions.
1024         * sysdeps/i386/fpu/libm-test-ulps: Update.
1025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1026
1027         * include/features.h: Update comment documenting feature test
1028         macros.  Mention _DEFAULT_SOURCE in comment.
1029         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
1030         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
1031         _BSD_SOURCE and _SVID_SOURCE.
1032         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
1033         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
1034         !_SVID_SOURCE]: Likewise.
1035         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1036         (__USE_POSIX_IMPLICITLY): Define.
1037         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1038         (_POSIX_SOURCE): Undefine and redefine.
1039         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1040         (_POSIX_C_SOURCE): Likewise.
1041         * manual/creature.texi (_DEFAULT_SOURCE): Document.
1042         (Feature Test Macros): Update documentation of default features.
1043
1044 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1045
1046         * benchtests/Makefile: Add bench-strtok.
1047         * benchtests/bench-strtok.c: New file: strtok benchtest.
1048
1049 2013-12-19  Allan McRae  <allan@archlinux.org>
1050
1051         * manual/install.texi: Suppress menu for plain text output.
1052         * INSTALL: Regenerated.
1053
1054 2013-12-18  Andrew Hunter  <ahh@google.com>
1055
1056         * sysdeps/generic/ldsodefs.h (__signal_safe_memalign): New prototype.
1057         (__signal_safe_malloc, __signal_safe_free): Likewise.
1058         (__signal_safe_realloc, __signal_safe_calloc): Likewise.
1059         * elf/dl-misc.c (__signal_safe_allocator_header): New struct.
1060         (__signal_safe_memalign, __signal_safe_malloc): New function.
1061         (__signal_safe_free, __signal_safe_realloc): Likewise.
1062         (__signal_safe_calloc): Likewise.
1063         * elf/dl-tls.c (allocate_dtv, _dl_clear_dtv): Call signal-safe
1064         functions.
1065         (_dl_deallocate_tls, _dl_update_slotinfo): Likewise.
1066
1067 2013-12-18  Andrew Hunter  <ahh@google.com>
1068
1069         * elf/Versions (ld): Add _dl_clear_dtv.
1070         * sysdeps/generic/ldsodefs.h (_dl_clear_dtv): New prototype.
1071         * elf/dl-tls.c (_dl_clear_dtv): New function.
1072         * nptl/allocatestack.c (get_cached_stack): Call _dl_clear_dtv.
1073
1074 2013-12-18  Andrew Hunter  <ahh@google.com>
1075
1076         * sysdeps/generic/ldsodefs.h (_dl_mask_all_signals): New prototype.
1077         (_dl_unmask_signals): Likewise.
1078         * sysdeps/mach/hurd/dl-sysdep.h (_dl_mask_all_signals): New stub.
1079         (_dl_unmask_all_signals): Likewise.
1080         * sysdeps/unix/sysv/linux/dl-sysdep.h (_dl_mask_all_signals): New prototype.
1081         (_dl_unmask_all_signals): Likewise.
1082         * sysdeps/unix/sysv/linux/dl-sysdep.c (_dl_mask_all_signals): New function.
1083         (_dl_unmask_signals): Likewise.
1084
1085 2013-12-18  Brooks Moses  <bmoses@google.com>
1086
1087         [BZ #15846]
1088         * misc/getauxval.c: Include errno.h.
1089         (__getauxval): Set errno to ENOENT if the requested type is not
1090         found.
1091         * misc/sys/auxv.h (getauxval): Document that it may set errno;
1092         don't declare with __attribute_const__.
1093         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
1094         * manual/startup.texi: Document that getauxval sets errno.
1095
1096 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
1097
1098         * math/auto-libm-test-in: Add tests of jn and yn.
1099         * math/auto-libm-test-out: Regenerated.
1100         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
1101         (yn_test_data): Likewise.
1102         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1103         mpfr_if_f.
1104         (func_calc_desc): Add mpfr_if_f union field.
1105         (FUNC_mpfr_if_f): New macro.
1106         (test_functions): Add jn and yn.
1107         (calc_generic_results): Assert type of second input for
1108         mpfr_ff_f.  Handle mpfr_if_f.
1109         (output_for_one_input_case): Disable all checking for arguments
1110         fitting floating-point types in case of an integer argument.
1111         * sysdeps/i386/fpu/libm-test-ulps: Update.
1112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1113
1114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
1115         Don't expect fegetround reference in libm.so.
1116
1117 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1118
1119         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
1120         $(config-cflags-nofma).
1121
1122 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
1123
1124         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
1125         * math/auto-libm-test-out: Regenerated.
1126
1127         [BZ #16338]
1128         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
1129         to determine exponent and adjust argument to have exponent of -1.
1130         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
1131         log2.
1132         * math/auto-libm-test-out: Regenerated.
1133         * sysdeps/i386/fpu/libm-test-ulps: Update.
1134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1135
1136 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
1137
1138         * manual/probes.texi: Remove cases when per-thread arenas are
1139         disabled.
1140
1141 2013-12-18  Andreas Schwab  <schwab@suse.de>
1142
1143         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
1144         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
1145         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
1146         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
1147         * sysdeps/i386/i686/multiarch/Makefile: Update.
1148         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
1149
1150 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1151
1152         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
1153         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
1154
1155 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1156
1157         Support TZ transition times < 00:00:00.
1158         This is needed for version-3 tz-format files; it supports time
1159         stamps past 2037 for America/Godthab (the only entry in the tz
1160         database for which this change is relevant).
1161         * manual/time.texi (TZ Variable): Document transition times
1162         from -167:59:59 through -00:00:01.
1163         * time/tzset.c (tz_rule): Time of day is now signed.
1164         (__tzset_parse_tz): Parse negative time of day.
1165
1166         Document TZ transition times >= 25:00:00.
1167         * manual/time.texi (TZ Variable): Document transition times from
1168         25:00:00 through 167:59:59.  These are already supported, and this
1169         support will help with version-3 tz-format files.
1170
1171         * manual/time.texi (TZ Variable): Modernize North America example
1172         to reflect current (i.e., 2007-and-later) daylight saving rules.
1173
1174         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
1175
1176 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1177
1178         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
1179         * sysdeps/unix/bsd/bits/stat.h: Likewise.
1180         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
1181         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
1182         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
1183         * sysdeps/unix/bsd/bsdstat.h: Likewise.
1184         * sysdeps/unix/bsd/clock.c: Likewise.
1185         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
1186         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
1187         * sysdeps/unix/bsd/init-posix.c: Likewise.
1188         * sysdeps/unix/bsd/poll.c: Likewise.
1189         * sysdeps/unix/bsd/ptsname.c: Likewise.
1190         * sysdeps/unix/bsd/seekdir.c: Likewise.
1191         * sysdeps/unix/bsd/setegid.c: Likewise.
1192         * sysdeps/unix/bsd/seteuid.c: Likewise.
1193         * sysdeps/unix/bsd/setgid.c: Likewise.
1194         * sysdeps/unix/bsd/setrgid.c: Likewise.
1195         * sysdeps/unix/bsd/setruid.c: Likewise.
1196         * sysdeps/unix/bsd/setsid.c: Likewise.
1197         * sysdeps/unix/bsd/setuid.c: Likewise.
1198         * sysdeps/unix/bsd/sigaction.c: Likewise.
1199         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
1200         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
1201         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
1202         * sysdeps/unix/bsd/telldir.c: Likewise.
1203         * sysdeps/unix/bsd/times.c: Likewise.
1204         * sysdeps/unix/bsd/usleep.c: Likewise.
1205
1206         * misc/Makefile (install-lib): Remove libbsd-compat.a.
1207         ($(objpfx)libbsd-compat.a): Remove rule.
1208
1209         * include/features.h (__FAVOR_BSD): Do not define.
1210         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
1211         features conflicting with POSIX.
1212         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
1213         (_BSD_SOURCE): Remove description of not being a subset of other
1214         feature test macros.
1215         * manual/job.texi (getpgrp): Do not document BSD version.
1216         (getpgid): Do not document by reference to BSD getpgrp.
1217         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
1218         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
1219         * signal/signal.h [__FAVOR_BSD]: Likewise.
1220         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
1221         instead of making contents conditional on [__FAVOR_BSD].
1222         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
1223
1224 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1225
1226         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1227
1228 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1229
1230         [BZ #16314]
1231         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
1232         values below 2**-450, not 2**-500.
1233         * math/auto-libm-test-in: Don't allow spurious underflow from
1234         hypot.
1235         * math/auto-libm-test-out: Regenerated.
1236
1237         [BZ #16316]
1238         [BZ #16330]
1239         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
1240         values of ha and hb and sort them after adjusting subnormal
1241         arguments.
1242         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
1243         Likewise.
1244         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
1245         values of ea and eb and sort them after adjusting subnormal
1246         arguments.
1247         * math/auto-libm-test-in: Do not expect some hypot tests of
1248         subnormals to fail.  Add more hypot tests.
1249         * math/auto-libm-test-out: Regenerated.
1250
1251 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1252
1253         [BZ #13304]
1254         * sysdeps/sh/s_fma.c: New file.
1255         * sysdeps/sh/s_fmaf.c: New file.
1256         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
1257         version.
1258         * sysdeps/sh/Implies: Add sh/soft-fp.
1259
1260 2013-12-16  Roland McGrath  <roland@hack.frob.com>
1261
1262         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
1263         level of indirection to members `objname', `errstring', `malloced'.
1264         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
1265         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
1266         it as the __longjmp argument (just pass 1 instead).
1267         (_dl_catch_error): Initialize C with argument pointers and address of
1268         volatile local ERRCODE rather than copying values out of C at return.
1269
1270 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
1271
1272         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
1273         * math/auto-libm-test-out: Regenerated.
1274         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
1275         (hypot_test_data): Likewise.
1276         (pow_test_data): Likewise.
1277         (pow_tonearest_test_data): Likewise.
1278         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1279         mpfr_ff_f.
1280         (func_calc_desc): Add mpfr_ff_f union field.
1281         (FUNC_mpfr_ff_f): New macro.
1282         (test_functions): Add atan2, hypot and pow.
1283         (special_fill_min): New function.
1284         (special_fill_minus_min): Likewise.
1285         (special_fill_min_subnorm): Likewise.
1286         (special_fill_minus_min_subnorm): Likewise.
1287         (special_real_inputs): Add min, -min, min_subnorm and
1288         -min_subnorm.
1289         (calc_generic_results): Handle mpfr_ff_f.
1290         * sysdeps/i386/fpu/libm-test-ulps: Update.
1291         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1292
1293 2013-12-16  Will Newton  <will.newton@linaro.org>
1294
1295         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
1296         (Aligned Memory Blocks): Add documentation for aligned_alloc
1297         and suggest it as an alternative to posix_memalign.
1298         (Hooks for Malloc): Document __memalign_hook is also called
1299         for aligned_alloc.  (Summary of Malloc): Add summary for
1300         aligned alloc.  Document __memalign_hook is also called
1301         for aligned_alloc.
1302
1303 2013-12-16  Will Newton  <will.newton@linaro.org>
1304
1305         * manual/memory.texi (Malloc Examples): Clarify default
1306         alignment documentation.  Suggest posix_memalign rather
1307         than memalign or valloc.
1308         (Aligned Memory Blocks): Remove suggestion to use memalign
1309         or valloc.  Remove obsolete comment about BSD.
1310         Document memalign errno values and mark the function obsolete.
1311         Document posix_memalign returned error codes.  Mark valloc
1312         as obsolete.  (Hooks for Malloc): __memalign_hook is also
1313         called for posix_memalign and valloc.
1314         (Summary of Malloc): Add posix_memalign to function summary.
1315         __memalign_hook is also called for posix_memalign and valloc.
1316
1317 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1318
1319         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
1320         TAYLOR_SIN.
1321         (__sin): Adjust.
1322         (__cos): Likewise.
1323         (sloww): Use mynumber union.  Expand ternary operator into
1324         if-else statements.
1325         (cslow): use mynumber union.
1326
1327 2013-12-16  Allan McRae  <allan@archlinux.org>
1328
1329         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
1330         * configure: Regenerated.
1331
1332         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
1333
1334         [BZ #14120]
1335         * configure.ac: Added --enable-maintainer-mode. Check for
1336         autoconf when enabled.
1337         * configure: Regenerated.
1338
1339         * nscd/nscd.service: New file.
1340         * nscd/nscd.tmpfiles: New file.
1341
1342 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
1343
1344         [BZ #12100]
1345         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
1346         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
1347         * sysdeps/x86_64/multiarch/strstr.c: ... here.
1348         (strstr): Add __strstr_sse2_unaligned ifunc.
1349         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
1350         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
1351         (strcasestr): Remove __strcasestr_sse42 ifunc.
1352         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
1353         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1354         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1355
1356 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1357
1358         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
1359         * sysdeps/sh/bits/fenv.h: ... here.
1360         * sysdeps/sh/sh4/fpu/bits: Remove directory.
1361
1362 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1363
1364         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
1365
1366 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1367
1368         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
1369         hypotf multiarch implementations.
1370         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
1371         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
1372         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
1373         multiarch hypot for PPC64.
1374         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
1375         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
1376         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
1377         multiarch hypotf for PPC64.
1378
1379 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1380
1381         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
1382         modff multiarch implementations.
1383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
1384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
1385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
1386         multiarch modf for PPC64.
1387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
1388         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
1389         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
1390         multiarch modff for PPC64.
1391
1392 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1393
1394         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
1395         and logl multiarch implementations.
1396         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
1397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
1398         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
1399         multiarch logb for PPC64.
1400         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
1401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
1402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
1403         multiarch logb for PPC64.
1404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
1405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
1406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
1407         multiarch logb for PPC64.
1408
1409 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1410
1411         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
1412         isinff multiarch implementation.
1413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
1414         file.
1415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
1416         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
1417         multiarch isinf for PPC64.
1418         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
1419         file.
1420         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
1421         multiarch isinff for PPC64.
1422
1423 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1424
1425         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
1426         finitef multiarch implementation.
1427         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
1428         file.
1429         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
1430         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
1431         multiarch finite for PPC64.
1432         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
1433         file.
1434         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
1435         multiarch finitef for PPC64.
1436
1437 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1438
1439         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
1440         lrint multiarch implementation.
1441         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
1442         file.
1443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
1444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
1445         multiarch llrint for PPC64.
1446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
1447         multiarch lrint for PPC64.
1448
1449 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1450
1451         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
1452         copysignf multiarch implementation.
1453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
1454         file.
1455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
1456         file.
1457         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
1458         multiarch copysign for PPC64.
1459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
1460         multiarch copysignf for PPC64.
1461
1462 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1463
1464         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
1465         multiarch implementation.
1466         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
1467         file.
1468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
1469         file.
1470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
1471         file.
1472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
1473         file.
1474         multiarch llround for PPC64.
1475         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
1476         multiarch trunc for PPC64.
1477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
1478         multiarch truncf for PPC64.
1479
1480 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1481
1482         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
1483         multiarch implementation.
1484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
1485         file.
1486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
1487         file.
1488         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
1489         file.
1490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
1491         file.
1492         multiarch llround for PPC64.
1493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
1494         multiarch round for PPC64.
1495         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
1496         multiarch roundf for PPC64.
1497
1498 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1499
1500         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
1501         multiarch implementation.
1502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
1503         file.
1504         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
1505         file.
1506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
1507         file.
1508         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
1509         file.
1510         multiarch llround for PPC64.
1511         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
1512         multiarch floor for PPC64.
1513         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
1514         multiarch floorf for PPC64.
1515
1516 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1517
1518         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
1519         multiarch implementation.
1520         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
1521         file.
1522         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
1523         file.
1524         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
1525         file.
1526         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
1527         file.
1528         multiarch llround for PPC64.
1529         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
1530         multiarch ceil for PPC64.
1531         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
1532         multiarch ceilf for PPC64.
1533
1534 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1535
1536         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
1537         multiarch implementation.
1538         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
1539         file.
1540         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
1541         file.
1542         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
1543         file.
1544         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
1545         multiarch llround for PPC64.
1546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
1547         multiarch lround for PPC64.
1548
1549 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1550
1551         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
1552         multiarch implementation.
1553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
1554         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
1555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
1556         file.
1557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
1558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
1559         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
1560         multiarch isnan for PPC64.
1561         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
1562         multiarch isnanf for PPC64.
1563
1564 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1565
1566         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
1567         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
1568         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
1569         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
1570         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
1571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
1572
1573 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1574
1575         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
1576         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
1577         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1578         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1579
1580 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1581
1582         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
1583         multiarch implementations.
1584         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1585         (__libc_ifunc_impl_list): Likewise.
1586         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
1587         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
1588         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
1589         multiarch stpcpy for PPC64.
1590
1591 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1592
1593         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
1594         multiarch implementations.
1595         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1596         (__libc_ifunc_impl_list): Likewise.
1597         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
1598         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
1599         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
1600         multiarch strcpy for PPC64.
1601
1602 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1603
1604         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
1605         redefine function name.
1606         (_wordcopy_fwd_dest_aligned): Likewise.
1607         (_wordcopy_bwd_aligned): Likewise.
1608         (_wordcopy_bwd_dest_aligned): Likewise.
1609         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
1610         multiarch implementations.
1611         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1612         (__libc_ifunc_impl_list): Likewise.
1613         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
1614         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
1615         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
1616         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
1617         multiarch wcscpy for PPC64.
1618
1619 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1620
1621         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
1622         multiarch implementations.
1623         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1624         (__libc_ifunc_impl_list): Likewise.
1625         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
1626         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
1627         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
1628         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
1629         multiarch wcscpy for PPC64.
1630
1631 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1632
1633         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
1634         multiarch implementations.
1635         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1636         (__libc_ifunc_impl_list): Likewise.
1637         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
1638         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
1639         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
1640         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
1641         multiarch wcsrchr for PPC64.
1642
1643 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1644
1645         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
1646         multiarch implementations.
1647         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1648         (__libc_ifunc_impl_list): Likewise.
1649         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
1650         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
1651         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
1652         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
1653         multiarch wcschr for PPC64.
1654
1655 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1656
1657         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
1658         multiarch implementations.
1659         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1660         (__libc_ifunc_impl_list): Likewise.
1661         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
1662         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
1663         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
1664         multiarch strchrnul for PPC64.
1665
1666 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1667
1668         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
1669         implementations.
1670         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1671         (__libc_ifunc_impl_list): Likewise.
1672         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
1673         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
1674         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
1675         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
1676         strchr for PPC64.
1677
1678 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1679
1680         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
1681         implementations.
1682         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1683         (__libc_ifunc_impl_list): Likewise.
1684         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
1685         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
1686         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
1687         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
1688         strncmp for PPC64.
1689
1690 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1691
1692         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
1693         multiarch implementations.
1694         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1695         (__libc_ifunc_impl_list): Likewise.
1696         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
1697         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
1698         strncasecmp for PPC64.
1699         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
1700         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
1701         multiarch strncasecmp_l for PPC64.
1702
1703 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1704
1705         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
1706         multiarch implementations.
1707         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1708         (__libc_ifunc_impl_list): Likewise.
1709         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
1710         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
1711         multiarch strcasecmp for PPC64.
1712         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
1713         file.
1714         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
1715         multiarch strcasecmp_l for PPC64.
1716
1717 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1718
1719         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
1720         implementations.
1721         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1722         (__libc_ifunc_impl_list): Likewise.
1723         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
1724         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
1725         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
1726         strnlen for PPC64.
1727
1728 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1729
1730         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
1731         implementations.
1732         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1733         (__libc_ifunc_impl_list): Likewise.
1734         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
1735         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
1736         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
1737         strlen for PPC64.
1738
1739 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1740
1741         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
1742         implementations.
1743         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1744         (__libc_ifunc_impl_list): Likewise.
1745         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
1746         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
1747         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
1748         rawmemrchr for PPC64.
1749
1750 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1751
1752         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
1753         implementation.
1754         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1755         (__libc_ifunc_impl_list): Likewise.
1756         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
1757         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
1758         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
1759         memrchr for PPC64.
1760
1761 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1762
1763         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
1764         implementation.
1765         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1766         (__libc_ifunc_impl_list): Likewise.
1767         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
1768         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
1769         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
1770         memchr for PPC64.
1771
1772 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1773
1774         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
1775         implementation.
1776         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1777         (__libc_ifunc_impl_list): Likewise.
1778         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
1779         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
1780         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
1781         mempcpy for PPC64.
1782
1783 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1784
1785         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
1786         avoid cretion of __bzero symbol.
1787         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
1788         Likewise.
1789         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
1790         Likewise.
1791         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
1792         Likewise.
1793         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
1794         multiarch implementations.
1795         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1796         (__libc_ifunc_impl_list): Likewise.
1797         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
1798         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
1799         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
1800         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
1801         bzero for PPC32.
1802         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
1803         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
1804         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
1805         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
1806         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
1807         memset for PPC64.
1808         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
1809
1810 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1811
1812         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
1813         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
1814         implementations.
1815         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1816         (__libc_ifunc_impl_list): Likewise.
1817         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
1818         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
1819         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
1820         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
1821         memcmp for PPC64.
1822
1823 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1824
1825         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
1826         multiarch for POWER/PPC64.
1827         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1828         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
1829         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
1830         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
1831         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
1832         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
1833         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
1834         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
1835         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
1836         memcpy for PPC64.
1837
1838 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1839
1840         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
1841         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
1842         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
1843         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
1844         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
1845         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
1846         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
1847         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
1848         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
1849         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
1850         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
1851         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
1852         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
1853         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
1854         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
1855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
1856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
1857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
1858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
1859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
1860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
1861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
1862
1863 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1864
1865         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
1866
1867 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1868
1869         * benchtests/Makefile (bench): Add exp2 and log2.
1870         (LDLIBS-bench-exp2): Add -lm.
1871         (LDLIBS-bench-log2): Likewise.
1872         * benchtests/exp2-inputs: New inputs file.
1873         * benchtests/log2-inputs: New inputs file.
1874         * benchtests/log-inputs: Add new inputs.
1875         * benchtests/tan-inputs: Likewise.
1876
1877 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1878
1879         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
1880         definition...
1881         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
1882         csloww1, csloww2): ... from here.
1883
1884         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
1885         instead of structures.
1886         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
1887         (POLYNOMIAL): Likewise.
1888         (TAYLOR_SLOW): Likewise.
1889         (__sin): Likewise.
1890         (__cos): Likewise.
1891         (slow1): Likewise.
1892         (slow2): Likewise.
1893         (sloww): Likewise.
1894         (sloww1); Likewise.
1895         (sloww2): Likewise.
1896         (bsloww1): Likewise.
1897         (bsloww2): Likewise.
1898         (cslow2): Likewise.
1899         (csloww): Likewise.
1900         (csloww1): Likewise.
1901         (csloww2): Likewise.
1902
1903 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1904
1905         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
1906         (__malloc_assert, __libc_realloc, __libc_calloc,
1907         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
1908         memcpy and memset.
1909         * malloc/hooks.c (realloc_check): Likewise.
1910
1911 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
1912
1913         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
1914         * malloc/arena.c: Remove PER_THREAD conditional.
1915         [!PER_THREAD]: Remove code.
1916         (ptmalloc_unlock_all2): Likewise.
1917         (ptmalloc_init): Likewise.
1918         (_int_new_arena): Likewise.
1919         (arena_get2): Likewise.
1920         * malloc/hooks.c (__malloc_get_state): Likewise.
1921         (__malloc_set_state): Likewise.
1922         * malloc/malloc.c: Likewise.
1923         (struct malloc_state): Likewise.
1924         (struct malloc_par): Likewise.
1925         (__libc_realloc): Likewise.
1926         (__libc_mallopt): Likewise.
1927
1928 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1929
1930         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
1931
1932 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1933
1934         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
1935         macro to a function.  Check for zero perturb_byte.
1936         (_int_malloc, _int_free): Remove zero perturb_byte checks.
1937
1938 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
1939
1940         * malloc/malloc.c: (force_reg): Remove.
1941         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
1942         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
1943         force_reg by atomic_forced_read.
1944         * malloc/arena.c (ptmalloc_init): Likewise.
1945         * malloc/hooks.c (top_check): Likewise.
1946
1947 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1948
1949         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1950
1951 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
1952
1953         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1954
1955 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
1956
1957         * math/auto-libm-test-in: Add tests of lgamma.
1958         * math/auto-libm-test-out: Regenerated.
1959         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
1960         (M_LOG_2_SQRT_PIl): Likewise.
1961         (lgamma_test_data): Use AUTO_TESTS_f_f1.
1962         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1963         mpfr_f_f1.
1964         (func_calc_desc): Add mpfr_f_f1 union field.
1965         (ARGS1): New macro.
1966         (ARGS2): Likewise.
1967         (ARGS3): Likewise.
1968         (ARGS4): Likewise.
1969         (RET1): Likewise.
1970         (RET2): Likewise.
1971         (CALC): Likewise.
1972         (FUNC): Likewise.
1973         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
1974         (test_functions): Add lgamma.
1975         (calc_generic_results): Handle mpfr_f_f1.
1976         * sysdeps/i386/fpu/libm-test-ulps: Update.
1977         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1978
1979 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1980
1981         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
1982         __mpn_add_n for PowerPC64/POWER7.
1983         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
1984         __mpn_sub_n for PowerPC64/POWER7.
1985
1986 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1987
1988         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
1989         __mpn_addmul_1 for PowerPC64.
1990         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
1991         __mpn_submul_1 for PowerPC64.
1992         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
1993         for PowerPC64.
1994         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
1995         for PowerPC64.
1996
1997 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
1998
1999         [BZ #15089]
2000         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
2001
2002 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2003
2004         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
2005
2006 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2007
2008         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
2009         add multiarch folders.
2010         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
2011         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
2012         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
2013         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
2014         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
2015         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
2016         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
2017         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
2018         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
2019         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
2020         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
2021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
2022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
2023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
2024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
2025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
2026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
2027
2028 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2029
2030         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
2031         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
2032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
2033         New file.
2034         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
2035         New file.
2036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
2037         multiarch __ieee754_hypot for PowerPC32.
2038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
2039         New file.
2040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
2041         New file.
2042         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
2043         multiarch __ieee754_hypotf for PowerPC32.
2044
2045 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2046
2047         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
2048         long_double_symbol only if __logbl is defined.
2049         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
2050         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
2051         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
2052         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
2053         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
2054         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
2055         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
2056         path for implementation.
2057         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2058         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2059         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
2060         logb, and logbl multiarch implementations for PowerPC32.
2061         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
2062         file.
2063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
2064         file.
2065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
2066         multiarch logb for PowerPC32.
2067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
2068         file.
2069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
2070         file.
2071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
2072         multiarch logbf for PowerPC32.
2073         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
2074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
2075         file.
2076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
2077         multiarch logbl implementation for PowerPC32.
2078
2079 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2080
2081         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
2082         and modff multiarch implementations.
2083         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2084         New file.
2085         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
2086         New file.
2087         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
2088         multiarch modf for PowerPC32.
2089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2090         New file.
2091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
2092         New file.
2093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
2094         multiarch modff for PowerPC32.
2095
2096 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2097
2098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
2099         and lrintf multiarch implementations.
2100         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
2101         New file.
2102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
2103         New file.
2104         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
2105         multiarch lrint for PowerPC32.
2106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
2107         file: multiarch lrintf for PowerPC32.
2108
2109 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2110
2111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
2112         and lroundf multiarch implementations.
2113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2114         New file.
2115         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
2116         New file.
2117         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2118         New file.
2119         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
2120         multiarch lround for PowerPC32.
2121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
2122         file: multiarch lroundf for PowerPC32.
2123
2124 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2125
2126         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
2127         copysign and copysignf multiarch implementations.
2128         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
2129         New file.
2130         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
2131         New file.
2132         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
2133         file: multiarch copysign for PowerPC32.
2134         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
2135         file: multiarch copysignf for PowerPC32.
2136
2137 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2138
2139         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
2140         and truncf multiarch implementations.
2141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
2142         New file.
2143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
2144         file.
2145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
2146         multiarch trunc for PowerPC32.
2147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
2148         New file.
2149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
2150         New file.
2151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
2152         multiarch truncf for PowerPC32.
2153
2154 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2155
2156         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
2157         and roundf multiarch implementations.
2158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
2159         New file.
2160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
2161         file.
2162         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
2163         multiarch round for PowerPC32.
2164         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
2165         New file.
2166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
2167         New file.
2168         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
2169         multiarch roundf for PowerPC32.
2170
2171 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2172
2173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
2174         and floorf multiarch implementations.
2175         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
2176         New file.
2177         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
2178         file.
2179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
2180         multiarch floor for PowerPC32.
2181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
2182         New file.
2183         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
2184         New file.
2185         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
2186         multiarch floorf for PowerPC32.
2187
2188 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2189
2190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
2191         and ceilf multiarch implementations.
2192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
2193         New file.
2194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
2195         file.
2196         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
2197         multiarch ceil for PowerPC32.
2198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
2199         New file.
2200         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
2201         file.
2202         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
2203         multiarch ceilf for PowerPC32.
2204
2205 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2206
2207         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
2208         is defined.
2209         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
2210         FINITEF is defined.
2211         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
2212         and finitef multiarch implementations.
2213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2214         New file.
2215         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
2216         file.
2217         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
2218         multiarch finite for PowerPC32.
2219         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2220         New file.
2221         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
2222         file: multiarch finitef for PowerPC32.
2223
2224 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2225
2226         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
2227         and isinff multiarch implementations.
2228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
2229         file.
2230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
2231         file.
2232         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
2233         multiarch isinf for PowerPC32.
2234         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2235         New file.
2236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
2237         multiarch isinff for PowerPC32.
2238
2239 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2240
2241         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
2242         alias when __isnan is defined.
2243         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
2244         and isnanf multiarch implementations.
2245         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
2246         file.
2247         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
2248         file.
2249         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
2250         file.
2251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
2252         file.
2253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
2254         multiarch isnan for PowerPC32.
2255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2256         New file.
2257         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
2258         New file.
2259         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
2260         multiarch isnanf for PowerPC32.
2261
2262 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2263
2264         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
2265         and sqrtf multiarch implementations.
2266         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
2267         file.
2268         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
2269         file.
2270         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
2271         multiarch sqrt for PowerPC32.
2272         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
2273         file.
2274         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
2275         file.
2276         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
2277         multiarch sqrtf for PowerPC32.
2278
2279 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2280
2281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
2282         and llroundf multiarch implementations.
2283         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2284         New file.
2285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2286         New file.
2287         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2288         New file.
2289         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
2290         file: multiarch llround for PowerPC32.
2291         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
2292         file: multiarch llroundf for PowerPC32.
2293
2294 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2295
2296         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
2297         multiarch PowerPC32 fpu implementations.
2298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2299         New file.
2300         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2301         New file.
2302         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
2303         multiarch llrint for PowerPC32.
2304         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2305         New file.
2306         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2307         New file.
2308         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
2309         file.
2310
2311 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2312
2313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
2314
2315 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2316
2317         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
2318         file.
2319         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
2320         file.
2321         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
2322         file.
2323         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
2324         multiarch wordcopy for PPC32.
2325         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2326         wordcopy objects.
2327         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2328         (__libc_ifunc_impl_list): Likewise.
2329         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
2330         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
2331         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
2332         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
2333         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
2334         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
2335
2336 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2337
2338         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
2339         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
2340         file.
2341         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
2342         file.
2343         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
2344         file.
2345         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
2346         multiarch wcscpy for PPC32.
2347         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2348         multiarch objects.
2349         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2350         (__libc_ifunc_impl_list): Likewise.
2351         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2352         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2353         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
2354         sysdeps/powerpc/power6/wcscpy.c.
2355
2356 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2357
2358         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
2359         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
2360         file.
2361         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
2362         file.
2363         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
2364         file.
2365         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
2366         multiarch wcsrchr for PPC32.
2367         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2368         multiarch objects.
2369         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2370         (__libc_ifunc_impl_list): Likewise.
2371         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2372         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2373         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
2374         sysdeps/powerpc/power6/wcsrchr.c.
2375
2376 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2377
2378         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
2379         file.
2380         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
2381         file.
2382         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
2383         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
2384         multiarch wcschr for PPc32.
2385         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2386         multiarch objects.
2387         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2388         (__libc_ifunc_impl_list): Likewise.
2389         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
2390         * sysdeps/powerpc/power6/wcschr.c: ... to here.
2391         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
2392         sysdeps/powerpc/power6/wcschr.c.
2393
2394 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2395
2396         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
2397         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
2398         file.
2399         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
2400         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
2401         file: multiarch strchr for PPC32.
2402         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
2403         multiarch objects.
2404         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2405         (__libc_ifunc_impl_list): Likewise.
2406
2407 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2408
2409         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
2410         name.
2411         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
2412         file.
2413         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
2414         file.
2415         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
2416         multiarch strchrnul for PPC32.
2417         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
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         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
2425         file.
2426         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
2427         multiarch strncasecmp for PPC32.
2428         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
2429         file.
2430         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
2431         multiarch strncasecmp_l for PPC32.
2432         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
2433         strncasecmp 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/strcasecmp-power7.S: New
2440         file.
2441         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
2442         multiarch strncasecmp for PPC32.
2443         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
2444         New file.
2445         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
2446         multiarch strcasecmp_l for PPC32.
2447         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
2448         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/strncmp-power7.S: New
2455         file.
2456         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
2457         file.
2458         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
2459         multiarch strncmp for PPC32.
2460         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
2461         multiarch objects.
2462         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2463         (__libc_ifunc_impl_list): Likewise.
2464
2465 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2466
2467         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
2468         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
2469         file.
2470         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
2471         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
2472         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
2473         multiarch objects.
2474         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2475         (__libc_ifunc_impl_list): Likewise.
2476
2477 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2478
2479         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
2480         file.
2481         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
2482         file.
2483         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
2484         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
2485         multiarch objects.
2486         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2487         (__libc_ifunc_impl_list): Likewise.
2488
2489 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2490
2491         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
2492         file.
2493         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
2494         file.
2495         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
2496         multiarch rawmemchr for PPC32.
2497         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
2498         multiarch objects.
2499         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2500         (__libc_ifunc_impl_list): Likewise.
2501
2502 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2503
2504         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
2505         file.
2506         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
2507         file.
2508         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
2509         file: memrchr multiarch for PPC32.
2510         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
2511         multiarch objects.
2512         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2513         (__libc_ifunc_impl_list): Likewise.
2514
2515 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2516
2517         * string/memchr.c (__memchr): Using macro to redefine symbol name.
2518         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
2519         file.
2520         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
2521         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
2522         multiarch memchr for PPC32.
2523         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
2524         multiarch objects.
2525         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2526         (__libc_ifunc_impl_list): Likewise.
2527
2528 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2529
2530         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
2531         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
2532         file.
2533         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
2534         file.
2535         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
2536         file: multiarch mempcpy for PPC32.
2537         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
2538         multiarch objects.
2539         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2540         (__libc_ifunc_impl_list): Likewise.
2541
2542 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2543
2544         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
2545         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
2546         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
2547         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
2548         multiarch bzero for PPC32.
2549         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
2550         file.
2551         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
2552         file.
2553         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
2554         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
2555         file: multiarch memset for PPC32.
2556         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
2557         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
2558         memset multiarch objects.
2559         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2560         (__libc_ifunc_impl_list): Likewise.
2561
2562 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2563
2564         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
2565         file.
2566         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
2567         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
2568         memcmp for PPC32.
2569         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
2570         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
2571         multiarch objects.
2572         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2573         (__libc_ifunc_impl_list): Likewise.
2574
2575 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2576
2577         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
2578         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
2579         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
2580         file.
2581         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
2582         file.
2583         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
2584         file.
2585         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
2586         multiarch memcpy for PPC32.
2587         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
2588         multiarch objects.
2589         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2590         (__libc_ifunc_impl_list): Likewise.
2591
2592 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2593
2594         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
2595         support multiarch for POWER/PPC32.
2596         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2597         Likewise.
2598         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
2599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
2600         Implies file to make multiarch folder appers before the fpu and
2601         default folder for power4 configuration.
2602
2603 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2604
2605         * scripts/bench.pl: Append volatile keyword to type.
2606
2607 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2608
2609         * sysdeps/sh/sotruss-lib.c: New file.
2610         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
2611
2612 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2613
2614         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2615
2616 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
2617
2618         [BZ #6810]
2619         * math/w_tgamma.c: Include <errno.h>.
2620         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
2621         * math/w_tgammaf.c: Include <errno.h>.
2622         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
2623         * math/w_tgammal.c: Include <errno.h>.
2624         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
2625         * math/auto-libm-test-in: Do not allow missing errno on tgamma
2626         underflow.  Add more tgamma tests.
2627         * math/auto-libm-test-out: Regenerated.
2628         * sysdeps/i386/fpu/libm-test-ulps: Update.
2629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2630
2631         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
2632         sin, sinh, tan, tanh, tgamma, y0 and y1.
2633         * math/auto-libm-test-out: Regenerated.
2634         * math/libm-test.inc (TEST_COND_x86_64): New macro.
2635         (TEST_COND_x86): Likewise.
2636         (M_E2l): Remove macro.
2637         (M_E3l): Likewise.
2638         (M_2_SQRT_PIl): Likewise.
2639         (M_SQRT_PIl): Likewise.
2640         (M_1_DIV_El): Likewise.
2641         (log_test_data): Use AUTO_TESTS_f_f.
2642         (log10_test_data): Likewise.
2643         (log1p_test_data): Likewise.
2644         (log2_test_data): Likewise.
2645         (sin_test_data): Likewise.
2646         (sin_tonearest_test_data): Likewise.
2647         (sin_towardzero_test_data): Likewise.
2648         (sin_downward_test_data): Likewise.
2649         (sin_upward_test_data): Likewise.
2650         (sinh_test_data): Likewise.
2651         (sinh_tonearest_test_data): Likewise.
2652         (sinh_towardzero_test_data): Likewise.
2653         (sinh_downward_test_data): Likewise.
2654         (sinh_upward_test_data): Likewise.
2655         (tan_test_data): Likewise.
2656         (tan_tonearest_test_data): Likewise.
2657         (tan_towardzero_test_data): Likewise.
2658         (tan_downward_test_data): Likewise.
2659         (tan_upward_test_data): Likewise.
2660         (tanh_test_data): Likewise.
2661         (tgamma_test_data): Likewise.
2662         (y0_test_data): Likewise.
2663         (y1_test_data): Likewise.
2664         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
2665         (special_real_inputs): Add pi/4.
2666         * sysdeps/i386/fpu/libm-test-ulps: Update.
2667         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2668
2669 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2670
2671         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
2672         "longjmp_target" static probes.
2673         (__longjmp): Rename to __longjmp_symbol.
2674         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2675         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
2676         on which longjmp to generate.
2677         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2678         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
2679         probe.
2680         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2681         (__sigjmp_save): Rename to __sigjmp_save_symbol.
2682         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2683         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
2684         and __sigjmp_save_symbol based on which sigsetjmp to generated.
2685         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
2686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
2687         __longjmp_symbol based on which __longjmp to generate.
2688         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
2689         probe.
2690         (setjmp): Rename to setjmp_symbol.
2691         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2692         (_setjmp): Rename to _setjmp_symbol.
2693         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2694         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
2695         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
2696         which setjmp to generate.
2697         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
2698         "longjmp_target" static probes.
2699
2700 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2701
2702         * benchtests/README: Add note about output arguments.
2703         * benchtests/bench-sincos.c: Remove file.
2704         * benchtests/sincos-inputs: New file.
2705         * scripts/bench.pl: Identify output arguments and define
2706         static variables for them.
2707
2708         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
2709
2710         [BZ #15941]
2711         * Makefile (INSTALL): Add install-plain.texi as the primary
2712         dependency.
2713         * manual/install-plain.texi: New file.
2714         * manual/install.texi: Include node directive only for
2715         non-plaintext output.
2716
2717 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2718
2719         * stdlib/longlong.h: Update from GCC.
2720
2721         [BZ #6807]
2722         [BZ #15901]
2723         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
2724         * math/w_j0f.c (y0f): Likewise.
2725         * math/w_j0l.c (__y0l): Likewise.
2726         * math/w_j1.c (y1): Likewise.
2727         * math/w_j1f.c (y1f): Likewise.
2728         * math/w_j1l.c (__y1l): Likewise
2729         * math/w_jn.c (yn): Likewise.
2730         * math/w_jnf.c (ynf): Likewise.
2731         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
2732         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
2733         value for Bessel function domain errors outside _SVID_ mode.
2734         Adjust sign of return value for yn (negative integer, 0).
2735         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
2736         by zero in return for negative x and set sign appropriately for
2737         negative n.
2738         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
2739         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2740         * math/libm-test.inc (y0_test_data): Add more tests and adjust
2741         expectations in error cases.
2742         (y1_test_data): Likewise.
2743         (yn_test_data): Likewise.
2744         * sysdeps/i386/fpu/libm-test-ulps: Update.
2745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2746
2747 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2748
2749         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
2750         "64" to "64-v1".  Add "64-v2".
2751         (abi-64-options): Rename to ...
2752         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
2753         (abi-64-condition): Rename to ...
2754         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
2755         (abi-64-ld-soname): Rename to ...
2756         (abi-64-v1-ld-soname): ... this.
2757         (abi-64-v2-options): Define.
2758         (abi-64-v2-condition): Likewise.
2759         (abi-64-v2-ld-soname): Likewise.
2760         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
2761         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
2762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
2763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
2764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
2765
2766 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2767             Alan Modra  <amodra@gmail.com>
2768
2769         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
2770         New versions for use with the ELFv2 ABI.
2771         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
2772         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
2773         declaration.
2774         (struct La_ppc64v2_retval): Likewise.
2775         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
2776         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
2777         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
2778         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
2779         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
2780         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
2781         Do not save or restore CR.
2782         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
2783         (_dl_profile_resolve): Do no save or restore CR.  Support extended
2784         return values for ELFv2 ABI.  Fix location of FPR return registers.
2785         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
2786         updated values for _CALL_ELF == 2.
2787         (La_regs, La_retval, int_retval): Likewise.
2788
2789 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2790
2791         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
2792         (FRAME_MIN_SIZE_PARM): Likewise.
2793         (FRAME_BACKCHAIN): Likewise.
2794         (FRAME_CR_SAVE): Likewise.
2795         (FRAME_LR_SAVE): Likewise.
2796         (FRAME_TOC_SAVE): Likewise.
2797         (FRAME_PARM_SAVE): Likewise.
2798         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2799         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2800         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2801         (call_mcount_parm_offset): New macro.
2802         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
2803         (PROF): Use symbolic stack frame offsets.
2804         (TAIL_CALL_SYSCALL_ERROR): Likewise.
2805         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
2806         Redefine in terms of FRAME_MIN_SIZE.
2807         (_dl_runtime_resolve): Use symbolic stack frame offsets.
2808         (_dl_profile_resolve): Likewise.  Update comment.
2809         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
2810         symbols stack frame offsets.
2811         (__sigsetjmp): Likewise.
2812         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2813         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
2814         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
2815         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
2816
2817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
2818         (FRAME_BACKCHAIN): Remove.
2819         (FRAME_CR_SAVE): Likewise.
2820         (FRAME_LR_SAVE): Likewise.
2821         (FRAME_COMPILER_DW): Likewise.
2822         (FRAME_LINKER_DW): Likewise.
2823         (FRAME_TOC_SAVE): Likewise.
2824         (FRAME_PARM_SAVE): Likewise.
2825         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2826         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2827         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
2829         (CHECK_SP): Use symbolic stack frame offsets.
2830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
2831         zone" instead of caller's parameter save area for temp storage.
2832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2833         Likewise.  Also, use symbolic stack frame offsets.
2834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
2835         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
2836         our own stack frame instead of the caller's.
2837         (__socket): Use symbolic stack frame offsets.
2838
2839 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2840             Alan Modra  <amodra@gmail.com>
2841
2842         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
2843         Define.
2844         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
2845         PPC64_LOCAL_ENTRY_OFFSET): Define.
2846         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
2847         New function.
2848         (elf_machine_fixup_plt): Call it.
2849         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
2850         reloc arguments.
2851         (elf_machine_rela): Update call to elf_machine_plt_conflict.
2852         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2853         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
2854         r2 before calling target.
2855
2856 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2857             Alan Modra  <amodra@gmail.com>
2858
2859         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
2860         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
2861         versions of macros to support ELFv2 ABI.
2862         (LOCALENTRY): New macro.
2863         (ENTRY, EALIGN): Use it.
2864         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
2865         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
2866         fall through into ENTRY entry point.
2867         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
2868         Only define if _CALL_ELF != 2.
2869
2870         (elf_machine_matches_host): Verify ABI version matches.
2871         (RTLD_START): Use LOCALENTRY.
2872         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
2873         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
2874         (PLT_ENTRY_WORDS): New macro.
2875         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
2876         (elf_machine_runtime_setup): Support ELFv2 ABI.
2877         (elf_machine_fixup_plt): Likewise.
2878         (elf_machine_plt_conflict): Likewise.
2879         (resolve_ifunc): Likewise.
2880         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
2881         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2882         Likewise.
2883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2884         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
2885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2886         (makecontext): Support ELFv2 ABI.
2887         * elf/elf.h (EF_PPC64_ABI): Define.
2888
2889 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2890
2891         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
2892         New assembler macro.
2893         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
2894         [ASSEMBLER] (ENTRY): ... but instead here ...
2895         [ASSEMBLER] (EALIGN): ... and here.
2896         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
2897         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
2898         [!ASSEMBLER] (ENTRY_2): Use it.
2899         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
2900         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
2901         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2902         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
2903         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
2904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
2905         Use PPC64_LOAD_FUNCPTR.
2906
2907 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2908
2909         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
2910
2911 2013-12-04  Alan Modra  <amodra@gmail.com>
2912
2913         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
2914         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
2915         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
2916         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
2917
2918         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
2919         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
2920         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
2921         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
2922         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
2923         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
2924
2925 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2926
2927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2928         (__makecontext): Fix incorrect CFI when backtracing out of
2929         context created via makecontext.
2930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
2931         (__setcontext): Fix incorrect CFI during switch to new context.
2932         (__novec_setcontext): Likewise.
2933
2934 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2935
2936         [BZ #4772]
2937         * time/strptime_l.c (__strptime_internal): Allow modifiers
2938         in strptime.
2939         * time/tst-strptime.c (day_tests): Add testcase.
2940
2941
2942 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2943
2944         * scripts/bench.pl: Skip over blank lines.
2945
2946 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2947
2948         [BZ #926]
2949         * manual/time.texi (Calendar Time): Clarify what timezone functions
2950         use.
2951
2952 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2953
2954         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2955
2956 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
2957
2958         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
2959         implementation.
2960         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
2961         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
2962         * debug/memset_chk.c (__memset_chk): Likewise.
2963         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
2964         * debug/strncpy_chk.c: Likewise.
2965
2966 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2967
2968         [BZ #15268]
2969         [BZ #15425]
2970         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
2971         (__ieee754_exp): For possibly underflowing results, check size of
2972         result and force underflow exception if required.
2973         * math/auto-libm-test-in: Add more tests of exp.
2974         * math/auto-libm-test-out: Regenerated.
2975         * sysdeps/i386/fpu/libm-test-ulps: Update.
2976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2977
2978         [BZ #16283]
2979         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
2980         * math/w_exp2f.c (__exp2f): Likewise.
2981         * math/w_exp2l.c (__exp2l): Likewise.
2982         * math/auto-libm-test-in: Do not allow missing errno on exp2
2983         underflow.
2984         * math/auto-libm-test-out: Regenerated.
2985
2986 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
2987
2988         [BZ #16274]
2989         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
2990         handle filename validation.
2991         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
2992         (do_open): Delete.
2993
2994 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
2995
2996         [BZ #6786]
2997         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
2998         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
2999         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
3000         <float.h>.
3001         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
3002         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
3003         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3004         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
3005         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3006         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
3007         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3008         * math/auto-libm-test-in: Don't allow missing errno from erfc.
3009         Add more erfc tests.
3010         * math/auto-libm-test-out: Regenerated.
3011         * sysdeps/i386/fpu/libm-test-ulps: Update.
3012         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3013
3014         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
3015         exp2, expm1, j0 and j1.
3016         * math/auto-libm-test-out: Regenerated.
3017         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
3018         (erfc_test_data): Likewise.
3019         (exp_test_data): Likewise.
3020         (exp_tonearest_test_data): Likewise.
3021         (exp_towardzero_test_data): Likewise.
3022         (exp_downward_test_data): Likewise.
3023         (exp_upward_test_data): Likewise.
3024         (exp10_test_data): Likewise.
3025         (exp2_test_data): Likewise.
3026         (expm1_test_data): Likewise.
3027         (j0_test_data): Likewise.
3028         (j1_test_data): Likewise.
3029         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
3030         (input_flag_type): Add flag_xfail_rounding.
3031         (input_flags): Add xfail-rounding.
3032         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
3033         (output_for_one_input_case): Handle flag_xfail_rounding.
3034         * sysdeps/i386/fpu/libm-test-ulps: Update.
3035         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3036
3037 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
3038
3039         [BZ #16289]
3040         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
3041         division by 0.
3042
3043 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
3044
3045         [BZ #16195]
3046         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3047         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
3048         (STAP_PROBE0): New macro.
3049         (STAP_PROBE1): Likewise.
3050         (STAP_PROBE2): Likewise.
3051         (STAP_PROBE3): Likewise.
3052         (STAP_PROBE4): Likewise.
3053
3054 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
3055
3056         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
3057
3058 2013-12-02  Steve Ellcey  <sellcey@mips.com>
3059
3060         * benchtests/Makefile (bench): Add sqrt.
3061         (LDLIBS-bench-sqrt): New.
3062         * benchtests/sqrt-input: New.
3063
3064 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
3065
3066         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
3067         (GAIH_EAI): Likewise.
3068         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
3069         (gaih_inet): Likewise.
3070         (getaddrinfo): Don't use GAIH_EAI.
3071
3072         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
3073         (struct gaih): Remove definition.
3074
3075 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
3076
3077         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
3078         Use HERRNOP directly.
3079
3080 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3081
3082         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3083
3084 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
3085
3086         * math/gen-auto-libm-tests.c (test_functions): Add more
3087         single-argument functions.
3088         (special_fill_pi_2): New function.
3089         (special_fill_minus_pi_2): Likewise.
3090         (special_fill_pi_6): Likewise.
3091         (special_fill_minus_pi_6): Likewise.
3092         (special_fill_pi_3): Likewise.
3093         (special_fill_2pi_3): Likewise.
3094         (special_fill_e): Likewise.
3095         (special_fill_1_e): Likewise.
3096         (special_fill_e_minus_1): Likewise.
3097         (special_real_inputs): Add more special inputs.
3098         (output_for_one_input_case): Do not require ERANGE on underflow to
3099         zero if round-to-nearest result does not underflow to zero, unless
3100         exact results required.
3101         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
3102         atan, atanh, cbrt, cos and cosh.
3103         * math/auto-libm-test-out: Regenerated.
3104         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
3105         (acos_tonearest_test_data): Likewise.
3106         (acos_towardzero_test_data): Likewise.
3107         (acos_downward_test_data): Likewise.
3108         (acos_upward_test_data): Likewise.
3109         (acosh_test_data): Likewise.
3110         (asin_test_data): Likewise.
3111         (asin_tonearest_test_data): Likewise.
3112         (asin_towardzero_test_data): Likewise.
3113         (asin_upward_test_data): Likewise.
3114         (asinh_test_data): Likewise.
3115         (atan_test_data): Likewise.
3116         (atanh_test_data): Likewise.
3117         (cbrt_test_data): Likewise.
3118         (cos_test_data): Likewise.
3119         (cos_tonearest_test_data): Likewise.
3120         (cos_towardzero_test_data): Likewise.
3121         (cos_downward_test_data): Likewise.
3122         (cos_upward_test_data): Likewise.
3123         (cosh_test_data): Likewise.
3124         (cosh_tonearest_test_data): Likewise.
3125         (cosh_towardzero_test_data): Likewise.
3126         (cosh_downward_test_data): Likewise.
3127         (cosh_upward_test_data): Likewise.
3128         * sysdeps/i386/fpu/libm-test-ulps: Update.
3129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3130
3131 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
3132
3133         [BZ #6787]
3134         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
3135         * math/w_exp10f.c (__exp10f): Likewise.
3136         * math/w_exp10l.c (__exp10l): Likewise.
3137         * math/libm-test.inc (exp10_test_data): Add more tests and expect
3138         errno settings in existing tests.
3139
3140         [BZ #14032]
3141         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
3142         precision control set to double precision.
3143         * sysdeps/i386/fpu/w_sqrt.c: New file.
3144         * math/auto-libm-test-in: Add more tests.
3145         * math/auto-libm-test-out: Update.
3146
3147         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
3148         (sqrt_test_tonearest): New function.
3149         (sqrt_towardzero_test_data): New variable.
3150         (sqrt_test_towardzero): New function.
3151         (sqrt_downward_test_data): New variable.
3152         (sqrt_test_downward): New function.
3153         (sqrt_upward_test_data): New variable.
3154         (sqrt_test_upward): New function.
3155         (main): Call the new functions.
3156
3157         * math/gen-auto-libm-tests.c: New file.
3158         * math/auto-libm-test-in: Likewise.
3159         * math/auto-libm-test-out: New generated file.
3160         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
3161         variables.
3162         (%beautify): Add generated representations of zero.
3163         (top level): Set $auto_input and call parse_auto_input.
3164         (beautify): Remove trailing "f" from hex float constants.
3165         (parse_args): Handle XFAIL_TEST.
3166         (convert_condition): New function.
3167         (or_value): Likewise.
3168         (or_cond_value): Likewise.
3169         (generate_testfile): Handle AUTO_TESTS_* lines.
3170         (parse_auto_input): New function.
3171         * math/libm-test.inc (XFAIL_TEST): New macro.
3172         (ERRNO_UNCHANGED): Update value.
3173         (ERRNO_EDOM): Likewise.
3174         (ERRNO_ERANGE): Likewise.
3175         (IGNORE_RESULT): Likewise.
3176         (TEST_COND_flt_32): New macro.
3177         (TEST_COND_dbl_64): Likewise.
3178         (TEST_COND_ldbl_96_intel): Likewise.
3179         (TEST_COND_ldbl_96_m68k): Likewise.
3180         (TEST_COND_ldbl_128): Likewise.
3181         (TEST_COND_ldbl_128ibm): Likewise.
3182         (TEST_COND_long32): Likewise.
3183         (TEST_COND_long64): Likewise.
3184         (TEST_COND_before_rounding): Likewise.
3185         (TEST_COND_after_rounding): Likewise.
3186         (enable_test): Handle XFAIL_TEST flag.
3187         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
3188         with finite results.
3189         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
3190         auto-libm-test-out.
3191
3192 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3193             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3194
3195         [BZ #16214]
3196         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
3197         __tls_get_addr_internal instead of __tls_get_offset in order to
3198         avoid GOT pointer dependency.  Make rtld export
3199         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
3200         __tls_get_addr since we are a __tls_get_offset platform.
3201         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
3202         GOT pointer being set up before.
3203         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
3204
3205 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
3206
3207         * manual/math.texi (Errors in Math Functions): Document accuracy
3208         goals.
3209
3210         [BZ #15004]
3211         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
3212         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
3213         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3214         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3215         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3216         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3217         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3218         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3219         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3220         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3221         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3222         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3223         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3224         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3225         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3226         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3227
3228         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
3229         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
3230         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
3231         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
3232         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
3233         Likewise.
3234         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
3235         Likewise.
3236         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
3237         Likewise.
3238         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
3239         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
3240         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
3241         atomic-feupdateenv and flt-rounds.
3242         * sysdeps/powerpc/nofpu/Versions (libc): Add
3243         __atomic_feholdexcept, __atomic_feclearexcept,
3244         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
3245         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
3246         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
3247         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
3248         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
3249         here.
3250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
3251         Update.
3252
3253         * manual/arith.texi (FP Exceptions): Document that exceptions may
3254         not be raised when matherr is used.
3255         (Math Error Reporting): Document overflow in directed rounding
3256         modes.  Document that errno may not be set when finite values are
3257         returned on overflow.  Document intent to set errno on underflow
3258         only for underflow to zero.
3259
3260         [BZ #16271]
3261         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
3262         round-to-nearest then adjust result for other rounding modes.
3263         * include/fenv.h (fegetround): Use libm_hidden_proto.
3264         * math/fegetround.c (fegetround): Use libm_hidden_def.
3265         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
3266         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
3267         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3268         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
3269         Likewise.
3270         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
3271         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3272         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
3273         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
3274
3275 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3276
3277         [BZ #16077]
3278         * nss/Versions (libnss_files): Add
3279         _nss_files_gethostbyname3_r.
3280         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
3281         New function.
3282         (HOST_DB_LOOKUP): Remove macro.
3283         (_nss_files_gethostbyname_r): Implement function without the
3284         HOST_DB_LOOKUP macro.
3285         (_nss_files_gethostbyname2_r): Likewise.
3286
3287 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
3288
3289         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
3290
3291 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
3292
3293         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
3294         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
3295         warning.
3296
3297 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3298
3299         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
3300         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
3301         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3302         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
3303         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
3304         __fe_nomask_env_priv and attribute_hidden.
3305         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
3306         (libc_feupdateenv_test_ppc): Likewise.
3307         (libc_feresetround_ppc): Likewise.
3308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3309         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
3310         compat_symbol macro.
3311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3312         (__fe_nomask_env): Likewise.
3313         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
3314
3315 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3316
3317         * string/Makefile: Remove ifunc tests.
3318         * string/test-string.h: Define TEST_IFUNC.
3319         * string/test-bcopy-ifunc.c: Remove.
3320         * string/test-bzero-ifunc.c: Likewise.
3321         * string/test-memccpy-ifunc.c: Likewise.
3322         * string/test-memchr-ifunc.c: Likewise.
3323         * string/test-memcmp-ifunc.c: Likewise.
3324         * string/test-memcpy-ifunc.c: Likewise.
3325         * string/test-memmem-ifunc.c: Likewise.
3326         * string/test-memmove-ifunc.c: Likewise.
3327         * string/test-mempcpy-ifunc.c: Likewise.
3328         * string/test-memrchr-ifunc.c: Likewise.
3329         * string/test-memset-ifunc.c: Likewise.
3330         * string/test-rawmemchr-ifunc.c: Likewise.
3331         * string/test-stpcpy-ifunc.c: Likewise.
3332         * string/test-stpncpy-ifunc.c: Likewise.
3333         * string/test-strcasecmp-ifunc.c: Likewise.
3334         * string/test-strcasestr-ifunc.c: Likewise.
3335         * string/test-strcat-ifunc.c: Likewise.
3336         * string/test-strchr-ifunc.c: Likewise.
3337         * string/test-strchrnul-ifunc.c: Likewise.
3338         * string/test-strcmp-ifunc.c: Likewise.
3339         * string/test-strcpy-ifunc.c: Likewise.
3340         * string/test-strcspn-ifunc.c: Likewise.
3341         * string/test-strlen-ifunc.c: Likewise.
3342         * string/test-strncasecmp-ifunc.c: Likewise.
3343         * string/test-strncat-ifunc.c: Likewise.
3344         * string/test-strncmp-ifunc.c: Likewise.
3345         * string/test-strncpy-ifunc.c: Likewise.
3346         * string/test-strnlen-ifunc.c: Likewise.
3347         * string/test-strpbrk-ifunc.c: Likewise.
3348         * string/test-strrchr-ifunc.c: Likewise.
3349         * string/test-strspn-ifunc.c: Likewise.
3350         * string/test-strstr-ifunc.c: Likewise.
3351
3352 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3353
3354         * benchtests/Makefile: Remove ifunc tests.
3355         * benchtests/bench-string.h: Define TEST_IFUNC.
3356         * benchtests/bench-bcopy-ifunc.c: Remove.
3357         * benchtests/bench-bzero-ifunc.c: Likewise.
3358         * benchtests/bench-memccpy-ifunc.c: Likewise.
3359         * benchtests/bench-memchr-ifunc.c: Likewise.
3360         * benchtests/bench-memcmp-ifunc.c: Likewise.
3361         * benchtests/bench-memcpy-ifunc.c: Likewise.
3362         * benchtests/bench-memmem-ifunc.c: Likewise.
3363         * benchtests/bench-memmove-ifunc.c: Likewise.
3364         * benchtests/bench-mempcpy-ifunc.c: Likewise.
3365         * benchtests/bench-memrchr-ifunc.c: Likewise.
3366         * benchtests/bench-memset-ifunc.c: Likewise.
3367         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
3368         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
3369         * benchtests/bench-stpcpy-ifunc.c: Likewise.
3370         * benchtests/bench-stpncpy-ifunc.c: Likewise.
3371         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
3372         * benchtests/bench-strcasestr-ifunc.c: Likewise.
3373         * benchtests/bench-strcat-ifunc.c: Likewise.
3374         * benchtests/bench-strchr-ifunc.c: Likewise.
3375         * benchtests/bench-strchrnul-ifunc.c: Likewise.
3376         * benchtests/bench-strcmp-ifunc.c: Likewise.
3377         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
3378         * benchtests/bench-strcpy-ifunc.c: Likewise.
3379         * benchtests/bench-strcspn-ifunc.c: Likewise.
3380         * benchtests/bench-strlen-ifunc.c: Likewise.
3381         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
3382         * benchtests/bench-strncat-ifunc.c: Likewise.
3383         * benchtests/bench-strncmp-ifunc.c: Likewise.
3384         * benchtests/bench-strncpy-ifunc.c: Likewise.
3385         * benchtests/bench-strnlen-ifunc.c: Likewise.
3386         * benchtests/bench-strpbrk-ifunc.c: Likewise.
3387         * benchtests/bench-strrchr-ifunc.c: Likewise.
3388         * benchtests/bench-strsep-ifunc.c: Likewise.
3389         * benchtests/bench-strspn-ifunc.c: Likewise.
3390         * benchtests/bench-strstr-ifunc.c: Likewise.
3391
3392 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3393
3394         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
3395
3396 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3397
3398         * resolv/netdb.h: Use __glibc_reserved instead __unused.
3399         * rt/aio.h: Likewise.
3400         * sysdeps/gnu/bits/utmp.h: Likewise.
3401         * sysdeps/gnu/bits/utmpx.h: Likewise.
3402         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
3403         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
3404         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
3405         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
3406         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3407         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3408         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
3409         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
3410         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
3411         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
3412         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
3413         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3414         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
3416         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3417         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
3418         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
3419         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
3420         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3421         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3422         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
3423         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
3424         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
3425         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
3426         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3427         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3428         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
3429         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
3430         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
3431         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3432         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3433         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
3434         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
3435         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
3436         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3437         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
3438         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
3439         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
3440         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
3441         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
3442         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
3443         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
3444
3445 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
3446
3447         [BZ #16245]
3448         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
3449         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
3450
3451 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
3452
3453         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
3454         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
3455         Likewise.
3456
3457 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3458
3459         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3460         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
3461         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
3462         (__fesetround): Remove define.
3463         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
3464         rounding and exceptions handling.
3465         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
3466         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
3467         (__fe_nomask_env): Likewise.
3468         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
3469         __fegetround instead of fegetround.
3470         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
3471         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
3472
3473 2013-11-21  Roland McGrath  <roland@hack.frob.com>
3474
3475         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
3476         it's there.
3477
3478         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
3479
3480 2013-11-21  Meador Inge  <meadori@codesourcery.com>
3481
3482         [BZ #11157]
3483         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
3484         (encrypt_r): Likewise.
3485         * malloc/obstack.h (obstack_free): Likewise.
3486         * posix/unistd.h (encrypt): Likewise.
3487
3488 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
3489
3490         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
3491         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
3492         DL_CALL_DT_FINI() that call the functions directly.
3493         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
3494         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
3495         * elf/dl-fini.c: Likewise.
3496
3497 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
3498
3499         * malloc/hooks.c (memalign_check): Add alignment rounding.
3500         * malloc/malloc.c (_mid_memalign): New function.
3501         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
3502         Implement by calling _mid_memalign.
3503         * manual/probes.texi (Memory Allocation Probes): Remove
3504         memory_valloc_retry and memory_pvalloc_retry.
3505
3506 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3507
3508         * locale/programs/locarchive.c (open_archive): Add const
3509         qualifier to ARCHIVEFNAME and copy default fname to
3510         DEFAULT_FNAME.
3511
3512         [BZ #15601]
3513         * libio/tst-widetext.input: Rename Oriya to Odia.
3514         * locale/iso-639.def: Likewise.
3515
3516         * manual/probes.texi (Mathematical Function Probes): Add
3517         documentation for sin, cos, asin and acos probes.
3518         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
3519         (__sin32): Add slowasin probe.
3520         (__cos32): Add slowacos probe.
3521         (__mpsin): Add slowsin probe.
3522         (__mpcos): Add slowcos probe.
3523
3524 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3525
3526         [BZ #15483]
3527         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
3528         thread-local __sim_exceptions_thread and global
3529         __sim_exceptions_global.
3530         (__sim_disabled_exceptions): Change to thread-local
3531         __sim_disabled_exceptions_thread and global
3532         __sim_disabled_exceptions_global.
3533         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3534         and global __sim_round_mode_global.
3535         (__simulate_exceptions): Use thread-local floating-point state and
3536         set global state from it as needed.
3537         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
3538         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
3539         __sim_round_mode_thread.
3540         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
3541         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
3542         and global __sim_exceptions_global.
3543         (__sim_disabled_exceptions): Change to thread-local
3544         __sim_disabled_exceptions_thread and global
3545         __sim_disabled_exceptions_global.
3546         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3547         and global __sim_round_mode_global.
3548         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
3549         (SIM_SET_GLOBAL): Likewise.
3550         * sysdeps/powerpc/soft-fp/sfp-machine.h
3551         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
3552         __sim_round_mode_thread.
3553         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
3554         __sim_disabled_exceptions_thread.
3555         (__sim_exceptions): Change to __sim_exceptions_thread.
3556         (__sim_disabled_exceptions): Change to
3557         __sim_disabled_exceptions_thread.
3558         (__sim_round_mode): Change to __sim_round_mode_thread.
3559         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
3560         thread-local floating-point state and set global state from it as
3561         needed.
3562         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
3563         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
3564         (__sim_disabled_exceptions): Remove extern declaration.
3565         (feenableexcept): Use thread-local floating-point state and set
3566         global state from it as needed.
3567         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
3568         extern declaration.
3569         (__sim_disabled_exceptions): Likewise.
3570         (__sim_round_mode): Likewise.
3571         (__fegetenv): Use thread-local floating-point state.
3572         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
3573         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3574         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
3575         floating-point state and set global state from it as needed.
3576         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
3577         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
3578         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
3579         Likewise.
3580         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
3581         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
3582         Likewise.
3583         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
3584         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
3585         Use __sim_round_mode_thread.
3586         * math/test-fenv-tls.c: New file.
3587         * math/Makefile (tests): Add test-fenv-tls.
3588         ($(objpfx)test-fenv-tls): Depend on
3589         $(common-objpfx)nptl/libpthread.so.
3590
3591 2013-11-19  Andreas Schwab  <schwab@suse.de>
3592
3593         * locale/programs/locale.c (show_info): Decode wordarray elements.
3594         * locale/categories.def (LC_MONETARY): Add element for
3595         _NL_MONETARY_CRNCYSTR.
3596         * locale/C-monetary.c (conversion_rate): New variable.
3597         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
3598         element.
3599
3600 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
3601
3602         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
3603         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
3604
3605 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3606
3607         * elf/Makefile (tst-auxv): New test.
3608         * elf/tst-auxv.c: New
3609         * elf/rtld.c (dl_main): Adjust AT_EXECFN
3610
3611 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
3612
3613         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
3614         (hidden_proto): Caller changed.
3615         (hidden_tls_proto): New macro.
3616         (libc_hidden_tls_proto): Likewise.
3617         (rtld_hidden_tls_proto): Likewise.
3618         (libm_hidden_tls_proto): Likewise.
3619         (libresolv_hidden_tls_proto): Likewise.
3620         (librt_hidden_tls_proto): Likewise.
3621         (libdl_hidden_tls_proto): Likewise.
3622         (libnss_files_hidden_tls_proto): Likewise.
3623         (libnsl_hidden_tls_proto): Likewise.
3624         (libnss_nisplus_hidden_tls_proto): Likewise.
3625         (libutil_hidden_tls_proto): Likewise.
3626
3627 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
3628
3629         [BZ #10253]
3630         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
3631         (decompose_rpath): Defer expansion to fillin_rpath.
3632         (_dl_init_paths): Pass linkmap to fillin_rpath.
3633
3634 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3635
3636         * benchtests/Makefile: Add strsep.
3637         * benchtests/bench-strsep.c: New file: strsep benchtest.
3638         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
3639
3640 2013-11-18  Andreas Schwab  <schwab@suse.de>
3641
3642         * locale/programs/locale.c (show_info) [case byte]: Check for
3643         '\377' instead of '\177'.
3644         * locale/C-monetary.c (not_available): Always use "\377".
3645         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
3646         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
3647         detect unavailable sign_posn locale elements.
3648         * locale/localeconv.c (__localeconv): For grouping and
3649         mon_grouping handle "\177" and "\377" like no grouping.
3650         (INT_ELEM): New macro.  Use it to set all numeric members.
3651         * locale/programs/ld-monetary.c (monetary_read)
3652         <tok_mon_grouping>: Normalize single -1 to the empty string.
3653         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
3654         Likewise.
3655
3656 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3657
3658         [BZ #16055]
3659         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
3660         when we match (nil).
3661         * stdio-common/tst-sscanf.c (struct test): Add testcase.
3662
3663 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
3664
3665         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
3666         (NO_TEST_INLINE): Update value.
3667         (ERRNO_UNCHANGED): Likewise.
3668         (ERRNO_EDOM): Likewise.
3669         (ERRNO_ERANGE): Likewise.
3670         (IGNORE_RESULT): Likewise.
3671         (check_float_internal): Check signs of NaN results if
3672         TEST_NAN_SIGN used.
3673         (check_complex): Pass TEST_NAN_SIGN flag through to second
3674         check_float_internal call.
3675         (copysign_test_data): Add tests with quiet NaNs as second
3676         argument.  Use TEST_NAN_SIGN.
3677         (fabs_test_data): Add test of negative quiet NaN argument.  Use
3678         TEST_NAN_SIGN.
3679         (signbit_test_data): Add tests of quiet NaN argument.
3680         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
3681
3682         * math/gen-libm-test.pl (show_exceptions): Take extra argument
3683         $ignore_result.
3684         (parse_args): Handle function results specified as IGNORE.
3685         * math/libm-test.inc (IGNORE_RESULT): New macro.
3686         (check_float_internal): Do not check numerical result if flag
3687         IGNORE_RESULT set.
3688         (check_complex): Pass through IGNORE_RESULT to second
3689         check_float_internal call.
3690         (check_int): Do not check numerical result if flag IGNORE_RESULT
3691         set.
3692         (check_long): Likewise.
3693         (check_bool): Likewise.
3694         (check_longlong): Likewise.
3695         (lrint_test_data): Add tests of infinite and NaN arguments.
3696         (lrint_tonearest_test_data): Likewise.
3697         (lrint_towardzero_test_data): Likewise.
3698         (lrint_downward_test_data): Likewise.
3699         (lrint_upward_test_data): Likewise.
3700         (llrint_test_data): Likewise.
3701         (llrint_tonearest_test_data): Likewise.
3702         (llrint_towardzero_test_data): Likewise.
3703         (llrint_downward_test_data): Likewise.
3704         (llrint_upward_test_data): Likewise.
3705         (lround_test_data): Likewise.
3706         (llround_test_data): Likewise.
3707
3708         * math/libm-test.inc (NO_TEST_INLINE): New macro.
3709         (ERRNO_UNCHANGED): Update value.
3710         (ERRNO_EDOM): Likewise.
3711         (ERRNO_ERANGE): Likewise.
3712         (NO_TEST_INLINE_FLOAT): New macro.
3713         (NO_TEST_INLINE_DOUBLE): Likewise.
3714         (enable_test): New function.
3715         (RUN_TEST_f_f): Check enable_test before running test.
3716         (RUN_TEST_2_f): Likewise.
3717         (RUN_TEST_fff_f): Likewise.
3718         (RUN_TEST_c_f): Likewise.
3719         (RUN_TEST_f_f1): Likewise.
3720         (RUN_TEST_fF_f1): Likewise.
3721         (RUN_TEST_fI_f1): Likewise.
3722         (RUN_TEST_ffI_f1): Likewise.
3723         (RUN_TEST_c_c): Likewise.
3724         (RUN_TEST_cc_c): Likewise.
3725         (RUN_TEST_f_i): Likewise.
3726         (RUN_TEST_f_i_tg): Likewise.
3727         (RUN_TEST_ff_i_tg): Likewise.
3728         (RUN_TEST_f_b): Likewise.
3729         (RUN_TEST_f_b_tg): Likewise.
3730         (RUN_TEST_f_l): Likewise.
3731         (RUN_TEST_f_L): Likewise.
3732         (RUN_TEST_fFF_11): Likewise.
3733         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
3734         conditionals.
3735         (cosh_test_data): Likewise.
3736         (exp_test_data): Likewise.
3737         (expm1_test_data): Likewise.
3738         (hypot_test_data): Likewise.
3739         (pow_test_data): Likewise.
3740         (sinh_test_data): Likewise.
3741         (tanh_test_data): Likewise.
3742         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
3743         flags argument.
3744
3745         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
3746         tests with quiet NaN input and output.
3747         (acosh_test_data): Likewise.
3748         (asin_test_data): Likewise.
3749         (asinh_test_data): Likewise.
3750         (atan_test_data): Likewise.
3751         (atanh_test_data): Likewise.
3752         (atan2_test_data): Likewise.
3753         (cbrt_test_data): Likewise.
3754         (cos_test_data): Likewise.
3755         (cosh_test_data): Likewise.
3756         (erf_test_data): Likewise.
3757         (erfc_test_data): Likewise.
3758         (exp_test_data): Likewise.
3759         (exp10_test_data): Likewise.
3760         (exp2_test_data): Likewise.
3761         (expm1_test_data): Likewise.
3762         (hypot_test_data): Likewise.
3763         (j0_test_data): Likewise.
3764         (j1_test_data): Likewise.
3765         (jn_test_data): Likewise.
3766         (lgamma_test_data): Likewise.
3767         (log_test_data): Likewise.
3768         (log10_test_data): Likewise.
3769         (log1p_test_data): Likewise.
3770         (log2_test_data): Likewise.
3771         (pow_test_data): Likewise.
3772         (scalb_test_data): Likewise.
3773         (sin_test_data): Likewise.
3774         (sincos_test_data): Likewise.
3775         (sinh_test_data): Likewise.
3776         (tan_test_data): Likewise.
3777         (tanh_test_data): Likewise.
3778         (tgamma_test_data): Likewise.
3779         (y0_test_data): Likewise.
3780         (y1_test_data): Likewise.
3781         (yn_test_data): Likewise.
3782
3783         [BZ #16167]
3784         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
3785         argument being NaN and avoid computations with second argument in
3786         that case.
3787         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3788         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3789         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3790
3791 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
3792
3793         * locale/iso-639.def: Add Chitwani Tharu (the).
3794
3795 2013-11-14  Andreas Schwab  <schwab@suse.de>
3796
3797         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
3798         word instead of empty string.
3799
3800 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3801
3802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3803         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
3804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3805         (__fe_nomask_env): Likewise.
3806
3807 2013-11-13  Steve Ellcey  <sellcey@mips.com>
3808
3809         * benchtests/bench-timing.h: Include time.h.
3810
3811 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
3812
3813         [BZ #15997]
3814         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
3815         to 3.4.0 for x32.
3816         * sysdeps/unix/sysv/linux/configure: Regenerated.
3817
3818 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3819
3820         [BZ #16151]
3821         * stdlib/strtod_l.c (round_and_return): Do not consider
3822         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
3823         exponent one less than half the least subnormal exponent.
3824         * stdlib/test-strtod-round-data: Add more tests.
3825         * stdlib/tst-strtod-round.c (tests): Regenerated.
3826
3827 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3828
3829         [BZ #14143]
3830         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
3831         (__fe_mask_env): Likewise.
3832         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
3833         libm_hidden_proto and add function prototype.
3834         (__fe_mask_env): Add function prototype.
3835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3836         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
3837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3838         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
3839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3840         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
3841
3842 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3843
3844         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
3845         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
3846
3847 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3848
3849         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
3850         of htab_find_slot().
3851
3852 2013-11-11  David S. Miller  <davem@davemloft.net>
3853
3854         [BZ #16150]
3855         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
3856         symbol in the non-vis3 case in static builds.
3857         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
3858         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
3859         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
3860         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
3861
3862 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3863
3864         [BZ #387]
3865         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
3866         it is empty.
3867
3868 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3869
3870         * benchtests/Makefile: Add bench-strtod.
3871         * benchtests/bench-strtod.c: New file: strtod benchtest
3872
3873 2013-11-11  Andreas Schwab  <schwab@suse.de>
3874
3875         [BZ #16153]
3876         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
3877         terminating NUL in key length.
3878
3879 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3880
3881         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
3882         Add artificial ODP entry for vDSO symbol for PPC64.
3883         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
3884         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
3885
3886 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3887
3888         [BZ #15374]
3889         * nss/getent.c (services_keys): Recognize services starting with digit.
3890
3891 2013-11-06  David S. Miller  <davem@davemloft.net>
3892
3893         [BZ #15985]
3894         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
3895         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
3896
3897 2013-11-06  Will Newton  <will.newton@linaro.org>
3898
3899         * manual/memory.texi (Malloc Examples): Remove register
3900         keyword from examples.
3901
3902 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
3903
3904         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
3905
3906 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
3907
3908         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
3909         depending on [__GCC_IEC_559 > 0].
3910         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
3911         depending on [__GCC_IEC_559_COMPLEX > 0].
3912
3913 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
3914
3915         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
3916         to iso-639.def.
3917
3918 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
3919
3920         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
3921
3922 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
3923
3924         [BZ #16112]
3925         * malloc/malloc (malloc_info): Do not handle first bin as
3926         special case.
3927
3928 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
3929
3930         * locale/iso-639.def: Add Central Nahuatl (nhn).
3931
3932 2013-11-01  Bruno Haible  <bruno@clisp.org>
3933
3934         [BZ #7003]
3935         * manual/math.texi (BSD Random): Specify range upper bound as
3936         in POSIX.
3937
3938 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
3939
3940         * locale/iso-639.def: Add Meadow Mari (mhr).
3941
3942 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
3943
3944         [BZ #14752], [BZ #15763]
3945         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
3946         Validate name.
3947         * rt/tst_shm.c: Add test for escaping directory.
3948
3949 2013-10-31  Andreas Schwab  <schwab@suse.de>
3950
3951         [BZ #15917]
3952         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
3953         followed by 'x' as part of digit sequence.
3954         * stdio-common/tst-sscanf.c (double_tests2): New tests.
3955
3956 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
3957
3958         [BZ #16037]
3959         * configure.ac: allow GNU Make 4.0 and greater.
3960         * configure: Regenerated.
3961
3962 2013-10-30  Will Newton  <will.newton@linaro.org>
3963
3964         [BZ #16038]
3965         * malloc/hooks.c (memalign_check): Limit alignment to the
3966         maximum representable power of two.
3967         * malloc/malloc.c (__libc_memalign): Likewise.
3968         * malloc/tst-memalign.c (do_test): Add test for very
3969         large alignment values.
3970         * malloc/tst-posix_memalign.c (do_test): Likewise.
3971
3972 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3973
3974         [BZ #11087]
3975         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
3976         (munmap_chunk): Likewise.
3977         (mremap_chunk): Likewise.
3978
3979 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
3980
3981         [BZ #15799]
3982         * stdlib/div.c (div): Remove obsolete code.
3983         * stdlib/ldiv.c (ldiv): Likewise.
3984         * stdlib/lldiv.c (lldiv): Likewise.
3985
3986 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3987
3988         [BZ #16071]
3989         * nss/nss_files/files-XXX.c (get_contents_ret): New
3990         enumerator.
3991         (get_contents): New function.
3992         (internal_getent): Use it.  Expand size of LINEBUFLEN.
3993
3994 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
3995
3996         * configure.in: Moved to ...
3997         * configure.ac: ... here. Change reference to configure.in
3998         to configure.ac.
3999         * sysdeps/arm/preconfigure.ac: ... here.
4000         configure.in to configure.ac.
4001         * sysdeps/gnu/configure.in: Moved to ...
4002         * sysdeps/gnu/configure.ac: ... here.
4003         * sysdeps/i386/configure.in: Moved to ...
4004         * sysdeps/i386/configure.ac: ... here.
4005         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
4006         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
4007         * sysdeps/mach/configure.in: Moved to ...
4008         * sysdeps/mach/configure.ac: ... here.
4009         * sysdeps/mach/hurd/configure.in: Moved to ...
4010         * sysdeps/mach/hurd/configure.ac: ... here.
4011         * sysdeps/powerpc/configure.in: Moved to ...
4012         * sysdeps/powerpc/configure.ac: ... here.
4013         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
4014         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
4015         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
4016         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
4017         * sysdeps/s390/s390-32/configure.in: Moved to ...
4018         * sysdeps/s390/s390-32/configure.ac: ... here.
4019         * sysdeps/s390/s390-64/configure.in: Moved to ...
4020         * sysdeps/s390/s390-64/configure.ac: ... here.
4021         * sysdeps/sh/configure.in: Moved to ...
4022         * sysdeps/sh/configure.ac: ... here.
4023         * sysdeps/sparc/configure.in: Moved to ...
4024         * sysdeps/sparc/configure.ac: ... here.
4025         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
4026         * sysdeps/unix/sysv/linux/configure.ac: ... here.
4027         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
4028         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
4029         * sysdeps/x86_64/configure.in: Moved to ...
4030         * sysdeps/x86_64/configure.ac: ... here.
4031         * sysdeps/x86_64/preconfigure.in: Moved to ...
4032         * sysdeps/x86_64/preconfigure.ac: ... here.
4033         * aclocal.m4: Change reference to configure.in to configure.ac.
4034         * config.h.in: Likewise.
4035         * manual/install.texi: Likewise.
4036         * manual/maint.texi: Likewise.
4037         * Makefile: Likewise.
4038         * malloc/Makefile: Likewise.
4039         * nscd/Makefile: Likewise.
4040         * Makeconfig: Change reference to configure.in and
4041         preconfigure.in to configure.ac and preconfigure.ac
4042         respectively.
4043         * INSTALL: Regenerated.
4044         * configure: Likewise.
4045         * sysdeps/gnu/configure: Likewise.
4046         * sysdeps/i386/configure: Likewise.
4047         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
4048         * sysdeps/mach/configure: Likewise.
4049         * sysdeps/mach/hurd/configure: Likewise.
4050         * sysdeps/powerpc/configure: Likewise.
4051         * sysdeps/powerpc/powerpc32/configure: Likewise.
4052         * sysdeps/powerpc/powerpc64/configure: Likewise.
4053         * sysdeps/s390/s390-32/configure: Likewise.
4054         * sysdeps/s390/s390-64/configure: Likewise.
4055         * sysdeps/sh/configure: Likewise.
4056         * sysdeps/sparc/configure: Likewise.
4057         * sysdeps/unix/sysv/linux/configure: Likewise.
4058         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
4059         * sysdeps/x86_64/configure: Likewise.
4060         * sysdeps/x86_64/preconfigure: Likewise.
4061
4062 2013-10-29  Andreas Schwab  <schwab@suse.de>
4063
4064         * stdio-common/Makefile (tst-swscanf-ENV): Define.
4065
4066 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4067
4068         * benchtests/pow-inputs: Add new inputs.
4069
4070         * benchtests/exp-inputs: Add new inputs.
4071
4072         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
4073         conditional check for return value.
4074         (__cos32): Likewise.
4075
4076 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4077
4078         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
4079         to provide a boost for large inputs with word alignment.
4080         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
4081         implementation based on optimized PPC64 strcpy.
4082         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
4083         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
4084         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
4085         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
4086
4087 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4088
4089         [BZ #2801]
4090         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
4091
4092 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4093
4094         [BZ #14876]
4095         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
4096         * time/tst-strptime.c (day_tests): Add testcase.
4097
4098 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4099
4100         [BZ #14029]
4101         * manual/pattern.texi: Acknowledge that fnmatch can fail.
4102
4103 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
4104
4105         [BZ #16074]
4106         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
4107         MAP_FAILED on error.
4108
4109 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4110
4111         [BZ #16072]
4112         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
4113         heap for large requests.
4114
4115 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
4116
4117         [BZ #9954]
4118         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
4119         result if the result has no associated interface.
4120         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
4121         interface for all 127.X.Y.Z addresses.
4122
4123 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
4124
4125         * locale/iso-639.def: Add Ligurian (lij)
4126
4127 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
4128
4129         [BZ #15825]
4130         * sunrpc/rpc_main.c: Document rpcgen -5.
4131
4132 2013-10-19  Michael Stahl  <mstahl@redhat.com>
4133
4134         * elf/rtld.c (do_preload): Print the reason why preloading failed.
4135
4136 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4137
4138         [BZ #10278]
4139         * posix/glob.c: Match only directories when trailing slash is present.
4140         * posix/tst-gnuglob.c (my_opendir): Do not open files.
4141         (main): Add testcase.
4142
4143 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4144
4145         [BZ #15670]
4146         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
4147
4148 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
4149
4150         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
4151         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
4152         AUTH_DES and cindex for FIPS 140-2.
4153         (DES Encryption): Add cindex FIPS 46-3.
4154
4155         * locale/locarchive.h (struct locarhandle): Add fname.
4156         * locale/programs/localedef.c (main): Pass ARGV[remaining]
4157         if an optional argument was specified to --list-archive,
4158         otherwise NULL.
4159         * locale/programs/locarchive.c (show_archive_content): Take new
4160         argument fname and pass it via ah.fname to open_archive.
4161         * locale/programs/localedef.h: Update decl.
4162         (open_archive): If AH->fname is non-null, open that file
4163         rather than the default file name, and don't ignore ENOENT.
4164         (create_archive): Set AH.fname to NULL.
4165         (delete_locales_from_archive): Likewise.
4166         (add_locales_to_archive): Likewise.
4167         * locale/programs/locfile.c (write_all_categories): Likewise.
4168
4169 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
4170             Aldy Hernandez  <aldyh@redhat.com>
4171
4172         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
4173         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
4174         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
4175         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
4176         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
4177         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
4178         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
4179         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
4180         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
4181         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
4182         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
4183         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
4184         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
4185         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
4186         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
4187         Likewise.
4188         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
4189         Likewise.
4190         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
4191         Likewise.
4192         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
4193         Likewise.
4194         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
4195         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
4196         Likewise.
4197         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
4198         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
4199         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
4200         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
4201         Likewise.
4202         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
4203         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
4204         * sysdeps/powerpc/preconfigure: Likewise.
4205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
4206         Likewise.
4207         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
4208         Replace contents of file by #include of <fenv_libc.h>.
4209         * sysdeps/powerpc/soft-fp/sfp-machine.h
4210         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
4211         and <sys/prctl.h>.
4212         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
4213         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
4214         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
4215         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
4216         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
4217         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
4218         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
4219         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
4220         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
4221         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
4222         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
4223         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
4224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
4225         Allow copysignl PLT reference to be missing.
4226
4227 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
4228             Joseph Myers  <joseph@codesourcery.com
4229
4230         [BZ #15948]
4231         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
4232         single character.
4233         (add_to_tablewc): Assert sequence of wide characters is nonempty.
4234
4235 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4236
4237         * elf/tst-tls-dlinfo.c: Don't include tls.h.
4238         * elf/tst-tls1.c: Likewise.
4239         * elf/tst-tls10.h: Likewise.
4240         * elf/tst-tls14.c: Likewise.
4241         * elf/tst-tls2.c: Likewise.
4242         * elf/tst-tls3.c: Likewise.
4243         * elf/tst-tls4.c: Likewise.
4244         * elf/tst-tls5.c: Likewise.
4245         * elf/tst-tls6.c: Likewise.
4246         * elf/tst-tls7.c: Likewise.
4247         * elf/tst-tls8.c: Likewise.
4248         * elf/tst-tls9.c: Likewise.
4249         * elf/tst-tlsmod1.c: Likewise.
4250         * elf/tst-tlsmod13.c: Likewise.
4251         * elf/tst-tlsmod13a.c: Likewise.
4252         * elf/tst-tlsmod14a.c: Likewise.
4253         * elf/tst-tlsmod16a.c: Likewise.
4254         * elf/tst-tlsmod16b.c: Likewise.
4255         * elf/tst-tlsmod2.c: Likewise.
4256         * elf/tst-tlsmod3.c: Likewise.
4257         * elf/tst-tlsmod4.c: Likewise.
4258         * elf/tst-tlsmod5.c: Likewise.
4259         * elf/tst-tlsmod6.c: Likewise.
4260
4261 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
4262
4263         [BZ #12486]
4264         * malloc/malloc.c: remove checks for statistics.
4265
4266 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4267
4268         [BZ #15277]
4269         * inet/inet_net.c (inet_network): Detect additional invalid strings.
4270         * inet/tst-network.c: Add testcase.
4271
4272 2013-10-17  Andreas Schwab  <schwab@suse.de>
4273
4274         [BZ #15218]
4275         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
4276         to determine canonical name.
4277
4278 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4279
4280         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
4281         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
4282         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4283         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4284         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4285         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4286         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4287         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4288         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4289         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4290         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4291         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4292         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4293         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4294         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4295         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4296         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4297         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4298         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4299         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4300         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4301         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4302         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4303         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
4304         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
4305         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4306         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4307         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
4308         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4309         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
4310         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4311         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4312         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4313         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4314         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4315         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4316         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4317         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4318         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4319         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4320         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4321         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4322         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
4323         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4324         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4325         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4326         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4327         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4328         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
4329         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4330         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
4331         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4332         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
4333         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
4334         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4335         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4336         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4337         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4338
4339 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
4340
4341         [BZ #16041]
4342         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
4343         make result into a quiet NaN.
4344
4345 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
4346
4347         * soft-fp/adddf3.c: Fix horizontal whitespace.
4348         * soft-fp/addsf3.c: Likewise.
4349         * soft-fp/addtf3.c: Likewise.
4350         * soft-fp/divdf3.c: Likewise.
4351         * soft-fp/divsf3.c: Likewise.
4352         * soft-fp/divtf3.c: Likewise.
4353         * soft-fp/double.h: Likewise.
4354         * soft-fp/eqdf2.c: Likewise.
4355         * soft-fp/eqsf2.c: Likewise.
4356         * soft-fp/eqtf2.c: Likewise.
4357         * soft-fp/extenddftf2.c: Likewise.
4358         * soft-fp/extended.h: Likewise.
4359         * soft-fp/extendsfdf2.c: Likewise.
4360         * soft-fp/extendsftf2.c: Likewise.
4361         * soft-fp/extendxftf2.c: Likewise.
4362         * soft-fp/fixdfdi.c: Likewise.
4363         * soft-fp/fixdfsi.c: Likewise.
4364         * soft-fp/fixdfti.c: Likewise.
4365         * soft-fp/fixsfdi.c: Likewise.
4366         * soft-fp/fixsfsi.c: Likewise.
4367         * soft-fp/fixsfti.c: Likewise.
4368         * soft-fp/fixtfdi.c: Likewise.
4369         * soft-fp/fixtfsi.c: Likewise.
4370         * soft-fp/fixtfti.c: Likewise.
4371         * soft-fp/fixunsdfdi.c: Likewise.
4372         * soft-fp/fixunsdfsi.c: Likewise.
4373         * soft-fp/fixunsdfti.c: Likewise.
4374         * soft-fp/fixunssfdi.c: Likewise.
4375         * soft-fp/fixunssfsi.c: Likewise.
4376         * soft-fp/fixunssfti.c: Likewise.
4377         * soft-fp/fixunstfdi.c: Likewise.
4378         * soft-fp/fixunstfsi.c: Likewise.
4379         * soft-fp/fixunstfti.c: Likewise.
4380         * soft-fp/floatdidf.c: Likewise.
4381         * soft-fp/floatdisf.c: Likewise.
4382         * soft-fp/floatditf.c: Likewise.
4383         * soft-fp/floatsidf.c: Likewise.
4384         * soft-fp/floatsisf.c: Likewise.
4385         * soft-fp/floatsitf.c: Likewise.
4386         * soft-fp/floattidf.c: Likewise.
4387         * soft-fp/floattisf.c: Likewise.
4388         * soft-fp/floattitf.c: Likewise.
4389         * soft-fp/floatundidf.c: Likewise.
4390         * soft-fp/floatundisf.c: Likewise.
4391         * soft-fp/floatunditf.c: Likewise.
4392         * soft-fp/floatunsidf.c: Likewise.
4393         * soft-fp/floatunsisf.c: Likewise.
4394         * soft-fp/floatunsitf.c: Likewise.
4395         * soft-fp/floatuntidf.c: Likewise.
4396         * soft-fp/floatuntisf.c: Likewise.
4397         * soft-fp/floatuntitf.c: Likewise.
4398         * soft-fp/fmadf4.c: Likewise.
4399         * soft-fp/fmasf4.c: Likewise.
4400         * soft-fp/fmatf4.c: Likewise.
4401         * soft-fp/gedf2.c: Likewise.
4402         * soft-fp/gesf2.c: Likewise.
4403         * soft-fp/getf2.c: Likewise.
4404         * soft-fp/ledf2.c: Likewise.
4405         * soft-fp/lesf2.c: Likewise.
4406         * soft-fp/letf2.c: Likewise.
4407         * soft-fp/muldf3.c: Likewise.
4408         * soft-fp/mulsf3.c: Likewise.
4409         * soft-fp/multf3.c: Likewise.
4410         * soft-fp/negdf2.c: Likewise.
4411         * soft-fp/negsf2.c: Likewise.
4412         * soft-fp/negtf2.c: Likewise.
4413         * soft-fp/op-1.h: Likewise.
4414         * soft-fp/op-2.h: Likewise.
4415         * soft-fp/op-4.h: Likewise.
4416         * soft-fp/op-8.h: Likewise.
4417         * soft-fp/op-common.h: Likewise.
4418         * soft-fp/quad.h: Likewise.
4419         * soft-fp/single.h: Likewise.
4420         * soft-fp/soft-fp.h: Likewise.
4421         * soft-fp/sqrtdf2.c: Likewise.
4422         * soft-fp/sqrtsf2.c: Likewise.
4423         * soft-fp/sqrttf2.c: Likewise.
4424         * soft-fp/subdf3.c: Likewise.
4425         * soft-fp/subsf3.c: Likewise.
4426         * soft-fp/subtf3.c: Likewise.
4427         * soft-fp/truncdfsf2.c: Likewise.
4428         * soft-fp/trunctfdf2.c: Likewise.
4429         * soft-fp/trunctfsf2.c: Likewise.
4430         * soft-fp/trunctfxf2.c: Likewise.
4431         * soft-fp/unorddf2.c: Likewise.
4432         * soft-fp/unordsf2.c: Likewise.
4433         * soft-fp/unordtf2.c: Likewise.
4434
4435 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
4436
4437         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
4438         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
4439
4440 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
4441
4442         * elf/dl-libc.c: Clear initfini list after freeing.
4443
4444 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
4445
4446         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
4447         * soft-fp/addsf3.c: Likewise.
4448         * soft-fp/addtf3.c: Likewise.
4449         * soft-fp/divdf3.c: Likewise.
4450         * soft-fp/divsf3.c: Likewise.
4451         * soft-fp/divtf3.c: Likewise.
4452         * soft-fp/double.h: Likewise.
4453         * soft-fp/eqdf2.c: Likewise.
4454         * soft-fp/eqsf2.c: Likewise.
4455         * soft-fp/eqtf2.c: Likewise.
4456         * soft-fp/extenddftf2.c: Likewise.
4457         * soft-fp/extended.h: Likewise.
4458         * soft-fp/extendsfdf2.c: Likewise.
4459         * soft-fp/extendsftf2.c: Likewise.
4460         * soft-fp/extendxftf2.c: Likewise.
4461         * soft-fp/fixdfdi.c: Likewise.
4462         * soft-fp/fixdfsi.c: Likewise.
4463         * soft-fp/fixdfti.c: Likewise.
4464         * soft-fp/fixsfdi.c: Likewise.
4465         * soft-fp/fixsfsi.c: Likewise.
4466         * soft-fp/fixsfti.c: Likewise.
4467         * soft-fp/fixtfdi.c: Likewise.
4468         * soft-fp/fixtfsi.c: Likewise.
4469         * soft-fp/fixtfti.c: Likewise.
4470         * soft-fp/fixunsdfdi.c: Likewise.
4471         * soft-fp/fixunsdfsi.c: Likewise.
4472         * soft-fp/fixunsdfti.c: Likewise.
4473         * soft-fp/fixunssfdi.c: Likewise.
4474         * soft-fp/fixunssfsi.c: Likewise.
4475         * soft-fp/fixunssfti.c: Likewise.
4476         * soft-fp/fixunstfdi.c: Likewise.
4477         * soft-fp/fixunstfsi.c: Likewise.
4478         * soft-fp/fixunstfti.c: Likewise.
4479         * soft-fp/floatdidf.c: Likewise.
4480         * soft-fp/floatdisf.c: Likewise.
4481         * soft-fp/floatditf.c: Likewise.
4482         * soft-fp/floatsidf.c: Likewise.
4483         * soft-fp/floatsisf.c: Likewise.
4484         * soft-fp/floatsitf.c: Likewise.
4485         * soft-fp/floattidf.c: Likewise.
4486         * soft-fp/floattisf.c: Likewise.
4487         * soft-fp/floattitf.c: Likewise.
4488         * soft-fp/floatundidf.c: Likewise.
4489         * soft-fp/floatundisf.c: Likewise.
4490         * soft-fp/floatunsidf.c: Likewise.
4491         * soft-fp/floatunsisf.c: Likewise.
4492         * soft-fp/floatuntidf.c: Likewise.
4493         * soft-fp/floatuntisf.c: Likewise.
4494         * soft-fp/floatuntitf.c: Likewise.
4495         * soft-fp/fmadf4.c: Likewise.
4496         * soft-fp/fmasf4.c: Likewise.
4497         * soft-fp/fmatf4.c: Likewise.
4498         * soft-fp/gedf2.c: Likewise.
4499         * soft-fp/gesf2.c: Likewise.
4500         * soft-fp/getf2.c: Likewise.
4501         * soft-fp/ledf2.c: Likewise.
4502         * soft-fp/lesf2.c: Likewise.
4503         * soft-fp/letf2.c: Likewise.
4504         * soft-fp/muldf3.c: Likewise.
4505         * soft-fp/mulsf3.c: Likewise.
4506         * soft-fp/multf3.c: Likewise.
4507         * soft-fp/negdf2.c: Likewise.
4508         * soft-fp/negsf2.c: Likewise.
4509         * soft-fp/negtf2.c: Likewise.
4510         * soft-fp/op-1.h: Likewise.
4511         * soft-fp/op-2.h: Likewise.
4512         * soft-fp/op-4.h: Likewise.
4513         * soft-fp/op-8.h: Likewise.
4514         * soft-fp/op-common.h: Likewise.
4515         * soft-fp/quad.h: Likewise.
4516         * soft-fp/single.h: Likewise.
4517         * soft-fp/soft-fp.h: Likewise.
4518         * soft-fp/sqrtdf2.c: Likewise.
4519         * soft-fp/sqrtsf2.c: Likewise.
4520         * soft-fp/sqrttf2.c: Likewise.
4521         * soft-fp/subdf3.c: Likewise.
4522         * soft-fp/subsf3.c: Likewise.
4523         * soft-fp/subtf3.c: Likewise.
4524         * soft-fp/truncdfsf2.c: Likewise.
4525         * soft-fp/trunctfdf2.c: Likewise.
4526         * soft-fp/trunctfsf2.c: Likewise.
4527         * soft-fp/trunctfxf2.c: Likewise.
4528         * soft-fp/unorddf2.c: Likewise.
4529         * soft-fp/unordsf2.c: Likewise.
4530         * soft-fp/unordtf2.c: Likewise.
4531
4532 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
4533
4534         [BZ #15672]
4535         * misc/error.c (error_tail): Fix possible buffer overflow.
4536
4537 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
4538
4539         [BZ #13028]
4540         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
4541         address.
4542
4543 2013-10-14  P. J. McDermott  <pj@pehjota.net>
4544
4545         [BZ #832]
4546         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
4547         testing pipefail option.
4548
4549 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4550
4551         * soft-fp/double.h: Indent preprocessor directives inside #if.
4552         * soft-fp/extended.h: Likewise.
4553         * soft-fp/op-2.h: Likewise.
4554         * soft-fp/op-4.h: Likewise.
4555         * soft-fp/op-common.h: Likewise.
4556         * soft-fp/quad.h: Likewise.
4557         * soft-fp/single.h: Likewise.
4558         * soft-fp/soft-fp.h: Likewise.
4559
4560 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
4561
4562         * iconv/iconv_prog.c: Fix typos.
4563         * stdio-common/psiginfo-data.h: Likewise.
4564
4565 2013-10-12   Reuben Thomas <rrt@sc3d.org>
4566
4567         [BZ #15764]
4568         * locale/setlocale.c: Fix typo.
4569
4570 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4571
4572         [BZ #16036]
4573         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
4574         signaling NaN arguments.
4575         * soft-fp/unordsf2.c (__unordsf2): Likewise.
4576         * soft-fp/unordtf2.c (__unordtf2): Likewise.
4577
4578         [BZ #14910]
4579         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
4580         unordered operands.
4581         * soft-fp/gesf2.c (__gesf2): Likewise.
4582         * soft-fp/getf2.c (__getf2): Likewise.
4583         * soft-fp/ledf2.c (__ledf2): Likewise.
4584         * soft-fp/lesf2.c (__lesf2): Likewise.
4585         * soft-fp/letf2.c (__letf2): Likewise.
4586
4587         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
4588         * soft-fp/eqsf2.c (__eqsf2): Likewise.
4589         * soft-fp/eqtf2.c (__eqtf2): Likewise.
4590         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
4591         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
4592         * soft-fp/fixdfti.c (__fixdfti): Likewise.
4593         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
4594         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
4595         * soft-fp/fixsfti.c (__fixsfti): Likewise.
4596         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
4597         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
4598         * soft-fp/fixtfti.c (__fixtfti): Likewise.
4599         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
4600         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
4601         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
4602         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
4603         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
4604         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
4605         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
4606         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
4607         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
4608         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
4609         * soft-fp/floatdisf.c (__floatdisf): Likewise.
4610         * soft-fp/floatsisf.c (__floatsisf): Likewise.
4611         * soft-fp/floattidf.c (__floattidf): Likewise.
4612         * soft-fp/floattisf.c (__floattisf): Likewise.
4613         * soft-fp/floattitf.c (__floattitf): Likewise.
4614         * soft-fp/floatundidf.c (__floatundidf): Likewise.
4615         * soft-fp/floatundisf.c (__floatundisf): Likewise.
4616         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
4617         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
4618         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
4619         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
4620         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
4621         * soft-fp/gesf2.c (__gesf2): Likewise.
4622         * soft-fp/getf2.c (__getf2): Likewise.
4623         * soft-fp/ledf2.c (__ledf2): Likewise.
4624         * soft-fp/lesf2.c (__lesf2): Likewise.
4625         * soft-fp/letf2.c (__letf2): Likewise.
4626
4627         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
4628         Undefine and redefine.
4629         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
4630         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
4631         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
4632         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
4633         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4634         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
4635         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4636         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
4637         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4638         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
4639         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4640         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
4641         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4642         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
4643         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4644
4645         [BZ #16032]
4646         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
4647         without decrementing exponent if mantissa >= that for the
4648         denominator, not >.
4649         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
4650         denominator, not >.  Decrement exponent in < case instead of
4651         incrementing in >= case.
4652         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
4653         without decrementing exponent if mantissa >= that for the
4654         denominator, not >.
4655
4656         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
4657         computing saturated result for unsigned overflow.
4658
4659 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4660             Jeff Law  <law@redhat.com>
4661
4662         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
4663         (atan2Mp): Add systemtap probe marker.
4664         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
4665         (__ieee754_log): Add systemtap probe marker.
4666         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
4667         (atanMp): Add systemtap probe marker.
4668         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
4669         (tanMp): Add systemtap probe marker.
4670         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
4671         (__slowexp): Add systemtap probe marker.
4672         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
4673         (__slowpow): Add systemtap probe marker.
4674         * manual/probes.texi: Document probes.
4675
4676 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
4677
4678         [BZ #15362]
4679         * libio/fileops.c (_IO_new_file_write): Return count of bytes
4680         written.
4681         (_IO_new_file_xsputn): Don't return EOF if nothing has been
4682         written.
4683         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
4684         written to buffer but not flushed.
4685         * libio/iofwrite_u.c:  Likewise.
4686         * libio/iopadn.c:  Return bytes returned even if EOF was
4687         encountered.
4688         * libio/iowpadn.c:  Likewise.
4689         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
4690         if _IO_padn does not write the whole buffer.
4691         [!COMPILE_WPRINTF] (PAD): Likewise.
4692
4693 2013-10-10  David S. Miller  <davem@davemloft.net>
4694
4695         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
4696         directory block.
4697
4698 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4699
4700         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
4701         instead of FSF address.
4702         * soft-fp/fixdfti.c: Likewise.
4703         * soft-fp/fixsfti.c: Likewise.
4704         * soft-fp/fixtfti.c: Likewise.
4705         * soft-fp/fixunsdfti.c: Likewise.
4706         * soft-fp/fixunssfti.c: Likewise.
4707         * soft-fp/fixunstfti.c: Likewise.
4708         * soft-fp/floattidf.c: Likewise.
4709         * soft-fp/floattisf.c: Likewise.
4710         * soft-fp/floattitf.c: Likewise.
4711         * soft-fp/floatuntidf.c: Likewise.
4712         * soft-fp/floatuntisf.c: Likewise.
4713         * soft-fp/floatuntitf.c: Likewise.
4714         * soft-fp/trunctfxf2.c: Likewise.
4715
4716         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
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 2013-10-10  David S. Miller  <davem@davemloft.net>
4732
4733         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4734
4735 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
4736
4737         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4738         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
4739         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
4740         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
4741         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
4742         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
4743         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
4744
4745         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
4746         for NaNs before doing comparisons on argument.
4747         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
4748         Likewise.
4749
4750 2013-10-10  Will Newton  <will.newton@linaro.org>
4751
4752         * malloc/hooks.c (memalign_check): Ensure the value of bytes
4753         passed to _int_memalign does not overflow.
4754
4755 2013-10-10  Torvald Riegel  <triegel@redhat.com>
4756
4757         * scripts/bench.pl: Add include-sources directive.
4758         * benchtests/README: Update documentation.
4759
4760 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4761
4762         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
4763         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
4764         instead of FP_INIT_ROUNDMODE.
4765         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
4766         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
4767
4768         [BZ #16034]
4769         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
4770         copy class of input value.
4771         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
4772         not handle exceptions.
4773         * soft-fp/negsf2.c (__negsf2): Likewise.
4774         * soft-fp/negtf2.c (__negtf2): Likewise.
4775         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
4776
4777 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
4778
4779         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
4780         semicolon.  From Linux kernel.
4781
4782 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
4783
4784         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
4785
4786 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
4787
4788         [BZ #156]
4789         * manual/socket.texi: Added statement about buffer
4790         for gethostbyname2_r.
4791
4792 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
4793
4794         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
4795         Use .p2align directive instead, throughout.
4796         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4797         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4798         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4799         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4800         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4801         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
4802         * sysdeps/x86_64/strchr.S: Likewise.
4803         * sysdeps/x86_64/strrchr.S: Likewise.
4804
4805 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4806
4807         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
4808
4809         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
4810
4811         * sysdeps/generic/math_private.h (__mpsin1): Remove
4812         declaration.
4813         (__mpcos1): Likewise.
4814         (__mpsin): New argument __range_reduce.
4815         (__mpcos): Likewise.
4816         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4817         (slow): Use __mpsin and __mpcos.
4818         (slow1): Likewise.
4819         (slow2): Likewise.
4820         (sloww): Likewise.
4821         (sloww1): Likewise.
4822         (sloww2): Likewise.
4823         (bsloww): Likewise.
4824         (bsloww1): Likewise.
4825         (bsloww2): Likewise.
4826         (cslow2): Likewise.
4827         (csloww): Likewise.
4828         (csloww1): Likewise.
4829         (csloww2): Likewise.
4830         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
4831         range_reduce.  Merge in __mpsin1.
4832         (__mpcos): Likewise.
4833         (__mpsin1): Remove.
4834         (__mpcos1): Likewise.
4835
4836 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
4837
4838         * locale/loadlocale.c (_nl_intern_locale_data): Use
4839         LOCFILE_ALIGNED_P.
4840         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
4841         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
4842         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
4843         obstack data is appropriately aligned.
4844         (obstack_int32_grow_fast): Likewise.
4845         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
4846         * locale/programs/locfile.c (add_locale_uint32): Likewise.
4847         (add_locale_uint32_array): Likewise.
4848
4849 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4850
4851         * benchtests/Makefile: Remove ARGLIST and RET variables.
4852         ($(objpfx)bench-%.c): Pass only function name to the script.
4853         * benchtests/README: Update documentation.
4854         * benchtests/acos-inputs: Add new directives.
4855         * benchtests/acosh-inputs: Likewise.
4856         * benchtests/asin-inputs: Likewise.
4857         * benchtests/asinh-inputs: Likewise.
4858         * benchtests/atan-inputs: Likewise.
4859         * benchtests/atanh-inputs: Likewise.
4860         * benchtests/cos-inputs: Likewise.
4861         * benchtests/cosh-inputs: Likewise.
4862         * benchtests/exp-inputs: Likewise.
4863         * benchtests/log-inputs: Likewise.
4864         * benchtests/pow-inputs: Likewise.
4865         * benchtests/rint-inputs: Likewise.
4866         * benchtests/sin-inputs: Likewise.
4867         * benchtests/sinh-inputs: Likewise.
4868         * benchtests/tan-inputs: Likewise.
4869         * benchtests/tanh-inputs: Likewise.
4870         * scripts/bench.pl: Add support for new directives.
4871
4872 2013-10-07  Alan Modra  <amodra@gmail.com>
4873
4874         * README: Fix careless merge.
4875
4876 2013-10-05  Alan Modra  <amodra@gmail.com>
4877
4878         * NEWS: Mention powerpc64le support and bugs fixed.
4879         * README: Both big-endian and little-endian powerpc64 supported.
4880
4881 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4882
4883         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
4884         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
4885         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
4886         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
4887
4888 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
4889
4890         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
4891         match prototype.
4892
4893 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
4894
4895         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
4896         Move -mhard-float appending from
4897         ports/sysdeps/powerpc/powerpc32/Makefile.
4898         [$(with-fp) = yes] (ASFLAGS): Likewise.
4899         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
4900         * sysdeps/powerpc/nofpu: Move directory from
4901         ports/sysdeps/powerpc/nofpu.
4902         * sysdeps/powerpc/soft-fp: Move directory from
4903         ports/sysdeps/powerpc/soft-fp.
4904         * sysdeps/powerpc/powerpc32/405: Move directory from
4905         ports/sysdeps/powerpc/powerpc32/405.
4906         * sysdeps/powerpc/powerpc32/440: Move directory from
4907         ports/sysdeps/powerpc/powerpc32/440.
4908         * sysdeps/powerpc/powerpc32/464: Move directory from
4909         ports/sysdeps/powerpc/powerpc32/464.
4910         * sysdeps/powerpc/powerpc32/476: Move directory from
4911         ports/sysdeps/powerpc/powerpc32/476.
4912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
4913         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
4914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
4915         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
4916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
4917         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
4918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
4919         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
4920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
4921         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
4922         * README: Update for powerpc-*-linux-gnu software floating point
4923         support in libc.
4924
4925         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
4926         case to powerpc/powerpc32*.
4927         * sysdeps/unix/sysv/linux/configure: Regenerated.
4928
4929         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
4930         (_FPU_MASK_OM): Define as 0x04.
4931         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
4932         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
4933         0x00c10080.
4934         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
4935         0x0000003c.
4936         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
4937
4938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4939         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4940         getcontext_e500.
4941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4942         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
4943         setcontext_e500.
4944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4945         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
4946         and setcontext_e500.
4947
4948 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
4949
4950         * locale/iso-3166.def: Update iso-1366.def and related occurrences
4951
4952 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4953
4954         * manual/threads.texi (Default Thread Attributes): Fix typo.
4955
4956 2013-10-04  Will Newton  <will.newton@linaro.org>
4957
4958         * malloc/Makefile: Add tst-memalign.
4959         * malloc/tst-memalign.c: New file.
4960
4961         * malloc/tst-posix_memalign.c: Add comments.
4962         (do_test): Add comments and call free on all potentially
4963         allocated pointers. Add space after cast.
4964
4965         * malloc/tst-pvalloc.c: Add comments.
4966         (do_test): Add comments and call free on all potentially
4967         allocated pointers. Remove duplicate check for NULL pointer.
4968         Add space after cast.
4969
4970         * malloc/tst-valloc.c: Add comments.
4971         (do_test): Add comments and call free on all potentially
4972         allocated pointers. Remove duplicate check for NULL pointer.
4973         Add space after cast.
4974
4975 2013-10-04  Alan Modra  <amodra@gmail.com>
4976
4977         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4978         Use stdint types in rather than __attribute__((mode())).
4979         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4980
4981 2013-10-04  Alan Modra  <amodra@gmail.com>
4982
4983         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
4984         Correct handling of unaligned relocs for little-endian.
4985         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
4986
4987 2013-10-04  Alan Modra  <amodra@gmail.com>
4988
4989         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
4990         * configure: Regenerate.
4991         * nptl/shlib-versions: Powerpc*le starts at 2.18.
4992         * shlib-versions: Likewise.
4993
4994 2013-10-04  Alan Modra  <amodra@gmail.com>
4995
4996         * string/tester.c (test_memrchr): Increment reported test cycle.
4997
4998 2013-10-04  Alan Modra  <amodra@gmail.com>
4999
5000         * string/test-memcpy.c (do_one_test): When reporting errors, print
5001         string address and don't overrun end of string.
5002
5003 2013-10-04  Alan Modra  <amodra@gmail.com>
5004
5005         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
5006         insrdi.  Make better use of reg selection to speed exit slightly.
5007         Schedule entry path a little better.  Remove useless "are we done"
5008         checks on entry to main loop.  Handle wrapping around zero address.
5009         Correct main loop count.  Handle single left-over word from main
5010         loop inline rather than by using loop_small.  Remove extra word
5011         case in loop_small caused by wrong loop count.  Add little-endian
5012         support.
5013         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5014         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
5015         cache hint.
5016         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5017         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
5018         support.  Avoid rlwimi.
5019         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
5020
5021 2013-10-04  Alan Modra  <amodra@gmail.com>
5022
5023         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
5024         insrdi.  Formatting.
5025         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5026         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5027         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
5028         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
5029         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
5030         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
5031
5032 2013-10-04  Alan Modra  <amodra@gmail.com>
5033
5034         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
5035         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5036         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
5037         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
5038         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5039         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5040         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5041         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
5042         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
5043         use of regs.  Use power7 mtocrf.  Tidy function tails.
5044
5045 2013-10-04  Alan Modra  <amodra@gmail.com>
5046
5047         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
5048         Formatting.  Consistently use rXXX register defines or rN defines.
5049         Use early exit labels that avoid restoring unused non-volatile regs.
5050         Make cr field use more consistent with rWORDn compares.  Rename
5051         regs used as shift registers for unaligned loop, using rN defines
5052         for short lifetime/multiple use regs.
5053         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5054         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
5055         addi 1,1,64 to pop stack frame.  Simplify return value code.
5056         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5057
5058 2013-10-04  Alan Modra  <amodra@gmail.com>
5059
5060         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
5061         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
5062         rather than rlwimi.
5063         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
5064         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
5065         little-endian support.  Correct typos.
5066         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
5067         rather than rlwimi.
5068         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
5069         in loop and entry code to keep "and." results.
5070         (strchr): Add little-endian support.  Comment.  Move cntlzd
5071         earlier in tail.
5072         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
5073
5074 2013-10-04  Alan Modra  <amodra@gmail.com>
5075
5076         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
5077         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
5078         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
5079         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
5080
5081 2013-10-04  Alan Modra  <amodra@gmail.com>
5082
5083         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
5084         (rTMP): Define as r11.
5085         (strcmp): Add little-endian support.  Optimise tail.
5086         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
5087         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5088         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5089         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5090         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5091         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5092         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5093
5094 2013-10-04  Alan Modra  <amodra@gmail.com>
5095
5096         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
5097         little-endian support.  Remove unnecessary "are we done" tests.
5098         Handle "s" wrapping around zero and extremely large "size".
5099         Correct main loop count.  Handle single left-over word from main
5100         loop inline rather than by using small_loop.  Correct comments.
5101         Delete "zero" tail, use "end_max" instead.
5102         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
5103
5104 2013-10-04  Alan Modra  <amodra@gmail.com>
5105
5106         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
5107         support.  Don't branch over align.
5108         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
5109         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
5110         support.  Rearrange tmp reg use to suit.  Comment.
5111         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
5112
5113 2013-10-04  Alan Modra  <amodra@gmail.com>
5114
5115         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
5116
5117 2013-10-04  Alan Modra  <amodra@gmail.com>
5118
5119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
5120         conditional form of branch and link when obtaining pc.
5121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
5122
5123 2013-10-04  Alan Modra  <amodra@gmail.com>
5124
5125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
5126         HIWORD/LOWORD.
5127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
5128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
5129
5130 2013-10-04  Alan Modra  <amodra@gmail.com>
5131
5132         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
5133         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
5134         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5135         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
5136         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5137         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5138         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
5139         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5140         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5141         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
5142
5143 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5144             Alistair Popple <alistair@ozlabs.au.ibm.com>
5145             Alan Modra <amodra@gmail.com>
5146
5147         [BZ #15723]
5148         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
5149         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
5150         _dl_hwcap access for little-endian.
5151         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
5152         destroy vmx regs when saving unaligned.
5153         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
5154         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
5155         destroy vmx regs when saving unaligned.
5156
5157 2013-10-04  Alan Modra  <amodra@gmail.com>
5158
5159         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
5160         Don't use a union to pack hi/low value.
5161
5162 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5163
5164         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
5165         for little-endian.
5166         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
5167         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
5168         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
5169         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
5170         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
5171
5172 2013-10-04  Alan Modra  <amodra@gmail.com>
5173
5174         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
5175         constants to usual value for .cst8 section, and remove redundant
5176         high address load.
5177         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
5178         constant for 0x1p52.  Load little-endian words of double from
5179         correct stack offsets.
5180
5181 2013-10-04  Alan Modra  <amodra@gmail.com>
5182
5183         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
5184         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
5185         words of double from correct stack offsets.
5186         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
5187         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
5188         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
5189         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
5190         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
5191         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
5192         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
5193         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
5194         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
5195         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
5196         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
5197         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
5198         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5199         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5200         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5201         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
5202         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
5203
5204 2013-10-04  Alan Modra  <amodra@gmail.com>
5205
5206         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
5207         64-bit int/double union.
5208         (_FPU_SETCW): Likewise.
5209         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5210         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
5211
5212 2013-10-04  Alan Modra  <amodra@gmail.com>
5213
5214         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
5215         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
5216
5217 2013-10-04  Alan Modra  <amodra@gmail.com>
5218
5219         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
5220         use vector int constants.
5221         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
5222
5223 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5224
5225         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
5226         array with long long.
5227         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
5228         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
5229         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
5230         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
5231         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
5232         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
5233         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
5234         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
5235         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
5236         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
5237         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
5238         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
5239         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
5240
5241 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5242
5243         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
5244         (__signbit): Likewise.  Correct for little-endian.
5245         (__signbitl): Call __signbit.
5246         (lrint): Correct for little-endian.
5247         (lrintf): Call lrint.
5248
5249 2013-10-04  Alan Modra  <amodra@gmail.com>
5250
5251         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
5252         union 32-bit int array member with 64-bit int array.
5253         (t515, tm256): Double rather than long double.
5254         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
5255
5256 2013-10-04  Alan Modra  <amodra@gmail.com>
5257
5258         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
5259         Delete.
5260         (IEEE854_LONG_DOUBLE_BIAS): Delete.
5261         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
5262         version of math_ldbl.h.
5263
5264 2013-10-04  Alan Modra  <amodra@gmail.com>
5265
5266         [BZ #15734], [BZ #15735]
5267         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
5268         all uses of ieee875 long double macros and unions.  Simplify test
5269         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
5270         ldbl_extract_mantissa value for ix,iy exponents.  Properly
5271         normalize after ldbl_extract_mantissa, and don't add hidden bit
5272         already handled.  Don't treat low word of ieee854 mantissa like
5273         low word of IBM long double and mask off bit when testing for
5274         zero.
5275         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
5276         all uses of ieee875 long double macros and unions.  Simplify tests
5277         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
5278         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
5279         two1022, instead use their values.  Recognise that tests for large
5280         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
5281         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
5282         Rewrite all uses of ieee875 long double macros and unions.  Simplify
5283         test for 0.0L and nan.  Correct negation.
5284         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
5285         ieee875 long double macros and unions.  Correct output for large
5286         magnitude x.  Correct absolute value calculation.
5287         (__erfcl): Likewise.
5288         * math/libm-test.inc: Add tests for errors discovered in IBM long
5289         double versions of fmodl, remainderl, erfl and erfcl.
5290
5291 2013-10-04  Alan Modra  <amodra@gmail.com>
5292
5293         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
5294         all uses of ieee854 long double macros and unions.  Simplify tests
5295         for long doubles that are fully specified by the high double.
5296         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5297         Likewise.
5298         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
5299         Remove dead code too.
5300         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5301         (__ieee754_ynl): Likewise.
5302         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5303         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
5304         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
5305         Remove dead code too.
5306         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
5307         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
5308         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
5309         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
5310         Simplify.
5311         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
5312         Simplify.
5313         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
5314         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
5315         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
5316         Comment on variable precision.
5317         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
5318         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5319         Likewise.
5320         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5321         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5322         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5323         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
5324         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
5325
5326 2013-10-04  Alan Modra  <amodra@gmail.com>
5327
5328         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
5329         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
5330         all uses of ieee854 long double macros and unions.
5331         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
5332         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5333         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
5334         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
5335         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5336         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5337         Likewise.
5338         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
5339         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5340         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
5341         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5342         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
5343         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
5344         Simplify sign and nan test too.
5345         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
5346         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
5347         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
5348         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
5349         Likewise.
5350         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5351         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
5352         Likewise.
5353         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5354         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
5355         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
5356         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
5357         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
5358         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
5359
5360 2013-10-04  Alan Modra  <amodra@gmail.com>
5361
5362         * stdio-common/printf_size.c (__printf_size): Don't use
5363         union ieee854_long_double in fpnum union.
5364         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
5365         signbit macro to retrieve sign from long double.
5366         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
5367         retrieve sign from long double.
5368         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
5369         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
5370         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
5371         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5372         * math/test-misc.c (main): Don't use union ieee854_long_double.
5373
5374 2013-10-04  Alan Modra  <amodra@gmail.com>
5375
5376         [BZ #15680]
5377         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
5378         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5379         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
5380         calculation.  Remove unnecessary test for denormal exponent.
5381         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
5382         Correct handling of denormals.  Avoid undefined shift behaviour.
5383         Correct normalisation of low mantissa when low double is denormal.
5384         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
5385         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
5386         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
5387         Correct normalisation of low mantissa.  Test for overflow of high
5388         mantissa and normalise.
5389         (ldbl_nearbyint): Use more readable constant for two52.
5390         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5391         (__mpn_construct_long_double): Fix test for overflow of high
5392         mantissa and correct normalisation.  Avoid undefined shift.
5393
5394 2013-10-04  Alan Modra  <amodra@gmail.com>
5395
5396         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5397         (union ibm_extended_long_double): Define as an array of ieee754_double.
5398         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
5399         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
5400         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
5401         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5402         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5403         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
5404         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5405         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5406         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5407         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
5408         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
5409
5410 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
5411
5412         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
5413         page size instead of calling getpagesize.
5414
5415         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
5416         (LOCFILE_ALIGN_MASK): Likewise.
5417         (LOCFILE_ALIGN_UP): Likewise.
5418         (LOCFILE_ALIGNED_P): Likewise.
5419         * locale/programs/ld-collate.c (collate_output): Use the new
5420         macros instead of __alignof__ (int32_t).
5421         * locale/weight.h (findidx): Likewise.
5422
5423 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
5424
5425         [BZ #431]
5426         * manual/string.texi: Fix strncat and wcsncat.
5427
5428 2013-10-03  Brooks Moses  <bmoses@google.com>
5429
5430         [BZ #15915]
5431         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
5432         * Makerules: ...here, and adjust associated comments.
5433
5434 2013-10-02  Will Newton  <will.newton@linaro.org>
5435
5436         * malloc/Makefile: Add tst-pvalloc.
5437         * malloc/tst-pvalloc.c: New file.
5438
5439 2013-10-02  Will Newton  <will.newton@linaro.org>
5440
5441         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
5442         improve test coverage.
5443
5444 2013-10-02  Will Newton  <will.newton@linaro.org>
5445
5446         * malloc/Makefile: Add tst-posix_memalign.
5447         * malloc/tst-posix_memalign.c: New file.
5448
5449 2013-10-01  Eric Blake  <eblake@redhat.com>
5450
5451         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
5452         Use __THROWNL rather than __THROW on static functions.
5453
5454 2013-09-30  Petr Machata  <pmachata@redhat.com>
5455
5456         * elf/elf.h (R_AARCH64_ABS16): New macro.
5457         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
5458         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
5459         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
5460         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
5461         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
5462         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
5463         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
5464         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
5465         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
5466         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
5467         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
5468         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
5469         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
5470         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
5471         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
5472         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
5473         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
5474         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
5475         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
5476         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
5477         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
5478         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
5479         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
5480         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
5481         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
5482         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
5483         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
5484         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
5485         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
5486         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
5487         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
5488         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
5489         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
5490         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
5491         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
5492         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
5493         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
5494         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
5495         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
5496         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
5497         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
5498         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
5499         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
5500         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
5501         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
5502         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
5503         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
5504         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
5505         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
5506         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
5507         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
5508         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
5509         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
5510         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
5511         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
5512         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
5513         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
5514         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
5515         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
5516         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
5517         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
5518         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
5519         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
5520         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
5521         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
5522         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
5523         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
5524         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
5525         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
5526         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
5527         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
5528         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
5529         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
5530         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
5531         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
5532         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
5533         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
5534         (R_AARCH64_TLSDESC_LDR): Likewise.
5535         (R_AARCH64_TLSDESC_ADD): Likewise.
5536         (R_AARCH64_TLSDESC_CALL): Likewise.
5537
5538 2013-09-30  Andreas Schwab  <schwab@suse.de>
5539
5540         [BZ #15048]
5541         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
5542         the nss database lookup.
5543         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5544         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5545
5546 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
5547
5548         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
5549
5550 2013-09-28  P. J. McDermott  <pj@pehjota.net>
5551
5552         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
5553         ${Bash-specific parameter/pattern/string} parameter expansion.
5554         * sysdeps/unix/make-syscalls.sh: Likewise.
5555
5556 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5557
5558         * sysdeps/sh/stackguard-macros.h: New file.
5559
5560 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
5561
5562         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
5563         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
5564         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
5565         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
5566         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5567         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
5568
5569 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5570
5571         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
5572         Fix thread ID register.
5573
5574 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
5575
5576         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
5577         [POSIX || UNIX98]: Require rather than permitting all symbols from
5578         <time.h>.
5579         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
5580         element of struct sched_param.
5581         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
5582         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
5583         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
5584         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
5585         constant.
5586
5587 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
5588
5589         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
5590         argument calculation.
5591
5592 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5593
5594         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
5595         Expect macro.
5596         [POSIX] (pthread_attr_t): Do not require type.
5597         [POSIX] (pthread_cond_t): Likewise.
5598         [POSIX] (pthread_condattr_t): Likewise.
5599         [POSIX] (pthread_key_t): Likewise.
5600         [POSIX] (pthread_mutex_t): Likewise.
5601         [POSIX] (pthread_mutexattr_t): Likewise.
5602         [POSIX] (pthread_once_t): Likewise.
5603         [POSIX] (pthread_t): Likewise.
5604         [POSIX-based standards] (pthread_atfork): Expect function.
5605
5606 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5607             Richard Sandiford  <richard@codesourcery.com>
5608
5609         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
5610         (swap_endianness_p): New extern variable.
5611         (set_big_endian): New inline function.
5612         (maybe_swap_uint32): Likewise.
5613         (maybe_swap_uint32_array): Likewise.
5614         (maybe_swap_uint32_obstack): Likewise.
5615         * locale/programs/locfile.c: Include <stdbool.h>.
5616         (swap_endianness_p): New variable.
5617         (add_locale_uint32): Call maybe_swap_uint32.
5618         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
5619         (write_locale_data): Call maybe_swap_uint32_array.
5620         * locale/programs/ld-collate.c (obstack_int32_grow): Call
5621         maybe_swap_uint32.
5622         (obstack_int32_grow_fast): Likewise.
5623         (output_weightwc): Call maybe_swap_uint32_obstack.
5624         (collate_output): Likewise.
5625         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
5626         (OPT_LITTLE_ENDIAN): Likewise.
5627         (options): Add --little-endian and --big-endian options.
5628         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
5629         * locale/programs/locarchive.c: Include "locfile.h".
5630         (GET): New macro.
5631         (SET): Likewise.
5632         (INC): Likewise.
5633         (create_archive): Use the new macros to access fields of
5634         structures directly mapped from or written to locale archives.
5635         (oldlocrecentcmp): Likewise.
5636         (enlarge_archive): Likewise.
5637         (insert_name): Likewise.
5638         (add_alias): Likewise.
5639         (add_locale): Likewise.
5640         (delete_locales_from_archive): Likewise.
5641         (show_archive_content): Likewise.
5642         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
5643         locale data.
5644
5645 2013-09-24  Roland McGrath  <roland@hack.frob.com>
5646
5647         * manual/freemanuals.texi: Updated from (newly) canonical copy at
5648         http://www.gnu.org/doc/freemanuals.texi.
5649         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
5650
5651 2013-09-24  Will Newton  <will.newton@linaro.org>
5652
5653         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
5654         macro.
5655
5656 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
5657
5658         * locale/hashval.h (compute_hashval): Interpret bytes of key as
5659         unsigned char.
5660
5661 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
5662
5663         * manual/threads.texi (POSIX Threads): Fix a typo.
5664
5665 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5666
5667         [BZ #14547]
5668         * string/tst-strcoll-overflow.c: New test case.
5669         * string/Makefile (xtests): Add tst-strcoll-overflow.
5670         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
5671         cache if string sizes may cause integer overflow.
5672
5673         [BZ #14547]
5674         * string/strcoll_l.c (coll_seq): New members rule, idx,
5675         save_idx and back_us.
5676         (get_next_seq_nocache): New function.
5677         (do_compare_nocache): New function.
5678         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
5679         when malloc fails.
5680
5681 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
5682
5683         [BZ #15754]
5684         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
5685         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
5686         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
5687
5688         [BZ #15754]
5689         * elf/Makefile (tests): Add tst-ptrguard1.
5690         (tests-static): Add tst-ptrguard1-static.
5691         (tst-ptrguard1-ARGS): Define.
5692         (tst-ptrguard1-static-ARGS): Define.
5693         * elf/tst-ptrguard1.c: New file.
5694         * elf/tst-ptrguard1-static.c: New file.
5695         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
5696         * sysdeps/i386/stackguard-macros.h: Likewise.
5697         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5698         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5699         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5700         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5701         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5702         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5703
5704 2013-09-23  Hector Marco  <hecmargi@upv.es>
5705             Ismael Ripoll  <iripoll@disca.upv.es>
5706             Carlos O'Donell  <carlos@redhat.com>
5707
5708         [BZ #15754]
5709         * sysdeps/generic/stackguard-macros.h: Define
5710         __pointer_chk_guard_local and POINTER_CHK_GUARD.
5711         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
5712         Define __pointer_chk_guard_local.
5713         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
5714         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
5715
5716 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
5717
5718         [BZ #15859]
5719         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
5720
5721 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
5722
5723         * include/string.h (__ffs): Declare as hidden.
5724         * string/ffs.c (__ffs): Define as hidden.
5725         * sysdeps/i386/ffs.c (__ffs): Likewise.
5726         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
5727         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
5728         * sysdeps/s390/ffs.c (__ffs): Likewise.
5729         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
5730
5731 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
5732
5733         * NEWS: Mention malloc probes.
5734
5735         * malloc/arena.c (new_heap): New memory_heap_new probe.
5736         (grow_heap): New memory_heap_more probe.
5737         (shrink_heap): New memory_heap_less probe.
5738         (heap_trim): New memory_heap_free probe.
5739         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
5740         (systrim): New memory_sbrk_less probe.
5741         * manual/probes.texi: Document them.
5742
5743         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
5744         * manual/probes.texi: Document it.
5745
5746         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
5747         (__libc_realloc): Add memory_realloc_retry probe.
5748         (__libc_memalign): Add memory_memalign_retry probe.
5749         (__libc_valloc): Add memory_valloc_retry probe.
5750         (__libc_pvalloc): Add memory_pvalloc_retry probe.
5751         (__libc_calloc): Add memory_calloc_retry probe.
5752         * manual/probes.texi: Document them.
5753
5754         * malloc/arena.c (get_free_list): Add probe
5755         memory_arena_reuse_free_list.
5756         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
5757         and memory_arena_reuse.
5758         (arena_get2) [!PER_THREAD]: Likewise.
5759         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
5760         memory_arena_reuse_realloc.
5761         * manual/probes.texi: Document them.
5762
5763         * malloc/malloc.c (__libc_free): Add
5764         memory_mallopt_free_dyn_thresholds probe.
5765         (__libc_mallopt): Add multiple memory_mallopt probes.
5766         * manual/probes.texi: Document them.
5767
5768         * malloc/malloc.c: Include stap-probe.h.
5769         (__libc_mallopt): Add memory_mallopt probe.
5770         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
5771         * manual/probes.texi: New.
5772         * manual/Makefile (chapters): Add probes.
5773         * manual/threads.texi: Set next node.
5774
5775 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
5776
5777         [BZ #15963, #13985]
5778         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
5779         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
5780         Add `Chinese' to `nan' entry name.
5781
5782 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5783
5784         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
5785         (POLYNOMIAL): Likewise.
5786         (TAYLOR_SINCOS): Likewise.
5787         (TAYLOR_SLOW): Likewise.
5788         (__sin): Use TAYLOR_SINCOS.
5789         (__cos): Likewise.
5790         (slow): Use TAYLOR_SLOW.
5791         (sloww): Likewise.
5792         (bsloww): Likewise.
5793         (csloww): Likewise.
5794
5795 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5796
5797         * stdlib/strtod_l.c: Fix buffer overrun.
5798
5799 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5800
5801         * benchtests/Makefile (bench): Add sincos.
5802         * benchtests/bench-sincos.c: New file.
5803
5804         * math/libm-test.inc (cos_test_data): New test inputs.
5805         (sin_test_data): Likewise.
5806
5807         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
5808         macro.
5809         (__sin): Use it.
5810         (__cos): Likewise.
5811         (slow1): Likewise.
5812         (slow2): Likewise.
5813         (sloww1): Likewise.
5814         (sloww2): Likewise.
5815         (bsloww1): Likewise.
5816         (bsloww2): Likewise.
5817         (cslow2): Likewise.
5818         (csloww1): Likewise.
5819         (csloww2): Likewise.
5820
5821         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
5822         function.
5823         (__sin): Use it.
5824         (__cos): Likewise.
5825
5826         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
5827         gotos.
5828         (__cos): Likewise.
5829
5830 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
5831
5832         * config.h.in (HAVE_MIPS_NAN2008): New macro.
5833         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
5834         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
5835         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
5836         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
5837         * elf/cache.c (print_entry): Handle the new cache flags.
5838
5839 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5840             Aldy Hernandez  <aldyh@redhat.com>
5841
5842         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
5843         Change condition to [_SOFT_FLOAT].
5844         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
5845         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
5846         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
5847         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
5848         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
5849         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
5850         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
5851         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
5852         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
5853         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
5854         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
5855         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
5856         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
5857         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
5858         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
5859         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
5860         declaration.
5861
5862 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5863
5864         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
5865         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5866         (__longjmp): Use LOAD_GP to load saved GPRs.
5867         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
5868         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5869         (__sigsetjmp): Use SAVE_GP to save GPRs.
5870
5871         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
5872         Do not append -msoft-float.
5873         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
5874
5875 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5876
5877         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
5878
5879 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
5880
5881         [BZ #15966]
5882         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
5883         (_FPU_GETCW): Use initial "__" on variable and field names but not
5884         on macro parameter name.
5885         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
5886         parentheses around reference to macro parameter.
5887
5888 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
5889
5890         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
5891         prototype.
5892         (ctype_startup): Use uint32_t in cast and sizeof for
5893         ctype->charnames.
5894
5895 2013-09-11  Jia Liu  <proljc@gmail.com>
5896
5897         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
5898         __daddr_t_defined.
5899         [__FreeBSD__]: Likewise.
5900
5901 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
5902
5903         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
5904         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
5905         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
5906         (strchr): Remove __strchr_sse42 ifunc selection.
5907         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
5908         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
5909
5910 2013-09-11  Will Newton  <will.newton@linaro.org>
5911
5912         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
5913         parameter to RES. Remove hardcoded 1000 value.
5914         * benchtests/bench-skeleton.c (main): Pass RES parameter
5915         to TIMING_INIT and multiply result by 1000.
5916
5917 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5918
5919         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5920
5921 2013-09-11  Andreas Schwab  <schwab@suse.de>
5922
5923         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
5924         if not defined.
5925         (O_TMPFILE) [__USE_GNU]: Define.
5926         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
5927         Define.
5928
5929 2013-09-11  Will Newton  <will.newton@linaro.org>
5930
5931         [BZ #15857]
5932         * malloc/malloc.c (__libc_memalign): Check the value of bytes
5933         does not overflow.
5934
5935 2013-09-11  Will Newton  <will.newton@linaro.org>
5936
5937         [BZ #15856]
5938         * malloc/malloc.c (__libc_valloc): Check the value of bytes
5939         does not overflow.
5940
5941 2013-09-11  Will Newton  <will.newton@linaro.org>
5942
5943         [BZ #15855]
5944         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
5945         does not overflow.
5946
5947 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
5948
5949         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
5950         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5951         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5952         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5953         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5954
5955 2013-09-10  Allan McRae  <allan@archlinux.org>
5956
5957         [BZ #15748]
5958         * manual/arith.texi (Parsing of Floats): Clarify
5959         cross-reference.
5960
5961         [BZ #15849]
5962         * manual/install.texi (Running make install): Mention
5963         --enable-pt-chown.
5964         * INSTALL: Regenerated.
5965
5966 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
5967
5968         * csu/init-first.c (_init): Remove the !SHARED condition around
5969         FPU control word initialization.
5970         * elf/dl-support.c (_dl_fpu_control): New variable.
5971         (_dl_aux_init) <AT_FPUCW>: Initialize it.
5972         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
5973         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
5974         * math/test-fpucw-static.c: New file.
5975         * math/test-fpucw-ieee.c: New file.
5976         * math/test-fpucw-ieee-static.c: New file.
5977         * math/Makefile (tests): Add `test-fpucw-ieee' and
5978         `$(tests-static)'.
5979         (tests-static): New variable.
5980         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
5981         dependency to...
5982         [($(build-shared),yes)]
5983         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
5984         ... this.
5985         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
5986         New dependency.
5987
5988 2013-09-09  Allan McRae  <allan@archlinux.org>
5989
5990         [BZ #15939]
5991         * manual/string.texi (Collation Functions): Fix typo in
5992         strcoll example.
5993         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
5994
5995         [BZ #15893]
5996         * stdlib/isomac.c (get_null_defines): Fix memory leak.
5997
5998         [BZ #15892]
5999         * libio/memstream.c (open_memstream): Fix memory leak.
6000         * libio/wmemstream.c (open_wmemstream): Likewise.
6001
6002         [BZ #15895]
6003         * nscd/netgroupcache.c: Fix nesting of ifdefs.
6004
6005 2013-09-09  Will Newton  <will.newton@linaro.org>
6006
6007         * malloc/Makefile: Add tst-realloc to tests.
6008         * malloc/tst-realloc.c: New file.
6009
6010 2013-09-09  Allan McRae  <allan@archlinux.org>
6011
6012         [BZ #15844]
6013         * COPYING: Update from GNU website to fix FSF address.
6014         * COPYING.LIB: Likewise.
6015
6016 2013-09-06  David S. Miller  <davem@davemloft.net>
6017
6018         * po/zh_TW.po: Update Chinese (traditional) translation from
6019         translation project.
6020
6021 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
6022             Joseph Myers  <joseph@codesourcery.com>
6023
6024         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
6025         "localeinfo.h".
6026         (obstack_chunk_alloc): New macro.
6027         (obstack_chunk_free): Likewise.
6028         (record_offset): New function.
6029         (init_locale_data): Likewise.
6030         (align_locale_data): Likewise.
6031         (add_locale_empty): Likewise.
6032         (add_locale_raw_data): Likewise.
6033         (add_locale_raw_obstack): Likewise.
6034         (add_locale_string): Likewise.
6035         (add_locale_wstring): Likewise.
6036         (add_locale_uint32): Likewise.
6037         (add_locale_uint32_array): Likewise.
6038         (add_locale_char): Likewise.
6039         (start_locale_structure): Likewise.
6040         (end_locale_structure): Likewise.
6041         (start_locale_prelude): Likewise.
6042         (end_locale_prelude): Likewise.
6043         (write_locale_data): Take locale_file structure rather than an
6044         iovec.
6045         * locale/programs/locfile.h: Include "obstack.h".
6046         (struct locale_file): Change to store locale file contents instead
6047         of header.
6048         (init_locale_data): New prototype.
6049         (align_locale_data): Likewise.
6050         (add_locale_empty): Likewise.
6051         (add_locale_raw_data): Likewise.
6052         (add_locale_raw_obstack): Likewise.
6053         (add_locale_string): Likewise.
6054         (add_locale_wstring): Likewise.
6055         (add_locale_uint32): Likewise.
6056         (add_locale_uint32_array): Likewise.
6057         (add_locale_char): Likewise.
6058         (start_locale_structure): Likewise.
6059         (end_locale_structure): Likewise.
6060         (start_locale_prelude): Likewise.
6061         (end_locale_prelude): Likewise.
6062         (write_locale_data): Update prototype.
6063         * locale/programs/3level.h (struct TABLE): Remove result field.
6064         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
6065         Use new locale_file interface.
6066         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
6067         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
6068         * locale/programs/ld-address.c (address_output): Use new
6069         locale_file interface.
6070         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
6071         NO_ADD_LOCALE.
6072         (collate_finish): Don't call collseq_table_finalize.
6073         (collate_output): Use new locale_file interface.
6074         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
6075         in file.
6076         (NO_FINALIZE): Change to NO_ADD_LOCALE.
6077         (TABLE): Move defines earlier in file.
6078         (ELEMENT): Likewise.
6079         (DEFAULT): Likewise.
6080         (wctrans_table_add): Move macro and inline function earlier in
6081         file.
6082         (struct wctype_table): Move type earlier in file.
6083         (add_locale_wctype_table): New static prototype.
6084         (struct locale_ctype_t): Use logical types instead of struct iovec
6085         pointers for members.
6086         (ctype_output): Use new locale_file interface.
6087         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
6088         new locale_file interface.
6089         (allocate_arrays): Update for use of new locale_file interface.
6090         * locale/programs/ld-identification.c (identification_output): Use
6091         new locale_file interface.
6092         * locale/programs/ld-measurement.c (measurement_output): Likewise.
6093         * locale/programs/ld-messages.c (messages_output): Likewise.
6094         * locale/programs/ld-monetary.c (monetary_output): Likewise.
6095         * locale/programs/ld-name.c (name_output): Likewise.
6096         * locale/programs/ld-numeric.c (numeric_output): Likewise.
6097         * locale/programs/ld-paper.c (paper_output): Likewise.
6098         * locale/programs/ld-telephone.c (telephone_output): Likewise.
6099         * locale/programs/ld-time.c (time_output): Likewise.
6100
6101 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6102
6103         * benchtests/Makefile: Add memrchr benchmark.
6104         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
6105         benchmark as memrchr.
6106         * benchtests/bench-memrchr-ifunc.c: New file.
6107         * benchtests/bench-memrchr.c: New file.
6108
6109 2013-09-06   Will Newton  <will.newton@linaro.org>
6110
6111         * benchtests/Makefile (string-bench): Add memcpy.
6112
6113 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
6114             Cong Wang  <amwang@redhat.com>
6115
6116         [BZ #15850]
6117         * sysdeps/unix/sysv/linux/bits/in.h
6118         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
6119         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
6120         before __USE_KERNEL_IPV6_DEFS uses.
6121         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
6122         IPPROTO_BEETPH.
6123         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
6124         sockaddr_in6, or ipv6_mreq.
6125
6126 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6127
6128         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
6129         memory access for final bytes in some large inputs.
6130         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
6131
6132 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6133
6134         * string/test-memrchr.c: New file.
6135         * string/test-memrchr-ifunc.c: New file.
6136         * string/Makefile: Add new memrchr testcase.
6137
6138 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
6139
6140         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
6141         fanotify_init returns EPERM.
6142
6143 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6144
6145         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
6146         errors.
6147         (top level): Treat second token from macro or constant entries for
6148         allowed headers as allowed.
6149         * include/complex.h: Condition internal declarations on
6150         [!_ISOMAC].
6151         * include/fenv.h: Condition include of <stdbool.h> and internal
6152         declarations on [!_ISOMAC].
6153
6154 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
6155
6156         [BZ #15923]
6157         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
6158
6159 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6160
6161         * configure.in (--enable-versioning): Remove configure option.
6162         (libc_cv_asm_symver_directive): Remove configure test.
6163         (libc_cv_ld_version_script_option): Likewise.
6164         (VERSIONING): Remove variable and AC_SUBST.
6165         (DO_VERSIONING): Remove AC_DEFINE.
6166         * configure: Regenerated.
6167         * config.h.in (DO_VERSIONING): Remove macro.
6168         * Makerules [$(versioning) = yes]: Change conditionals to
6169         [$(build-shared) = yes].
6170         * config.make.in (versioning): Remove variable.
6171         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
6172         [$(build-shared) = yes].
6173         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
6174         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
6175         * elf/Makefile [$(versioning) = yes]: Change conditionals to
6176         [$(build-shared) = yes].
6177         * extra-lib.mk [$(versioning) = yes]: Likewise.
6178         * hurd/Makefile [$(versioning) = yes]: Likewise.
6179         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
6180         [SHARED].
6181         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
6182         [SHARED].
6183         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6184         [SHARED && !NO_HIDDEN].
6185         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
6186         [SHARED].
6187         [SHARED && DO_VERSIONING]: Likewise..
6188         * libio/Makefile [$(versioning) = yes]: Change conditionals to
6189         [$(build-shared) = yes].
6190         * manual/install.texi (--disable-versioning): Remove
6191         documentation.
6192         * INSTALL: Regenerated.
6193         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
6194         to [SHARED].
6195         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
6196         [$(build-shared) = yes].
6197         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
6198         * sysdeps/i386/i686/multiarch/strstr-c.c
6199         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6200         [SHARED && !NO_HIDDEN].
6201         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
6202         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
6203         * sysdeps/powerpc/powerpc32/dl-machine.c
6204         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
6205         * sysdeps/powerpc/powerpc32/sysdep.h
6206         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
6207         to [SHARED && PIC && !NO_HIDDEN].
6208         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
6209         conditional to [SHARED].
6210
6211 2013-09-04   Will Newton  <will.newton@linaro.org>
6212
6213         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
6214         * benchtests/bench-string.h: Include bench-timing.h instead
6215         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
6216         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
6217         call to HP_TIMING_DIFF_INIT.
6218         * benchtests/bench-memccpy.c: Use bench-timing.h macros
6219         instead of hp-timing.h macros.
6220         * benchtests/bench-memchr.c: Likewise.
6221         * benchtests/bench-memcmp.c: Likewise.
6222         * benchtests/bench-memcpy.c: Likewise.
6223         * benchtests/bench-memmem.c: Likewise.
6224         * benchtests/bench-memmove.c: Likewise.
6225         * benchtests/bench-memset.c: Likewise.
6226         * benchtests/bench-rawmemchr.c: Likewise.
6227         * benchtests/bench-strcasecmp.c: Likewise.
6228         * benchtests/bench-strcasestr.c: Likewise.
6229         * benchtests/bench-strcat.c: Likewise.
6230         * benchtests/bench-strchr.c: Likewise.
6231         * benchtests/bench-strcmp.c: Likewise.
6232         * benchtests/bench-strcpy.c: Likewise.
6233         * benchtests/bench-strcpy_chk.c: Likewise.
6234         * benchtests/bench-strlen.c: Likewise.
6235         * benchtests/bench-strncasecmp.c: Likewise.
6236         * benchtests/bench-strncat.c: Likewise.
6237         * benchtests/bench-strncmp.c: Likewise.
6238         * benchtests/bench-strncpy.c: Likewise.
6239         * benchtests/bench-strnlen.c: Likewise.
6240         * benchtests/bench-strpbrk.c: Likewise.
6241         * benchtests/bench-strrchr.c: Likewise.
6242         * benchtests/bench-strspn.c: Likewise.
6243         * benchtests/bench-strstr.c: Likewise.
6244
6245 2013-09-04  Will Newton  <will.newton@linaro.org>
6246
6247         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
6248
6249 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
6250
6251         [BZ #15427]
6252         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
6253         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
6254         * math/libm-test.inc (lgamma_test_data): Add more tests.
6255         * sysdeps/i386/fpu/libm-test-ulps: Update.
6256         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6257
6258 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
6259
6260         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
6261         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
6262         Add ifunc.
6263         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
6264         Add strcmp-sse2-unaligned
6265         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
6266
6267 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6268
6269         * Versions.def (libc): Add GLIBC_2.19.
6270
6271 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6272
6273         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
6274         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
6275
6276 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
6277
6278         [BZ #14155]
6279         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
6280         intermediate calculations in recurrence.
6281         (__ieee754_ynf): Likewise.
6282         * math/libm-test.inc (jn_test_data): Do not allow spurious
6283         underflow exception.  Add more tests.
6284         (yn_test_data): Add more tests.
6285         * sysdeps/i386/fpu/libm-test-ulps: Update.
6286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6287
6288 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
6289
6290         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
6291
6292 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6293
6294         * csu/init-first.c: Fix then/than typos.
6295         * locale/programs/ld-collate.c: Likewise.
6296         * locale/programs/linereader.h: Likewise.
6297         * manual/charset.texi: Likewise.
6298         * manual/filesys.texi: Likewise.
6299         * manual/stdio.texi: Likewise.
6300         * manual/string.texi: Likewise.
6301         * stdlib/fmtmsg.c: Likewise.
6302         * sysdeps/i386/stpncpy.S: Likewise.
6303         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6304         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
6305         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6306         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6307
6308 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6309
6310         * elf/dl-open.c: Fix typos.
6311         * iconvdata/gbbig5.c: Likewise.
6312         * iconvdata/iso-2022-jp.c: Likewise.
6313         * iconv/gconv_int.h: Likewise.
6314         * iconv/loop.c: Likewise.
6315         * nis/rpcsvc/nis.h: Likewise.
6316         * resolv/ns_name.c: Likewise.
6317         * stdio-common/vfscanf.c: Likewise.
6318         * streams/stropts.h: Likewise.
6319         * sunrpc/rpc_thread.c: Likewise.
6320         * sysdeps/i386/strpbrk.S: Likewise.
6321         * sysdeps/ieee754/k_standard.c: Likewise.
6322         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6323         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6324         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6325         * sysdeps/mach/hurd/profil.c: Likewise.
6326         * sysdeps/s390/dl-procinfo.h: Likewise.
6327         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6328         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6329         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6330         * sysdeps/x86_64/dl-trampoline.S: Likewise.
6331         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6332
6333 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
6334
6335         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
6336         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
6337
6338 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
6339
6340         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
6341         aix specific files.
6342         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
6343         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
6344         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
6345         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
6346         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
6347         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
6348         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
6349         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
6350
6351 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6352             Roland McGrath  <roland@hack.frob.com>
6353
6354         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
6355         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6356
6357 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6358
6359         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
6360         __executable_start symbol instead of _start.
6361
6362 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6363
6364         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
6365         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
6366         Move macros to...
6367         * sysdeps/gnu/ldsodefs.h: ... this new file.
6368
6369         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
6370         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
6371         instead of ELFOSABI_LINUX.
6372
6373         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
6374         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
6375         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
6376         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
6377         Likewise.
6378         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
6379         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
6380         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
6381         Likewise.
6382         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
6383         (ibm_extended_long_double): Add ieee_nan member.
6384         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
6385         (do_test): New function.
6386
6387         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
6388         TEST_TRUNC.
6389         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
6390         functions, renamed from truncdfsf_test, trunctfsf_test,
6391         trunctfdf_test.
6392         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
6393         functions.
6394         (do_test): Run all these.
6395
6396 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
6397
6398         * argp/argp-help.c: Fix typos.
6399         * argp/argp-parse.c: Likewise.
6400         * debug/backtracesyms.c: Likewise.
6401         * elf/elf.h: Likewise.
6402         * malloc/malloc.c: Likewise.
6403         * nis/nis_print.c: Likewise.
6404         * resolv/res_comp.c: Likewise.
6405         * stdlib/stdlib.h: Likewise.
6406         * sunrpc/clnt_tcp.c: Likewise.
6407         * sunrpc/clnt_udp.c: Likewise.
6408         * sunrpc/clnt_unix.c: Likewise.
6409         * sysdeps/unix/bsd/ptsname.c: Likewise.
6410         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6411         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
6412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
6413         Likewise.
6414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
6415         Likewise.
6416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
6417         Likewise.
6418         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6419
6420 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6421
6422         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
6423         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
6424
6425 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
6426
6427         [BZ #15897]
6428         * dlfcn/Makefile (tests): Add bug-dl-leaf.
6429         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
6430         ($(objpfx)bug-dl-leaf): New rule.
6431         ($(objpfx)bug-dl-leaf.so): Likewise.
6432         ($(objpfx)bug-dl-leaf.out): Likewise.
6433         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
6434         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
6435         * dlfcn/bug-dl-leaf.c: New test.
6436         * dlfcn/bug-dl-leaf-lib.c: Likewise.
6437         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
6438         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
6439         (dlclose): Likewise.
6440         (dlmopen): Likewise.
6441
6442 2013-08-27  Roland McGrath  <roland@hack.frob.com>
6443
6444         * include/netdb.h [!_ISOMAC]:
6445         Don't include <tls.h>.
6446         (h_errno, __libc_h_errno): Move declaration and macros out of
6447         [_LIBC_REENTRANT].
6448
6449         * include/resolv.h [_RESOLV_H_]:
6450         Don't include <tls.h>.
6451         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
6452         * resolv/res_libc.c: Don't include <tls.h>.
6453         (_res): Use __attribute__ ((nocommon)) in place of
6454         __attribute__ ((section (".bss"))).
6455
6456         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
6457         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
6458
6459         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
6460
6461         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
6462         only under [SIOCGIFCONF && SIOCGIFNETMASK].
6463
6464         * resolv/res_mkquery.c: Include <sys/time.h>.
6465
6466         * inet/ifreq.c: Moved to ...
6467         * sysdeps/unix/ifreq.c: ... here.
6468         * inet/ifreq.c: New file, true stub version.
6469
6470         * socket/sa_len.c: New file.
6471         * socket/Makefile (aux): Add it.
6472         * sysdeps/unix/sysv/linux/Makefile
6473         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
6474         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
6475         and #include <socket/sa_len.c>.
6476         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
6477         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
6478
6479         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
6480         * bits/socket.h: ... here.
6481
6482         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
6483         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
6484         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
6485
6486 2013-08-27  Andreas Schwab  <schwab@suse.de>
6487
6488         [BZ #15736]
6489         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
6490         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
6491         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
6492         * string/test-strcasecmp.c (test_main): Run tests in several
6493         locales.
6494         * string/test-strncasecmp.c (test_main): Likewise.
6495
6496         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
6497         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
6498         to __strcasecmp_nonascii and __strncasecmp_nonascii.
6499         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
6500         (__strncasecmp_ssse3) [PIC]: Likewise.
6501
6502 2013-08-26  Roland McGrath  <roland@hack.frob.com>
6503
6504         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
6505
6506         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
6507         instead of explicitly declaring xdecrypt.
6508         * nis/nss_nis/nis-publickey.c: Likewise.
6509
6510 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6511
6512         [BZ #15890]
6513         * nscd/aicache.c: Include res_hconf.h.
6514         (addhstaiX): Initialize res_hconf.
6515
6516 2013-08-26  Andreas Schwab  <schwab@suse.de>
6517
6518         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
6519         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
6520
6521 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6522
6523         * nscd/aicache.c (addhstaiX): Fix indentation.
6524
6525 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
6526
6527         * configure.ac: Quote $build_pt_chown test.
6528         * configure: Regenerated.
6529
6530 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
6531
6532         [BZ #15532]
6533         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
6534         * math/s_cexpf.c (__cexpf): Likewise.
6535         * math/s_cexpl.c (__cexpl): Likewise.
6536         * math/libm-test.inc (cexp_test_data): Correct expected return
6537         value for NaN + i0.  Add another test.
6538
6539 2013-08-22  David S. Miller  <davem@davemloft.net>
6540
6541         * po/ca.po: Update Catalan translation from translation project.
6542         * po/uk.po: Add Ukrainian translations from translation project.
6543
6544 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
6545
6546         [BZ #15797]
6547         * math/s_fdim.c (__fdim): Check for infinite arguments if result
6548         is infinite, not alongside NaN test.
6549         * math/s_fdimf.c (__fdimf): Likewise.
6550         * math/s_fdiml.c (__fdiml): Likewise.
6551         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
6552         errno is unchanged.
6553
6554 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
6555
6556         * argp/argp-help.c: Fix typos.
6557         * crypt/speeds.c: Likewise.
6558         * csu/check_fds.c: Likewise.
6559         * elf/dl-load.c: Likewise.
6560         * elf/dl-open.c: Likewise.
6561         * elf/reldep3.c: Likewise.
6562         * elf/reldep.c: Likewise.
6563         * elf/sprof.c: Likewise.
6564         * iconv/iconv_charmap.c: Likewise.
6565         * iconv/skeleton.c: Likewise.
6566         * iconv/strtab.c: Likewise.
6567         * io/lockf64.c: Likewise.
6568         * libio/libioP.h: Likewise.
6569         * resolv/gai_notify.c: Likewise.
6570         * resolv/ns_name.c: Likewise.
6571         * resolv/ns_samedomain.c: Likewise.
6572         * resolv/res_send.c: Likewise.
6573         * stdlib/random.c: Likewise.
6574         * sunrpc/rpc/xdr.h: Likewise.
6575         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
6576         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6577         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6578         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6579         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6580         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6581         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6582         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6583         * sysdeps/mach/hurd/check_fds.c: Likewise.
6584         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6585         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6586         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6587         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6588         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6589         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6590         * sysdeps/pthread/aio_notify.c: Likewise.
6591         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6592         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
6593         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
6594         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6595         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
6596
6597 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6598
6599         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
6600         version if bit_Slow_SSE4_2 is set.
6601         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6602         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6603
6604 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6605
6606         [BZ #15867]
6607         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
6608         trampoline stack frame information.
6609         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
6610         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
6611         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
6612         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
6613         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
6614         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6615         (_libc_vdso_platform_setup): Initialize the signal trampolines.
6616         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
6617         sa_flags value.
6618         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
6619         interrupting a syscall and set with option SA_SIGINFO.
6620
6621 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6622
6623         [BZ #15531]
6624         * math/s_cproj.c (__cproj): Only return an infinity if one part of
6625         argument is infinite.
6626         * math/s_cprojf.c (__cprojf): Likewise.
6627         * math/s_cprojl.c (__cprojl): Likewise.
6628         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
6629         * math/libm-test.inc (cproj_test_data): Add more tests.
6630
6631         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
6632
6633         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
6634         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
6635         size.  Use __ffs to determine corresponding shift.
6636
6637 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6638             Roland McGrath  <roland@hack.frob.com>
6639
6640         * Makefile (INSTALL): Remove trailing blank lines from output of
6641         makeinfo.
6642
6643 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6644
6645         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
6646         Align 32 bit compat elf_greg to 8 bytes.
6647
6648 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6649
6650         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
6651
6652 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6653
6654         * string/strcoll_l.c (coll_seq): New structure.
6655         (get_next_seq_cached): New function.
6656         (get_next_seq): New function.
6657         (do_compare): New function.
6658         (STRCOLL): Use GNU style definition.  Simplify implementation
6659         by using get_next_seq, get_next_seq_cached and do_compare.
6660
6661 2013-08-16  Florian Weimer  <fweimer@redhat.com>
6662
6663         [BZ #14699]
6664         CVE-2013-4237
6665         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
6666         member.
6667         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
6668         member.
6669         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
6670         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
6671         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
6672         conditional.
6673         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
6674         GETDENTS_64BIT_ALIGNED.
6675         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6676         * manual/filesys.texi (Reading/Closing Directory): Document
6677         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
6678         strongly.
6679         * manual/conf.texi (Limits for Files): Add portability note to
6680         NAME_MAX, PATH_MAX.
6681         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
6682
6683 2013-08-13  Andreas Schwab  <schwab@suse.de>
6684
6685         [BZ #15749]
6686         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
6687         of fabs.
6688         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
6689         LDBL_MAX_EXP >= 16384]: Add tests for it.
6690
6691 2013-08-12  David S. Miller  <davem@davemloft.net>
6692
6693         * version.h (RELEASE): Set to "development".
6694         (VERSION): Set to "2.18.90".
6695         * NEWS: Add 2.19 section.
6696
6697 2013-08-03  David S. Miller  <davem@davemloft.net>
6698
6699         * po/ko.po: Update Korean translation from translation project.
6700
6701 2013-08-01  David S. Miller  <davem@davemloft.net>
6702
6703         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
6704         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
6705         Bilka.
6706
6707 2013-07-30  David S. Miller  <davem@davemloft.net>
6708
6709         * po/fr.po: Update French translation from translation project.
6710
6711 2013-07-28  David S. Miller  <davem@davemloft.net>
6712
6713         * po/cs.po: Update Czech translation from translation project.
6714
6715         * po/sv.po: Update Swedish translation from translation project.
6716
6717 2013-07-27  David S. Miller  <davem@davemloft.net>
6718
6719         * po/eo.po: Update Esperanto translation from translation project.
6720
6721         * po/vi.po: Update Vietnamese translation from translation project.
6722
6723         * po/de.po: Update German translation from translation project.
6724
6725 2013-07-26  David S. Miller  <davem@davemloft.net>
6726
6727         * po/bg.po: Update Bulgarian translation from translation project.
6728
6729         * po/nl.po: Update Dutch translation from translation project.
6730         * po/pl.po: Update Polish translation from translation project.
6731         * po/ru.po: Update Russian translation from translation project.
6732
6733 2013-07-24  David S. Miller  <davem@davemloft.net>
6734
6735         * po/libc.pot: Update.
6736
6737 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6738
6739         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
6740         variable page size.
6741         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
6742         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
6743         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
6744
6745 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6746
6747         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
6748
6749 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6750             Andreas Schwab  <schwab@suse.de>
6751             Roland McGrath  <roland@hack.frob.com>
6752             Joseph Myers  <joseph@codesourcery.com>
6753             Carlos O'Donell  <carlos@redhat.com>
6754
6755         [BZ #15755]
6756         * config.h.in: Define HAVE_PT_CHOWN.
6757         * config.make.in (build-pt-chown): New variable.
6758         * configure.in (--enable-pt_chown): New configure option.
6759         * configure: Regenerate.
6760         * login/Makefile: Include Makeconfig.  Build pt_chown only if
6761         build-pt-chown is enabled.
6762         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
6763         pt_chown to fix pty ownership.
6764         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
6765         CLOSE_ALL_FDS.
6766         * manual/install.texi (Configuring and compiling): Mention
6767         --enable-pt_chown. Add @findex for grantpt.
6768         * INSTALL: Regenerate.
6769
6770 2013-07-20  David S. Miller  <davem@davemloft.net>
6771
6772         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
6773         difference between 32-bit and 64-bit.
6774
6775 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
6776
6777         [BZ #15711]
6778         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
6779         Avoid system header dependency with -ffreestanding.
6780         ($(objpfx)bits/syscall%d): Likewise.
6781
6782 2013-07-13  David S. Miller  <davem@davemloft.net>
6783
6784         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
6785         underflows from atanl/atan2l due to bug 15319.
6786         (casinh_test_data): Likewise.
6787
6788 2013-07-07  David S. Miller  <davem@davemloft.net>
6789
6790         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
6791
6792 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
6793
6794         * sysdeps/i386/fpu/libm-test-ulps: Update.
6795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6796
6797 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6798
6799         * configure.in (--enable-lock-elision): Fix message text.
6800         * INSTALL: Regenerate.
6801         * configure: Regenerate.
6802
6803 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6804
6805         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6806
6807 2013-07-03  Andreas Jaeger  <aj@suse.de>
6808
6809         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
6810         define.
6811         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
6812         (ptrace_peeksiginfo_args): Add.
6813         (__ptrace_peeksiginfo_flags): Add.
6814         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6815         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6816         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6817
6818 2013-07-03  Allan McRae  <allan@archlinux.org>
6819
6820         * sysdeps/i386/fpu/libm-test-ulps: Update.
6821
6822 2013-07-02  David S. Miller  <davem@davemloft.net>
6823
6824         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6825
6826 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
6827
6828         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6829
6830 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6831
6832         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6834
6835 2013-07-02  Andi Kleen <ak@linux.intel.com>
6836
6837         * config.h.in (ENABLE_LOCK_ELISION): Add.
6838         * configure.in (--enable-lock-elision): Add option.
6839         * manual/install.texi: Document --enable lock elision.
6840         * configure: Regenerate
6841         * INSTALL: Regenerate.
6842
6843 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
6844
6845         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
6846         SSE4.2 strcasecmp for libc.a.
6847         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
6848
6849 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6850
6851         [BZ #13304]
6852         * soft-fp/op-common.h (_FP_FMA): New macro.
6853         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
6854         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
6855         (_FP_MUL_MEAT_1_imm): ... here.
6856         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
6857         (_FP_MUL_MEAT_1_wide): ... here.
6858         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
6859         (_FP_MUL_MEAT_1_hard): ... here.
6860         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
6861         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
6862         (_FP_MUL_MEAT_2_wide): ... here.
6863         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
6864         (_FP_MUL_MEAT_2_wide_3mul): ... here.
6865         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
6866         (_FP_MUL_MEAT_2_gmp): ... here.
6867         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
6868         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
6869         (_FP_MUL_MEAT_4_wide): ... here.
6870         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
6871         (_FP_MUL_MEAT_4_gmp): ... here.
6872         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
6873         (_FP_WFRACBITS_DW_S): Likewise.
6874         (_FP_WFRACXBITS_DW_S): Likewise.
6875         (_FP_HIGHBIT_DW_S): Likewise.
6876         (FP_FMA_S): Likewise.
6877         (_FP_FRAC_HIGH_DW_S): Likewise.
6878         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
6879         (_FP_WFRACBITS_DW_D): Likewise.
6880         (_FP_WFRACXBITS_DW_D): Likewise.
6881         (_FP_HIGHBIT_DW_D): Likewise.
6882         (FP_FMA_D): Likewise.
6883         (_FP_FRAC_HIGH_DW_D): Likewise.
6884         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
6885         (_FP_WFRACBITS_DW_E): Likewise.
6886         (_FP_WFRACXBITS_DW_E): Likewise.
6887         (_FP_HIGHBIT_DW_E): Likewise.
6888         (FP_FMA_E): Likewise.
6889         (_FP_FRAC_HIGH_DW_E): Likewise.
6890         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
6891         (_FP_WFRACBITS_DW_Q): Likewise.
6892         (_FP_WFRACXBITS_DW_Q): Likewise.
6893         (_FP_HIGHBIT_DW_Q): Likewise.
6894         (FP_FMA_Q): Likewise.
6895         (_FP_FRAC_HIGH_DW_Q): Likewise.
6896         * soft-fp/fmasf4.c: New file.
6897         * soft-fp/fmadf4.c: Likewise.
6898         * soft-fp/fmatf4.c: Likewise.
6899
6900 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6901
6902         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
6903         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
6904         Silvermont.
6905         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
6906         macro.
6907         (index_Slow_SSE4_2): Likewise.
6908         (index_Prefer_PMINUB_for_stringop): Likewise.
6909         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
6910         bit_Slow_SSE4_2 is set.
6911         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6912         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6913
6914 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6915
6916         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
6917         rtld_global._dl_hwcap2.
6918         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
6919         POWER8.
6920         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
6921         POWER8 feature descriptions defined in _dl_hwcap2.
6922         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
6923         string handling for POWER8 feature bits.
6924         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
6925         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
6926         _dl_powerpc_cap_flags.
6927         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
6928         * sysdeps/powerpc/rtld-global-offsets.sym
6929         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
6930         _dl_hwcap2 in the rtld_global_ro structure.
6931
6932 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6933
6934         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
6935         hardware capabilities in support of AT_HWCAP2.
6936         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
6937         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
6938         GLRO(dl_hwcap2).
6939         (_dl_show_auxv): Add support for calling _dl_procinfo to display
6940         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
6941         explicitly the unknown a_type display mechanism is used.
6942         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
6943         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
6944         struct member.
6945         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
6946         to macro prototype for AT_HWCAP2 support.
6947         * sysdeps/i386/dl-procinfo.h: Likewise.
6948         * sysdeps/s390/dl-procinfo.h: Likewise.
6949         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
6950         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
6951         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
6952         return -1 for unknown a_type display fallback.
6953         * sysdeps/sparc/dl-procinfo.h: Likewise.
6954         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
6955         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
6956
6957 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
6958
6959         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
6960         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
6961
6962 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
6963
6964         [BZ #12492]
6965         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
6966         mprotect making __stack_prot writable.
6967
6968 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6969             Joseph Myers  <joseph@codesourcery.com>
6970
6971         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
6972         as being properly aligned.
6973
6974 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
6975
6976         * dlfcn/modstatic5.c: New file.
6977         * dlfcn/tststatic5.c: New file.
6978         * dlfcn/Makefile (tests): Add tststatic5.
6979         (tests-static): Likewise.
6980         (modules-names): Add modstatic5.
6981         (tststatic5-ENV): New variable.
6982         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
6983
6984         [BZ #15022]
6985         * elf/dl-support.c (_dl_main_map): New variable.
6986         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
6987         (_dl_nns, _dl_load_adds): Set to 1.
6988         (_dl_initial_searchlist): Refer to _dl_main_map.
6989         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
6990         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
6991         call to _dl_get_origin.
6992         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
6993         around call_map.
6994         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
6995         * dlfcn/modstatic3.c: New file.
6996         * dlfcn/tststatic3.c: New file.
6997         * dlfcn/tststatic4.c: New file.
6998         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
6999         (tests-static): Likewise.
7000         (modules-names): Add modstatic3.
7001         (tststatic3-ENV, tststatic4-ENV): New variables.
7002         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
7003         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
7004
7005 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
7006
7007         * configure.in (CC): Require GCC version 4.4 or later.
7008         * configure: Regenerated.
7009         * manual/install.texi (Tools for Compilation): Update GCC version
7010         requirement.
7011         * INSTALL: Regenerated.
7012
7013 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7014
7015         [BZ #15674]
7016         * string/test-memcmp.c (check2): New.
7017         (main): Call check2.
7018
7019         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
7020
7021 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
7022
7023         [BZ #15022]
7024         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
7025         over to...
7026         (dl_open_worker) [!SHARED]: ... here.
7027
7028 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7029
7030         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
7031
7032 2013-06-25  Richard Henderson  <rth@redhat.com>
7033
7034         * locale/programs/locarchive.c: Include <libc-internal.h>
7035
7036 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
7037
7038         * manual/texinfo.tex: Update to version 2013-06-21.17, with
7039         trailing whitespace removed.
7040
7041 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
7042
7043         [BZ #10283]
7044         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
7045         * locale/programs/locarchive.c: Include libc-mmap.h.
7046         (prepare_address_space): Take two new outputs (the mmap base and len).
7047         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
7048         values.
7049         (create_archive): Declare new mmap base and len values for
7050         prepare_address_space, and store the result in ah.
7051         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
7052         (enlarge_archive): If ah->mmap_base is not NULL, use that and
7053         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
7054         Declare new mmap base and len values for
7055         prepare_address_space, and store the result in new_ah.
7056         (open_archive): Declare new mmap base and len values for
7057         prepare_address_space, and store the result in ah.
7058         (close_archive): If ah->mmap_base is not NULL, use that and
7059         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
7060         * sysdeps/generic/libc-mmap.h: New file.
7061
7062 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
7063
7064         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
7065         (ALIGN_UP): Likewise.
7066         (PTR_ALIGN_DOWN): Likewise.
7067         (PTR_ALIGN_UP): Likewise.
7068
7069 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7070
7071         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
7072         entry mapped to PPC_PLATFORM_POWER8.
7073         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
7074         POWER8.
7075         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
7076         (_dl_string_platform): Add case for exporting platform position for
7077         POWER8.
7078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
7079         search path to sysdeps/powerpc/powerpc32/power8 directory.
7080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
7081         search path to sysdeps/powerpc/powerpc64/power8 directory.
7082         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
7083         power7 directories.
7084         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
7085         power7 directories.
7086
7087 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7088
7089         * INSTALL: Regenerate.
7090
7091         * nscd/connections.c (nscd_init): Fix comment.
7092
7093 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
7094
7095         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
7096
7097         [BZ #15667]
7098         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
7099         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
7100
7101 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
7102
7103         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
7104         DL_DST_REQ_STATIC.
7105         (DL_DST_REQ_STATIC): Remove macro.
7106
7107 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
7108
7109         [BZ #7006]
7110         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
7111         with a shift of 0 bits.
7112
7113 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
7114
7115         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
7116         $(tststatic-ENV).
7117
7118 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7119
7120         [BZ #15655]
7121         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
7122
7123 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7124
7125         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
7126         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
7127         accepts -fno-tree-loop-distribute-patterns.
7128         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
7129         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
7130         recursive call.
7131         * string/memset.c (memset): Likewise.
7132         * string/test-memmove.c (simple_memmove): Disable loop transformation
7133         to library calls.
7134         * string/test-memset.c (simple_memset): Likewise.
7135         * benchtests/bench-memmove.c (simple_memmove): Likewise.
7136         * benchtests/bench-memset.c (simple_memset): Likewise.
7137         * configure: Regenerated.
7138
7139 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
7140
7141         * math/test-misc.c (main): Ignore fesetround failure when failures
7142         of subsequent rounding tests would be ignored.
7143
7144         [BZ #15654]
7145         * math/fedisblxcpt.c (fedisableexcept): Return 0.
7146         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
7147         * math/fegetenv.c (__fegetenv): Return 0.
7148         * math/fegetexcept.c (fegetexcept): Return 0.
7149         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
7150         FE_TONEAREST.
7151         * math/feholdexcpt.c (feholdexcept): Return 0.
7152         * math/fesetenv.c (__fesetenv): Return 0.
7153         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
7154         argument FE_TONEAREST.
7155         * math/feupdateenv.c (__feupdateenv): Return 0.
7156         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
7157
7158 2013-06-18  Roland McGrath  <roland@hack.frob.com>
7159
7160         * elf/rtld-Rules (rtld-compile-command.S): New variable.
7161         (rtld-compile-command.s, rtld-compile-command.c): New variables.
7162         ($(objpfx)rtld-%.os rules): Use them.
7163
7164 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7165
7166         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
7167         fields.
7168
7169 2013-06-17  Roland McGrath  <roland@hack.frob.com>
7170
7171         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
7172         length of target pattern, then descending length of dependency pattern.
7173         * configure.in (AWK): Require gawk 3.1.2 or newer.
7174         * manual/install.texi (Tools for Compilation): Say that we do.
7175         * configure: Regenerated.
7176
7177         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
7178         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
7179         * scripts/sysd-rules.awk: ... this new script.
7180         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
7181         than a glob-style pattern.
7182
7183 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
7184
7185         * math/test-misc.c (main): Do not treat incorrectly rounded
7186         conversions as failure unless ROUNDING_TESTS passes.
7187
7188 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
7189
7190         [BZ #15631]
7191         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
7192         restore exception state around main square root computation, then
7193         check for inexactness explicitly.
7194
7195         * math/libm-test.inc (fma_test_data): Add another test.
7196
7197 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7198
7199         * manual/threads.texi (Non-POSIX Extensions): New document
7200         node.  Document pthread_getattr_default_np and
7201         pthread_setattr_default_np.
7202
7203         * Versions.def (libpthread): Add GLIBC_2.18.
7204         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
7205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7206         Likewise.
7207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7208         Likewise.
7209         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7210         Likewise.
7211         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7212         Likewise.
7213         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
7214         Likewise.
7215         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7216         Likewise.
7217         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7218         Likewise.
7219         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7220         Likewise.
7221         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7222         Likewise.
7223
7224 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7225
7226         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7227         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
7228
7229 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7230             H.J. Lu  <hjl.tools@gmail.com>
7231
7232         [BZ #15627]
7233         * sysdeps/x86_64/rtld-memset.c: Remove file.
7234         * sysdeps/x86_64/rtld-memset.S: New file.
7235
7236 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
7237
7238         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
7239         (test_in_one_mode): Take arguments for whether the rounding mode
7240         is supported for each floating-point type.
7241         (do_test): Pass new arguments to test_in_one_mode using
7242         ROUNDING_TESTS.
7243
7244 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7245
7246         * posix/tst-waitid.c (do_test): Distinguish different instances of
7247         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
7248         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
7249         before entering the kernel for waitpid.
7250
7251 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7252
7253         * NEWS: Fix note on clock function precision.  Text by Roland
7254         McGrath.
7255
7256 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7257
7258         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
7259         it into place only when and if the sanity check passes.
7260
7261 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
7262
7263         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
7264         output for whether conversion result is exact.  Take argument
7265         indicating whether type is IBM long double.
7266         (round_for_all): Change need_exact field to ibm_ld.
7267         * stdlib/tst-strtod-round.c (struct exactness): New type.
7268         (struct test): Change bool ld_ok field to struct exactness exact.
7269         (TEST): Update all definitions for change to field.
7270         (tests): Regenerate array contents.
7271         (test_in_one_mode): Take pointer to new field instead of old ld_ok
7272         field value.  Check for IBM long double here.
7273         (do_test): Update calls to test_in_one_mode.
7274
7275 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7276
7277         [BZ #12515]
7278         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
7279         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
7280
7281 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7282
7283         [BZ #15605]
7284         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
7285         generated by the compiler on loop optimizations.
7286         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
7287         general definitions.
7288
7289 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
7290
7291         * math/bug-nextafter.c: Include <math-tests.h>.
7292         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7293         the relevant type.
7294         * math/bug-nexttoward.c: Include <math-tests.h>.
7295         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7296         the relevant type.
7297         * math/test-misc.c: Include <math-tests.h>.
7298         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7299         the relevant type.
7300
7301 2013-06-12  Andreas Jaeger  <aj@suse.de>
7302
7303         * po/ia.po: Update Interlingua translation from translation
7304         project.
7305
7306 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7307
7308         * include/fenv.h: Include stdbool.h.
7309         (struct rm_ctx): New structure.
7310         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
7311         Define macro.
7312         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
7313         (SET_RESTORE_ROUNDF): Likewise.
7314         (SET_RESTORE_ROUNDL): Likewise.
7315         (SET_RESTORE_ROUND_NOEX): Likewise.
7316         (SET_RESTORE_ROUND_NOEXF): Likewise.
7317         (SET_RESTORE_ROUND_NOEXL): Likewise.
7318         (SET_RESTORE_ROUND_53BIT): Likewise.
7319         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
7320         (libc_feresetround_noexf_ctx): Likewise.
7321         (libc_feresetround_noexl_ctx): Likewise.
7322         (libc_feholdsetround_53bit_ctx): Likewise.
7323         (libc_feresetround_53bit_ctx): Likewise.
7324         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
7325         (libc_feholdexcept_setround_sse_ctx): New function.
7326         (libc_fesetenv_sse_ctx): Likewise.
7327         (libc_feupdateenv_sse_ctx): Likewise.
7328         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
7329         (libc_feholdexcept_setround_387_ctx): Likewise.
7330         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
7331         (libc_feholdsetround_387_prec_ctx): Likewise.
7332         (libc_feholdsetround_387_ctx): Likewise.
7333         (libc_feholdsetround_387_53bit_ctx): Likewise.
7334         (libc_feholdsetround_sse_ctx): Likewise.
7335         (libc_feresetround_sse_ctx): Likewise.
7336         (libc_feresetround_387_ctx): Likewise.
7337         (libc_feupdateenv_387_ctx): Likewise.
7338         (libc_feholdexcept_setroundf_ctx): Define macro.
7339         (libc_fesetenvf_ctx): Likewise.
7340         (libc_feupdateenvf_ctx): Likewise.
7341         (libc_feholdsetroundf_ctx): Likewise.
7342         (libc_feresetroundf_ctx): Likewise.
7343         (libc_feholdexcept_setround_ctx): Likewise.
7344         (libc_fesetenv_ctx): Likewise.
7345         (libc_feupdateenv_ctx): Likewise.
7346         (libc_feholdsetround_ctx): Likewise.
7347         (libc_feresetround_ctx): Likewise.
7348         (libc_feholdexcept_setroundl_ctx): Likewise.
7349         (libc_feupdateenvl_ctx): Likewise.
7350         (libc_feholdsetroundl_ctx): Likewise.
7351         (libc_feresetroundl_ctx): Likewise.
7352         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
7353         (libc_feresetround_53bit_ctx): Likewise.
7354
7355 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7356
7357         * locale/iso-639.def: Convert to UTF-8.
7358
7359 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
7360
7361         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
7362         (EXCEPTION_TESTS_double): Likewise.
7363         (EXCEPTION_TESTS_long_double): Likewise.
7364         (EXCEPTION_TESTS): Likewise.
7365         * math/libm-test.inc (test_exceptions): Only test exceptions if
7366         EXCEPTION_TESTS (FLOAT).
7367
7368 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7369
7370         * benchtests/Makefile (string-bench): Add strcpy_chk and
7371         stpcpy_chk.
7372         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
7373         * benchtests/bench-stpcpy_chk.c: New file.
7374         * benchtests/bench-strcpy_chk-ifunc.c: New file.
7375         * benchtests/bench-strcpy_chk.c: New file.
7376         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
7377         code.
7378         (do_test): Likewise.
7379
7380 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7381
7382         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
7383         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
7384         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
7385         with tabs where appropriate.
7386         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
7387         dl-procinfo.h.
7388         [PPC_PLATFORM_PPC440]: Likewise.
7389         [PPC_PLATFORM_PPC464]: Likewise.
7390         [PPC_PLATFORM_PPC476]: Likewise.
7391         (_dl_string_platform): Add support for detecting ppc405, ppc440,
7392         ppc464, and ppc476 platform strings merging from ports/
7393         dl-procinfo.h.
7394
7395 2013-06-11  Andreas Schwab  <schwab@suse.de>
7396
7397         [BZ #14991]
7398         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
7399         (from_ucs4_idx): Regenerate.
7400         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
7401         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
7402         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
7403         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
7404         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
7405         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
7406         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
7407         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
7408         from FROM_LOOP and TO_LOOP specific macros.
7409         (BODY): Handle combining characters.
7410         * iconvdata/BIG5HKSCS.irreversible: Update.
7411         * iconvdata/BIG5HKSCS.precomposed: New file.
7412         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
7413         characters.
7414         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
7415
7416 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7417
7418         * include/sys/time.h: Fix indentation and add copyright header.
7419
7420         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
7421         (do_test): Likewise.
7422         * string/test-memchr.c (do_one_test): Likewise.
7423         (do_test): Likewise.
7424         * string/test-memcmp.c (do_one_test): Likewise.
7425         (do_test): Likewise.
7426         * string/test-memcpy.c (do_one_test): Likewise.
7427         (do_test): Likewise.
7428         * string/test-memmem.c (do_one_test): Likewise.
7429         (do_test): Likewise.
7430         (do_random_tests): Likewise.
7431         * string/test-memmove.c (do_one_test): Likewise.
7432         (do_test): Likewise.
7433         * string/test-memset.c (do_one_test): Likewise.
7434         (do_test): Likewise.
7435         * string/test-rawmemchr.c (do_one_test): Likewise.
7436         (do_test): Likewise.
7437         * string/test-strcasecmp.c (do_one_test): Likewise.
7438         (do_test): Likewise.
7439         * string/test-strcasestr.c (do_one_test): Likewise.
7440         (do_test): Likewise.
7441         * string/test-strcat.c (do_one_test): Likewise.
7442         (do_test): Likewise.
7443         * string/test-strchr.c (do_one_test): Likewise.
7444         (do_test): Likewise.
7445         * string/test-strcmp.c (do_one_test): Likewise.
7446         (do_test): Likewise.
7447         * string/test-strcpy.c (do_one_test): Likewise.
7448         (do_test): Likewise.
7449         * string/test-string.h: Likewise.
7450         (test_init): Likewise.
7451         * string/test-strlen.c (do_one_test): Likewise.
7452         (do_test): Likewise.
7453         * string/test-strncasecmp.c (do_one_test): Likewise.
7454         (do_test): Likewise.
7455         * string/test-strncat.c (do_one_test): Likewise.
7456         (do_test): Likewise.
7457         * string/test-strncmp.c (do_one_test): Likewise.
7458         (do_test_limit): Likewise.
7459         (do_test): Likewise.
7460         * string/test-strncpy.c (do_one_test): Likewise.
7461         (do_test): Likewise.
7462         * string/test-strnlen.c (do_one_test): Likewise.
7463         (do_test): Likewise.
7464         * string/test-strpbrk.c (do_one_test): Likewise.
7465         (do_test): Likewise.
7466         * string/test-strrchr.c (do_one_test): Likewise.
7467         (do_test): Likewise.
7468         * string/test-strspn.c (do_one_test): Likewise.
7469         (do_test): Likewise.
7470         * string/test-strstr.c (do_one_test): Likewise.
7471         (do_test): Likewise.
7472
7473         * benchtests/Makefile (string-bench): Add string benchmarks.
7474         * benchtests/bench-bcopy-ifunc.c: New file.
7475         * benchtests/bench-bcopy.c: New file.
7476         * benchtests/bench-bzero-ifunc.c: New file.
7477         * benchtests/bench-bzero.c: New file.
7478         * benchtests/bench-memccpy-ifunc.c: New file.
7479         * benchtests/bench-memccpy.c: New file.
7480         * benchtests/bench-memchr-ifunc.c: New file.
7481         * benchtests/bench-memchr.c: New file.
7482         * benchtests/bench-memcmp-ifunc.c: New file.
7483         * benchtests/bench-memcmp.c: New file.
7484         * benchtests/bench-memmem-ifunc.c: New file.
7485         * benchtests/bench-memmem.c: New file.
7486         * benchtests/bench-memmove-ifunc.c: New file.
7487         * benchtests/bench-memmove.c: New file.
7488         * benchtests/bench-mempcpy-ifunc.c: New file.
7489         * benchtests/bench-mempcpy.c: New file.
7490         * benchtests/bench-memset-ifunc.c: New file.
7491         * benchtests/bench-memset.c: New file.
7492         * benchtests/bench-rawmemchr-ifunc.c: New file.
7493         * benchtests/bench-rawmemchr.c: New file.
7494         * benchtests/bench-stpcpy-ifunc.c: New file.
7495         * benchtests/bench-stpcpy.c: New file.
7496         * benchtests/bench-stpncpy-ifunc.c: New file.
7497         * benchtests/bench-stpncpy.c: New file.
7498         * benchtests/bench-strcasecmp-ifunc.c: New file.
7499         * benchtests/bench-strcasecmp.c: New file.
7500         * benchtests/bench-strcasestr-ifunc.c: New file.
7501         * benchtests/bench-strcasestr.c: New file.
7502         * benchtests/bench-strcat-ifunc.c: New file.
7503         * benchtests/bench-strcat.c: New file.
7504         * benchtests/bench-strchr-ifunc.c: New file.
7505         * benchtests/bench-strchr.c: New file.
7506         * benchtests/bench-strchrnul-ifunc.c: New file.
7507         * benchtests/bench-strchrnul.c: New file.
7508         * benchtests/bench-strcmp-ifunc.c: New file.
7509         * benchtests/bench-strcmp.c: New file.
7510         * benchtests/bench-strcpy-ifunc.c: New file.
7511         * benchtests/bench-strcpy.c: New file.
7512         * benchtests/bench-strcspn-ifunc.c: New file.
7513         * benchtests/bench-strcspn.c: New file.
7514         * benchtests/bench-strlen-ifunc.c: New file.
7515         * benchtests/bench-strlen.c: New file.
7516         * benchtests/bench-strncasecmp-ifunc.c: New file.
7517         * benchtests/bench-strncasecmp.c: New file.
7518         * benchtests/bench-strncat-ifunc.c: New file.
7519         * benchtests/bench-strncat.c: New file.
7520         * benchtests/bench-strncmp-ifunc.c: New file.
7521         * benchtests/bench-strncmp.c: New file.
7522         * benchtests/bench-strncpy-ifunc.c: New file.
7523         * benchtests/bench-strncpy.c: New file.
7524         * benchtests/bench-strnlen-ifunc.c: New file.
7525         * benchtests/bench-strnlen.c: New file.
7526         * benchtests/bench-strpbrk-ifunc.c: New file.
7527         * benchtests/bench-strpbrk.c: New file.
7528         * benchtests/bench-strrchr-ifunc.c: New file.
7529         * benchtests/bench-strrchr.c: New file.
7530         * benchtests/bench-strspn-ifunc.c: New file.
7531         * benchtests/bench-strspn.c: New file.
7532         * benchtests/bench-strstr-ifunc.c: New file.
7533         * benchtests/bench-strstr.c: New file.
7534
7535         * benchtests/Makefile: Disable parallel execution of targets.
7536         (string-bench): Add memcpy.
7537         (benchset): New variable to store a list of benchmark sets.
7538         (bench-func): Renamed from bench.
7539         (bench-set): New target.
7540         (bench): Depend on bench-func and bench-set.
7541         * benchtests/README: Add section on benchmark sets.
7542         * benchtests/bench-memcpy-ifunc.c: New file.
7543         * benchtests/bench-memcpy.c: New file.
7544         * benchtests/bench-string.h: New file.
7545
7546 2013-06-11  Andreas Schwab  <schwab@suse.de>
7547
7548         [BZ #15577]
7549         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
7550         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
7551         values in the triple.
7552         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
7553         terminator in the group key.
7554
7555 2013-06-11  Andreas Jaeger  <aj@suse.de>
7556
7557         * po/zh_TW.po: Update Chinese (traditional) translation from
7558         translation project.
7559
7560 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7561
7562         * include/time.h (__clock_gettime): Add libc_hidden_proto.
7563         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
7564         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
7565         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7566         (clock_getcpuclockid): Likewise.
7567         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
7568         Add weak_alias and libc_hidden_def.
7569         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
7570         * rt/clock_gettime.c (clock_gettime): Rename to
7571         __clock_gettime.  Add weak_alias and libc_hidden_def.
7572         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
7573         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
7574         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
7575         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
7576         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
7577         Likewise.
7578         * rt/clock_settime.c (clock_settime): Rename to
7579         __clock_settime.  Add weak_alias and libc_hidden_def.
7580         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
7581
7582 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
7583
7584         * mach/err_boot.sub: Remove trailing whitespace.
7585         * mach/err_ipc.sub: Likewise.
7586         * mach/err_mach.sub: Likewise.
7587
7588         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
7589         (ROUNDING_TESTS_double): Likewise.
7590         (ROUNDING_TESTS_long_double): Likewise.
7591         (ROUNDING_TESTS): Likewise.
7592         * math/libm-test.inc: Include <math-tests.h>.
7593         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
7594         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
7595         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7596         (IF_ROUND_INIT_FE_UPWARD): Likewise.
7597
7598 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7599
7600         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
7601         of assigning.
7602
7603 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
7604
7605         * sysdeps/gnu/errlist.awk: Do not generate space at end of
7606         otherwise empty TRANS lines.
7607         * sysdeps/gnu/errlist.c: Regenerated.
7608
7609         * catgets/gencat.c (error_print): Use (void) in function
7610         definition.
7611         * crypt/crypt_util.c (__init_des): Likewise.
7612         * crypt/speeds.c (Stop): Likewise.
7613         (main): Likewise.
7614         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
7615         * inet/ruserpass.c (token): Likewise.
7616         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
7617         * intl/localealias.c (extend_alias_table): Likewise.
7618         * intl/plural-exp.c (init_germanic_plural): Likewise.
7619         * libio/fcloseall.c (__fcloseall): Likewise.
7620         * libio/genops.c (_IO_flush_all): Likewise.
7621         (_IO_flush_all_linebuffered): Likewise.
7622         (_IO_cleanup): Likewise.
7623         (_IO_iter_begin): Likewise.
7624         (_IO_iter_end): Likewise.
7625         (_IO_list_lock): Likewise.
7626         (_IO_list_unlock): Likewise.
7627         (_IO_list_resetlock): Likewise.
7628         * libio/getchar.c (getchar): Likewise.
7629         * libio/getchar_u.c (getchar_unlocked): Likewise.
7630         * libio/getwchar.c (getwchar): Likewise.
7631         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7632         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
7633         * login/getpt.c (__getpt): Likewise.
7634         * login/tst-utmp.c (main): Likewise.
7635         * malloc/hooks.c (__malloc_check_init): Likewise.
7636         * malloc/malloc.c (__malloc_stats): Likewise.
7637         * malloc/mtrace.c (tr_break): Likewise.
7638         (mtrace): Likewise.
7639         (muntrace): Likewise.
7640         * misc/fstab.c (endfsent): Likewise.
7641         * misc/getclktck.c (__getclktck): Likewise.
7642         * misc/getdtsz.c (__getdtablesize): Likewise.
7643         * misc/gethostid.c (gethostid): Likewise.
7644         * misc/getpagesize.c (__getpagesize): Likewise.
7645         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
7646         (__get_nprocs): Likewise.
7647         (__get_phys_pages): Likewise.
7648         (__get_avphys_pages): Likewise.
7649         * misc/getttyent.c (getttyent): Likewise.
7650         (setttyent): Likewise.
7651         (endttyent): Likewise.
7652         * misc/getusershell.c (getusershell): Likewise.
7653         (endusershell): Likewise.
7654         (setusershell): Likewise.
7655         (initshells): Likewise.
7656         * misc/hsearch.c (__hdestroy): Likewise.
7657         * misc/sync.c (sync): Likewise.
7658         * misc/syslog.c (closelog_internal): Likewise.
7659         (closelog): Likewise.
7660         * misc/ttyslot.c (ttyslot): Likewise.
7661         * misc/vhangup.c (vhangup): Likewise.
7662         * posix/fork.c (__fork): Likewise.
7663         * posix/getegid.c (__getegid): Likewise.
7664         * posix/geteuid.c (__geteuid): Likewise.
7665         * posix/getgid.c (__getgid): Likewise.
7666         * posix/getpid.c (__getpid): Likewise.
7667         * posix/getppid.c (__getppid): Likewise.
7668         * posix/getuid.c (__getuid): Likewise.
7669         * posix/pause.c (pause): Likewise.
7670         * posix/setpgrp.c (setpgrp): Likewise.
7671         * posix/setsid.c (__setsid): Likewise.
7672         * posix/test-vfork.c (noop): Likewise.
7673         * resolv/gethnamaddr.c (_endhtent): Likewise.
7674         (_gethtent): Likewise.
7675         (ht_endhostent): Likewise.
7676         (gethostent): Likewise.
7677         (dns_service): Likewise.
7678         * stdlib/drand48.c (drand48): Likewise.
7679         * stdlib/lrand48.c (lrand48): Likewise.
7680         * stdlib/mrand48.c (mrand48): Likewise.
7681         * stdlib/rand.c (rand): Likewise.
7682         * stdlib/random.c (__random): Likewise.
7683         * stdlib/setenv.c (clearenv): Likewise.
7684         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
7685         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
7686         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
7687         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
7688         (__get_nprocs): Likewise.
7689         (__get_phys_pages): Likewise.
7690         (__get_avphys_pages): Likewise.
7691         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
7692         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
7693         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
7694         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
7695         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
7696         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
7697         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
7698         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
7699         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
7700         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
7701         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
7702         * sysdeps/mach/hurd/sync.c (sync): Likewise.
7703         * sysdeps/posix/clock.c (clock): Likewise.
7704         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
7705         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
7706         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
7707         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7708         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
7709         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7710         (__get_nprocs_conf): Likewise.
7711         (__get_phys_pages): Likewise.
7712         (__get_avphys_pages): Likewise.
7713         * time/clock.c (clock): Likewise.
7714         * time/tzset.c (__tzname_max): Likewise.
7715
7716 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
7717
7718         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
7719         (__bswap_32): Do not use "register".
7720         * crypt/crypt.c (_ufc_doit_r): Likewise.
7721         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7722         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7723         * gmon/gmon.c (__monstartup): Likewise.
7724         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
7725         * hurd/hurdmalloc.c (more_memory): Likewise.
7726         (malloc): Likewise.
7727         (free): Likewise.
7728         (realloc): Likewise.
7729         (malloc_fork_prepare): Likewise.
7730         (malloc_fork_parent): Likewise.
7731         (malloc_fork_child): Likewise.
7732         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
7733         (_svcauth_des): Likewise.
7734         * inet/inet_lnaof.c (inet_lnaof): Likewise.
7735         * inet/inet_net.c (inet_network): Likewise.
7736         * inet/inet_netof.c (inet_netof): Likewise.
7737         * inet/rcmd.c (__validuser2_sa): Likewise.
7738         * io/fts.c (fts_open): Likewise.
7739         (fts_load): Likewise.
7740         (fts_close): Likewise.
7741         (fts_read): Likewise.
7742         (fts_children): Likewise.
7743         (fts_build): Likewise.
7744         (fts_stat): Likewise.
7745         (fts_sort): Likewise.
7746         (fts_alloc): Likewise.
7747         (fts_lfree): Likewise.
7748         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
7749         (_IO_file_xsgetn): Likewise.
7750         (_IO_file_xsgetn_mmap): Likewise.
7751         * libio/iofopncook.c (_IO_cookie_read): Likewise.
7752         (_IO_cookie_write): Likewise.
7753         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
7754         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
7755         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
7756         * malloc/obstack.c (_obstack_begin): Likewise.
7757         (_obstack_begin_1): Likewise.
7758         (_obstack_newchunk): Likewise.
7759         (_obstack_allocated_p): Likewise.
7760         (obstack_free): Likewise.
7761         (_obstack_memory_used): Likewise.
7762         * misc/getttyent.c (getttynam): Likewise.
7763         (getttyent): Likewise.
7764         (skip): Likewise.
7765         (value): Likewise.
7766         * misc/getusershell.c (initshells): Likewise.
7767         * misc/syslog.c (__vsyslog_chk): Likewise.
7768         * misc/ttyslot.c (ttyslot): Likewise.
7769         * nis/nis_hash.c (__nis_hash): Likewise.
7770         * posix/fnmatch_loop.c (FCT): Likewise.
7771         * posix/getconf.c (print_all): Likewise.
7772         (main): Likewise.
7773         * posix/getopt.c (exchange): Likewise.
7774         * posix/glob.c (globfree): Likewise.
7775         (prefix_array): Likewise.
7776         (__glob_pattern_type): Likewise.
7777         * resolv/arpa/nameser.h (NS_GET16): Likewise.
7778         (NS_GET32): Likewise.
7779         (NS_PUT16): Likewise.
7780         (NS_PUT32): Likewise.
7781         * resolv/gethnamaddr.c (getanswer): Likewise.
7782         (gethostbyname2): Likewise.
7783         (gethostbyaddr): Likewise.
7784         (_gethtent): Likewise.
7785         (_gethtbyname2): Likewise.
7786         (_gethtbyaddr): Likewise.
7787         * resolv/ns_print.c (dst_s_get_int16): Likewise.
7788         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
7789         * resolv/res_init.c (__res_vinit): Likewise.
7790         (net_mask): Likewise.
7791         * resolv/res_mkquery.c (outchar): Likewise.
7792         (PRINT): Likewise.
7793         * stdio-common/printf_fp.c (outchar): Likewise.
7794         (PRINT): Likewise.
7795         * stdio-common/printf_fphex.c (outchar): Likewise.
7796         (PRINT): Likewise.
7797         * stdio-common/printf_size.c (outchar): Likewise.
7798         (PRINT): Likewise.
7799         * stdio-common/test_rdwr.c (main): Likewise.
7800         * stdio-common/tfformat.c (matches): Likewise.
7801         * stdio-common/vfprintf.c (outchar): Likewise.
7802         (printf_unknown): Likewise.
7803         (buffered_vfprintf): Likewise.
7804         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7805         * stdio-common/xbug.c (AppendToBuffer): Likewise.
7806         (ReadFile): Likewise.
7807         * stdlib/qsort.c (SWAP): Likewise.
7808         (_quicksort): Likewise.
7809         * stdlib/setenv.c (__add_to_environ): Likewise.
7810         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7811         * stdlib/strtol_l.c (__strtol_l): Likewise.
7812         * stdlib/tst-strtod.c (main): Likewise.
7813         * stdlib/tst-strtol.c (main): Likewise.
7814         * stdlib/tst-strtoll.c (main): Likewise.
7815         * string/bits/string2.h (__strcmp_cc): Likewise.
7816         (__strcmp_cg): Likewise.
7817         (__strcspn_c1): Likewise.
7818         (__strcspn_c2): Likewise.
7819         (__strcspn_c3): Likewise.
7820         (__strspn_c1): Likewise.
7821         (__strspn_c2): Likewise.
7822         (__strspn_c3): Likewise.
7823         (__strsep_1c): Likewise.
7824         (__strsep_2c): Likewise.
7825         (__strsep_3c): Likewise.
7826         * string/memccpy.c (__memccpy): Likewise.
7827         * string/stpcpy.c (__stpcpy): Likewise.
7828         * string/strcmp.c (strcmp): Likewise.
7829         * string/strrchr.c (strrchr): Likewise.
7830         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
7831         Likewise.
7832         * sysdeps/mach/hurd/getcwd.c
7833         (_hurd_canonicalize_directory_name_internal): Likewise.
7834         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
7835         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
7836         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
7837         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
7838         Likewise, in both definitions.
7839         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
7840         definitions.
7841         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
7842         64] (__bswap_64): Likewise.
7843         * time/test_time.c (main): Likewise.
7844         * time/tzfile.c (__tzfile_read): Likewise.
7845         (__tzfile_compute): Likewise.
7846         * time/tzset.c (__tzset_parse_tz): Likewise.
7847         (tzset_internal): Likewise.
7848         (compute_change): Likewise.
7849         * wcsmbs/wcscat.c (__wcscat): Likewise.
7850         * wcsmbs/wcschr.c (wcschr): Likewise.
7851         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
7852         * wcsmbs/wcscspn.c (wcscspn): Likewise.
7853         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
7854         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
7855         * wcsmbs/wcsspn.c (wcsspn): Likewise.
7856         * wcsmbs/wcsstr.c (wcsstr): Likewise.
7857         * wcsmbs/wmemchr.c (wmemchr): Likewise.
7858         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7859         * wcsmbs/wmemset.c (wmemset): Likewise.
7860
7861 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
7862
7863         * scripts/config.guess: Update to version 2013-05-16.
7864         * scripts/config.sub: Update to version 2013-04-24.
7865         * scripts/install-sh: Update to version 2011-11-20.07.
7866         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
7867         * scripts/move-if-change: Update to version 2012-01-06 07:23.
7868
7869 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
7870
7871         * debug/fgetws_u_chk.c: Fix leading whitespaces.
7872         * elf/sln.c: Likewise.
7873         * hurd/hurd/ioctl.h: Likewise.
7874         * hurd/hurdmalloc.c: Likewise.
7875         * hurd/xattr.c: Likewise.
7876         * include/shlib-compat.h: Likewise.
7877         * inet/ruserpass.c: Likewise.
7878         * libio/iofgets_u.c: Likewise.
7879         * libio/iofgetws_u.c: Likewise.
7880         * locale/programs/ld-identification.c: Likewise.
7881         * locale/programs/ld-time.c: Likewise.
7882         * mach/msg-destroy.c: Likewise.
7883         * nss/nss_files/files-netgrp.c: Likewise.
7884         * resolv/res_data.c: Likewise.
7885         * soft-fp/op-1.h: Likewise.
7886         * soft-fp/op-2.h: Likewise.
7887         * soft-fp/op-4.h: Likewise.
7888         * soft-fp/op-common.h: Likewise.
7889         * stdio-common/printf_fphex.c: Likewise.
7890         * stdlib/strtod_l.c: Likewise.
7891         * sunrpc/rpc/clnt.h: Likewise.
7892         * sysdeps/generic/framestate.c: Likewise.
7893         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7894         * sysdeps/i386/bsd-setjmp.S: Likewise.
7895         * sysdeps/i386/__longjmp.S: Likewise.
7896         * sysdeps/i386/setjmp.S: Likewise.
7897         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7898         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7899         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7900         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7901         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7902         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7903         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7904         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7905         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7906         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
7907         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7908         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7909         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7910         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7911         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7912         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7913         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7914         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
7915         * sysdeps/ieee754/support.c: Likewise.
7916         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7917         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
7918         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
7919         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
7920         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
7921         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
7922         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
7923         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
7924         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
7925         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
7926         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
7927         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
7928         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
7929         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
7930         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
7931         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
7932         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
7934
7935 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
7936
7937         * posix/transbug.c: Remove executable mode.
7938
7939 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
7940
7941         * crypt/speeds.c: Remove trailing whitespace.
7942         * dlfcn/default.c: Likewise.
7943         * elf/ifuncdep2.c: Likewise.
7944         * elf/ifuncmain1.c: Likewise.
7945         * elf/ifuncmain1vis.c: Likewise.
7946         * elf/testobj.h: Likewise.
7947         * elf/tst-stackguard1.c: Likewise.
7948         * gmon/sys/gmon.h: Likewise.
7949         * hurd/hurdmsg.c: Likewise.
7950         * hurd/new-fd.c: Likewise.
7951         * hurd/ports-get.c: Likewise.
7952         * iconvdata/ibm1008_420.c: Likewise.
7953         * inet/tst-getni1.c: Likewise.
7954         * inet/tst-getni2.c: Likewise.
7955         * libio/ioungetc.c: Likewise.
7956         * libio/wfiledoalloc.c: Likewise.
7957         * manual/libm-err-tab.pl: Likewise.
7958         * math/w_dremf.c: Likewise.
7959         * misc/ftruncate.c: Likewise.
7960         * posix/bug-glob2.c: Likewise.
7961         * posix/tst-pcre.c: Likewise.
7962         * posix/wait4.c: Likewise.
7963         * resolv/README: Likewise.
7964         * resolv/res_debug.h: Likewise.
7965         * resolv/tst-inet_ntop.c: Likewise.
7966         * setjmp/bug269-setjmp.c: Likewise.
7967         * soft-fp/extended.h: Likewise.
7968         * soft-fp/op-1.h: Likewise.
7969         * soft-fp/op-2.h: Likewise.
7970         * soft-fp/op-4.h: Likewise.
7971         * soft-fp/op-8.h: Likewise.
7972         * soft-fp/testit.c: Likewise.
7973         * stdio-common/bug16.c: Likewise.
7974         * stdlib/random.c: Likewise.
7975         * sunrpc/rpcsvc/rquota.x: Likewise.
7976         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
7977         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7978         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7979         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7980         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7981         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7982         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7983         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7984         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7985         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7986         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7987         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7988         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7989         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7990         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7991         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7992         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7993         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7994         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7995         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7996         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7997         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7998         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
7999         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
8000         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8001         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8002         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
8003         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8004         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8005         * sysdeps/ieee754/s_lib_version.c: Likewise.
8006         * sysdeps/mach/hurd/check_fds.c: Likewise.
8007         * sysdeps/mach/hurd/getsockname.c: Likewise.
8008         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
8009         * sysdeps/mach/hurd/recvfrom.c: Likewise.
8010         * sysdeps/powerpc/bits/link.h: Likewise.
8011         * sysdeps/powerpc/dl-procinfo.c: Likewise.
8012         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
8013         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
8014         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
8015         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
8016         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8017         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
8018         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
8019         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
8020         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8021         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
8022         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
8023         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
8024         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8025         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8026         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8027         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
8028         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
8029         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8030         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8031         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8032         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
8033         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
8034         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
8035         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8036         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
8037         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
8038         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8039         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8040         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
8041         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
8042         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
8043         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8044         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8045         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
8046         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
8047         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
8048         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
8049         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
8050         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
8051         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
8052         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
8053         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
8054         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
8055         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
8056         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
8057         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
8058         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
8059         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
8060         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
8061         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8062         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8063         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8064         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8065         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
8066         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
8067         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
8068         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
8069         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
8070         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
8071         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
8072         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
8073         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
8074         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
8075         * sysdeps/powerpc/sysdep.h: Likewise.
8076         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
8077         * sysdeps/s390/s390-64/sub_n.S: Likewise.
8078         * sysdeps/sh/dl-trampoline.S: Likewise.
8079         * sysdeps/sh/memset.S: Likewise.
8080         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
8081         * sysdeps/sh/strlen.S: Likewise.
8082         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
8083         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
8084         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
8085         * sysdeps/sparc/sparc32/rem.S: Likewise.
8086         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
8087         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
8088         * sysdeps/sparc/sparc32/strchr.S: Likewise.
8089         * sysdeps/sparc/sparc32/udiv.S: Likewise.
8090         * sysdeps/sparc/sparc32/urem.S: Likewise.
8091         * sysdeps/sparc/sparc64/add_n.S: Likewise.
8092         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8093         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
8094         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
8095         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
8096         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
8097         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
8098         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
8099         * sysdeps/unix/bsd/times.c: Likewise.
8100         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
8101         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
8102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
8103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
8104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
8105         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8106         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
8107         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8108         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
8109         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
8110         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
8111         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
8112         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
8113         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8114         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
8115         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8116         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8117         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
8118         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
8119         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
8120         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8121         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
8122         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8123         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
8124         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
8125         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8126         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
8127         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8128         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
8129         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
8130         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
8131         * sysdeps/x86_64/strcspn.S: Likewise.
8132
8133 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8134
8135         * locale/C-translit.h: Revert #include <stdint.h> because this is a
8136         generated file.  Regenerate properly from gen-translit.pl.
8137         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
8138         locale/C-translit.h.
8139
8140 2013-06-05  Andreas Schwab  <schwab@suse.de>
8141
8142         [BZ #15100]
8143         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
8144         week as 6 instead of -1.
8145         * time/tst-strptime.c (day_tests): Add test case.
8146
8147 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8148
8149         * sysdeps/generic/math_private.h
8150         (libc_feholdexcept_setround_53bit): Replace with
8151         libc_feholdsetround_53bit.
8152         (libc_feupdateenv_53bit): Replace with
8153         libc_feresetround_53bit.
8154         (SET_RESTORE_ROUND_53BIT): Adjust.
8155
8156 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
8157
8158         * string/test-strchrnul.c: Add copyright header.
8159
8160         * posix/tst-getaddrinfo4.c: Increase test timeout.
8161
8162 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
8163
8164         [BZ #15536]
8165         * math/libm-test.inc (MAX_EXP): Remove
8166         (MIN_EXP): Define.
8167         (ulp): Use MIN_EXP - MANT_DIG.
8168         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
8169
8170 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
8171
8172         * po/be.po: Revert last change.
8173         * po/zh_CN.po: Likewise.
8174         * po/header.pot: Likewise.
8175
8176 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
8177
8178         * Makefile ($(common-objpfx)linkobj/libc.so): Define
8179         link-libc-deps to empty as target-specific variable.
8180         * Makerules (link-libc-args): New variable.
8181         (libc-for-link): Likewise.
8182         (link-libc-deps): Likewise.
8183         (lib%.so): Depend on $(link-libc-deps).  Link with
8184         $(link-libc-args).
8185         (build-module): Link with $(link-libc-args).
8186         (build-module-asneeded): Likewise.
8187         (build-module-helper-objlist): Filter out $(link-libc-deps) from
8188         list of objects.
8189         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
8190         target-specific variable.
8191         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
8192         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
8193         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
8194         libc.
8195         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
8196         libc and ld.so.
8197         ($(objpfx)libpcprofile.so): Likewise.
8198         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
8199         libc_nonshared.a.
8200         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
8201         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
8202         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
8203         $(link-libc-deps).
8204         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
8205         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
8206         * login/Makefile ($(objpfx)libutil.so): Likewise.
8207         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
8208         * math/Makefile ($(objpfx)libm.so): Likewise.
8209         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
8210         $(objpfx)libnsl.so): Define libc-for-link as target-specific
8211         variable instead of depending directly on libc.
8212         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
8213         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
8214         $(link-libc-deps).
8215         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
8216         libc.
8217         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
8218         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
8219         ($(objpfx)libanl.so): Likewise.
8220         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
8221         ld.so.
8222         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
8223         $(link-libc-deps).
8224         * sysdeps/i386/fpu/Makefile: Remove file.
8225         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
8226         ($(objpfx)libm.so): Remove dependency on ld.so.
8227
8228 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
8229
8230         [BZ # 15553]
8231         * nis/yp_xdr.c (XDRMAXNAME): Define.
8232         (XDRMAXRECORD): Define.
8233         (xdr_domainname): Use XDRMAXNAME.
8234         (xdr_mapname): Likewise.
8235         (xdr_peername): Likewise.
8236         (xdr_keydat): Use XDRMAXRECORD.
8237         (xdr_valdat): Likewise.
8238
8239 2013-05-30  Jeff Law  <law@redhat.com>
8240
8241         [BZ #14256]
8242         * manual/errno.texi (ESTALE): Update to account for more than
8243         just NFS file systems.
8244         * sysdeps/gnu/errlist.c: Regenerated.
8245
8246 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
8247
8248         [BZ #15465]
8249         * elf/Makefile (tests): Add tst-null-argv.
8250         (modules-names):  Add tst-null-argv-lib.
8251         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
8252         (tst-null-argv-ENV): Set environment for tst-null-argv.
8253         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
8254         (RTLD_PROGNAME): New macro.
8255         * elf/tst-null-argv.c: New test case.
8256         * elf/tst-null-argv-lib.c: Library for test case.
8257         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
8258         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8259         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
8260         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
8261         * elf/dl-init.c (call_init): Likewise.
8262         (_dl_init): Likewise.
8263         * elf/dl-load.c (print_search_path): Likewise.
8264         (_dl_map_object): Likewise.
8265         * elf/dl-lookup.c (do_lookup_x): Likewise.
8266         (add_dependency): Likewise.
8267         (_dl_lookup_symbol_x): Likewise.
8268         (_dl_debug_bindings): Likewise.
8269         * elf/dl-open.c (_dl_show_scope): Likewise.
8270         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8271         * elf/dl-version.c (match_symbol): Likewise.
8272         (_dl_check_map_versions): Likewise.
8273         * elf/rtld.c (dl_main): Likewise.
8274         (print_unresolved): Use RTLD_PROGNAME.
8275         (print_missing_version): Likewise.
8276         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8277         (elf_machine_rela): Likewise.
8278         * sysdeps/powerpc/powerpc32/dl-machine.c
8279         (__process_machine_rela): Likewise.
8280         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8281         Likewise.
8282         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8283         Likewise.
8284         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
8285         Likewise.
8286         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8287         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
8288         Likewise.
8289         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8290         Likewise.
8291         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8292
8293 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
8294
8295         * po/be.po: Add descriptive title.
8296         * po/zh_CN.po: Likewise.
8297         * po/header.pot: Likewise.
8298
8299 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
8300
8301         * locale/programs/locarchive.c (create_archive): Inlucde fname in
8302         error message.
8303         (enlarge_archive): Likewise.
8304
8305 2013-05-28  Ben North  <ben@redfrontdoor.org>
8306
8307         * manual/arith.texi (frexp): It is the magnitude of the return
8308         value which lies in [0.5, 1), not the return value itself.
8309
8310 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8311
8312         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8313
8314 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
8315
8316         * stdio-common/bug26.c (main): Correct fscanf template.
8317
8318         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
8319         declare _dl_skip_args.
8320
8321         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
8322         Don't declare.
8323
8324         * manual/platform.texi: Add missing @end deftypefun.
8325
8326 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8327
8328         [BZ #15529]
8329         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
8330         bit of mantissa of 2^16382.
8331         * math/libm-test.inc (hypot_test_data): Add more tests.
8332
8333         * math/libm-test.inc: Add drem and pow10 to list of tested
8334         functions.
8335         (pow10_test): New function.
8336         (drem_test): Likewise.
8337         (drem_test_tonearest): Likewise.
8338         (drem_test_towardzero): Likewise.
8339         (drem_test_downward): Likewise.
8340         (drem_test_upward): Likewise.
8341         (main): Call the new functions.
8342
8343         * math/libm-test.inc (finite_test_data): Remove.
8344         (finite_test): Run tests from isfinite_test_data.
8345         (gamma_test_data): Remove.
8346         (gamma_test): Run tests from lgamma_test_data.
8347         * sysdeps/i386/fpu/libm-test-ulps: Update.
8348         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8349
8350 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8351
8352         * manual/platform.texi: Add PowerPC PPR function set documentation.
8353         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
8354         implementation.
8355
8356 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
8357
8358         * math/libm-test.inc (MAX_EXP): Define.
8359         (ULPDIFF): Define.
8360         (ulp): New function.
8361         (check_float_internal): Use ULPDIFF.
8362         (cpow_test): Disable failing test.
8363         (check_ulp): Test ulp() implemetnation.
8364         (main): Call check_ulp before starting tests.
8365
8366 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8367
8368         * math/gen-libm-test.pl (generate_testfile): Do not handle
8369         START_DATA and END_DATA.
8370         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
8371         END_DATA.
8372         (acos_tonearest_test_data): Likewise.
8373         (acos_towardzero_test_data): Likewise.
8374         (acos_downward_test_data): Likewise.
8375         (acos_upward_test_data): Likewise.
8376         (acosh_test_data): Likewise.
8377         (asin_test_data): Likewise.
8378         (asin_tonearest_test_data): Likewise.
8379         (asin_towardzero_test_data): Likewise.
8380         (asin_downward_test_data): Likewise.
8381         (asin_upward_test_data): Likewise.
8382         (asinh_test_data): Likewise.
8383         (atan_test_data): Likewise.
8384         (atanh_test_data): Likewise.
8385         (atan2_test_data): Likewise.
8386         (cabs_test_data): Likewise.
8387         (cacos_test_data): Likewise.
8388         (cacosh_test_data): Likewise.
8389         (carg_test_data): Likewise.
8390         (casin_test_data): Likewise.
8391         (casinh_test_data): Likewise.
8392         (catan_test_data): Likewise.
8393         (catanh_test_data): Likewise.
8394         (cbrt_test_data): Likewise.
8395         (ccos_test_data): Likewise.
8396         (ccosh_test_data): Likewise.
8397         (ceil_test_data): Likewise.
8398         (cexp_test_data): Likewise.
8399         (cimag_test_data): Likewise.
8400         (clog_test_data): Likewise.
8401         (clog10_test_data): Likewise.
8402         (conj_test_data): Likewise.
8403         (copysign_test_data): Likewise.
8404         (cos_test_data): Likewise.
8405         (cos_tonearest_test_data): Likewise.
8406         (cos_towardzero_test_data): Likewise.
8407         (cos_downward_test_data): Likewise.
8408         (cos_upward_test_data): Likewise.
8409         (cosh_test_data): Likewise.
8410         (cosh_tonearest_test_data): Likewise.
8411         (cosh_towardzero_test_data): Likewise.
8412         (cosh_downward_test_data): Likewise.
8413         (cosh_upward_test_data): Likewise.
8414         (cpow_test_data): Likewise.
8415         (cproj_test_data): Likewise.
8416         (creal_test_data): Likewise.
8417         (csin_test_data): Likewise.
8418         (csinh_test_data): Likewise.
8419         (csqrt_test_data): Likewise.
8420         (ctan_test_data): Likewise.
8421         (ctan_tonearest_test_data): Likewise.
8422         (ctan_towardzero_test_data): Likewise.
8423         (ctan_downward_test_data): Likewise.
8424         (ctan_upward_test_data): Likewise.
8425         (ctanh_test_data): Likewise.
8426         (ctanh_tonearest_test_data): Likewise.
8427         (ctanh_towardzero_test_data): Likewise.
8428         (ctanh_downward_test_data): Likewise.
8429         (ctanh_upward_test_data): Likewise.
8430         (erf_test_data): Likewise.
8431         (erfc_test_data): Likewise.
8432         (exp_test_data): Likewise.
8433         (exp_tonearest_test_data): Likewise.
8434         (exp_towardzero_test_data): Likewise.
8435         (exp_downward_test_data): Likewise.
8436         (exp_upward_test_data): Likewise.
8437         (exp10_test_data): Likewise.
8438         (exp2_test_data): Likewise.
8439         (expm1_test_data): Likewise.
8440         (fabs_test_data): Likewise.
8441         (fdim_test_data): Likewise.
8442         (finite_test_data): Likewise.
8443         (floor_test_data): Likewise.
8444         (fma_test_data): Likewise.
8445         (fma_towardzero_test_data): Likewise.
8446         (fma_downward_test_data): Likewise.
8447         (fma_upward_test_data): Likewise.
8448         (fmax_test_data): Likewise.
8449         (fmin_test_data): Likewise.
8450         (fmod_test_data): Likewise.
8451         (fpclassify_test_data): Likewise.
8452         (frexp_test_data): Likewise.
8453         (gamma_test_data): Likewise.
8454         (hypot_test_data): Likewise.
8455         (ilogb_test_data): Likewise.
8456         (isfinite_test_data): Likewise.
8457         (isgreater_test_data): Likewise.
8458         (isgreaterequal_test_data): Likewise.
8459         (isinf_test_data): Likewise.
8460         (isless_test_data): Likewise.
8461         (islessequal_test_data): Likewise.
8462         (islessgreater_test_data): Likewise.
8463         (isnan_test_data): Likewise.
8464         (isnormal_test_data): Likewise.
8465         (issignaling_test_data): Likewise.
8466         (isunordered_test_data): Likewise.
8467         (j0_test_data): Likewise.
8468         (j1_test_data): Likewise.
8469         (jn_test_data): Likewise.
8470         (ldexp_test_data): Likewise.
8471         (lgamma_test_data): Likewise.
8472         (lrint_test_data): Likewise.
8473         (lrint_tonearest_test_data): Likewise.
8474         (lrint_towardzero_test_data): Likewise.
8475         (lrint_downward_test_data): Likewise.
8476         (lrint_upward_test_data): Likewise.
8477         (llrint_test_data): Likewise.
8478         (llrint_tonearest_test_data): Likewise.
8479         (llrint_towardzero_test_data): Likewise.
8480         (llrint_downward_test_data): Likewise.
8481         (llrint_upward_test_data): Likewise.
8482         (log_test_data): Likewise.
8483         (log10_test_data): Likewise.
8484         (log1p_test_data): Likewise.
8485         (log2_test_data): Likewise.
8486         (logb_test_data): Likewise.
8487         (logb_downward_test_data): Likewise.
8488         (lround_test_data): Likewise.
8489         (llround_test_data): Likewise.
8490         (modf_test_data): Likewise.
8491         (nearbyint_test_data): Likewise.
8492         (nextafter_test_data): Likewise.
8493         (nexttoward_test_data): Likewise.
8494         (pow_test_data): Likewise.
8495         (pow_tonearest_test_data): Likewise.
8496         (pow_towardzero_test_data): Likewise.
8497         (pow_downward_test_data): Likewise.
8498         (pow_upward_test_data): Likewise.
8499         (remainder_test_data): Likewise.
8500         (remainder_tonearest_test_data): Likewise.
8501         (remainder_towardzero_test_data): Likewise.
8502         (remainder_downward_test_data): Likewise.
8503         (remainder_upward_test_data): Likewise.
8504         (remquo_test_data): Likewise.
8505         (rint_test_data): Likewise.
8506         (rint_tonearest_test_data): Likewise.
8507         (rint_towardzero_test_data): Likewise.
8508         (rint_downward_test_data): Likewise.
8509         (rint_upward_test_data): Likewise.
8510         (round_test_data): Likewise.
8511         (scalb_test_data): Likewise.
8512         (scalbn_test_data): Likewise.
8513         (scalbln_test_data): Likewise.
8514         (signbit_test_data): Likewise.
8515         (sin_test_data): Likewise.
8516         (sin_tonearest_test_data): Likewise.
8517         (sin_towardzero_test_data): Likewise.
8518         (sin_downward_test_data): Likewise.
8519         (sin_upward_test_data): Likewise.
8520         (sincos_test_data): Likewise.
8521         (sinh_test_data): Likewise.
8522         (sinh_tonearest_test_data): Likewise.
8523         (sinh_towardzero_test_data): Likewise.
8524         (sinh_downward_test_data): Likewise.
8525         (sinh_upward_test_data): Likewise.
8526         (sqrt_test_data): Likewise.
8527         (tan_test_data): Likewise.
8528         (tan_tonearest_test_data): Likewise.
8529         (tan_towardzero_test_data): Likewise.
8530         (tan_downward_test_data): Likewise.
8531         (tan_upward_test_data): Likewise.
8532         (tanh_test_data): Likewise.
8533         (tgamma_test_data): Likewise.
8534         (trunc_test_data): Likewise.
8535         (y0_test_data): Likewise.
8536         (y1_test_data): Likewise.
8537         (yn_test_data): Likewise.
8538         (significand_test_data): Likewise.
8539
8540         * math/gen-libm-test.pl (@functions): Remove variable.
8541         (generate_testfile): Don't handle START and END lines.
8542         * math/libm-test.inc (START): New macro.
8543         (END): Likewise.
8544         (END_COMPLEX): Likewise.
8545         (acos_test): Use END macro without arguments.
8546         (acos_test_tonearest): Likewise.
8547         (acos_test_towardzero): Likewise.
8548         (acos_test_downward): Likewise.
8549         (acos_test_upward): Likewise.
8550         (acosh_test): Likewise.
8551         (asin_test): Likewise.
8552         (asin_test_tonearest): Likewise.
8553         (asin_test_towardzero): Likewise.
8554         (asin_test_downward): Likewise.
8555         (asin_test_upward): Likewise.
8556         (asinh_test): Likewise.
8557         (atan_test): Likewise.
8558         (atanh_test): Likewise.
8559         (atan2_test): Likewise.
8560         (cabs_test): Likewise.
8561         (cacos_test): Use END_COMPLEX macro without arguments.
8562         (cacosh_test): Likewise.
8563         (carg_test): Use END macro without arguments.
8564         (casin_test): Use END_COMPLEX macro without arguments.
8565         (casinh_test): Likewise.
8566         (catan_test): Likewise.
8567         (catanh_test): Likewise.
8568         (cbrt_test): Use END macro without arguments.
8569         (ccos_test): Use END_COMPLEX macro without arguments.
8570         (ccosh_test): Likewise.
8571         (ceil_test): Use END macro without arguments.
8572         (cexp_test): Use END_COMPLEX macro without arguments.
8573         (cimag_test): Use END macro without arguments.
8574         (clog_test): Use END_COMPLEX macro without arguments.
8575         (clog10_test): Likewise.
8576         (conj_test): Likewise.
8577         (copysign_test): Use END macro without arguments.
8578         (cos_test): Likewise.
8579         (cos_test_tonearest): Likewise.
8580         (cos_test_towardzero): Likewise.
8581         (cos_test_downward): Likewise.
8582         (cos_test_upward): Likewise.
8583         (cosh_test): Likewise.
8584         (cosh_test_tonearest): Likewise.
8585         (cosh_test_towardzero): Likewise.
8586         (cosh_test_downward): Likewise.
8587         (cosh_test_upward): Likewise.
8588         (cpow_test): Use END_COMPLEX macro without arguments.
8589         (cproj_test): Likewise.
8590         (creal_test): Use END macro without arguments.
8591         (csin_test): Use END_COMPLEX macro without arguments.
8592         (csinh_test): Likewise.
8593         (csqrt_test): Likewise.
8594         (ctan_test): Likewise.
8595         (ctan_test_tonearest): Likewise.
8596         (ctan_test_towardzero): Likewise.
8597         (ctan_test_downward): Likewise.
8598         (ctan_test_upward): Likewise.
8599         (ctanh_test): Likewise.
8600         (ctanh_test_tonearest): Likewise.
8601         (ctanh_test_towardzero): Likewise.
8602         (ctanh_test_downward): Likewise.
8603         (ctanh_test_upward): Likewise.
8604         (erf_test): Use END macro without arguments.
8605         (erfc_test): Likewise.
8606         (exp_test): Likewise.
8607         (exp_test_tonearest): Likewise.
8608         (exp_test_towardzero): Likewise.
8609         (exp_test_downward): Likewise.
8610         (exp_test_upward): Likewise.
8611         (exp10_test): Likewise.
8612         (exp2_test): Likewise.
8613         (expm1_test): Likewise.
8614         (fabs_test): Likewise.
8615         (fdim_test): Likewise.
8616         (finite_test): Likewise.
8617         (floor_test): Likewise.
8618         (fma_test): Likewise.
8619         (fma_test_towardzero): Likewise.
8620         (fma_test_downward): Likewise.
8621         (fma_test_upward): Likewise.
8622         (fmax_test): Likewise.
8623         (fmin_test): Likewise.
8624         (fmod_test): Likewise.
8625         (fpclassify_test): Likewise.
8626         (frexp_test): Likewise.
8627         (gamma_test): Likewise.
8628         (hypot_test): Likewise.
8629         (ilogb_test): Likewise.
8630         (isfinite_test): Likewise.
8631         (isgreater_test): Likewise.
8632         (isgreaterequal_test): Likewise.
8633         (isinf_test): Likewise.
8634         (isless_test): Likewise.
8635         (islessequal_test): Likewise.
8636         (islessgreater_test): Likewise.
8637         (isnan_test): Likewise.
8638         (isnormal_test): Likewise.
8639         (issignaling_test): Likewise.
8640         (isunordered_test): Likewise.
8641         (j0_test): Likewise.
8642         (j1_test): Likewise.
8643         (jn_test): Likewise.
8644         (ldexp_test): Likewise.
8645         (lgamma_test): Likewise.
8646         (lrint_test): Likewise.
8647         (lrint_test_tonearest): Likewise.
8648         (lrint_test_towardzero): Likewise.
8649         (lrint_test_downward): Likewise.
8650         (lrint_test_upward): Likewise.
8651         (llrint_test): Likewise.
8652         (llrint_test_tonearest): Likewise.
8653         (llrint_test_towardzero): Likewise.
8654         (llrint_test_downward): Likewise.
8655         (llrint_test_upward): Likewise.
8656         (log_test): Likewise.
8657         (log10_test): Likewise.
8658         (log1p_test): Likewise.
8659         (log2_test): Likewise.
8660         (logb_test): Likewise.
8661         (logb_test_downward): Likewise.
8662         (lround_test): Likewise.
8663         (llround_test): Likewise.
8664         (modf_test): Likewise.
8665         (nearbyint_test): Likewise.
8666         (nextafter_test): Likewise.
8667         (nexttoward_test): Likewise.
8668         (pow_test): Likewise.
8669         (pow_test_tonearest): Likewise.
8670         (pow_test_towardzero): Likewise.
8671         (pow_test_downward): Likewise.
8672         (pow_test_upward): Likewise.
8673         (remainder_test): Likewise.
8674         (remainder_test_tonearest): Likewise.
8675         (remainder_test_towardzero): Likewise.
8676         (remainder_test_downward): Likewise.
8677         (remainder_test_upward): Likewise.
8678         (remquo_test): Likewise.
8679         (rint_test): Likewise.
8680         (rint_test_tonearest): Likewise.
8681         (rint_test_towardzero): Likewise.
8682         (rint_test_downward): Likewise.
8683         (rint_test_upward): Likewise.
8684         (round_test): Likewise.
8685         (scalb_test): Likewise.
8686         (scalbn_test): Likewise.
8687         (scalbln_test): Likewise.
8688         (signbit_test): Likewise.
8689         (sin_test): Likewise.
8690         (sin_test_tonearest): Likewise.
8691         (sin_test_towardzero): Likewise.
8692         (sin_test_downward): Likewise.
8693         (sin_test_upward): Likewise.
8694         (sincos_test): Likewise.
8695         (sinh_test): Likewise.
8696         (sinh_test_tonearest): Likewise.
8697         (sinh_test_towardzero): Likewise.
8698         (sinh_test_downward): Likewise.
8699         (sinh_test_upward): Likewise.
8700         (sqrt_test): Likewise.
8701         (tan_test): Likewise.
8702         (tan_test_tonearest): Likewise.
8703         (tan_test_towardzero): Likewise.
8704         (tan_test_downward): Likewise.
8705         (tan_test_upward): Likewise.
8706         (tanh_test): Likewise.
8707         (tgamma_test): Likewise.
8708         (trunc_test): Likewise.
8709         (y0_test): Likewise.
8710         (y1_test): Likewise.
8711         (yn_test): Likewise.
8712         (significand_test): Likewise.
8713
8714 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
8715
8716         [BZ #15381]
8717         * libio/genops.c (_IO_no_init): Initialize wide struct info.
8718
8719 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8720
8721         [BZ #14894]
8722         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
8723         __ppc_mdoio and __ppc_mdoom.
8724         * manual/platform.texi: Document new functions __ppc_yield,
8725         __ppc_mdoio and __ppc_mdoom.
8726
8727 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
8728
8729         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
8730         (main): Mention "tls" pseudo-hwcap is legacy.
8731         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
8732
8733 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8734
8735         * math/gen-libm-test.pl (parse_args): Output only string of
8736         arguments as text for test name, not full call or descriptions of
8737         tests for extra outputs.
8738         (generate_testfile): Do not pass function name to parse_args.
8739         Generate this_func variable from START.
8740         * math/libm-test.inc (struct test_f_f_data): Rename test_name
8741         field to arg_str.
8742         (struct test_ff_f_data): Likewise.
8743         (test_ff_f_data_nexttoward): Likewise.
8744         (struct test_fi_f_data): Likewise.
8745         (struct test_fl_f_data): Likewise.
8746         (struct test_if_f_data): Likewise.
8747         (struct test_fff_f_data): Likewise.
8748         (struct test_c_f_data): Likewise.
8749         (struct test_f_f1_data): Likewise.  Remove field extra_name.
8750         (struct test_fF_f1_data): Likewise.
8751         (struct test_ffI_f1_data): Likewise.
8752         (struct test_c_c_data): Rename test_name field to arg_str.
8753         (struct test_cc_c_data): Likewise.
8754         (struct test_f_i_data): Likewise.
8755         (struct test_ff_i_data): Likewise.
8756         (struct test_f_l_data): Likewise.
8757         (struct test_f_L_data): Likewise.
8758         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
8759         and extra2_name.
8760         (COMMON_TEST_SETUP): New macro.
8761         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
8762         (COMMON_TEST_CLEANUP): Likewise.
8763         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
8764         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
8765         macros.
8766         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
8767         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
8768         macros.
8769         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
8770         (RUN_TEST_fff_f): Take argument string.  Call new setup and
8771         cleanup macros.
8772         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
8773         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
8774         macros.
8775         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
8776         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
8777         macros.
8778         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8779         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
8780         cleanup macros.
8781         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8782         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
8783         cleanup macros.
8784         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8785         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
8786         cleanup macros.
8787         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8788         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
8789         macros.
8790         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
8791         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
8792         macros.
8793         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
8794         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
8795         macros.
8796         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
8797         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
8798         cleanup macros.
8799         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
8800         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
8801         cleanup macros.
8802         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
8803         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
8804         macros.
8805         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
8806         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
8807         cleanup macros.
8808         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
8809         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
8810         macros.
8811         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
8812         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
8813         macros.
8814         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
8815         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
8816         cleanup macros.
8817         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
8818
8819 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
8820
8821         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
8822         to _sifields.sigfault.
8823         (si_addr_lsb): Define new macro.
8824         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8825         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8826         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
8827
8828 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
8829
8830         [BZ #15441]
8831         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
8832         returns -1.
8833         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
8834         null return -1.
8835         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
8836         loading the domain.
8837
8838 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8839
8840         * math/gen-libm-test.pl (parse_args): Do not include expected
8841         result in test name.
8842         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
8843         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8844         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8845         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8846         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8848
8849 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8850
8851         * benchtests/Makefile: Sort function entries.
8852
8853         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
8854         tanh, asinh, acosh, atanh.
8855         * benchtests/acos-inputs: New file.
8856         * benchtests/acosh-inputs: New file.
8857         * benchtests/asin-inputs: New file.
8858         * benchtests/asinh-inputs: New file.
8859         * benchtests/atanh-inputs: New file.
8860         * benchtests/cosh-inputs: New file.
8861         * benchtests/log-inputs: New file.
8862         * benchtests/sinh-inputs: New file.
8863         * benchtests/tanh-inputs: New file.
8864
8865 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
8866
8867         [BZ #15339]
8868         * posix/tst-getaddrinfo4.c: New test.
8869         * posix/Makefile (tests): Add it.
8870
8871 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8872
8873         [BZ #15339]
8874         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
8875         when no services were used.
8876         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
8877         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
8878
8879 2013-05-21  Andreas Schwab  <schwab@suse.de>
8880
8881         [BZ #15014]
8882         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
8883         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
8884         successful.
8885         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
8886         redundant variable declarations and reallocation of buffer when
8887         parsing as IPv6 address.  Always set NSS status when called from
8888         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
8889         buffer too small.  Correct computation of needed size.
8890         * nss/Makefile (tests): Add test-digits-dots.
8891         * nss/test-digits-dots.c: New test.
8892
8893 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8894
8895         * benchtests/Makefile: Remove instructions for adding
8896         benchmark tests.
8897         * benchtests/README: New file to explain how to execute and
8898         enhance the benchmark tests.
8899
8900 2013-05-21  Andreas Schwab  <schwab@suse.de>
8901
8902         [BZ #15493]
8903         * setjmp/Makefile (tests): Add tst-sigsetjmp.
8904         * setjmp/tst-sigsetjmp.c: New test.
8905
8906 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8907
8908         * sysdeps/x86_64/memset.S (memset): New implementation.
8909         (__bzero): Likewise.
8910         (__memset_tail): New function.
8911
8912 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
8913
8914         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
8915         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
8916         __memcpy_sse2_unaligned ifunc selection.
8917         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
8918         Add memcpy-sse2-unaligned.S.
8919         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8920         Add: __memcpy_sse2_unaligned.
8921
8922 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
8923
8924         [BZ #15490]
8925         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8926         math_force_eval before restoring floating-point envrionment.
8927         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
8928         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8929         Likewise.
8930         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
8931         <math_private.h>.
8932         (__nearbyintl): Use math_force_eval before restoring
8933         floating-point environment.
8934         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
8935
8936         * math/gen-libm-test.pl (special_functions): Remove.
8937         (parse_args): Don't handle TEST_extra.  Handle functions with no
8938         return value.
8939         * math/libm-test.inc (struct test_sincos_data): Replace with
8940         struct test_fFF_11_data.
8941         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
8942         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
8943         (sincos_test_data): Change element type to struct
8944         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
8945         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
8946         RUN_TEST_LOOP_sincos.
8947         * math/README.libm-test: Don't mention special handling of
8948         individual functions.
8949         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
8950         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8951         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8952         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8953         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8954         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8955
8956         * math/gen-libm-test.pl (get_variable): Remove function.
8957         (parse_args): Don't show pointer parameters to call in test
8958         names.  Use "extra output N" in test names for extra outputs
8959         rather than naming variables.
8960
8961 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
8962
8963         [BZ #15488]
8964         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
8965         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
8966         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
8967         double tests.
8968         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
8969         disable.
8970         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
8971         check_long_double.
8972
8973         * math/gen-libm-test.pl (@tests): Remove variable.
8974         ($count): Likewise.
8975         (new_test): Remove function.
8976         (show_exceptions): New function.
8977         (special_functions): Use show_exceptions instead of new_test.
8978         (parse_args): Likewise.
8979         (generate_testfile): Pass only function name in generated call to
8980         print_max_error or print_complex_max_error.
8981         (get_ulps): Do not handle complex tests specially.
8982         (output_test): Rename to ...
8983         (get_all_ulps_for_test): ... this.  Return a string rather than
8984         printing to a file.  Require ulps to be present.
8985         (output_ulps): Generate arrays rather than #defines.
8986         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
8987         (struct ulp_data): New type.
8988         (BUILD_COMPLEX_ULP): Remove macro.
8989         (compare_ulp_data): New function.
8990         (find_ulps): Likewise.
8991         (find_test_ulps): Likewise.
8992         (find_function_ulps): Likewise.
8993         (find_complex_function_ulps): Likewise.
8994         (print_max_error): Determine allowed ulps using
8995         find_function_ulps.
8996         (print_complex_max_error): Determine allowed ulps using
8997         find_complex_function_ulps.
8998         (check_float_internal): Determine max ulps using find_test_ulps.
8999         (check_float): Do not take max_ulp parameter.  Update call to
9000         check_float_internal.
9001         (check_complex): Likewise.
9002         (check_int): Do not take max_ulp parameter.
9003         (check_long): Likewise.
9004         (check_bool): Likewise.
9005         (check_longlong): Likewise.
9006         (struct test_f_f_data): Remove max_ulp field.
9007         (struct test_ff_f_data): Likewise.
9008         (struct test_ff_f_data_nexttoward): Likewise.
9009         (struct test_fi_f_data): Likewise.
9010         (struct test_fl_f_data): Likewise.
9011         (struct test_if_f_data): Likewise.
9012         (struct test_fff_f_data): Likewise.
9013         (struct test_c_f_data): Likewise.
9014         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
9015         (struct test_fF_f1_data): Likewise.
9016         (struct test_ffI_f1_data): Likewise.
9017         (struct test_c_c_data): Remove max_ulp field.
9018         (struct test_cc_c_data): Likewise.
9019         (struct test_f_i_data): Likewise.
9020         (struct test_ff_i_data): Likewise.
9021         (struct test_f_l_data): Likewise.
9022         (struct test_f_L_data): Likewise.
9023         (struct test_sincos_data): Likewise.
9024         (RUN_TEST_f_f): Do not handle ulps.
9025         (RUN_TEST_LOOP_f_f): Likewise.
9026         (RUN_TEST_2_f): Likewise.
9027         (RUN_TEST_LOOP_2_f): Likewise.
9028         (RUN_TEST_fff_f): Likewise.
9029         (RUN_TEST_LOOP_fff_f): Likewise.
9030         (RUN_TEST_c_f): Likewise.
9031         (RUN_TEST_LOOP_c_f): Likewise.
9032         (RUN_TEST_f_f1): Likewise.
9033         (RUN_TEST_LOOP_f_f1): Likewise.
9034         (RUN_TEST_fF_f1): Likewise.
9035         (RUN_TEST_LOOP_fF_f1): Likewise.
9036         (RUN_TEST_fI_f1): Likewise.
9037         (RUN_TEST_LOOP_fI_f1): Likewise.
9038         (RUN_TEST_ffI_f1): Likewise.
9039         (RUN_TEST_LOOP_ffI_f1): Likewise.
9040         (RUN_TEST_c_c): Likewise.
9041         (RUN_TEST_LOOP_c_c): Likewise.
9042         (RUN_TEST_cc_c): Likewise.
9043         (RUN_TEST_LOOP_cc_c): Likewise.
9044         (RUN_TEST_f_i): Likewise.
9045         (RUN_TEST_LOOP_f_i): Likewise.
9046         (RUN_TEST_f_i_tg): Likewise.
9047         (RUN_TEST_LOOP_f_i_tg): Likewise.
9048         (RUN_TEST_ff_i_tg): Likewise.
9049         (RUN_TEST_LOOP_ff_i_tg): Likewise.
9050         (RUN_TEST_f_b): Likewise.
9051         (RUN_TEST_LOOP_f_b): Likewise.
9052         (RUN_TEST_f_b_tg): Likewise.
9053         (RUN_TEST_LOOP_f_b_tg): Likewise.
9054         (RUN_TEST_f_l): Likewise.
9055         (RUN_TEST_LOOP_f_l): Likewise.
9056         (RUN_TEST_f_L): Likewise.
9057         (RUN_TEST_LOOP_f_L): Likewise.
9058         (RUN_TEST_sincos): Likewise.
9059         (RUN_TEST_LOOP_sincos): Likewise.
9060
9061 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
9062
9063         [BZ #15480]
9064         [BZ #15485]
9065         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
9066         main case of finite arguments, set rounding mode to FE_TONEAREST
9067         and discard exceptions.
9068         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
9069         exceptions.
9070         (remainder_tonearest_test_data): New variable.
9071         (remainder_test_tonearest): New function.
9072         (remainder_towardzero_test_data): New variable.
9073         (remainder_test_towardzero): New function.
9074         (remainder_downward_test_data): New variable.
9075         (remainder_test_downward): New function.
9076         (remainder_upward_test_data): New variable.
9077         (remainder_test_upward): New function.
9078         (main): Call the new test functions.
9079
9080         * math/libm-test.inc (struct test_f_f1_data): Remove field
9081         extra_init.
9082         (struct test_fF_f1_data): Likewise.
9083         (struct test_ffI_f1_data): Likewise.
9084         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
9085         based on value of EXTRA_EXPECTED.
9086         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
9087         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
9088         EXTRA_VAR based on value of EXTRA_EXPECTED.
9089         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
9090         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
9091         EXTRA_VAR based on value of EXTRA_EXPECTED.
9092         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
9093         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
9094         EXTRA_VAR based on value of EXTRA_EXPECTED.
9095         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
9096         * math/gen-libm-test.pl (parse_args): Don't output initializers
9097         for extra output values.
9098
9099         * math/libm-test.inc (check_int): Expect result to be exactly
9100         equal to expected value and do not handle ulps.
9101         (check_long): Likewise.
9102         (check_longlong): Likewise.
9103
9104         * math/libm-test.inc (ceil_test_data): Test for "inexact"
9105         exceptions.
9106         (cimag_test_data): Likewise.
9107         (conj_test_data): Likewise.
9108         (copysign_test_data): Likewise.
9109         (cproj_test_data): Likewise.
9110         (creal_test_data): Likewise.
9111         (fabs_test_data): Likewise.
9112         (fdim_test_data): Likewise.
9113         (finite_test_data): Likewise.
9114         (floor_test_data): Likewise.
9115         (fmax_test_data): Likewise.
9116         (fmin_test_data): Likewise.
9117         (fmod_test_data): Likewise.
9118         (fpclassify_test_data): Likewise.
9119         (frexp_test_data): Likewise.
9120         (ilogb_test_data): Likewise.
9121         (isfinite_test_data): Likewise.
9122         (isgreater_test_data): Likewise.
9123         (isgreaterequal_test_data): Likewise.
9124         (isinf_test_data): Likewise.
9125         (isless_test_data): Likewise.
9126         (islessequal_test_data): Likewise.
9127         (islessgreater_test_data): Likewise.
9128         (isnan_test_data): Likewise.
9129         (isnormal_test_data): Likewise.
9130         (issignaling_test_data): Likewise.
9131         (isunordered_test_data): Likewise.
9132         (ldexp_test_data): Likewise.
9133         (lrint_test_data): Likewise.
9134         (lrint_test_data) [TEST_FLOAT]: Disable one test.
9135         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
9136         (lrint_tonearest_test_data): Test for "inexact" exceptions.
9137         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9138         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
9139         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9140         test input.
9141         (lrint_towardzero_test_data): Test for "inexact" exceptions.
9142         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9143         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
9144         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
9145         that test input.
9146         (lrint_downward_test_data): Test for "inexact" exceptions.
9147         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9148         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
9149         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9150         test input.
9151         (lrint_upward_test_data): Test for "inexact" exceptions.
9152         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
9153         test input.
9154         (llrint_test_data): Test for "inexact" exceptions.
9155         (llrint_test_data) [TEST_FLOAT]: Disable one test.
9156         (llrint_tonearest_test_data): Test for "inexact" exceptions.
9157         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9158         (llrint_towardzero_test_data): Test for "inexact" exceptions.
9159         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9160         (llrint_downward_test_data): Test for "inexact" exceptions.
9161         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9162         (llrint_upward_test_data): Test for "inexact" exceptions.
9163         (logb_test_data): Likewise.
9164         (logb_downward_test_data): Likewise.
9165         (nextafter_test_data): Likewise.
9166         (nexttoward_test_data): Likewise.
9167         (remainder_test_data): Likewise.
9168         (remquo_test_data): Likewise.
9169         (scalbn_test_data): Likewise.
9170         (scalbln_test_data): Likewise.
9171         (signbit_test_data): Likewise.
9172         (sqrt_test_data): Likewise.
9173         (significand_test_data): Likewise.
9174
9175 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9176
9177         [BZ #15424]
9178         * benchtests/bench-modf.c (struct args): Mark arg0 as
9179         volatile.
9180         * scripts/bench.pl: Mark members of struct args as volatile.
9181
9182 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9183
9184         [BZ # 15497]
9185         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
9186         negative infinity on POWER6 or lower.
9187         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
9188
9189 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
9190
9191         [BZ #15442]
9192         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
9193         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
9194         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
9195         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
9196         (_FP_SETQNAN): New macro.
9197         (_FP_SETQNAN_SEMIRAW): Likewise.
9198         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
9199         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
9200         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
9201         (FP_EXTEND): Use _FP_FRAC_SNANP.
9202         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
9203         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
9204         into account.
9205         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9206         New macro.
9207         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9208         Likewise.
9209
9210 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9211
9212         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
9213         with DIVIDE_BY_ZERO_EXCEPTION.
9214         (gamma_test_data): Likewise.
9215         (lgamma_test_data): Likewise.
9216         (log_test_data): Likewise.
9217         (log10_test_data): Likewise.
9218         (log2_test_data): Likewise.
9219         (tgamma_test_data): Likewise.
9220
9221         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
9222         (acos_test_tonearest): Likewise.
9223         (acos_test_towardzero): Likewise.
9224         (acos_test_downward): Likewise.
9225         (acos_test_upward): Likewise.
9226         (acosh_test): Likewise.
9227         (asin_test): Likewise.
9228         (asin_test_tonearest): Likewise.
9229         (asin_test_towardzero): Likewise.
9230         (asin_test_downward): Likewise.
9231         (asin_test_upward): Likewise.
9232         (asinh_test): Likewise.
9233         (atan_test): Likewise.
9234         (atanh_test): Likewise.
9235         (atan2_test): Likewise.
9236         (cabs_test): Likewise.
9237         (cacos_test): Likewise.
9238         (cacosh_test): Likewise.
9239         (casin_test): Likewise.
9240         (casinh_test): Likewise.
9241         (catan_test): Likewise.
9242         (catanh_test): Likewise.
9243         (cbrt_test): Likewise.
9244         (ccos_test): Likewise.
9245         (ccosh_test): Likewise.
9246         (cexp_test): Likewise.
9247         (clog_test): Likewise.
9248         (clog10_test): Likewise.
9249         (cos_test): Likewise.
9250         (cos_test_tonearest): Likewise.
9251         (cos_test_towardzero): Likewise.
9252         (cos_test_downward): Likewise.
9253         (cos_test_upward): Likewise.
9254         (cosh_test): Likewise.
9255         (cosh_test_tonearest): Likewise.
9256         (cosh_test_towardzero): Likewise.
9257         (cosh_test_downward): Likewise.
9258         (cosh_test_upward): Likewise.
9259         (cpow_test): Likewise.
9260         (csin_test): Likewise.
9261         (csinh_test): Likewise.
9262         (csqrt_test): Likewise.
9263         (ctan_test): Likewise.
9264         (ctan_test_tonearest): Likewise.
9265         (ctan_test_towardzero): Likewise.
9266         (ctan_test_downward): Likewise.
9267         (ctan_test_upward): Likewise.
9268         (ctanh_test): Likewise.
9269         (ctanh_test_tonearest): Likewise.
9270         (ctanh_test_towardzero): Likewise.
9271         (ctanh_test_downward): Likewise.
9272         (ctanh_test_upward): Likewise.
9273         (erf_test): Likewise.
9274         (erfc_test): Likewise.
9275         (exp_test): Likewise.
9276         (exp_test_tonearest): Likewise.
9277         (exp_test_towardzero): Likewise.
9278         (exp_test_downward): Likewise.
9279         (exp_test_upward): Likewise.
9280         (exp10_test): Likewise.
9281         (exp2_test): Likewise.
9282         (expm1_test): Likewise.
9283         (fmod_test): Likewise.
9284         (gamma_test): Likewise.
9285         (hypot_test): Likewise.
9286         (j0_test): Likewise.
9287         (j1_test): Likewise.
9288         (jn_test): Likewise.
9289         (lgamma_test): Likewise.
9290         (log_test): Likewise.
9291         (log10_test): Likewise.
9292         (log1p_test): Likewise.
9293         (log2_test): Likewise.
9294         (logb_test_downward): Likewise.
9295         (pow_test): Likewise.
9296         (pow_test_tonearest): Likewise.
9297         (pow_test_towardzero): Likewise.
9298         (pow_test_downward): Likewise.
9299         (pow_test_upward): Likewise.
9300         (remainder_test): Likewise.
9301         (remquo_test): Likewise.
9302         (sin_test): Likewise.
9303         (sin_test_tonearest): Likewise.
9304         (sin_test_towardzero): Likewise.
9305         (sin_test_downward): Likewise.
9306         (sin_test_upward): Likewise.
9307         (sincos_test): Likewise.
9308         (sinh_test): Likewise.
9309         (sinh_test_tonearest): Likewise.
9310         (sinh_test_towardzero): Likewise.
9311         (sinh_test_downward): Likewise.
9312         (sinh_test_upward): Likewise.
9313         (sqrt_test): Likewise.
9314         (tan_test): Likewise.
9315         (tan_test_tonearest): Likewise.
9316         (tan_test_towardzero): Likewise.
9317         (tan_test_downward): Likewise.
9318         (tan_test_upward): Likewise.
9319         (tanh_test): Likewise.
9320         (tgamma_test): Likewise.
9321         (y0_test): Likewise.
9322         (y1_test): Likewise.
9323         (yn_test): Likewise.
9324
9325         * math/gen-libm-test.pl (adjust_arg): Remove function.
9326         (special_function): Remove argument $in_func.  Only handle
9327         generating output for tables of tests, not inside functions.
9328         (parse_args): Likewise.
9329         (generate_testfile): Remove variable $in_func.  Update call to
9330         parse_args.
9331         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
9332         (MINUS_ZERO_INIT): Rename macro to minus_zero.
9333         (PLUS_INFTY_INIT): Rename macro to plus_infty.
9334         (MINUS_INFTY_INIT): Rename macro to minus_infty.
9335         (QNAN_VALUE_INIT): Rename macro to qnan_value.
9336         (MAX_VALUE_INIT): Rename macro to max_value.
9337         (MIN_VALUE_INIT): Rename macro to min_value.
9338         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
9339         (plus_zero): Remove variable.
9340         (minus_zero): Likewise.
9341         (plus_infty): Likewise.
9342         (minus_infty): Likewise.
9343         (qnan_value): Likewise.
9344         (max_value): Likewise.
9345         (min_value): Likewise.
9346         (min_subnorm_value): Likewise.
9347
9348 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9349
9350         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
9351         uint64_t or uint32_t usage.
9352         * crypt/sha256-block.c: Likewise.
9353         * crypt/sha256-crypt.c: Likewise.
9354         * crypt/sha256.c: Likewise.
9355         * crypt/sha512-block.c: Likewise.
9356         * crypt/sha512-crypt.c: Likewise.
9357         * crypt/sha512.c: Likewise.
9358         * debug/backtrace-tst.c: Likewise.
9359         * debug/pcprofiledump.c: Likewise.
9360         * elf/cache.c: Likewise.
9361         * elf/dl-cache.c: Likewise.
9362         * elf/dl-misc.c: Likewise.
9363         * elf/dl-profile.c: Likewise.
9364         * elf/dl-support.c: Likewise.
9365         * elf/ldconfig.c: Likewise.
9366         * elf/sprof.c: Likewise.
9367         * iconv/dummy-repertoire.c: Likewise.
9368         * iconv/iconv_charmap.c: Likewise.
9369         * iconv/skeleton.c: Likewise.
9370         * iconvdata/8bit-generic.c: Likewise.
9371         * iconvdata/cp737.h: Likewise.
9372         * iconvdata/cp775.h: Likewise.
9373         * iconvdata/ibm1008.h: Likewise.
9374         * iconvdata/ibm1025.h: Likewise.
9375         * iconvdata/ibm1046.h: Likewise.
9376         * iconvdata/ibm1097.h: Likewise.
9377         * iconvdata/ibm1112.h: Likewise.
9378         * iconvdata/ibm1122.h: Likewise.
9379         * iconvdata/ibm1123.h: Likewise.
9380         * iconvdata/ibm1124.h: Likewise.
9381         * iconvdata/ibm1129.h: Likewise.
9382         * iconvdata/ibm1130.h: Likewise.
9383         * iconvdata/ibm1132.h: Likewise.
9384         * iconvdata/ibm1133.h: Likewise.
9385         * iconvdata/ibm1137.h: Likewise.
9386         * iconvdata/ibm1140.h: Likewise.
9387         * iconvdata/ibm1141.h: Likewise.
9388         * iconvdata/ibm1142.h: Likewise.
9389         * iconvdata/ibm1143.h: Likewise.
9390         * iconvdata/ibm1144.h: Likewise.
9391         * iconvdata/ibm1145.h: Likewise.
9392         * iconvdata/ibm1146.h: Likewise.
9393         * iconvdata/ibm1147.h: Likewise.
9394         * iconvdata/ibm1148.h: Likewise.
9395         * iconvdata/ibm1149.h: Likewise.
9396         * iconvdata/ibm1153.h: Likewise.
9397         * iconvdata/ibm1154.h: Likewise.
9398         * iconvdata/ibm1155.h: Likewise.
9399         * iconvdata/ibm1156.h: Likewise.
9400         * iconvdata/ibm1157.h: Likewise.
9401         * iconvdata/ibm1158.h: Likewise.
9402         * iconvdata/ibm1160.h: Likewise.
9403         * iconvdata/ibm1161.h: Likewise.
9404         * iconvdata/ibm1162.h: Likewise.
9405         * iconvdata/ibm1163.h: Likewise.
9406         * iconvdata/ibm1164.h: Likewise.
9407         * iconvdata/ibm1166.h: Likewise.
9408         * iconvdata/ibm1167.h: Likewise.
9409         * iconvdata/ibm12712.h: Likewise.
9410         * iconvdata/ibm1390.h: Likewise.
9411         * iconvdata/ibm1399.h: Likewise.
9412         * iconvdata/ibm16804.h: Likewise.
9413         * iconvdata/ibm4517.h: Likewise.
9414         * iconvdata/ibm4899.h: Likewise.
9415         * iconvdata/ibm4909.h: Likewise.
9416         * iconvdata/ibm4971.h: Likewise.
9417         * iconvdata/ibm5347.h: Likewise.
9418         * iconvdata/ibm803.h: Likewise.
9419         * iconvdata/ibm856.h: Likewise.
9420         * iconvdata/ibm901.h: Likewise.
9421         * iconvdata/ibm902.h: Likewise.
9422         * iconvdata/ibm9030.h: Likewise.
9423         * iconvdata/ibm9066.h: Likewise.
9424         * iconvdata/ibm921.h: Likewise.
9425         * iconvdata/ibm922.h: Likewise.
9426         * iconvdata/ibm9448.h: Likewise.
9427         * iconvdata/isiri-3342.h: Likewise.
9428         * iconvdata/jis0201.h: Likewise.
9429         * include/link.h: Likewise.
9430         * include/netdb.h: Likewise.
9431         * inet/check_native.c: Likewise.
9432         * inet/check_pf.c: Likewise.
9433         * inet/getipv4sourcefilter.c: Likewise.
9434         * inet/getnameinfo.c: Likewise.
9435         * inet/getsourcefilter.c: Likewise.
9436         * inet/htonl.c: Likewise.
9437         * inet/setipv4sourcefilter.c: Likewise.
9438         * inet/setsourcefilter.c: Likewise.
9439         * inet/test-inet6_opt.c: Likewise.
9440         * inet/tst-network.c: Likewise.
9441         * locale/C-collate.c: Likewise.
9442         * locale/C-ctype.c: Likewise.
9443         * locale/C-time.c: Likewise.
9444         * locale/C-translit.h: Likewise.
9445         * locale/loadarchive.c: Likewise.
9446         * locale/programs/3level.h: Likewise.
9447         * locale/programs/charmap.c: Likewise.
9448         * locale/programs/charmap.h: Likewise.
9449         * locale/programs/ld-address.c: Likewise.
9450         * locale/programs/ld-collate.c: Likewise.
9451         * locale/programs/ld-ctype.c: Likewise.
9452         * locale/programs/ld-identification.c: Likewise.
9453         * locale/programs/ld-measurement.c: Likewise.
9454         * locale/programs/ld-messages.c: Likewise.
9455         * locale/programs/ld-monetary.c: Likewise.
9456         * locale/programs/ld-name.c: Likewise.
9457         * locale/programs/ld-numeric.c: Likewise.
9458         * locale/programs/ld-paper.c: Likewise.
9459         * locale/programs/ld-telephone.c: Likewise.
9460         * locale/programs/ld-time.c: Likewise.
9461         * locale/programs/linereader.c: Likewise.
9462         * locale/programs/locale.c: Likewise.
9463         * locale/programs/locarchive.c: Likewise.
9464         * locale/programs/locfile.h: Likewise.
9465         * locale/programs/repertoire.c: Likewise.
9466         * locale/programs/simple-hash.c: Likewise.
9467         * locale/programs/simple-hash.h: Likewise.
9468         * malloc/memusage.c: Likewise.
9469         * malloc/memusagestat.c: Likewise.
9470         * nis/nis_defaults.c: Likewise.
9471         * nis/nis_hash.c: Likewise.
9472         * nis/nis_print.c: Likewise.
9473         * nis/nis_xdr.c: Likewise.
9474         * nscd/connections.c: Likewise.
9475         * nscd/hstcache.c: Likewise.
9476         * nscd/nscd_gethst_r.c: Likewise.
9477         * nscd/nscd_getserv_r.c: Likewise.
9478         * nscd/nscd_helper.c: Likewise.
9479         * nscd/servicescache.c: Likewise.
9480         * nss/makedb.c: Likewise.
9481         * nss/nss_db/db-XXX.c: Likewise.
9482         * nss/nss_db/db-initgroups.c: Likewise.
9483         * nss/nss_db/db-netgrp.c: Likewise.
9484         * nss/nss_files/files-network.c: Likewise.
9485         * nss/nss_files/files-parse.c: Likewise.
9486         * posix/bug-regex5.c: Likewise.
9487         * posix/fnmatch_loop.c: Likewise.
9488         * posix/regcomp.c: Likewise.
9489         * posix/regexec.c: Likewise.
9490         * posix/tst-rfc3484-2.c: Likewise.
9491         * posix/tst-rfc3484-3.c: Likewise.
9492         * posix/tst-rfc3484.c: Likewise.
9493         * resolv/nss_dns/dns-canon.c: Likewise.
9494         * resolv/nss_dns/dns-network.c: Likewise.
9495         * resolv/res_init.c: Likewise.
9496         * resolv/res_mkquery.c: Likewise.
9497         * resolv/tst-aton.c: Likewise.
9498         * stdlib/cxa_atexit.c: Likewise.
9499         * stdlib/cxa_finalize.c: Likewise.
9500         * stdlib/gen-fpioconst.c: Likewise.
9501         * stdlib/strtol_l.c: Likewise.
9502         * string/tst-endian.c: Likewise.
9503         * sunrpc/auth_des.c: Likewise.
9504         * sunrpc/clnt_udp.c: Likewise.
9505         * sunrpc/rtime.c: Likewise.
9506         * sunrpc/svcauth_des.c: Likewise.
9507         * sunrpc/xdr.c: Likewise.
9508         * sunrpc/xdr_intXX_t.c: Likewise.
9509         * sunrpc/xdr_rec.c: Likewise.
9510         * sysdeps/generic/ldconfig.h: Likewise.
9511         * sysdeps/generic/ldsodefs.h: Likewise.
9512         * sysdeps/generic/memusage.h: Likewise.
9513         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9514         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
9515         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
9516         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9517         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9518         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9519         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9520         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9521         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9522         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
9523         * sysdeps/posix/getaddrinfo.c: Likewise.
9524         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9525         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9526         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9527         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9528         * sysdeps/powerpc/test-gettimebase.c: Likewise.
9529         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
9530         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
9531         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
9532         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
9533         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
9534         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9535         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9536         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
9537         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
9538         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
9539         * sysdeps/x86_64/dl-tls.h: Likewise.
9540         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
9541         * time/alt_digit.c: Likewise.
9542         * time/era.c: Likewise.
9543         * wcsmbs/tst-c16c32-1.c: Likewise.
9544
9545 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9546
9547         * math/libm-test.inc (struct test_sincos_data): New type.
9548         (RUN_TEST_LOOP_sincos): New macro.
9549         (sincos_test_data): New variable.
9550         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
9551
9552 2013-05-16  Richard Henderson  <rth@redhat.com>
9553
9554         * math/atest-exp2.c (LIMB64): New macro.
9555         (CONSTSZ): New macro.
9556         (mp_exp1, mp_exp_m1, mp_log2): New variables.
9557         (hexdig): Move ...
9558         (print_mpn_fp): ... to function scope.
9559         (read_mpn_hex): Remove.
9560         (get_log2): Remove.
9561         (exp2_mpn): Use mp_log2.
9562         (main): Use mp_exp1.
9563
9564 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9565
9566         * math/libm-test.inc: Remove comment about not testing "inexact"
9567         exceptions.
9568         (INEXACT_EXCEPTION): New macro.
9569         (NO_INEXACT_EXCEPTION): Likewise.
9570         (INVALID_EXCEPTION_OK): Update value.
9571         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9572         (OVERFLOW_EXCEPTION_OK): Likewise.
9573         (UNDERFLOW_EXCEPTION_OK): Likewise.
9574         (IGNORE_ZERO_INF_SIGN): Likewise.
9575         (ERRNO_UNCHANGED): Likewise.
9576         (ERRNO_EDOM): Likewise.
9577         (ERRNO_ERANGE): Likewise.
9578         (test_exceptions): Handle testing "inexact" exceptions.
9579         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
9580         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
9581         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
9582         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
9583         INEXACT_EXCEPTION.
9584         (rint_towardzero_test_data): Likewise.
9585         (rint_downward_test_data): Likewise.
9586         (rint_upward_test_data): Likewise.
9587
9588         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
9589         with OVERFLOW_EXCEPTION.
9590         (exp10_test_data): Likewise.
9591         (exp2_test_data): Likewise.
9592         (expm1_test_data): Likewise.
9593         (lgamma_test_data): Likewise.
9594         (pow_test_data): Likewise.
9595         (tgamma_test_data): Likewise.
9596         (yn_test_data): Remove duplicate test of overflow.
9597
9598         * math/libm-test.inc (struct test_cc_c_data): New type.
9599         (RUN_TEST_LOOP_cc_c): New macro.
9600         (cpow_test_data): New variable.
9601         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
9602
9603         * math/libm-test.inc (struct test_f_L_data): New type.
9604         (RUN_TEST_LOOP_f_L): New macro.
9605         (llrint_test_data): New variable.
9606         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
9607         (llrint_tonearest_test_data): New variable.
9608         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
9609         (llrint_towardzero_test_data): New variable.
9610         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
9611         (llrint_downward_test_data): New variable.
9612         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
9613         (llrint_upward_test_data): New variable.
9614         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
9615         (llround_test_data): New variable.
9616         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
9617
9618 2013-05-13  Peter Collingbourne  <pcc@google.com>
9619
9620         * math/atest-exp2.c (get_log2): Remove const attribute.
9621
9622 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9623
9624         * math/libm-test.inc (struct test_f_l_data): New type.
9625         (RUN_TEST_LOOP_f_l): New macro.
9626         (lrint_test_data): New variable.
9627         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
9628         (lrint_tonearest_test_data): New variable.
9629         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
9630         (lrint_towardzero_test_data): New variable.
9631         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
9632         (lrint_downward_test_data): New variable.
9633         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
9634         (lrint_upward_test_data): New variable.
9635         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
9636         (lround_test_data): New variable.
9637         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
9638
9639 2013-05-15  Peter Collingbourne  <pcc@google.com>
9640
9641         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
9642         (EXTRACT_WORDS64) Use where appropriate.
9643         (INSERT_WORDS64) Likewise.
9644
9645         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
9646         constraints with x constraints.
9647         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
9648
9649         * malloc/obstack.c (_obstack_compat): Add initializer.
9650
9651 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
9652
9653         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
9654         si_trapno and add si_addr_lsb to _sifields.sigfault.
9655         (si_trapno): Remove macro.
9656         (si_addr_lsb): Define new macro.
9657         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
9658
9659 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9660
9661         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
9662         instead of TEST_f_l.
9663         (llrint_test_tonearest): Likewise.
9664         (llrint_test_towardzero): Likewise.
9665         (llrint_test_downward): Likewise.
9666         (llrint_test_upward): Likewise.
9667         (llround_test): Likewise.
9668
9669         * math/libm-test.inc (struct test_f_i_data): Add comment.
9670         (RUN_TEST_LOOP_f_b): New macro.
9671         (RUN_TEST_LOOP_f_b_tg): Likewise.
9672         (finite_test_data): New variable.
9673         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
9674         (isfinite_test_data): New variable.
9675         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9676         (isinf_test_data): New variable.
9677         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9678         (isnan_test_data): New variable.
9679         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9680         (isnormal_test_data): New variable.
9681         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9682         (issignaling_test_data): New variable.
9683         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9684         (signbit_test_data): New variable.
9685         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9686
9687         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
9688         with INVALID_EXCEPTION.
9689         (acosh_test_data): Likewise.
9690         (asin_test_data): Likewise.
9691         (atanh_test_data): Likewise.
9692         (fmod_test_data): Likewise.
9693         (log_test_data): Likewise.
9694         (log10_test_data): Likewise.
9695         (log2_test_data): Likewise.
9696         (pow_test_data): Likewise.
9697         (sqrt_test_data): Likewise.
9698         (y0_test_data): Likewise.
9699         (y1_test_data): Likewise.
9700         (yn_test_data): Likewise.
9701
9702         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
9703         function contents.
9704
9705         * math/libm-test.inc (struct test_ff_i_data): New type.
9706         (RUN_TEST_LOOP_ff_i_tg): New macro.
9707         (isgreater_test_data): New variable.
9708         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9709         (isgreaterequal_test_data): New variable.
9710         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9711         (isless_test_data): New variable.
9712         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9713         (islessequal_test_data): New variable.
9714         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9715         (islessgreater_test_data): New variable.
9716         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9717         (isunordered_test_data): New variable.
9718         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9719
9720 2013-05-14  David S. Miller  <davem@davemloft.net>
9721
9722         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9723
9724 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
9725
9726         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
9727
9728         * math/libm-test.inc (struct test_fF_f1_data): Change type of
9729         extra_test to int.
9730         (struct test_f_i_data): Change type of max_ulp to int.
9731
9732         * math/libm-test.inc (test_ffI_f1_data): New type.
9733         (RUN_TEST_LOOP_ffI_f1): New macro.
9734         (remquo_test_data): New variable.
9735         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
9736
9737         * setjmp/tst-setjmp-fp.c: New file.
9738         * setjmp/Makefile (tests): Add tst-setjmp-fp.
9739         (link-libm): New variable.
9740         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
9741
9742         * math/libm-test.inc (struct test_f_i_data): New type.
9743         (RUN_TEST_LOOP_f_i): New macro.
9744         (RUN_TEST_LOOP_f_i_tg): Likewise.
9745         (fpclassify_test_data): New variable.
9746         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
9747         (ilogb_test_data): New variable.
9748         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
9749
9750         * math/libm-test.inc (scalbln_test): Correct function name in END
9751         call.
9752
9753         * math/libm-test.inc (struct test_f_f1_data): Add comment.
9754         (RUN_TEST_LOOP_fI_f1): New macro.
9755         (frexp_test_data): New variable.
9756         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
9757
9758         * math/libm-test.inc (struct test_fF_f1_data): New type.
9759         (RUN_TEST_LOOP_fF_f1): New macro.
9760         (modf_test_data): New variable.
9761         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
9762
9763         * math/libm-test.inc (struct test_f_f1_data): New type.
9764         (RUN_TEST_LOOP_f_f1): New macro.
9765         (gamma_test_data): New variable.
9766         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9767         (lgamma_test_data): New variable.
9768         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9769
9770 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
9771
9772         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
9773         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
9774         (main): Comment "tls" pseudo-hwcap.
9775
9776 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
9777
9778         * math/libm-test.inc (struct test_fl_f_data): New type.
9779         (RUN_TEST_LOOP_fl_f): New variable.
9780         (scalbln_test_data): New variable.
9781         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
9782
9783         * math/libm-test.inc (struct test_fi_f_data): New type.
9784         (RUN_TEST_LOOP_fi_f): New macro.
9785         (ldexp_test_data): New variable.
9786         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
9787         (scalbn_test_data): New variable.
9788         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
9789
9790         * math/libm-test.inc (struct test_c_f_data): New type.
9791         (RUN_TEST_LOOP_c_f): New macro.
9792         (cabs_test_data): New variable.
9793         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
9794         (carg_test_data): New variable.
9795         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
9796         (cimag_test_data): New variable.
9797         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
9798         (creal_test_data): New variable.
9799         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
9800
9801         * math/libm-test.inc (struct test_if_f_data): New type.
9802         (RUN_TEST_LOOP_if_f): New macro.
9803         (jn_test_data): New variable.
9804         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
9805         (yn_test_data): New variable.
9806         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
9807
9808         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
9809
9810 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9811
9812         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
9813         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
9814
9815 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9816
9817         * benchtests/Makefile (CPPFLAGS-nonlib): Add
9818         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
9819         (bench-deps): Add bench-timing.h.
9820         * benchtests-bench-skeleton.c: Include bench-timing.h.
9821         (main): Use TIMING_* macros instead of clock_gettime.
9822         * benchtests/bench-timing.h: New file.
9823
9824         [BZ #14582]
9825         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
9826         Renamed from _LIB_VERSION.
9827         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
9828
9829 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
9830
9831         * math/libm-test.inc (struct test_fff_f_data): New type.
9832         (RUN_TEST_LOOP_fff_f): New macro.
9833         (fma_test_data): New variable.
9834         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
9835         (fma_towardzero_test_data): New variable.
9836         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
9837         (fma_downward_test_data): New variable.
9838         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
9839         (fma_upward_test_data): New variable.
9840         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
9841
9842         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
9843         (struct test_c_c_data): New type.
9844         (RUN_TEST_LOOP_c_c): New macro.
9845         (cacos_test_data): New variable.
9846         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
9847         (cacosh_test_data): New variable.
9848         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
9849         (casin_test_data): New variable.
9850         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
9851         (casinh_test_data): New variable.
9852         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
9853         (catan_test_data): New variable.
9854         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
9855         (catanh_test_data): New variable.
9856         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
9857         (ccos_test_data): New variable.
9858         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
9859         (ccosh_test_data): New variable.
9860         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
9861         (cexp_test_data): New variable.
9862         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
9863         (clog_test_data): New variable.
9864         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
9865         (clog10_test_data): New variable.
9866         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
9867         (conj_test_data): New variable.
9868         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
9869         (cproj_test_data): New variable.
9870         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
9871         (csin_test_data): New variable.
9872         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
9873         (csinh_test_data): New variable.
9874         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
9875         (csqrt_test_data): New variable.
9876         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
9877         (ctan_test_data): New variable.
9878         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
9879         (ctan_tonearest_test_data): New variable.
9880         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9881         (ctan_towardzero_test_data): New variable.
9882         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9883         (ctan_downward_test_data): New variable.
9884         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9885         (ctan_upward_test_data): New variable.
9886         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9887         (ctanh_test_data): New variable.
9888         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
9889         (ctanh_tonearest_test_data): New variable.
9890         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9891         (ctanh_towardzero_test_data): New variable.
9892         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9893         (ctanh_downward_test_data): New variable.
9894         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9895         (ctanh_upward_test_data): New variable.
9896         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9897         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
9898         of BUILD_COMPLEX.
9899
9900         * math/libm-test.inc (struct test_ff_f_data): New type.
9901         (struct test_ff_f_data_nexttoward): Likewise.
9902         (RUN_TEST_LOOP_2_f): New macro.
9903         (RUN_TEST_LOOP_ff_f): Likewise.
9904         (atan2_test_data): New variable.
9905         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
9906         (copysign_test_data): New variable.
9907         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
9908         (fdim_test_data): New variable.
9909         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
9910         (fmax_test_data): New variable.
9911         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
9912         (fmin_test_data): New variable.
9913         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
9914         (fmod_test_data): New variable.
9915         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
9916         (hypot_test_data): New variable.
9917         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
9918         (nextafter_test_data): New variable.
9919         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
9920         (nexttoward_test_data): New variable.
9921         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
9922         (pow_test_data): New variable.
9923         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
9924         (pow_tonearest_test_data): New variable.
9925         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
9926         (pow_towardzero_test_data): New variable.
9927         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
9928         (pow_downward_test_data): New variable.
9929         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
9930         (pow_upward_test_data): New variable.
9931         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
9932         (remainder_test_data): New variable.
9933         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
9934         (scalb_test_data): New variable.
9935         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
9936         * sysdeps/i386/fpu/libm-test-ulps: Update.
9937
9938 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
9939
9940         * math/libm-test.inc (fma_test): Use max_value instead of local
9941         variable fltmax.
9942         (nextafter_test): Likewise.
9943
9944         * math/libm-test.inc (acos_towardzero_test_data): New variable.
9945         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9946         (acos_downward_test_data): New variable.
9947         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9948         (acos_upward_test_data): New variable.
9949         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9950         (acosh_test_data): New variable.
9951         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
9952         (asin_test_data): New variable.
9953         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
9954         (asin_tonearest_test_data): New variable.
9955         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9956         (asin_towardzero_test_data): New variable.
9957         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9958         (asin_downward_test_data): New variable.
9959         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9960         (asin_upward_test_data): New variable.
9961         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9962         (asinh_test_data): New variable.
9963         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
9964         (atan_test_data): New variable.
9965         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
9966         (atanh_test_data): New variable.
9967         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
9968         (cbrt_test_data): New variable.
9969         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
9970         (ceil_test_data): New variable.
9971         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
9972         (cos_test_data): New variable.
9973         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
9974         (cos_tonearest_test_data): New variable.
9975         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9976         (cos_towardzero_test_data): New variable.
9977         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9978         (cos_downward_test_data): New variable.
9979         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9980         (cos_upward_test_data): New variable.
9981         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9982         (cosh_test_data): New variable.
9983         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
9984         (cosh_tonearest_test_data): New variable.
9985         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
9986         (cosh_towardzero_test_data): New variable.
9987         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
9988         (cosh_downward_test_data): New variable.
9989         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
9990         (cosh_upward_test_data): New variable.
9991         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
9992         (erf_test_data): New variable.
9993         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
9994         (erfc_test_data): New variable.
9995         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
9996         (exp_test_data): New variable.
9997         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
9998         (exp_tonearest_test_data): New variable.
9999         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10000         (exp_towardzero_test_data): New variable.
10001         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10002         (exp_downward_test_data): New variable.
10003         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10004         (exp_upward_test_data): New variable.
10005         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10006         (exp10_test_data): New variable.
10007         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
10008         (exp2_test_data): New variable.
10009         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
10010         (expm1_test_data): New variable.
10011         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
10012         (fabs_test_data): New variable.
10013         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
10014         (floor_test_data): New variable.
10015         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
10016         (j0_test_data): New variable.
10017         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
10018         (j1_test_data): New variable.
10019         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
10020         (log_test_data): New variable.
10021         (log_test): Run tests with RUN_TEST_LOOP_f_f.
10022         (log10_test_data): New variable.
10023         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
10024         (log1p_test_data): New variable.
10025         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
10026         (log2_test_data): New variable.
10027         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
10028         (logb_test_data): New variable.
10029         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
10030         (logb_downward_test_data): New variable.
10031         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10032         (nearbyint_test_data): New variable.
10033         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
10034         (rint_test_data): New variable.
10035         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
10036         (rint_tonearest_test_data): New variable.
10037         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10038         (rint_towardzero_test_data): New variable.
10039         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10040         (rint_downward_test_data): New variable.
10041         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10042         (rint_upward_test_data): New variable.
10043         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10044         (round_test_data): New variable.
10045         (round_test): Run tests with RUN_TEST_LOOP_f_f.
10046         (sin_test_data): New variable.
10047         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
10048         (sin_tonearest_test_data): New variable.
10049         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10050         (sin_towardzero_test_data): New variable.
10051         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10052         (sin_downward_test_data): New variable.
10053         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10054         (sin_upward_test_data): New variable.
10055         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10056         (sinh_test_data): New variable.
10057         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
10058         (sinh_tonearest_test_data): New variable.
10059         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10060         (sinh_towardzero_test_data): New variable.
10061         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10062         (sinh_downward_test_data): New variable.
10063         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10064         (sinh_upward_test_data): New variable.
10065         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10066         (sqrt_test_data): New variable.
10067         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
10068         (tan_test_data): New variable.
10069         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
10070         (tan_tonearest_test_data): New variable.
10071         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10072         (tan_towardzero_test_data): New variable.
10073         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10074         (tan_downward_test_data): New variable.
10075         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10076         (tan_upward_test_data): New variable.
10077         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10078         (tanh_test_data): New variable.
10079         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
10080         (tgamma_test_data): New variable.
10081         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
10082         (trunc_test_data): New variable.
10083         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
10084         (y0_test_data): New variable.
10085         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
10086         (y1_test_data): New variable.
10087         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
10088         (significand_test_data): New variable.
10089         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
10090
10091 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
10092
10093         [BZ #12387]
10094         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
10095
10096 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10097
10098         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
10099
10100 2013-05-10  Andreas Jaeger  <aj@suse.de>
10101
10102         [BZ #15448]
10103         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
10104         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
10105
10106 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10107
10108         * math/gen-libm-test.pl (adjust_arg): New function.
10109         (special_functions): Handle generating output in both functions
10110         and arrays.
10111         (parse_args): Likewise.
10112         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
10113         $in_func argument to parse_args.
10114         * math/libm-test.inc (struct test_f_f_data): New type.
10115         (IF_ROUND_INIT_): New macro.
10116         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
10117         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
10118         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10119         (IF_ROUND_INIT_FE_UPWARD): Likewise.
10120         (ROUND_RESTORE_): Likewise.
10121         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
10122         (ROUND_RESTORE_FE_TONEAREST): Likewise.
10123         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
10124         (ROUND_RESTORE_FE_UPWARD): Likewise.
10125         (RUN_TEST_LOOP_f_f): New macro.
10126         (acos_test_data): New variable.
10127         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
10128         (acos_tonearest_test_data): New variable.
10129         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10130
10131 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10132
10133         * benchtests/bench-skeleton.c (startup): Fix coding style.
10134
10135 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10136
10137         [BZ #6809]
10138         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
10139         negative infinity argument.
10140         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
10141         negative infinity argument.
10142         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
10143         negative infinity argument.
10144         * math/libm-test.inc (tgamma_test): Expect errno to be set for
10145         domain errors.
10146
10147 2013-05-10  Florian Weimer  <fweimer@redhat.com>
10148
10149         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
10150         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
10151         * iconv/iconv_prog.c (main): Likewise.
10152         * locale/programs/charmap-dir.c (charmap_readdir)
10153         (fopen_uncompressed): Likewise.
10154         * locale/programs/locfile.c (siblings_uncached)
10155         (write_locale_data): Use lstat64 instead of lstat.
10156         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
10157         stat.
10158
10159 2013-05-10  Andreas Jaeger  <aj@suse.de>
10160
10161         [BZ #15395]
10162         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
10163         localization.
10164         Include <locale.h>.
10165
10166 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
10167
10168         * elf/dl-close.c (_dl_close_worker): Add comments.
10169
10170 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
10171
10172         [BZ #15359]
10173         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
10174         high part of pi/2.
10175         (__ieee754_rem_pio2l): Update comments.
10176
10177         [BZ #15429]
10178         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
10179         high part of pi/2.
10180         (__ieee754_rem_pio2l): Update comments.
10181
10182         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
10183         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
10184
10185         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
10186         M_PI_4l.
10187
10188         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
10189         (M_PI_34_LOG10El): Likewise.
10190         (M_PI2_LOG10El): Likewise.
10191         (M_PI4_LOG10El): Likewise.
10192         (M_PI_LOG10El): Likewise.
10193
10194 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10195
10196         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10197
10198 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
10199
10200         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
10201         (MINUS_ZERO_INIT): Likewise.
10202         (PLUS_INFTY_INIT): Likewise.
10203         (MINUS_INFTY_INIT): Likewise.
10204         (QNAN_VALUE_INIT): Likewise.
10205         (MAX_VALUE_INIT): Likewise.
10206         (MIN_VALUE_INIT): Likewise.
10207         (MIN_SUBNORM_VALUE_INIT): Likewise.
10208         (plus_zero): Initialize with PLUS_ZERO_INIT.
10209         (minus_zero): Initialize with MINUS_ZERO_INIT.
10210         (plus_infty): Initialize with PLUS_INFTY_INIT.
10211         (minus_infty): Initialize with MINUS_INFTY_INIT.
10212         (qnan_value): Initialize with QNAN_VALUE_INIT.
10213         (max_value): Initialize with MAX_VALUE_INIT.
10214         (min_value): Initialize with MIN_VALUE_INIT.
10215         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
10216
10217         * math/libm-test.inc (RUN_TEST_if_f): New macro.
10218         (jn_test): Use TEST_if_f instead of TEST_ff_f.
10219         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
10220         (yn_test): Use TEST_if_f instead of TEST_ff_f.
10221
10222         * math/libm-test.inc (RUN_TEST_f_f): New macro.
10223         (RUN_TEST_2_f): Likewise.
10224         (RUN_TEST_ff_f): Likewise.
10225         (RUN_TEST_fi_f): Likewise.
10226         (RUN_TEST_fl_f): Likewise.
10227         (RUN_TEST_fff_f): Likewise.
10228         (RUN_TEST_c_f): Likewise.
10229         (RUN_TEST_f_f1): Likewise.
10230         (RUN_TEST_fF_f1): Likewise.
10231         (RUN_TEST_fI_f1): Likewise.
10232         (RUN_TEST_ffI_f1): Likewise.
10233         (RUN_TEST_c_c): Likewise.
10234         (RUN_TEST_cc_c): Likewise.
10235         (RUN_TEST_f_i): Likewise.
10236         (RUN_TEST_f_i_tg): Likewise.
10237         (RUN_TEST_ff_i_tg): Likewise.
10238         (RUN_TEST_f_b): Likewise.
10239         (RUN_TEST_f_b_tg): Likewise.
10240         (RUN_TEST_f_l): Likewise.
10241         (RUN_TEST_f_L): Likewise.
10242         (RUN_TEST_sincos): Likewise.
10243         * math/gen-libm-test.pl (new_test): Take new argument to indicate
10244         whether to show exceptions.  Do not include ");\n" in return
10245         value.
10246         (special_functions): Output call to RUN_TEST_sincos instead of
10247         check_float calls.  Update calls to new_test.
10248         (parse_args): Output call to single RUN_TEST_* macro instead of
10249         check_* calls and other assignments.  Update calls to new_test.
10250
10251         [BZ #2546]
10252         [BZ #2560]
10253         [BZ #5159]
10254         [BZ #15426]
10255         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
10256         input to result for tgamma overflow.
10257         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
10258         (gamma_coeff): New variable.
10259         (NCOEFF): New macro.
10260         (gamma_positive): New function.
10261         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
10262         underflow here.  Use gamma_positive instead of exp (lgamma) for
10263         other arguments.
10264         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
10265         (gamma_coeff): New variable.
10266         (NCOEFF): New macro.
10267         (gammaf_positive): New function.
10268         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
10269         underflow here.  Use gamma_positive instead of exp (lgamma) for
10270         other arguments.
10271         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
10272         (gamma_coeff): New variable.
10273         (NCOEFF): New macro.
10274         (gammal_positive): New function.
10275         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
10276         underflow here.  Use gamma_positive instead of exp (lgamma) for
10277         other arguments.
10278         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
10279         (gamma_coeff): New variable.
10280         (NCOEFF): New macro.
10281         (gammal_positive): New function.
10282         (__ieee754_gammal_r): Handle positive infinity, overflow and
10283         underflow here.  Handle NaN the same as positive infinity.  Remove
10284         check x < 0xffffffff for negative integers.  Use gamma_positive
10285         instead of exp (lgamma) for other arguments.
10286         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
10287         (gamma_coeff): New variable.
10288         (NCOEFF): New macro.
10289         (gammal_positive): New function.
10290         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
10291         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
10292         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10293         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
10294         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
10295         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10296         * sysdeps/generic/math_private.h (__gamma_productf): New
10297         prototype.
10298         (__gamma_product): Likewise.
10299         (__gamma_productl): Likewise.
10300         * math/Makefile (libm-calls): Add gamma_product.
10301         * math/libm-test.inc (tgamma_test): Add more tests.
10302         * sysdeps/i386/fpu/libm-test-ulps: Update.
10303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10304
10305 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
10306
10307         * benchtests/bench-skeleton.c (main): Preheat CPU.
10308
10309 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
10310
10311         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
10312
10313 2013-05-07  Roland McGrath  <roland@hack.frob.com>
10314
10315         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
10316         and _dl_skip_args_internal.
10317
10318 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
10319
10320         * manual/message.texi (Message Translation): Talk about users.
10321         Message to key mapping impacts design.
10322
10323 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10324
10325         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
10326
10327         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
10328
10329         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
10330         * sysdeps/wordsize-64/glob64.c: ... here.
10331
10332         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
10333         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
10334         New macros.
10335
10336         * debug/getlogin_r_chk.c: Moved to ...
10337         * login/getlogin_r_chk.c: ... here.
10338         * debug/Makefile (routines): Move getlogin_r_chk to ...
10339         * login/Makefile (routines): ... here.
10340         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
10341         * login/Versions (libc: GLIBC_2.4): ... here.
10342
10343         * io/poll.c (__poll): Renamed from poll.
10344         Add libc_hidden_def.
10345         (poll): Define as weak alias.
10346
10347         * debug/ptsname_r_chk.c: Moved to ...
10348         * login/ptsname_r_chk.c: ... here.
10349         * debug/Makefile (routines): Move ptsname_r_chk to ...
10350         * login/Makefile (routines): ... here.
10351         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
10352         * login/Versions (libc: GLIBC_2.4): ... here.
10353
10354         * posix/getlogin.c: Moved to ...
10355         * login/getlogin.c: ... here.
10356         * posix/getlogin_r.c: Moved to ...
10357         * login/getlogin_r.c: ... here.
10358         * posix/getlogin_r.c: Moved to ...
10359         * login/getlogin_r.c: ... here.
10360         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
10361         * login/Makefile (routines): ... here.
10362         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
10363         * login/Versions (libc: GLIBC_2.0): ... here.
10364
10365         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
10366         (setrlimit): Define as weak alias.
10367
10368         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
10369         Call __ names for open, ftruncate, and close.
10370         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
10371         (truncate): Define as weak alias.
10372
10373 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
10374
10375         * math/gen-libm-test.pl (parse_args): Initialize x before each
10376         test of frexp, modf and remquo.
10377
10378         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
10379         test signgam value.
10380
10381 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10382
10383         [BZ #15418]
10384         [BZ #15419]
10385         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
10386         internal tests.
10387         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10388
10389 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10390
10391         * elf/dl-writev.h: New file.
10392         * elf/dl-misc.c: Include it.
10393         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
10394         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
10395
10396 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
10397
10398         * math/libm-test.inc (noXFails): Remove variable.
10399         (noXPasses): Likewise.
10400         (BUILD_COMPLEX_INT): Remove macro.
10401         (print_screen): Remove xfail argument.
10402         (print_screen_max_error): Likewise.
10403         (update_stats): Likewise.
10404         (print_max_error): Likewise.  Update calls to other affected
10405         functions.
10406         (print_complex_max_error): Likewise.
10407         (test_single_exception): Update calls to print_screen.
10408         (test_single_errno): Likewise.
10409         (check_float_internal): Remove xfail argument.  Update calls to
10410         other affected functions.
10411         (check_float): Likewise.
10412         (check_complex): Likewise.
10413         (check_int): Likewise.
10414         (check_long): Likewise.
10415         (check_bool): Likewise.
10416         (check_longlong): Likewise.
10417         (main): Don't print noXFails and noXPasses.
10418         * math/gen-libm-test.pl (top level): Don't mention expected
10419         failure handling in comment.
10420         (new_test): Don't handle expected failures.
10421         (parse_args): Don't mention expected failure handling in comment.
10422         (generate_testfile): Don't handle expected failures.
10423         (parse_ulps): Likewise.
10424         (print_ulps_file): Likewise.
10425         (get_failure): Remove function.
10426         (output_test): Don't handle expected failures.
10427         * make/README.libm-test: Don't mention expected failure handling.
10428
10429         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
10430         (minus_zero): Likewise.
10431         (plus_infty): Likewise.
10432         (minus_infty): Likewise.
10433         (qnan_value): Likewise.
10434         (max_value): Likewise.
10435         (min_value): Likewise.
10436         (min_subnorm_value): Likewise.
10437         (initialize): Do not initialize those variables dynamically.
10438
10439 2013-05-03  Roland McGrath  <roland@hack.frob.com>
10440
10441         * io/open.c (__open_2): Moved to ...
10442         * io/open_2.c: ... this new file.
10443         * io/open64.c (__open64_2): Moved to ...
10444         * io/open64_2.c: ... this new file.
10445         * io/openat.c (__openat_2): Moved to ...
10446         * io/openat_2.c: ... this new file.
10447         * io/openat64.c (__openat64_2): Moved to ...
10448         * io/openat64_2.c: ... this new file.
10449         * io/Makefile (routines): Add them.
10450         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
10451         * sysdeps/unix/sysv/linux/open_2.c: File removed.
10452         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
10453         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
10454         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
10455         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
10456         (__openat64): Add hidden_ver.
10457         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
10458         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
10459
10460         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10461         Separately conditionalize setting of GLRO(dl_sysinfo) so
10462         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
10463         as well, but the actual setting is only under [NEED_DL_SYSINFO].
10464
10465 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10466
10467         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
10468         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
10469         definition.
10470         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
10471         * sysdeps/unix/sysv/linux/powerpc/init-first.c
10472         (_libc_vdso_platform_setup): Add __vdso_time initialization.
10473         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
10474         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
10475
10476 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
10477
10478         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
10479         test signgam value.
10480
10481         * math/libm-test.inc (hypot_test): Do not use
10482         IGNORE_ZERO_INF_SIGN.
10483
10484 2013-05-03  Andreas Jaeger  <aj@suse.de>
10485
10486         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
10487         Linux 3.9.
10488         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
10489         (PF_MAX): Adjust for VSOCK change.
10490
10491 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10492
10493         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10494
10495 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
10496
10497         [BZ #15264]
10498         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
10499         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
10500         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
10501
10502 2013-05-02  David S. Miller  <davem@davemloft.net>
10503
10504         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10505
10506 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
10507
10508         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
10509
10510 2013-05-01  Roland McGrath  <roland@hack.frob.com>
10511
10512         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
10513
10514 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
10515
10516         [BZ #14952]
10517         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
10518         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10519         Use __attribute__ ((__gnu_inline__)).
10520         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10521         Don't use __attribute__ ((__gnu_inline__)).
10522
10523 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
10524
10525         [BZ #15423]
10526         * math/s_catan.c (__catan): Handle small real or imaginary part of
10527         input specially to avoid spurious underflow.
10528         * math/s_catanf.c (__catanf): Likewise.
10529         * math/s_catanh.c (__catanh): Likewise.
10530         * math/s_catanhf.c (__catanhf): Likewise.
10531         * math/s_catanhl.c (__catanhl): Likewise.
10532         * math/s_catanl.c (__catanl): Likewise.
10533         * math/libm-test.inc (catan_test): Add more tests.
10534         (catanh_test): Likewise.
10535         * sysdeps/i386/fpu/libm-test-ulps: Update.
10536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10537
10538 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10539
10540         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10541
10542 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
10543
10544         [BZ #15416]
10545         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
10546         accurately for denominator in atan2.
10547         * math/s_catanf.c (__catanf): Likewise.
10548         * math/s_catanh.c (__catanh): Likewise.
10549         * math/s_catanhf.c (__catanhf): Likewise.
10550         * math/s_catanhl.c (__catanhl): Likewise.
10551         * math/s_catanl.c (__catanl): Likewise.
10552         * math/libm-test.inc (catan_test): Add more tests.
10553         (catanh_test): Likewise.
10554         * sysdeps/i386/fpu/libm-test-ulps: Update.
10555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10556
10557 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10558
10559         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
10560
10561         * benchtests/Makefile (bench): Remove slow benchmarks.
10562         * benchtests/atan-inputs: Add slow benchmark inputs.
10563         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
10564         (BENCH_FUNC): Accept variant offset.
10565         (VARIANT): Define.
10566         * benchtests/bench-skeleton.c (main): Run benchmark for each
10567         variant.
10568         * benchtests/cos-inputs: Add slow benchmark inputs.
10569         * benchtests/exp-inputs: Likewise.
10570         * benchtests/pow-inputs: Likewise.
10571         * benchtests/sin-inputs: Likewise.
10572         * benchtests/slowatan-inputs: Remove.
10573         * benchtests/slowatan.c: Remove.
10574         * benchtests/slowcos-inputs: Remove.
10575         * benchtests/slowcos.c: Remove.
10576         * benchtests/slowexp-inputs: Remove.
10577         * benchtests/slowexp.c: Remove.
10578         * benchtests/slowpow-inputs: Remove.
10579         * benchtests/slowpow.c: Remove.
10580         * benchtests/slowsin-inputs: Remove.
10581         * benchtests/slowsin.c: Remove.
10582         * benchtests/slowtan-inputs: Remove.
10583         * benchtests/slowtan.c: Remove.
10584         * benchtests/tan-inputs: Add slow benchmark inputs.
10585         * scripts/bench.pl: Parse comments and directives.
10586
10587         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
10588         in CPPFLAGS.
10589         ($(objpfx)bench-%.c): Remove *-ITER.
10590         * benchtests/bench-modf.c: Remove definition of ITER.
10591         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
10592         (main): Loop for DURATION seconds instead of fixed number of
10593         iterations.
10594         * scripts/bench.pl: Don't expect iterations in parameters.
10595
10596 2013-04-29  Roland McGrath  <roland@hack.frob.com>
10597
10598         * io/fchdir.c (__fchdir): Renamed from fchdir.
10599         (fchdir): Define as weak alias.
10600
10601 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10602
10603         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
10604         (ERRNO_EDOM): Likewise.
10605         (ERRNO_ERANGE): Likewise.
10606         (noErrnoTests): New variable.
10607         (init_max_error): Set errno to 0.
10608         (test_single_errno): New function.
10609         (test_errno): Likewise.
10610         (check_float_internal): Call test_errno.  Set errno to 0.
10611         (check_complex): Refer to errno tests in comment.
10612         (check_int): Call test_errno.  Set errno to 0.
10613         (check_long): Likewise.
10614         (check_bool): Likewise.
10615         (check_longlong): Likewise.
10616         (cos_test): Use ERRNO_* flags for errno tests instead of
10617         check_int.
10618         (expm1_test): Likewise.
10619         (fmod_test): Likewise.
10620         (ilogb_test): Likewise.
10621         (lgamma_test): Likewise.
10622         (pow_test): Likewise.
10623         (remainder_test): Likewise.
10624         (sin_test): Likewise.
10625         (tan_test): Likewise.
10626         (yn_test): Likewise.
10627         (initialize): Set errno to 0.
10628         (main): Print number of errno tests.
10629         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
10630
10631 2013-04-29  Andreas Jaeger  <aj@suse.de>
10632
10633         [BZ #15084]
10634         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
10635         and RES_USEVC.
10636
10637         [BZ #15085]
10638         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
10639         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
10640         unimplemented.
10641
10642         [BZ #15380]
10643         * stdlib/random.c (__initstate): Return NULL if
10644         __initstate fails.
10645
10646         [BZ #15086]
10647         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
10648         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
10649         RES_SNGLKUPREOP.
10650
10651 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10652
10653         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10654
10655 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10656
10657         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
10658         of individual tests.
10659         (casin_test): Likewise.
10660         (casinh_test): Likewise.
10661
10662 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
10663
10664         [BZ #15409]
10665         * math/s_catan.c (__catan): Handle arguments with large real or
10666         imaginary part separately without squaring.
10667         * math/s_catanf.c (__catanf): Likewise.
10668         * math/s_catanh.c (__catanh): Likewise.
10669         * math/s_catanhf.c (__catanhf): Likewise.
10670         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10671         and redefine.
10672         (__catanhl): Handle arguments with large real or imaginary part
10673         separately without squaring.
10674         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10675         and redefine.
10676         (__catanl): Handle arguments with large real or imaginary part
10677         separately without squaring.
10678         * math/libm-test.inc (catan_test): Add more tests.
10679         (catanh_test): Likewise.
10680         * sysdeps/i386/fpu/libm-test-ulps: Update.
10681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10682
10683 2013-04-27  Andreas Jaeger  <aj@suse.de>
10684
10685         [BZ #15007]
10686         * stdlib/stdlib.h: Update guards for qecvt.
10687         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
10688         <stdlib.h>.
10689
10690 2013-04-27  Allan McRae  <allan@archlinux.org>
10691
10692         * sysdeps/i386/fpu/libm-test-ulps: Update.
10693
10694 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
10695
10696         [BZ #15406]
10697         * math/s_catan.c: Include <float.h>.
10698         (__catan): Ensure underflow exception occurs for underflowed
10699         result.
10700         * math/s_catanf.c: Include <float.h>.
10701         (__catanf): Ensure underflow exception occurs for underflowed
10702         result.
10703         * math/s_catanh.c: Include <float.h>.
10704         (__catanh): Ensure underflow exception occurs for underflowed
10705         result.
10706         * math/s_catanhf.c: Include <float.h>.
10707         (__catanhf): Ensure underflow exception occurs for underflowed
10708         result.
10709         * math/s_catanhl.c: Include <float.h>.
10710         (__catanhl): Ensure underflow exception occurs for underflowed
10711         result.
10712         * math/s_catanl.c: Include <float.h>.
10713         (__catanl): Ensure underflow exception occurs for underflowed
10714         result.
10715         * math/libm-test.inc (catan_test): Add more tests.
10716         (catanh_test): Likewise.
10717
10718         [BZ #15405]
10719         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
10720         underflowed result.
10721         * math/s_ccoshf.c (__ccoshf): Likewise.
10722         * math/s_ccoshl.c (__ccoshl): Likewise.
10723         * math/s_csin.c (__csin): Likewise.
10724         * math/s_csinf.c (__csinf): Likewise.
10725         * math/s_csinh.c (__csinh): Likewise.
10726         * math/s_csinhf.c (__csinhf): Likewise.
10727         * math/s_csinhl.c (__csinhl): Likewise.
10728         * math/s_csinl.c (__csinl): Likewise.
10729         * math/libm-test.inc (ccos_test): Add more tests.
10730         (ccosh_test): Likewise.
10731         (csin_test): Likewise.
10732         (csinh_test): Likewise.
10733
10734 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10735
10736         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
10737         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
10738         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
10739         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
10740         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
10741         powerpc/power5+/fpu folders.
10742         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
10743
10744
10745 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10746
10747         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10748
10749 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
10750
10751         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
10752         additions to variable.
10753         [$(config-machine) = x86_64] (modules-names): Likewise.
10754         ($(objpfx)tst-audit3): Remove dependency.
10755         ($(objpfx)tst-audit3.out): Likewise.
10756         ($(objpfx)tst-audit4): Likewise.
10757         ($(objpfx)tst-audit4.out): Likewise.
10758         ($(objpfx)tst-audit5): Likewise.
10759         ($(objpfx)tst-audit5.out): Likewise.
10760         ($(objpfx)tst-audit6): Likewise.
10761         ($(objpfx)tst-audit6.out): Likewise.
10762         ($(objpfx)tst-audit7): Likewise.
10763         ($(objpfx)tst-audit7.out): Likewise.
10764         (tst-audit3-ENV): Remove variable.
10765         (tst-audit4-ENV): Likewise.
10766         (tst-audit5-ENV): Likewise.
10767         (tst-audit6-ENV): Likewise.
10768         (tst-audit7-ENV): Likewise.
10769         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
10770         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
10771         addition to variable.
10772         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
10773         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
10774         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
10775         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
10776         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
10777         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
10778         tst-audit3, tst-audit4 and tst-audit5.
10779         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
10780         tst-audit6 and tst-audit7.
10781         [$(subdir) = elf] (modules-names): Add audit modules for those
10782         tests.
10783         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
10784         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
10785         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
10786         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
10787         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
10788         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
10789         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
10790         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
10791         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
10792         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
10793         [$(subdir) = elf] (tst-audit3-ENV): New variable.
10794         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
10795         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
10796         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
10797         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
10798         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
10799         Likewise.
10800         [$(subdir) = elf && $(config-cflags-avx) = yes]
10801         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
10802         [$(subdir) = elf && $(config-cflags-avx) = yes]
10803         (CFLAGS-tst-auditmod4a.c): Likewise.
10804         [$(subdir) = elf && $(config-cflags-avx) = yes]
10805         (CFLAGS-tst-auditmod4b.c): Likewise.
10806         [$(subdir) = elf && $(config-cflags-avx) = yes]
10807         (CFLAGS-tst-auditmod6b.c): Likewise.
10808         [$(subdir) = elf && $(config-cflags-avx) = yes]
10809         (CFLAGS-tst-auditmod6c.c): Likewise.
10810         [$(subdir) = elf && $(config-cflags-avx) = yes]
10811         (CFLAGS-tst-auditmod7b.c): Likewise.
10812         * elf/tst-audit3.c: Move to ...
10813         * sysdeps/x86_64/tst-audit3.c: ... here.
10814         * elf/tst-audit4.c: Move to ...
10815         * sysdeps/x86_64/tst-audit4.c: ... here.
10816         * elf/tst-audit5.c: Move to ...
10817         * sysdeps/x86_64/tst-audit5.c: ... here.
10818         * elf/tst-audit6.c: Move to ...
10819         * sysdeps/x86_64/tst-audit6.c: ... here.
10820         * elf/tst-audit7.c: Move to ...
10821         * sysdeps/x86_64/tst-audit7.c: ... here.
10822         * elf/tst-auditmod3a.c: Move to ...
10823         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
10824         * elf/tst-auditmod3b.c: Move to ...
10825         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
10826         * elf/tst-auditmod4a.c: Move to ...
10827         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
10828         * elf/tst-auditmod4b.c: Move to ...
10829         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
10830         * elf/tst-auditmod5a.c: Move to ...
10831         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
10832         * elf/tst-auditmod5b.c: Move to ...
10833         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
10834         * elf/tst-auditmod6a.c: Move to ...
10835         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
10836         * elf/tst-auditmod6b.c: Move to ...
10837         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
10838         * elf/tst-auditmod6c.c: Move to ...
10839         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
10840         * elf/tst-auditmod7a.c: Move to ...
10841         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
10842         * elf/tst-auditmod7b.c: Move to ...
10843         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
10844
10845 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
10846
10847         [BZ #15366]
10848         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
10849         define unconditionally.
10850         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
10851         define unconditionally.
10852         (INT8_C, INT16_C, etc.): Likewise.
10853
10854 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
10855
10856         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
10857         __ehdr_start with hidden visibility.
10858
10859         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
10860
10861 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
10862
10863         * math/libm-test.inc (cos_test): Use accurate hex constants.
10864         (sincost_test): Likewise.
10865
10866 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
10867
10868         * math/libm-test.inc (catan_test): Add more tests.
10869         (catanh_test): Likewise.
10870
10871         * math/s_catanf.c (__catanf): Use suffixed floating-point
10872         constants.
10873         * math/s_catanhf.c (__catanhf): Likewise.
10874         * math/s_catanhl.c (__catanhl): Likewise.
10875         * math/s_catanl.c (__catanl): Likewise.
10876
10877         [BZ #15394]
10878         * math/s_catan.c (__catan): Calculate imaginary part of result
10879         with log1p not log unless computing log of number close to 0.
10880         * math/s_catanf.c (__catanf): Likewise.
10881         * math/s_catanl.c (__catanl): Likewise.
10882         * math/s_catanh.c (__catanh): Calculate real part of result with
10883         log1p not log unless computing log of number close to 0.
10884         * math/s_catanhf.c (__catanhf): Likewise.
10885         * math/s_catanhl.c (__catanhl): Likewise.
10886         * math/libm-test.inc (catan_test): Add more tests.
10887         (catanh_test): Likewise.
10888         * sysdeps/i386/fpu/libm-test-ulps: Update.
10889         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10890
10891 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10892
10893         * benchtests/Makefile: Mention files in which fast and slow
10894         paths of math functions are implemented.
10895
10896 2013-04-23  Roland McGrath  <roland@hack.frob.com>
10897
10898         * sysdeps/posix/timespec_get.c: New file.
10899
10900 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10901
10902         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
10903         POWER.
10904         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
10905         for POWER.
10906         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
10907         powerpc/power5/fpu folders.
10908         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
10909         * benchtests/Makefile: Add modf testcase.
10910         * benchtests/bench-modf.c: New file: Benchmark test for mo
10911
10912 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
10913
10914         [BZ #14888]
10915         * time/Makefile (tests): Add tst-strptime-whitespace.
10916         * time/strptime_l.c (get_number): Use ISSPACE.
10917         (__strptime_internal): Likewise.
10918         * time/tst-strptime-whitespace.c: New test case.
10919
10920 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
10921
10922         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
10923         member.
10924         (_nss_files_init): Set it here.
10925
10926 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
10927
10928         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
10929         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
10930         unsigned.
10931
10932 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
10933
10934         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
10935
10936 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10937
10938         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
10939         size just once.
10940
10941 2013-04-21  David S. Miller  <davem@davemloft.net>
10942
10943         * po/ru.po: Update Russion translation from translation project.
10944
10945 2013-04-17  Adam Conrad  <adconrad@0c3.net>
10946
10947         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
10948         and setfsgid.
10949
10950 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
10951
10952         * configure.in: Remove i386 configure warning. Remove i386 case.
10953         * configure: Regenerate.
10954         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
10955         Add example to error message.
10956         * sysdeps/i386/configure: Regenerate.
10957
10958 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
10959
10960         * benchtests/Makefile (bench): Add cos, tan, slowcos and
10961         slowtan.
10962         * benchtests/cos-inputs: New file.
10963         * benchtests/slowcos-inputs: New file.
10964         * benchtests/slowcos.c: New file.
10965         * benchtests/slowtan-inputs: New file.
10966         * benchtests/slowtan.c: New file.
10967         * benchtests/tan-inputs: New file.
10968
10969 2013-04-16  Roland McGrath  <roland@hack.frob.com>
10970
10971         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
10972         considered kosher.
10973
10974 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10975
10976         * benchtests/Makefile: Include cppflags-iterator.mk to add
10977         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
10978
10979         * Makefile.in (bench-clean): New target.
10980         * benchtests/Makefile (bench-clean): Likewise.
10981
10982 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
10983
10984         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
10985
10986 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10987
10988         * stdio-common/tstdiomisc.c: Fix coding-style violation.
10989
10990 2013-04-15  Andreas Schwab  <schwab@suse.de>
10991
10992         * nscd/grpcache.c (cache_addgr): Properly check for short write.
10993         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10994         * nscd/pwdcache.c (cache_addpw): Likewise.
10995         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
10996         more than recsize.
10997
10998 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10999
11000         * benchtests/Makefile (bench): Write all output to
11001         bench-out.tmp together.
11002
11003 2013-04-15  Andreas Schwab  <schwab@suse.de>
11004
11005         * nscd/nscd.c (main): Don't fork again after closing files.
11006
11007 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11008
11009         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
11010
11011         * benchtests/Rules (bench-deps): Collect dependencies into a
11012         single variable.  Add Makefile to dependencies.
11013         ($(objpfx)bench-%.c): Depend on bench-deps.
11014
11015 2013-04-12  Roland McGrath  <roland@hack.frob.com>
11016             Xavier Roche  <roche+kml2@exalead.com>
11017
11018         [BZ #15361]
11019         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
11020         just that it's a file descriptor.
11021         * manual/llio.texi (Synchronizing AIO Operations): Update description
11022         for EBADF error from aio_fsync.
11023
11024 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
11025
11026         * Rules (bench): Move target definition...
11027         * benchtests/Makefile: ... here.
11028
11029 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
11030
11031         * math/libm-test.inc (cos_test): Fix PI/2 test.
11032         (sincos_test): Likewise.
11033         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
11034         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
11035
11036 2013-04-11  Andreas Schwab  <schwab@suse.de>
11037
11038         [BZ #13988]
11039         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
11040         accept exponent character only when digits were seen.
11041         * stdio-common/Makefile (tests): Add bug26.
11042         * stdio-common/bug26.c: New file.
11043
11044         [BZ #14293]
11045         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
11046         non-freeable.
11047
11048 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11049
11050         * Makeconfig (rtld-prefix): Define built linker prefix.
11051         * Rules (run-bench): Use it.
11052         * math/Makefile (run-regen-ulps): Likewise.
11053
11054         * Rules (bench): Remove eval.
11055
11056 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
11057             Roland McGrath  <roland@hack.frob.com>
11058             Ondrej Bilka  <neleai@seznam.cz>
11059
11060         [BZ #15346]
11061         * time/getdate.c: Include ctype.h and alloca.h.
11062         (__getdate_r): Trim leading and trailing spaces of input.
11063         * time/tst-getdate.c (tests): Add tests with leading and
11064         trailing spaces.
11065
11066 2013-04-08  Roland McGrath  <roland@hack.frob.com>
11067
11068         [BZ #14280]
11069         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
11070         when computing value.
11071
11072 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11073
11074         * math/README.libm-test (How can I generate "libm-test-ulps"?):
11075         Use testrun.sh to run libm tests.
11076
11077         [BZ #15309]
11078         * elf/dl-open.c (dl_open_worker): memset all of seen array.
11079
11080 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
11081
11082         [BZ #15264]
11083         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
11084
11085 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11086
11087         * Makefile.in (regen-ulps): New target.
11088         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
11089         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
11090         [ifneq (no,$(PERL)] (regen-ulps): New target.
11091         [ifeq (no,$(PERL)] (regen-ulps): New target.
11092         * math/libm-test.inc (ulps_file_name): Define.
11093         (output_dir): New variable.
11094         (options): Add "output-dir" option.
11095         (parse_opt): Handle 'o' case.
11096         (main): If output_dir is non-NULL use it as a prefix
11097         otherwise use "".
11098         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
11099
11100 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11101
11102         [BZ #10060, #10062]
11103         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
11104         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
11105         fail configure if __sync_val_compare_and_swap is not inlined.
11106         * sysdeps/i386/configure: Regenerate.
11107         * configure.in: Build for i686 when configured for i386.
11108         * configure: Regenerate.
11109         * README: Remove i386 reference.
11110
11111 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11112
11113         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
11114         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11115
11116 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11117
11118         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
11119         (lmsnanval): New variables.
11120         (F): Add conversion tests.
11121         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
11122         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
11123
11124         * stdio-common/tstdiomisc.c (F): Properly collect individual
11125         tests' results.
11126
11127         [BZ #14686, #15336]
11128         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
11129         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
11130         Instead, use input NaN values or generate a qNaN by arithmetic
11131         operation.  Also fix bugs to comply with the standard.
11132         * math/libm-test.inc (remainder_test): Add more tests.
11133
11134         [BZ #15335, #15342]
11135         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
11136         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
11137         input NaN values or generate a qNaN by arithmetic operation.
11138
11139         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
11140         unreachable code.
11141
11142         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
11143         definitions.
11144
11145 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
11146
11147         [BZ #14478]
11148         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
11149         underflowed result.
11150         * math/s_cexpf.c (__cexpf): Likewise.
11151         * math/s_cexpl.c (__cexpl): Likewise.
11152         * math/libm-test.inc (cexp_test): Add more tests.
11153
11154 2013-04-03  Andreas Schwab  <schwab@suse.de>
11155
11156         [BZ #15330]
11157         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
11158         order arrays from heap if bigger than alloca cutoff.
11159
11160 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
11161
11162         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
11163         (SNAN_TESTS_double): Refer to GCC PR56831.
11164         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
11165         GCC PR56828.
11166
11167 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11168
11169         * Rules (bench): Move bench.out after the run is complete.
11170
11171         * Rules (bench): Echo currently running benchmark.
11172
11173         * benchtests/Makefile (bench): Add atan and slowatan.
11174         * benchtests/atan-inputs: New file.
11175         * benchtests/slowatan-inputs: New file.
11176         * benchtests/slowatan.c: New file.
11177
11178         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
11179         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
11180         its value.
11181
11182         [BZ #15305]
11183         * sysdeps/unix/sysv/linux/kernel-features.h
11184         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
11185         __ASSUME_XFS_RESTRICTED_CHOWN.
11186         * sysdeps/unix/sysv/linux/pathconf.c
11187         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
11188         Save and restore errno.
11189
11190 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
11191
11192         [BZ #15327]
11193         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
11194         arguments using __kernel_casinh.
11195         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
11196         arguments using __kernel_casinhf.
11197         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
11198         arguments using __kernel_casinhl.
11199         * math/libm-test.inc (cacosh_test): Add more tests.
11200         * sysdeps/i386/fpu/libm-test-ulps: Update.
11201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11202
11203 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11204
11205         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
11206         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
11207
11208         * bench/Makefile (bench): Add sin and slowsin.
11209         * benchtests/sin-inputs: New file.
11210         * benchtests/slowsin-inputs: New file.
11211         * benchtests/slowsin.c: New file.
11212
11213         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
11214         (bench): Add slowexp and slowpow.
11215         (exp-ITER): Increase iterations.
11216         (pow-ITER): Likewise.
11217         * benchtests/exp-inputs: Change input.
11218         * benchtests/pow-inputs: Likewise.
11219         * benchtests/slowexp-inputs: New file.
11220         * benchtests/slowexp.c: New file.
11221         * benchtests/slowpow-inputs: New file.
11222         * benchtests/slowpow.c: New file.
11223
11224 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11225
11226         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
11227         instructions.
11228         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11229         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
11230         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
11231         * benchtests/Makefile: Add rint benchtest.
11232         * benchtests/rint-inputs: Input for rint benchtest.
11233
11234 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11235
11236         * Versions.def (libm): Add GLIBC_2.18.
11237         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
11238         hidden libm prototypes.
11239         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
11240         * math/Makefile (libm-calls): Add s_issignaling.
11241         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
11242         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
11243         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
11244         declaration.
11245         * math/math.h [__USE_GNU] (issignaling): New macro.
11246         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
11247         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
11248         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
11249         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
11250         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11251         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
11252         * manual/arith.texi (issignaling): New section.
11253         * manual/libm-err-tab.pl (@all_functions): Update comment.
11254         * math/gen-libm-test.pl (parse_args): Apply special handling for
11255         issignaling.
11256         * math/libm-test.inc (print_float, issignaling_test): New
11257         functions.
11258         (check_float_internal): Add issignaling checks.
11259         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
11260         default definition.
11261         * sysdeps/powerpc/math-tests.h: New file.
11262         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
11263         tests.
11264         * math/test-snan.c (TEST_FUNC): Likewise.
11265
11266 2013-03-30  David S. Miller  <davem@davemloft.net>
11267
11268         * po/de.po: Update from translation team.
11269
11270 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
11271
11272         [BZ #10357]
11273         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11274         imaginary part less than 1.0 and real part less than 0.5
11275         specially.
11276         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11277         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11278         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
11279         (cacos_test): Add more tests.
11280         (casin_test): Likewise.
11281         (casinh_test): Likewise.
11282         * sysdeps/i386/fpu/libm-test-ulps: Update.
11283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11284
11285 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11286
11287         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
11288         ONE with its value.
11289
11290         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
11291         (__pow_mp): Replace ONE and MONE with their values.
11292         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11293         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
11294         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11295         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
11296         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11297         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11298
11299         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
11300
11301         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
11302         (__pow_mp): Replace ZERO and MZERO with their values.
11303         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11304         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11305         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11306         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11307         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11308         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
11309         (__sqr): Likewise.
11310
11311         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
11312
11313         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
11314
11315 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11316
11317         * include/stdlib.h [!SHARED] (__call_tls_dtors):
11318         Declare with __attribute__ ((weak)).
11319         * stdlib/exit.c (__libc_atexit) [!SHARED]:
11320         Call __call_tls_dtors only if it's not NULL.
11321
11322 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11323
11324         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
11325         didn't do it already, then set _dl_phdr and _dl_phnum based on the
11326         magic __ehdr_start linker symbol if it's defined.
11327         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
11328         them up here if it was already done.
11329
11330         * elf/dl-support.c (_dl_phdr): Make pointer to const.
11331         (_dl_aux_init): Use const in cast when setting it.
11332         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
11333         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
11334         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
11335
11336         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
11337         Declare them here.
11338         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
11339         * csu/libc-tls.c: Nor here.
11340         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
11341
11342         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
11343         (__libc_message): Never call vsyslog.
11344
11345 2013-03-28  Alan Modra  <amodra@gmail.com>
11346
11347         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
11348         Define as empty.
11349         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
11350         Likewise.
11351
11352 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11353
11354         [BZ #15214]
11355         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
11356         underflow.
11357         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11358
11359 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11360
11361         [BZ #15304]
11362         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
11363         Don't add gid passed as argument.
11364
11365         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
11366
11367 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
11368
11369         [BZ #15307]
11370         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11371         imaginary part between 1.0 and 1.5 and real part less than 0.5
11372         specially.
11373         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11374         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11375         * math/libm-test.inc (cacos_test): Add more tests.
11376         (casin_test): Likewise.
11377         (casinh_test): Likewise.
11378         * sysdeps/i386/fpu/libm-test-ulps: Update.
11379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11380
11381 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11382
11383         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
11384         constants.
11385         (norm): Likewise.
11386         (denorm): Likewise.
11387         (__dbl_mp): Likewise.
11388         (add_magnitudes): Likewise.
11389         (sub_magnitudes): Likewise.
11390         (__add): Likewise.
11391         (__sub): Likewise.
11392         (__mul): Likewise.
11393         (__sqr): Likewise.
11394         (__inv): Likewise.
11395         (__dvd): Likewise.
11396
11397         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
11398         commented code.
11399         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
11400         (__dubcos): Likewise.
11401         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
11402         (__ieee754_acos): Likewise.
11403         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11404         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
11405         (__exp1): Likewise.
11406         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11407         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11408         (log1): Likewise.
11409         (my_log2): Likewise.
11410         (checkint): Likewise.
11411         * sysdeps/ieee754/dbl-64/e_remainder.c
11412         (__ieee754_remainder): Likewise.
11413         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11414         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11415         (bsloww): Likewise.
11416         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11417
11418         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11419         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
11420         MANTISSA_STORE_T to store computations on mantissa.  Use
11421         macros for rounding and division.
11422         (denorm): Likewise.
11423         (__dbl_mp): Likewise.
11424         (add_magnitudes): Likewise.
11425         (sub_magnitudes): Likewise.
11426         (__mul): Likewise.
11427         (__sqr): Likewise.
11428         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11429         powers of two in terms of TWOPOW macro.
11430         (mp_no): Make type of mantissa as MANTISSA_T.
11431         [!RADIXI]: Define RADIXI.
11432         [!TWO52]: Define TWO52.
11433         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11434
11435 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11436
11437         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
11438         llroundl symbol when building for PPC32.
11439
11440 2013-03-24  Mark H Weaver  <mhw@netris.org>
11441
11442         * manual/arith.texi (Normalization Functions): Fix prototypes for
11443         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
11444
11445 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11446
11447         [BZ #13889]
11448         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
11449         high value to check if expl overflow.
11450         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
11451         to check for underflow and overflow.
11452         * math/libm-test.inc: Add exp test.
11453
11454 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
11455
11456         [BZ #11120]
11457         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
11458         with NOT_IN_libc.
11459
11460 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11461
11462         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
11463         symbol.
11464
11465 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11466
11467         * math/gen-libm-test.pl (parse_args, special_functions): Properly
11468         wrap blocks consisting of several statements.
11469
11470         * sysdeps/generic/math-tests.h: New file.
11471         * sysdeps/i386/fpu/math-tests.h: Likewise.
11472         * math/test-snan.c: Include it.
11473         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
11474
11475 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11476
11477         [BZ #15285]
11478         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
11479         (__ieee754_j0l): Do not improve calculations using cos of twice
11480         input for inputs above LDBL_MAX / 2.0L.
11481         (__ieee754_y0l): Likewise.
11482         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
11483         (__ieee754_j1l): Do not improve calculations using cos of twice
11484         input for inputs above LDBL_MAX / 2.0L.
11485         (__ieee754_y1l): Likewise.
11486         * math/libm-test.inc (j0_test): Add another test.
11487         (j1_test): Likewise.
11488         (y0_test): Likewise.
11489         (y1_test): Likewise.
11490         * sysdeps/i386/fpu/libm-test-ulps: Update.
11491
11492 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11493
11494         * Rules ($(objpfx)bench-%.c): Include code from a C source
11495         file.
11496
11497 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11498
11499         [BZ #15287]
11500         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11501         imaginary part 1.0 and real part less than 0.5 specially.
11502         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11503         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11504         * math/libm-test.inc (cacos_test): Add more tests.
11505         (casin_test): Likewise.
11506         (casinh_test): Likewise.
11507         * sysdeps/i386/fpu/libm-test-ulps: Update.
11508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11509
11510 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11511
11512         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
11513         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
11514
11515 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
11516
11517         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
11518         * config.make.in (config-cflags-sse4): Remove variable.
11519         (config-cflags-avx): Likewise.
11520         (config-cflags-sse2avx): Likewise.
11521         (config-cflags-novzeroupper): Likewise.
11522         (config-asflags-i686): Likewise.
11523         (have-mfma4): Likewise.
11524         (have-as-vis3): Likewise.
11525         (MIG): Likewise.
11526         * configure.in (MIG): Do not AC_SUBST.
11527         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
11528         (libc_cv_cc_sse4): Do not AC_SUBST.
11529         (libc_cv_cc_avx): Likewise.
11530         (libc_cv_cc_sse2avx): Likewise.
11531         (libc_cv_cc_novzeroupper): Likewise.
11532         (libc_cv_cc_fma4): Likewise.
11533         (libc_cv_as_i686): Likewise.
11534         (libc_cv_sparc_as_vis3): Likewise.
11535         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
11536         LIBC_CONFIG_VAR.
11537         (config-asflags-i686): Likewise.
11538         (config-cflags-avx): Likewise.
11539         (config-cflags-sse2avx): Likewise.
11540         (have-mfma4): Likewise.
11541         (config-cflags-novzeroupper): Likewise.
11542         * sysdeps/mach/configure.in (MIG): Likewise.
11543         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
11544         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
11545         LIBC_CONFIG_VAR.
11546         (config-cflags-avx): Likewise.
11547         (config-cflags-sse2avx): Likewise.
11548         (have-mfma4): Likewise.
11549         (config-cflags-novzeroupper): Likewise.
11550         * configure: Regenerated.
11551         * sysdeps/i386/configure: Likewise.
11552         * sysdeps/mach/configure: Likewise.
11553         * sysdeps/sparc/configure: Likewise.
11554         * sysdeps/x86_64/configure: Likewise.
11555
11556 2013-03-20  Roland McGrath  <roland@hack.frob.com>
11557
11558         [BZ #14812]
11559         * locale/programs/localedef.c (options): Put N_ translation marker
11560         on argument names, not just descriptions.
11561
11562 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11563
11564         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
11565
11566 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
11567
11568         [BZ #14176]
11569         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
11570
11571 2013-03-19  Roland McGrath  <roland@hack.frob.com>
11572
11573         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
11574         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
11575         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
11576         [!BEFORE_ABORT] (before_abort): New function.
11577         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
11578         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
11579         (writev_for_fatal): New function.
11580         (WRITEV_FOR_FATAL): New macro; call that.
11581         (backtrace_and_maps): New function.
11582         (BEFORE_ABORT): New macro; call that.
11583         (struct str_list): Type removed.
11584         (__libc_message, __libc_fatal): Functions removed.
11585         Include <sysdeps/posix/libc_fatal.c> instead.
11586
11587 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
11588
11589         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
11590         constants.
11591         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
11592         double constants.
11593
11594 2013-03-19  Andreas Schwab  <schwab@suse.de>
11595
11596         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
11597         * sysdeps/gnu/configure: Regenerate.
11598
11599         * configure.in: Substitute libc_cv_rtlddir.
11600         * configure: Regenerate.
11601         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
11602         * Makeconfig (rtlddir, inst_rtlddir): New variables.
11603         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
11604         * elf/Makefile (install-others, CFLAGS-interp.c)
11605         (ldso_install, common-ldd-rewrite): Likewise.
11606         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
11607         $(inst_slibdir)/$(rtld-installed-name).
11608         * scripts/rellns-sh: Add -p option.
11609         * Makerules (make-shlib-link): Use rellns-sh to get relative name
11610         for source.
11611
11612 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11613
11614         * manual/nptl.texi: Renamed to ...
11615         * manual/threads.texi: ... this.
11616         * manual/Makefile (chapters): Update.
11617
11618 2013-03-18  Roland McGrath  <roland@hack.frob.com>
11619
11620         [BZ #14812]
11621         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
11622         on argument names, not just descriptions.
11623         * malloc/memusagestat.c (options): Likewise.
11624         * nss/getent.c (options): Likewise.
11625
11626 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
11627
11628         [BZ #14812]
11629         * iconv/iconv_prog.c (options): Put N_ translation marker
11630         on argument names, not just descriptions.
11631         * iconv/iconvconfig.c (options): Likewise.
11632
11633 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
11634
11635         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
11636         implementation which is faster on all x86_64 architectures.
11637         Tested on AMD, Intel Nehalem, SNB, IVB.
11638         * sysdeps/x86_64/strnlen.S: Likewise.
11639
11640         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
11641         Remove all multiarch strlen and strnlen versions.
11642         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
11643         Remove strlen and strnlen related parts.
11644
11645         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
11646         Inline strlen part.
11647         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
11648
11649         * sysdeps/x86_64/multiarch/strlen.S: Remove.
11650         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
11651         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
11652         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
11653         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
11654         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
11655
11656 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
11657
11658         * manual/memory.texi (Malloc Tunable Parameters):
11659         Sort parameters alphabetically. Add comments for missing entries.
11660
11661 2013-03-17  David S. Miller  <davem@davemloft.net>
11662
11663         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11664
11665 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
11666
11667         [BZ #15283]
11668         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
11669         for arguments at most half maximum finite value.
11670         * math/libm-test.inc (j0_test): Add more tests.
11671         (j1_test): Likewise.
11672         (y0_test): Likewise.
11673         (y1_test): Likewise.
11674         * sysdeps/i386/fpu/libm-test-ulps: Update.
11675         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11676
11677         [BZ #14155]
11678         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
11679         1 / x and functions P and Q for arguments above 0x1p256L.
11680         (__ieee754_y0l): Likewise.
11681         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
11682         (__ieee754_y1l): Likewise.
11683         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
11684         (j1_test): Likewise.
11685         (y0_test): Likewise.
11686         (y1_test): Likewise.
11687
11688 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
11689
11690         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
11691         variable.
11692
11693 2013-03-15  Roland McGrath  <roland@hack.frob.com>
11694
11695         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
11696         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
11697         zero since it's initialized to EXEC_PAGESIZE.
11698
11699         * sysdeps/unix/sysv/linux/ldsodefs.h
11700         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
11701         * sysdeps/generic/ldsodefs.h: ... here.
11702
11703 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
11704
11705         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
11706
11707         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
11708         math/test-snan.c.
11709         * math/test-snan.c: Renamed from
11710         sysdeps/powerpc/fpu/test-powerpc-snan.c.
11711         * math/Makefile (tests): Add test-snan.
11712         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
11713         test-powerpc-snan.
11714
11715         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
11716         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
11717         functions.
11718         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
11719         __builtin_nan family of functions.
11720         * math/libm-test.inc (initialize): Initialize qnan_value with
11721         __builtin_nan family of functions.
11722         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
11723         Remove variables.
11724         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
11725         Remove functions.
11726         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
11727         storage class.  Initialize qNaN_var and sNaN_var with
11728         __builtin_nan and __builtin_nans families of functions,
11729         respectively.
11730
11731         * math/libm-test.inc (acosh_test): Also test with qNaN input.
11732         (sqrt_test): Remove duplicate test with qNaN input.
11733         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
11734         (round_test, signbit_test, significand_test): Note missing +/-Inf
11735         as well as qNaN tests.
11736
11737         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
11738         qNaN_var.  Fix a few strings, too.
11739         * math/libm-test.inc (nan_value): Rename to qnan_value.
11740         * math/gen-libm-test.pl (%beautify): Adjust to that.
11741         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
11742         * math/test-misc.c (main): Likewise.
11743         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
11744         to __qnan_bytes, and __qnan_union, respectively.
11745         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
11746         Likewise.
11747         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
11748         and lqnanval, respectively.
11749         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
11750         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
11751         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
11752         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
11753
11754         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
11755         * math/test-misc.c (main) [__x86_64__]: Enable test for long
11756         doubles.
11757
11758         * math/test-misc.c (main): Fix copy'n'pastos.
11759         * misc/tst-efgcvt.c (special): Likewise.
11760
11761         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
11762         Remove declarations.
11763
11764 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11765
11766         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
11767         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
11768         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
11769         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
11770
11771 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11772
11773         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
11774         macro to return vdso values correctly in IFUNC implementations.
11775         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
11776         Optimization by using IFUNC.
11777
11778 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11779             Richard Henderson  <rth@redhat.com>
11780             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11781
11782         * Makefile.in (bench): New target.
11783         * NEWS: Mention the benchmark framework.
11784         * Rules (bench): Likewise.
11785         (binaries-bench): Generate binaries for functions to
11786         benchmark.
11787         * benchtests/Makefile: New makefile for benchmark tests.
11788         * benchtests/bench-skeleton.c: New skeleton file for benchmark
11789         programs.
11790         * benchtests/exp-inputs: New input file for EXP function.
11791         * benchtests/pow-inputs: New input file for POW function.
11792         * scripts/bench.pl: New script to generate source files for
11793         benchmark programs.
11794
11795 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11796
11797         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11798         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
11799         computations on mantissa.  Use macros for rounding and
11800         division.
11801         (denorm): Likewise.
11802         (__dbl_mp): Likewise.
11803         (add_magnitudes): Likewise.
11804         (sub_magnitudes): Likewise.
11805         (__mul): Likewise.
11806         (__sqr): Likewise.
11807         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11808         powers of two in terms of TWOPOW macro.
11809         (mp_no): Make type of mantissa as MANTISSA_T.
11810         [!RADIXI]: Define RADIXI.
11811         [!TWO52]: Define TWO52.
11812         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11813
11814         * manual/nptl.texi (cindex): Modify threads to pthreads.
11815
11816 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
11817
11818         * sysdeps/x86_64/preconfigure: Regenerated.
11819
11820 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
11821
11822         [BZ #14155]
11823         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
11824         0x1p28 and above.
11825         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
11826         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
11827         0x1p28 and above.
11828         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
11829         * math/libm-test.inc (j0_test): Do not allow one spurious
11830         underflow exception.
11831         (y1_test): Likewise.
11832
11833 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11834
11835         * manual/Makefile (chapters): Add nptl.
11836         * manual/debug.texi (Debugging Support): Add link to Threads
11837         chapter.
11838         * manual/nptl.texi: New file.
11839
11840         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
11841
11842 2013-03-14  Petr Baudis  <pasky@ucw.cz>
11843
11844         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
11845         for non-NULL pointer before the memory validity test. Pointed
11846         out by Holger Brunck <holger.brunck@keymile.com>.
11847
11848 2013-03-13  Andreas Schwab  <schwab@suse.de>
11849
11850         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
11851         instead of .os.
11852
11853 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
11854
11855         * timezone/zic.c: Update from tzcode 2013b.
11856
11857 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
11858
11859         * manual/install.texi (Configuring and compiling):
11860         Mention i686 and i586.
11861         * INSTALL: Regenerate.
11862
11863 2013-03-12  Roland McGrath  <roland@hack.frob.com>
11864
11865         * sysdeps/init_array/elf-init.c: New file.
11866         * csu/elf-init.c
11867         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
11868         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
11869
11870         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
11871         __gmon_start__ as global, but as static with a .preinit_array pointer.
11872         * sysdeps/init_array/gmon-start.c: New file.  Use that.
11873         * sysdeps/init_array/crti.S: New file, empty except for comments.
11874         * sysdeps/init_array/crtn.S: Likewise.
11875
11876 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
11877
11878         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
11879         definining bcopy.
11880         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11881         Remove Prefer_SSE_for_memop.
11882         * sysdeps/x86_64/multiarch/init-arch.h: Remove
11883         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
11884         HAS_PREFER_SSE_FOR_MEMOP.
11885         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11886         memset-x86-64.
11887         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
11888         Remove bzero, memset ifunc support.
11889         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
11890         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
11891         * sysdeps/x86_64/multiarch/memset.S: Likewise.
11892         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
11893
11894 2013-03-11  Andreas Schwab  <schwab@suse.de>
11895
11896         [BZ #15234]
11897         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
11898         by SHLIB_COMPAT.
11899         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
11900         (GLIBC_2.16): Remove pthread_atfork.
11901
11902 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
11903
11904         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
11905         (ptestcases.h): Likewise.
11906
11907 2013-03-08  Roland McGrath  <roland@hack.frob.com>
11908
11909         * Makeconfig ($(common-objpfx)config.status): Depend on
11910         sysdeps/*/preconfigure{,.in} too.
11911
11912 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
11913
11914         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
11915         (__free_hook): Use void * instead of __malloc_ptr_t.
11916         (__malloc_hook): Likewise.
11917         (__realloc_hook): Likewise.
11918         (__memalign_hook): Likewise.
11919         (__after_morecore_hook): Likewise.
11920         * malloc/arena.c (save_malloc_hook): Likewise.
11921         (save_free_hook): Likewise.
11922         * malloc/hooks.c (malloc_hook_ini): Likewise.
11923         (realloc_hook_ini): Likewise.
11924         (memalign_hook_ini): Likewise.
11925         * malloc/malloc.c (malloc_hook_ini): Likewise.
11926         (realloc_hook_ini): Likewise.
11927         (memalign_hook_ini): Likewise.
11928         (__free_hook): Likewise.
11929         (__malloc_hook): Likewise.
11930         (__realloc_hook): Likewise.
11931         (__memalign_hook): Likewise.
11932         (__libc_malloc): Likewise.
11933         (__libc_free): Likewise.
11934         (__libc_realloc): Likewise.
11935         (__libc_memalign): Likewise.
11936         (__libc_valloc): Likewise.
11937         (__libc_pvalloc): Likewise.
11938         (__libc_calloc): Likewise.
11939         (__posix_memalign): Likewise.
11940         * malloc/morecore.c (__sbrk): Likewise.
11941         (__default_morecore): Likewise.
11942
11943         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
11944
11945         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
11946         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
11947         __malloc_ptrdiff_t.
11948
11949         * malloc/malloc.h (__malloc_size_t): Remove macro.
11950         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
11951         __malloc_size_t.
11952         (old_memalign_hook): Likewise.
11953         (old_realloc_hook): Likewise.
11954         (struct hdr): Likewise.
11955         (flood): Likewise.
11956         (mallochook): Likewise.
11957         (memalignhook): Likewise.
11958         (reallochook): Likewise.
11959         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
11960         (tr_old_realloc_hook): Likewise.
11961         (tr_old_memalign_hook): Likewise.
11962         (tr_mallochook): Likewise.
11963         (tr_reallochook): Likewise.
11964         (tr_memalignhook): Likewise.
11965
11966 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11967
11968         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
11969         default_ldbl_pack and using as default implementation.
11970         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
11971         implementation.
11972         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
11973         redundant definition.
11974         (ldbl_insert_mantissa): Likewise.
11975         (ldbl_canonicalize): Likewise.
11976         (ldbl_nearbyint): Likewise.
11977         (ldbl_pack): Rename to ldbl_pack_ppc.
11978         (ldbl_unpack): Rename to ldbl_unpack_ppc.
11979         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
11980         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
11981
11982 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11983
11984         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
11985         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
11986         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
11987         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
11988         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
11989         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
11990         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
11991         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
11992
11993 2013-03-07  Andreas Jaeger  <aj@suse.de>
11994
11995         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11996         bits/mman-linux.h.
11997
11998 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
11999
12000         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
12001         Include mpa.h and declare __MPEXP.
12002         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
12003         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
12004         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
12005         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
12006         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
12007         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
12008         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
12009
12010         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
12011         (__slowpow): Use long double EXPL and LOGL functions to
12012         compute POW.
12013         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
12014         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
12015         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
12016         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
12017         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
12018         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
12019
12020         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
12021         intermediate variable to calculate exponent.
12022         (__sqr): Likewise.
12023         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12024         Likewise.
12025         (__sqr): Likewise.
12026
12027         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
12028         [!NO__SQR]: Define __sqr.
12029         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
12030         and NO__SQR.  Remove all code except __mul and __sqr.  Include
12031         sysdeps/ieee754/dbl-64/mpa.c.
12032         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
12033
12034         [BZ #12723]
12035         * posix/Makefile (tests): Add tst-pathconf.
12036         * posix/tst-pathconf.c: New test case.
12037         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
12038         _PC_PIPE_BUF.
12039         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
12040
12041 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
12042
12043         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
12044
12045 2013-03-06  Andreas Jaeger  <aj@suse.de>
12046
12047         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
12048         definition via __MAP_ANONYMOUS.
12049
12050         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
12051         it's not part of Linux headers.
12052
12053         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
12054         (MAP_HUGE_MASK): Define.
12055
12056         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12057         Define.
12058         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12059         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12060         Define.
12061         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12062         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12063         Define.
12064         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12065         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
12066         Define.
12067         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12068
12069         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
12070         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
12071         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
12072         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
12073         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
12074         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
12075
12076         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
12077         Handle f2fs.
12078
12079         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12080         Handle f2fs and efivarfs.
12081
12082         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
12083         f2fs.
12084
12085         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
12086         (EFIVARFS_MAGIC): Add.
12087         (F2FS_LINK_MAX): Add.
12088
12089 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12090
12091         * stdio-common/vfprintf.c: Replace __builtin_expect with
12092         __glibc_unlikely.
12093
12094 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
12095
12096         [BZ #13550]
12097         * sysdeps/generic/bp-sym.h: Remove file.
12098         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
12099         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
12100         <bp-sym.h> and <bp-asm.h>.
12101         (__longjmp): Don't use BP_SYM.
12102         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
12103         and <bp-asm.h>.
12104         (memcpy): Don't use BP_SYM.
12105         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
12106         <bp-sym.h> and <bp-asm.h>.
12107         (memcpy): Don't use BP_SYM.
12108         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
12109         <bp-asm.h>.
12110         (memcpy): Don't use BP_SYM.
12111         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
12112         <bp-asm.h>.
12113         (memset): Don't use BP_SYM.
12114         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12115         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12116         (__bzero): Don't use BP_SYM.
12117         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12118         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12119         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
12120         <bp-sym.h> and <bp-asm.h>.
12121         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12122         pointers.
12123         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
12124         <bp-sym.h> and <bp-asm.h>.
12125         (memcpy): Don't use BP_SYM.
12126         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
12127         <bp-sym.h> and <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/strncmp.S: Don't include
12135         <bp-sym.h> and <bp-asm.h>.
12136         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12137         pointers.
12138         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
12139         <bp-sym.h> and <bp-asm.h>.
12140         (memcpy): Don't use BP_SYM.
12141         * sysdeps/powerpc/powerpc64/power6/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/power7/memchr.S: Don't include
12150         <bp-sym.h> and <bp-asm.h>.
12151         (__memchr): Don't use BP_SYM.
12152         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
12153         <bp-sym.h> and <bp-asm.h>.
12154         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12155         pointers.
12156         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
12157         <bp-sym.h> and <bp-asm.h>.
12158         (memcpy): Don't use BP_SYM.
12159         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
12160         <bp-sym.h> and <bp-asm.h>.
12161         (__mempcpy): Don't use BP_SYM.
12162         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
12163         <bp-sym.h> and <bp-asm.h>.
12164         (__memrchr): Don't use BP_SYM.
12165         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
12166         <bp-sym.h> and <bp-asm.h>.
12167         (memset): Don't use BP_SYM.
12168         (__bzero): Likewise.
12169         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
12170         <bp-sym.h> and <bp-asm.h>.
12171         (__rawmemchr): Don't use BP_SYM.
12172         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
12173         <bp-sym.h> and <bp-asm.h>.
12174         (__STRCMP): Don't use BP_SYM.
12175         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
12176         <bp-sym.h> and <bp-asm.h>.
12177         (strchr): Don't use BP_SYM.
12178         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
12179         <bp-sym.h> and <bp-asm.h>.
12180         (__strchrnul): Don't use BP_SYM.
12181         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
12182         <bp-sym.h> and <bp-asm.h>.
12183         (strlen): Don't use BP_SYM.
12184         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
12185         <bp-sym.h> and <bp-asm.h>.
12186         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12187         pointers.
12188         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
12189         <bp-sym.h> and <bp-asm.h>.
12190         (__strnlen): Don't use BP_SYM.
12191         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
12192         <bp-sym.h> and <bp-asm.h>.
12193         (__GI__setjmp): Don't use BP_SYM.
12194         (_setjmp): Likewise.
12195         (__sigsetjmp): Likewise.
12196         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
12197         (L(start_addresses)): Don't use BP_SYM.
12198         (_start): Likewise.
12199         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
12200         <bp-asm.h>.
12201         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
12202         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
12203         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12204         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12205         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
12206         <bp-asm.h>.
12207         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
12208         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
12209         about bounded pointers.
12210         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12211         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12212         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
12213         <bp-asm.h>.
12214         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12215         about bounded pointers.  Remove GKM FIXME comments.
12216         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12217         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
12218         <bp-asm.h>.
12219         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
12220         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
12221         Remove GKM FIXME comments.
12222         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12223         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12224         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
12225         <bp-asm.h>.
12226         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12227         about bounded pointers.  Remove GKM FIXME comment.
12228         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
12229         and <bp-asm.h>.
12230         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12231         pointers.
12232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
12233         <bp-sym.h> and <bp-asm.h>.
12234         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
12236         <bp-sym.h> and <bp-asm.h>.
12237         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12238         comment.
12239
12240 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12241
12242         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
12243         call free(NULL).
12244
12245 2013-03-05  David S. Miller  <davem@davemloft.net>
12246
12247         * po/es.po: Update from translation team.
12248
12249 2013-03-05  Andreas Jaeger  <aj@suse.de>
12250
12251         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
12252         <bits/mman-linux.h>.
12253         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12254         is fine.
12255         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
12256         <bits/mman-linux.h> to end of file.
12257         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12258         is fine.
12259         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
12260         <bits/mman-linux.h> to end of file.
12261         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12262         is fine.
12263         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
12264         <bits/mman-linux.h> to end of file.
12265
12266         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
12267         (MCL_CURRENT, MCL_FUTURE): Define here.
12268
12269 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12270
12271         [BZ #15232]
12272         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
12273         attribute_hidden.
12274         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
12275
12276 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12277
12278         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
12279         fourth parameter needed for rt_sigprocmask syscall.
12280         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
12281         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
12282         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
12283         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
12284         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
12285         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
12286
12287 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
12288
12289         [BZ #13550]
12290         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
12291         comment about bounded pointers.
12292         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
12293         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
12294
12295 2013-03-04  Andreas Jaeger  <aj@suse.de>
12296
12297         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
12298         common definitions.
12299
12300         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
12301         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
12302         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
12303         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12304         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
12305         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12306
12307 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12308
12309         [BZ #15055]
12310         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
12311         __ieee754_sqrl instead of __sqrl.
12312
12313 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
12314
12315         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
12316         * sysdeps/powerpc/fpu_control.h: ... here.
12317         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
12318         * sysdeps/powerpc/bits/fenvinline.h: ... here.
12319         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
12320         * sysdeps/powerpc/bits/mathinline.h: ... here.
12321
12322 2013-03-01  Roland McGrath  <roland@hack.frob.com>
12323
12324         * elf/dl-hwcaps.c (_dl_important_hwcaps):
12325         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
12326         to just [NEED_DL_SYSINFO_DSO].
12327         * elf/dl-support.c: Likewise.
12328         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
12329         * elf/rtld.c (dl_main): Likewise.
12330         * elf/setup-vdso.h (setup_vdso): Likewise.
12331         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
12332         * sysdeps/unix/sysv/linux/dl-sysdep.c
12333         (_dl_discover_osversion): Likewise.
12334
12335 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
12336
12337         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
12338         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12339
12340 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12341
12342         * NEWS: Mention libm performance improvements and non-x86 PI
12343         futex support.
12344
12345         * csu/libc-start.c (__pthread_initialize_minimal): Change
12346         function arguments.
12347         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12348
12349 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
12350
12351         [BZ #13550]
12352         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
12353         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
12354         <bp-sym.h> and <bp-asm.h>.
12355         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12356         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
12357         and <bp-asm.h>.
12358         (memcpy): Don't use BP_SYM.
12359         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
12360         <bp-asm.h>.
12361         (__mpn_add_n): Don't use BP_SYM.
12362         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
12363         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
12364         and <bp-asm.h>.
12365         (__mpn_addmul_1): Don't use BP_SYM.
12366         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12367         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
12368         <bp-sym.h>.
12369         (_setjmp): Don't use BP_SYM.
12370         (__novmx_setjmp): Likewise.
12371         (__GI__setjmp): Likewise.
12372         (__vmx_setjmp): Likewise.
12373         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
12374         <bp-sym.h>.
12375         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
12376         (__bzero): Don't use BP_SYM.
12377         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12378         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12379         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
12380         <bp-sym.h> and <bp-asm.h>.
12381         (memcpy): Don't use BP_SYM.
12382         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
12383         <bp-sym.h> and <bp-asm.h>.
12384         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12385         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
12386         <bp-sym.h> and <bp-asm.h>.
12387         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12388         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
12389         <bp-asm.h>.
12390         (__mpn_lshift): Don't use BP_SYM.
12391         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12392         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
12393         <bp-asm.h>.
12394         (memset): Don't use BP_SYM.
12395         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12396         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12397         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
12398         <bp-asm.h>.
12399         (__mpn_mul_1): Don't use BP_SYM.
12400         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12401         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
12402         <bp-sym.h> and <bp-asm.h>.
12403         (memcmp): Don't use BP_SYM.
12404         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
12405         <bp-sym.h> and <bp-asm.h>.
12406         (memcpy): Don't use BP_SYM.
12407         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
12408         <bp-sym.h> and <bp-asm.h>.
12409         (memset): Don't use BP_SYM.
12410         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
12411         <bp-sym.h> and <bp-asm.h>.
12412         (strncmp): Don't use BP_SYM.
12413         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
12414         <bp-sym.h> and <bp-asm.h>.
12415         (memcpy): Don't use BP_SYM.
12416         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
12417         <bp-sym.h> and <bp-asm.h>.
12418         (memset): Don't use BP_SYM.
12419         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
12420         <bp-sym.h> and <bp-asm.h>.
12421         (__memchr): Don't use BP_SYM.
12422         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
12423         <bp-sym.h> and <bp-asm.h>.
12424         (memcmp): Don't use BP_SYM.
12425         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
12426         <bp-sym.h> and <bp-asm.h>.
12427         (memcpy): Don't use BP_SYM.
12428         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
12429         <bp-sym.h> and <bp-asm.h>.
12430         (__mempcpy): Don't use BP_SYM.
12431         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
12432         <bp-sym.h> and <bp-asm.h>.
12433         (__memrchr): Don't use BP_SYM.
12434         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
12435         <bp-sym.h> and <bp-asm.h>.
12436         (memset): Don't use BP_SYM.
12437         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
12438         <bp-sym.h> and <bp-asm.h>.
12439         (__rawmemchr): Don't use BP_SYM.
12440         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
12441         <bp-sym.h> and <bp-asm.h>.
12442         (__STRCMP): Don't use BP_SYM.
12443         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
12444         <bp-sym.h> and <bp-asm.h>.
12445         (strchr): Don't use BP_SYM.
12446         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
12447         <bp-sym.h> and <bp-asm.h>.
12448         (__strchrnul): Don't use BP_SYM.
12449         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
12450         <bp-sym.h> and <bp-asm.h>.
12451         (strlen): Don't use BP_SYM.
12452         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
12453         <bp-sym.h> and <bp-asm.h>.
12454         (strncmp): Don't use BP_SYM.
12455         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
12456         <bp-sym.h> and <bp-asm.h>.
12457         (__strnlen): Don't use BP_SYM.
12458         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
12459         <bp-asm.h>.
12460         (__mpn_rshift): Don't use BP_SYM.
12461         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12462         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
12463         <bp-sym.h> and <bp-asm.h>.
12464         (__sigsetjmp): Don't use BP_SYM.
12465         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
12466         (L(start_addresses)): Don't use BP_SYM.
12467         (_start): Likewise.
12468         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
12469         <bp-asm.h>.
12470         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
12471         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12472         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12473         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
12474         <bp-asm.h>.
12475         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
12476         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12477         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12478         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
12479         <bp-asm.h>.
12480         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12481         comments.
12482         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12483         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
12484         <bp-asm.h>.
12485         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
12486         FIXME comments.
12487         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12488         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12489         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
12490         <bp-asm.h>.
12491         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12492         comment.
12493         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
12494         and <bp-asm.h>.
12495         (strncmp): Don't use BP_SYM,
12496         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
12497         <bp-asm.h>.
12498         (__mpn_sub_n): Don't use BP_SYM.
12499         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12500         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
12501         and <bp-asm.h>.
12502         (__mpn_submul_1): Don't use BP_SYM.
12503         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
12505         <bp-sym.h> and <bp-asm.h>.
12506         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
12508         <bp-sym.h> and <bp-asm.h>.
12509         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12510         comment.
12511
12512 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12513
12514         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
12515         Use ZK to minimize writes to Z.
12516         (sub_magnitudes): Simplify code a bit.
12517         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
12518         Use ZK to minimize writes to Z.
12519         (sub_magnitudes): Simplify code a bit.
12520
12521 2013-02-27  Roland McGrath  <roland@hack.frob.com>
12522
12523         * csu/gmon-start.c: Add special exception to license text.
12524
12525 2013-02-27  Richard Henderson  <rth@redhat.com>
12526
12527         * scripts/config.guess: Update from config.git.
12528         * scripts/config.sub: Likewise.
12529
12530 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
12531
12532         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
12533
12534         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
12535
12536         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
12537
12538         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
12539
12540         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
12541
12542 2013-02-26  Roland McGrath  <roland@hack.frob.com>
12543
12544         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
12545         [$(build-shared = yes].
12546
12547 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12548
12549         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
12550         (__mul): Reduce iterations for calculating mantissa.
12551
12552         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
12553         MPTWO.
12554         (__mpranred): Likewise.
12555
12556         [BZ #15160]
12557         * malloc/memusagestat.c (main): Draw graphs for heap and stack
12558         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
12559
12560 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12561
12562         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
12563         Define __attribute__.
12564
12565 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12566
12567         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
12568         unused.
12569         * posix/regex_internal.h (__attribute): Remove.
12570         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
12571         (re_string_context_at): Likewise.
12572         (bitset_not): Use __attribute__ and mark function as possibly
12573         unused.
12574         (bitset_merge): Likewise.
12575         (bitset_mask): Likewise.
12576         (re_string_char_size_at): Likewise.
12577         (re_string_wchar_at): Likewise.
12578         (re_string_elem_size_at): Likewise.
12579
12580 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12581
12582         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
12583         code.
12584         (cc32): Likewise.
12585
12586         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
12587         (__acr): Likewise.
12588         (__cpy): Likewise.
12589         (norm): Likewise.
12590         (denorm): Likewise.
12591         (__dbl_mp): Likewise.
12592         (add_magnitudes): Likewise.
12593         (sub_magnitudes): Likewise.
12594         (__mul): Likewise.
12595         (__inv): Likewise.
12596
12597         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
12598         style.
12599
12600         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
12601         style.
12602
12603         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
12604         code.
12605
12606         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
12607         up changes with default code.
12608         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
12609         Likewise.
12610
12611 2013-02-24  Allan McRae  <allan@archlinux.org>
12612
12613         * manual/socket.texi (The Internet Namespace): Order menu items
12614         to match that in the file.
12615
12616         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
12617         node listing of the info page menu.
12618
12619 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
12620
12621         [BZ #13550]
12622         * sysdeps/i386/bp-asm.h: Remove file.
12623         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12624         (PARMS): Do not use macros from bp-asm.h.
12625         (S1): Likewise.
12626         (S2): Likewise.
12627         (SIZE): Likewise.
12628         (__mpn_add_n): Do not use BP_SYM
12629         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
12630         "bp-asm.h".
12631         (PARMS): Do not use macros from bp-asm.h.
12632         (S1): Likewise.
12633         (SIZE): Likewise.
12634         (__mpn_addmul_1): Do not use BP_SYM
12635         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
12636         "bp-asm.h".
12637         (PARMS): Do not use macros from bp-asm.h.
12638         (SIGMSK): Likewise.
12639         (_setjmp): Likewise.  Do not use BP_SYM.
12640         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
12641         "bp-asm.h".
12642         (PARMS): Do not use macros from bp-asm.h.
12643         (SIGMSK): Likewise.
12644         (setjmp): Likewise.  Do not use BP_SYM.
12645         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
12646         "bp-asm.h".
12647         (PARMS): Do not use macros from bp-asm.h.
12648         (__frexp): Do not use BP_SYM.
12649         (frexp): Likewise.
12650         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
12651         "bp-asm.h".
12652         (PARMS): Do not use macros from bp-asm.h.
12653         (__frexpf): Do not use BP_SYM.
12654         (frexpf): Likewise.
12655         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
12656         "bp-asm.h".
12657         (PARMS): Do not use macros from bp-asm.h.
12658         (__frexpl): Do not use BP_SYM.
12659         (frexpl): Likewise.
12660         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
12661         "bp-asm.h".
12662         (PARMS): Do not use macros from bp-asm.h.
12663         (__remquo): Do not use BP_SYM.
12664         (remquo): Likewise.
12665         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
12666         "bp-asm.h".
12667         (PARMS): Do not use macros from bp-asm.h.
12668         (__remquof): Do not use BP_SYM.
12669         (remquof): Likewise.
12670         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
12671         "bp-asm.h".
12672         (PARMS): Do not use macros from bp-asm.h.
12673         (__remquol): Do not use BP_SYM.
12674         (remquol): Likewise.
12675         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
12676         "bp-asm.h".
12677         (PARMS): Do not use macros from bp-asm.h.
12678         (DEST): Likewise.
12679         (SRC): Likewise.
12680         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
12681         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
12682         "bp-asm.h".
12683         (PARMS): Do not use macros from bp-asm.h.
12684         (strlen): Do not use BP_SYM.
12685         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
12686         "bp-asm.h".
12687         (PARMS): Do not use macros from bp-asm.h.
12688         (S1): Likewise.
12689         (S2): Likewise.
12690         (SIZE): Likewise.
12691         (__mpn_add_n): Do not use BP_SYM.
12692         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
12693         "bp-asm.h".
12694         (PARMS): Do not use macros from bp-asm.h.
12695         (S1): Likewise.
12696         (SIZE): Likewise.
12697         (__mpn_addmul_1): Do not use BP_SYM.
12698         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
12699         weak_alias.
12700         (bzero): Likewise.
12701         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
12702         "bp-asm.h".
12703         (PARMS): Do not use macros from bp-asm.h.
12704         (S): Likewise.
12705         (SIZE): Likewise.
12706         (__mpn_lshift): Do not use BP_SYM.
12707         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
12708         "bp-asm.h".
12709         (PARMS): Do not use macros from bp-asm.h.
12710         (DEST): Likewise.
12711         (SRC): Likewise.
12712         (LEN): Likewise.
12713         (memcpy): Likewise.  Do not use BP_SYM.
12714         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
12715         libc_hidden_def and weak_alias.
12716         (mempcpy): Do not use BP_SYM in weak_alias.
12717         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
12718         "bp-asm.h".
12719         (PARMS): Do not use macros from bp-asm.h.
12720         (DEST): Likewise.
12721         (LEN): Likewise.
12722         [!BZERO_P] (CHR): Likewise.
12723         (memset): Likewise.  Do not use BP_SYM.
12724         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
12725         "bp-asm.h".
12726         (PARMS): Do not use macros from bp-asm.h.
12727         (S1): Likewise.
12728         (SIZE): Likewise.
12729         (__mpn_mul_1): Do not use BP_SYM.
12730         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
12731         "bp-asm.h".
12732         (PARMS): Do not use macros from bp-asm.h.
12733         (S): Likewise.
12734         (SIZE): Likewise.
12735         (__mpn_rshift): Do not use BP_SYM.
12736         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
12737         "bp-asm.h".
12738         (PARMS): Do not use macros from bp-asm.h.
12739         (STR): Likewise.
12740         (CHR): Likewise.
12741         (strchr): Likewise.  Do not use BP_SYM.
12742         (index): Do not use BP_SYM in weak_alias.
12743         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
12744         "bp-asm.h".
12745         (PARMS): Do not use macros from bp-asm.h.
12746         (DEST): Likewise.
12747         (SRC): Likewise.
12748         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
12749         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
12750         "bp-asm.h".
12751         (PARMS): Do not use macros from bp-asm.h.
12752         (strlen): Do not use BP_SYM.
12753         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
12754         "bp-asm.h".
12755         (PARMS): Do not use macros from bp-asm.h.
12756         (S1): Likewise.
12757         (S2): Likewise.
12758         (SIZE): Likewise.
12759         (__mpn_sub_n): Do not use BP_SYM.
12760         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
12761         "bp-asm.h".
12762         (PARMS): Do not use macros from bp-asm.h.
12763         (S1): Likewise.
12764         (SIZE): Likewise.
12765         (__mpn_submul_1): Do not use BP_SYM.
12766         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
12767         "bp-asm.h".
12768         (PARMS): Do not use macros from bp-asm.h.
12769         (S1): Likewise.
12770         (S2): Likewise.
12771         (SIZE): Likewise.
12772         (__mpn_add_n): Do not use BP_SYM.
12773         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
12774         weak_alias.
12775         (bzero): Likewise.
12776         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
12777         "bp-asm.h".
12778         (PARMS): Do not use macros from bp-asm.h.
12779         (BLK2): Likewise.
12780         (LEN): Likewise.
12781         (memcmp): Do not use BP_SYM.
12782         (bcmp): Do not use BP_SYM in weak_alias.
12783         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
12784         "bp-asm.h".
12785         (PARMS): Do not use macros from bp-asm.h.
12786         (DEST): Likewise.
12787         (SRC): Likewise.
12788         (LEN): Likewise.
12789         (memcpy): Likewise.  Do not use BP_SYM.
12790         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
12791         "bp-asm.h".
12792         (PARMS): Do not use macros from bp-asm.h.
12793         (DEST): Likewise.
12794         (SRC): Likewise.
12795         (LEN): Likewise.
12796         (memmove): Likewise.  Do not use BP_SYM.
12797         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
12798         "bp-asm.h".
12799         (PARMS): Do not use macros from bp-asm.h.
12800         (DEST): Likewise.
12801         (SRC): Likewise.
12802         (LEN): Likewise.
12803         (__mempcpy): Likewise.  Do not use BP_SYM.
12804         (mempcpy): Do not use BP_SYM in weak_alias.
12805         * sysdeps/i386/i686/memset.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         (LEN): Likewise.
12810         [!BZERO_P] (CHR): Likewise.
12811         (memset): Likewise.  Do not use BP_SYM.
12812         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
12813         "bp-asm.h".
12814         (PARMS): Do not use macros from bp-asm.h.
12815         (STR2): Likewise.
12816         (strcmp): Do not use BP_SYM.
12817         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
12818         "bp-asm.h".
12819         (PARMS): Do not use macros from bp-asm.h.
12820         (STR): Likewise.
12821         (DELIM): Likewise.
12822         [USE_AS_STRTOK_R] (SAVE): Likewise.
12823         (FUNCTION): Likewise.  Do not use BP_SYM.
12824         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
12825         aliases.
12826         (strtok_r): Likewise.
12827         (__GI___strtok_r): Likewise.
12828         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12829         (PARMS): Do not use macros from bp-asm.h.
12830         (S): Likewise.
12831         (SIZE): Likewise.
12832         (__mpn_lshift): Do not use BP_SYM.
12833         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12834         (PARMS): Do not use macros from bp-asm.h.
12835         (STR): Likewise.
12836         (CHR): Likewise.
12837         (__memchr): Do not use BP_SYM.
12838         (memchr): Do not use BP_SYM in weak_alias.
12839         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12840         (PARMS): Do not use macros from bp-asm.h.
12841         (BLK2): Likewise.
12842         (LEN): Likewise.
12843         (memcmp): Do not use BP_SYM.
12844         (bcmp): Do not use BP_SYM in weak_alias.
12845         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
12846         (PARMS): Do not use macros from bp-asm.h.
12847         (S1): Likewise.
12848         (SIZE): Likewise.
12849         (__mpn_mul_1): Do not use BP_SYM.
12850         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
12851         "bp-asm.h".
12852         (PARMS): Do not use macros from bp-asm.h.
12853         (STR): Likewise.
12854         (CHR): Likewise.
12855         (__rawmemchr): Do not use BP_SYM.
12856         (rawmemchr): Do not use BP_SYM in weak_alias.
12857         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12858         (PARMS): Do not use macros from bp-asm.h.
12859         (S): Likewise.
12860         (SIZE): Likewise.
12861         (__mpn_rshift): Do not use BP_SYM.
12862         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12863         (PARMS): Do not use macros from bp-asm.h.
12864         (SIGMSK): Likewise.
12865         (__sigsetjmp): Likewise.  Do not use BP_SYM.
12866         * sysdeps/i386/start.S: Do not include "bp-sym.h".
12867         (_start): Do not use BP_SYM.
12868         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
12869         (PARMS): Do not use macros from bp-asm.h.
12870         (DEST): Likewise.
12871         (SRC): Likewise.
12872         (__stpcpy): Likewise.  Do not use BP_SYM.
12873         (stpcpy): Do not use BP_SYM in weak_alias.
12874         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
12875         "bp-asm.h".
12876         (PARMS): Do not use macros from bp-asm.h.
12877         (DEST): Likewise.
12878         (SRC): Likewise.
12879         (LEN): Likewise.
12880         (__stpncpy): Likewise.  Do not use BP_SYM.
12881         (stpncpy): Do not use BP_SYM in weak_alias.
12882         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12883         (PARMS): Do not use macros from bp-asm.h.
12884         (STR): Likewise.
12885         (CHR): Likewise.
12886         (strchr): Likewise.  Do not use BP_SYM.
12887         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
12888         "bp-asm.h".
12889         (PARMS): Do not use macros from bp-asm.h.
12890         (STR): Likewise.
12891         (CHR): Likewise.
12892         (__strchrnul): Likewise.  Do not use BP_SYM.
12893         (strchrnul): Do not use BP_SYM in weak_alias.
12894         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
12895         "bp-asm.h".
12896         (PARMS): Do not use macros from bp-asm.h.
12897         (STOP): Likewise.
12898         (strcspn): Do not use BP_SYM.
12899         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
12900         "bp-asm.h".
12901         (PARMS): Do not use macros from bp-asm.h.
12902         (STR): Likewise.
12903         (STOP): Likewise.
12904         (strpbrk): Likewise.  Do not use BP_SYM.
12905         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
12906         "bp-asm.h".
12907         (PARMS): Do not use macros from bp-asm.h.
12908         (STR): Likewise.
12909         (CHR): Likewise.
12910         (strrchr): Likewise.  Do not use BP_SYM.
12911         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
12912         (PARMS): Do not use macros from bp-asm.h.
12913         (SKIP): Likewise.
12914         (strspn): Do not use BP_SYM.
12915         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
12916         (PARMS): Do not use macros from bp-asm.h.
12917         (STR): Likewise.
12918         (DELIM): Likewise.
12919         (SAVE): Likewise.
12920         (FUNCTION): Likewise.  Do not use BP_SYM.
12921         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
12922         aliases.
12923         (strtok_r): Likewise.
12924         (__GI___strtok_r): Likewise.
12925         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12926         (PARMS): Do not use macros from bp-asm.h.
12927         (S1): Likewise.
12928         (S2): Likewise.
12929         (SIZE): Likewise.
12930         (__mpn_sub_n): Do not use BP_SYM.
12931         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
12932         "bp-asm.h".
12933         (PARMS): Do not use macros from bp-asm.h.
12934         (S1): Likewise.
12935         (SIZE): Likewise.
12936         (__mpn_submul_1): Do not use BP_SYM.
12937         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
12938         <bp-sym.h>.
12939         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
12940         and <bp-asm.h>.
12941         (PARMS): Do not use macros from bp-asm.h.
12942         (FLAGS): Likewise.
12943         (PTID): Likewise.
12944         (TLS): Likewise.
12945         (CTID): Likewise.
12946         (__clone): Do not use BP_SYM.
12947         (clone): Do not use BP_SYM in weak_alias.
12948         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
12949         and <bp-asm.h>.
12950         (PARMS): Do not use macros from bp-asm.h.
12951         (LEN): Likewise.
12952         (__mmap64): Do not use BP_SYM.
12953         (mmap64): Do not use BP_SYM in weak_alias.
12954         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
12955         <bp-sym.h> and <bp-asm.h>.
12956         (PARMS): Do not use macros from bp-asm.h.
12957         (__posix_fadvise64_l64): Do not use BP_SYM.
12958         * sysdeps/unix/sysv/linux/i386/semtimedop.S
12959         (PARMS): Do not use macros from bp-asm.h.
12960         (NSOPS): Likewise.
12961         (semtimedop): Do not use BP_SYM.
12962         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
12963         and <bp-asm.h>.
12964
12965 2013-02-21  Allan McRae  <allan@archlinux.org>
12966
12967         * manual/message.texi (Charset conversion in gettext):
12968         Move @end statement to beginning of line.
12969
12970 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12971
12972         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
12973         static.
12974         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
12975         Likewise.
12976
12977         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
12978         (denorm): Likewise.
12979         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
12980         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
12981
12982 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12983
12984         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
12985         tail-call to the resolved function if pltexit isn't needed.
12986
12987 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
12988
12989         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
12990         or Y being zero as being unlikely.
12991         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12992         Likewise.
12993
12994 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
12995
12996         * manual/nss.texi (System Databases and Name Service Switch):
12997         Remove frobnicate @pxref.
12998
12999 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
13000
13001         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
13002         __attribute__ ((unused)) to __attribute__ ((__unused__)).
13003
13004 2013-02-20  Petr Machata  <pmachata@redhat.com>
13005
13006         * elf/elf.h (R_ARM_TARGET1): New macro.
13007         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
13008         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
13009         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
13010         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
13011         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
13012         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
13013         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
13014         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
13015         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
13016         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
13017         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
13018         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
13019         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
13020         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
13021         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
13022         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
13023         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
13024         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
13025         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
13026         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
13027         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
13028         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
13029         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
13030         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
13031         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
13032         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
13033         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
13034         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
13035         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
13036         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
13037         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
13038         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
13039         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
13040         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
13041         (R_ARM_THM_GOT_BREL12): Likewise.
13042         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
13043         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
13044         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
13045         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
13046         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
13047         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
13048         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
13049         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
13050         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
13051
13052 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
13053
13054         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
13055         __attribute_used__ to __attribute__ ((unused)).
13056
13057 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
13058
13059         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
13060         powerpc mpa.c.
13061         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
13062         comment formatting.
13063         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
13064
13065 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
13066
13067         [BZ #13550]
13068         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
13069         Remove macro.
13070         (ENTER): Remove both macro definitions.
13071         (LEAVE): Likewise.
13072         (CHECK_BOUNDS_LOW): Likewise.
13073         (CHECK_BOUNDS_HIGH): Likewise.
13074         (CHECK_BOUNDS_BOTH): Likewise.
13075         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
13076         (RETURN_BOUNDED_POINTER): Likewise.
13077         (RETURN_NULL_BOUNDED_POINTER): Likewise.
13078         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
13079         (POP_ERRNO_LOCATION_RETURN): Likewise.
13080         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
13081         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13082         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
13083         macros.
13084         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13085         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
13086         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
13087         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
13088         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
13089         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
13090         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
13091         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
13092         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
13093         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
13094         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
13095         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
13096         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13097         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
13098         removed macros.
13099         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13100         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
13101         macros.
13102         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13103         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
13104         * sysdeps/i386/i586/memset.S (memset): Likewise.
13105         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
13106         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13107         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
13108         macros.
13109         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13110         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
13111         Change uses of L(2) to L(out).
13112         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
13113         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
13114         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
13115         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13116         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
13117         removed macros.
13118         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13119         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
13120         macros.
13121         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13122         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
13123         (RETURN): Do not use macro LEAVE.
13124         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
13125         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
13126         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
13127         * sysdeps/i386/i686/memset.S (memset): Likewise.
13128         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
13129         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
13130         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
13131         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
13132         Likewise.
13133         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13134         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
13135         L(1_2) and L(1_3) into L(1).
13136         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13137         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
13138         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13139         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
13140         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
13141         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
13142         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
13143         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13144         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
13145         macros.
13146         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
13147         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13148         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
13149         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
13150         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
13151         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
13152         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
13153         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
13154         * sysdeps/i386/strcspn.S (strcspn): Likewise.
13155         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
13156         * sysdeps/i386/strrchr.S (strrchr): Likewise.
13157         * sysdeps/i386/strspn.S (strspn): Likewise.
13158         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
13159         conditional code.
13160         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13161         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
13162         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13163         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
13164         L(1_3) into L(1_1).
13165         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
13166         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13167         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
13168         macros.
13169         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13170
13171 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
13172
13173         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
13174         macro.
13175
13176 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13177
13178         * math/atest-exp.c (exp_mpn): Remove ROUND.
13179         * math/atest-exp2.c (exp_mpn): Likewise.
13180         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
13181
13182         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
13183         * stdlib/tst-tls-atexit-lib.c: Likewise.
13184         * stdlib/tst-tls-atexit.c: Likewise.
13185
13186 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13187
13188         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
13189         and __attribute_alloc_size__.
13190
13191 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13192
13193         * include/programs/xmalloc.h: Change __attribute_alloc_size to
13194         __attribute_alloc_size__.
13195         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
13196         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
13197
13198 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13199
13200         * include/programs/xmalloc.h: New file.
13201         * catgets/gencat.c: Include it.
13202         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
13203         * elf/pldd.c: Likewise.
13204         * iconv/iconv_charmap.c: Likewise.
13205         * iconv/iconvconfig.c: Likewise.
13206         * iconv/strtab.c: Likewise.
13207         * locale/programs/locale.c: Likewise.
13208         * locale/programs/localedef.h: Likewise.
13209         * locale/programs/simple-hash.c: Likewise.
13210         * nscd/nscd.h: Likewise.
13211         * nss/makedb.c: Likewise.
13212         * sysdeps/generic/ldconfig.h: Likewise.
13213
13214 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13215
13216         * Versions.def: Add GLIBC_2.18.
13217         * include/link.h (struct link_map): New member l_tls_dtor_count.
13218         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
13219         (__call_tls_dtors): Likewise.
13220         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
13221         __cxa_thread_atexit_impl.
13222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13223         Likewise.
13224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13225         Likewise.
13226         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
13227         Likewise.
13228         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
13229         Likewise.
13230         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13231         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
13232         Likewise.
13233         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
13234         Likewise.
13235         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13236         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13237         Likewise.
13238         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
13239         (tests): Add test case tst-tls-atexit.
13240         (modules-names): Add shared library for tst-tls-atexit.
13241         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
13242         (GLIBC_PRIVATE): Add __call_tls_dtors.
13243         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
13244         for libstdc++.
13245         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
13246         * stdlib/tst-tls-atexit.c: New test case.
13247         * stdlib/tst-tls-atexit-lib.c: New test case.
13248
13249         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
13250
13251         * elf/Versions (ld): Add _dl_find_dso_for_object.
13252         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
13253         * elf/dl-open.c (_dl_find_dso_for_object): New function.
13254         (dl_open_worker): Use _dl_find_dso_for_object.
13255         * elf/dl-sym.c (do_sym): Likewise.
13256         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
13257
13258 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13259
13260         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
13261         Syntactic changes only.
13262         (_dl_runtime_profile): Do a tail-call to the resolved function.
13263
13264 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
13265
13266         [BZ #13550]
13267         * sysdeps/x86_64/bp-asm.h: Remove file.
13268         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
13269         <bp-sym.h> and <bp-asm.h>.
13270         (__clone): Do not use BP_SYM.
13271         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
13272         <bp-sym.h> and <bp-asm.h>.
13273         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13274         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
13275         "bp-asm.h".
13276         (_setjmp): Do not use BP_SYM.
13277         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
13278         "bp-asm.h".
13279         (setjmp): Do not use BP_SYM.
13280         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
13281         libc_hidden_def.
13282         (mempcpy): Do not use BP_SYM in weak_alias.
13283         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
13284         "bp-asm.h".
13285         (strchr): Do not use BP_SYM.
13286         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
13287         "bp-asm.h".
13288         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
13289         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
13290         (_start): Do not use BP_SYM.
13291         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
13292         "bp-asm.h".
13293         (strcat): Do not use BP_SYM.
13294         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
13295         "bp-asm.h".
13296         (STRCMP): Do not use BP_SYM.
13297         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
13298         "bp-asm.h".
13299         (STRCPY): Do not use BP_SYM.
13300         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
13301         "bp-asm.h".
13302         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
13303         "bp-asm.h".
13304         (FUNCTION): Do not use BP_SYM.
13305         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
13306         weak_alias.
13307         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
13308
13309 2013-02-17  Andreas Jaeger  <aj@suse.de>
13310
13311         * time/Versions: Sort entries.
13312         * string/Versions: Likewise.
13313         * resolv/Versions: Likewise.
13314         * posix/Versions: Likewise.
13315         * iconv/Versions: Likewise.
13316         * elf/Versions: Likewise.
13317         * wcsmbs/Versions: Likewise.
13318
13319 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13320
13321         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
13322         loop termination condition.
13323
13324         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
13325         variable to calculate EZ.
13326         (__sqr): Likewise.
13327
13328         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
13329         the lower precision input.
13330
13331 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
13332
13333         [BZ #13550]
13334         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
13335         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
13336         (run-via-rtld-prefix): Do not handle %-bp tests.
13337         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
13338         (all-object-suffixes): Remove .ob.
13339         (bppfx): Remove variable.
13340         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
13341         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
13342         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
13343         [$(build-bounded) = yes] (libtype.ob): Likewise.
13344         * Makerules (elide-routines.ob): Remove variable.
13345         (do-tests-clean): Do not handle *-bp.out.
13346         (common-mostlyclean): Do not handle *-bp and *-bp.out.
13347         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
13348         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
13349         (tests): Do not include $(tests-bp.out).
13350         (xtests): Do not include $(xtests-bp.out).
13351         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
13352         [$(build-bounded) = yes] ($(addprefix
13353         $(objpfx),$(binaries-bounded))): Remove rule.
13354         ($(objpfx)%-bp.out): Remove rule.
13355         * config.make.in (build-bounded): Remove variable.
13356         * crypt/Makefile [$(build-bounded) = yes]
13357         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
13358         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
13359         append to variable.
13360         [$(build-bounded) = yes] (install-lib): Likewise.
13361         [$(build-bounded) = yes] (generated): Likewise.
13362         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
13363         Remove rule.
13364         * intl/Makefile [$(build-bounded) = yes]
13365         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
13366         * math/Makefile [$(build-bounded) = yes]
13367         ($(tests:%=$(objpfx)%-bp): Likewise.
13368         * misc/Makefile [$(build-bounded) = yes]
13369         ($(objpfx)tst-tsearch-bp): Likewise.
13370         * nptl/Makeconfig (bounded-thread-library): Remove variable.
13371         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
13372         Remove dependency.
13373         * string/Makefile (o-objects.ob): Remove variable.
13374         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
13375         (CFLAGS-.ob): Remove variable.
13376         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
13377         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
13378         both definitions of variable.
13379         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
13380         (ASFLAGS-.ob): Remove variable.
13381
13382 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
13383
13384         [BZ #13550]
13385         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
13386         Remove __BOUNDED_POINTERS__ from condition.
13387         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
13388         * string/bits/string2.h [!__NO_STRING_INLINES &&
13389         !__BOUNDED_POINTERS__]: Likewise.
13390         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
13391         Likewise.
13392         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
13393         Remove conditional code.
13394         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
13395         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
13396         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
13397         condition.
13398
13399         [BZ #13550]
13400         * csu/libc-start.c: Do not include <bp-sym.h>.
13401         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
13402         * elf/dl-open.c: Do not include <bp-sym.h>.
13403         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
13404         * math/fegetenv.c: Do not include <bp-sym.h>.
13405         (fegetenv): Do not use BP_SYM in versioned symbols.
13406         * nptl/sysdeps/pthread/bits/libc-lockP.h
13407         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
13408         <bp-sym.h>.
13409         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13410         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
13411         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13412         (__pthread_mutex_destroy): Likewise.
13413         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13414         (__pthread_mutex_lock): Likewise.
13415         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13416         (__pthread_mutex_trylock): Likewise.
13417         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13418         (__pthread_mutex_unlock): Likewise.
13419         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13420         (__pthread_mutexattr_init): Likewise.
13421         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13422         (__pthread_mutexattr_destroy): Likewise.
13423         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13424         (__pthread_mutexattr_settype): Likewise.
13425         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13426         (__pthread_rwlock_init): Likewise.
13427         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13428         (__pthread_rwlock_destroy): Likewise.
13429         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13430         (__pthread_rwlock_rdlock): Likewise.
13431         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13432         (__pthread_rwlock_tryrdlock): Likewise.
13433         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13434         (__pthread_rwlock_wrlock): Likewise.
13435         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13436         (__pthread_rwlock_trywrlock): Likewise.
13437         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13438         (__pthread_rwlock_unlock): Likewise.
13439         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13440         (__pthread_key_create): Likewise.
13441         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13442         (__pthread_setspecific): Likewise.
13443         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13444         (__pthread_getspecific): Likewise.
13445         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
13446         Likewise.
13447         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13448         (_pthread_cleanup_push_defer): Likewise.
13449         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13450         (_pthread_cleanup_pop_restore): Likewise.
13451         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13452         (pthread_setcancelstate): Likewise.
13453         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
13454         <bp-sym.h>.
13455         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
13456         (memchr): Do not use BP_SYM in weak_alias.
13457         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
13458         (fegetenv): Do not use BP_SYM in versioned symbols.
13459         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
13460         (fesetenv): Do not use BP_SYM in versioned symbols.
13461         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13462         (feupdateenv): Do not use BP_SYM in versioned symbols.
13463         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13464         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13465         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
13466         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
13467         (open64): Do not use BP_SYM in weak_alias.
13468         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
13469         (fegetenv): Do not use BP_SYM in versioned symbols.
13470         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
13471         (fesetenv): Do not use BP_SYM in versioned symbols.
13472         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13473         (feupdateenv): Do not use BP_SYM in versioned symbols.
13474         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
13475         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
13476         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
13477         (feraiseexcept): Do not use BP_SYM in versioned symbols.
13478         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13479         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13480         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
13481         <bp-sym.h>.
13482         (__libc_start_main): Do not use BP_SYM.
13483
13484 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13485
13486         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
13487         redundant return line.
13488         (norm): Likewise.
13489         (denorm): Likewise.
13490         (dbl_mp): Likewise.
13491         (sub_magnitudes): Likewise.
13492         (__add): Likewise.
13493         (__sub): Likewise.
13494         (__mul): Likewise.
13495         (__inv): Likewise.
13496         (__dvd): Likewise.
13497         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
13498         (norm): Likewise.
13499         (denorm): Likewise.
13500         (dbl_mp): Likewise.
13501         (sub_magnitudes): Likewise.
13502         (__add): Likewise.
13503         (__sub): Likewise.
13504         (__mul): Likewise.
13505         (__inv): Likewise.
13506         (__dvd): Likewise.
13507
13508         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
13509         instead of __mul.
13510         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13511         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
13512         (cc32): Likewise.
13513
13514         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
13515         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
13516         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
13517         of __mul for squares.
13518         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
13519         function
13520         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
13521         Likewise.
13522         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
13523         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13524
13525 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
13526
13527         [BZ #13550]
13528         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
13529         code.
13530         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
13531         prototype or function definition.  Rename ubp_* variables and
13532         parameters.  Remove argv definitions conditional on
13533         [__BOUNDED_POINTERS__].
13534         * debug/backtrace.c (__backtrace): Do not use __unbounded.
13535         * elf/dl-runtime.c (_dl_fixup): Likewise.
13536         * include/set-hooks.h (RUN_HOOK): Likewise.
13537         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
13538         definition.
13539         * string/strcpy.c (strcpy): Do not use __unbounded.
13540         * sysdeps/generic/frame.h (struct layout): Likewise.
13541         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
13542         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
13543         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
13544         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
13545         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
13546         (__backtrace): Likewise.
13547         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
13548         use __ptrvalue.
13549         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
13550         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
13551         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
13552         Likewise.
13553         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
13554         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
13555         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
13556         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13557         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
13558         Do not use __unbounded.
13559         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
13560         Rename __unboundedrlimits parameter to rlimits in prototype.
13561         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
13562         Do not use __unbounded.
13563         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
13564         not use __ptrvalue.
13565         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13566         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
13567         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13568         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
13569         __ptrvalue or __unbounded.
13570         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
13571         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
13572         use __unbounded.
13573         (__new_msgctl): Do not use __ptrvalue.
13574         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
13575         __unbounded.
13576         (__libc_msgrcv): Do not use __ptrvalue.
13577         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
13578         startup_info): Do not use __unbounded.
13579         (__libc_start_main): Likewise.  Rename ubp_* variables and
13580         parameters.  Remove argv definitions conditional on
13581         [__BOUNDED_POINTERS__].
13582         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
13583         __ptrvalue.
13584         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
13585         use __unbounded.
13586         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
13587         or __ptrvalue.
13588         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
13589         use __unbounded.
13590         (__new_shmctl): Do not use __ptrvalue.
13591         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
13592         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
13593         Likewise.
13594         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
13595         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
13596         (__libc_sigaction): Likewise.
13597         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
13598         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
13599         Likewise.
13600         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13601
13602 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
13603
13604         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
13605
13606         * string/mempcpy.c: Implement by calling memcpy.
13607
13608 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13609
13610         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
13611
13612         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
13613         evaluation.
13614
13615         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
13616         values in the mantissa.
13617
13618         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
13619         minimize writes to Z.
13620         (sub_magnitudes): Simplify code a bit.
13621
13622 2013-02-12  Roland McGrath  <roland@hack.frob.com>
13623
13624         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
13625         from the message.  The linker prefixes all warnings with that already.
13626
13627 2013-02-12  Andreas Schwab  <schwab@suse.de>
13628
13629         [BZ #15078]
13630         * posix/regexec.c (extend_buffers): Add parameter min_len.
13631         (check_matching): Pass minimum needed length.
13632         (clean_state_log_if_needed): Likewise.
13633         (get_subexp): Likewise.
13634         * posix/Makefile (tests): Add bug-regex34.
13635         (bug-regex34-ENV): Define.
13636         * posix/bug-regex34.c: New file.
13637
13638         [BZ #11561]
13639         * posix/regcomp.c (parse_bracket_exp): When looking up collating
13640         elements compare against the byte sequence of it, not its name.
13641         * posix/Makefile (tests): Add bug-regex35.
13642         (bug-regex35-ENV): Define.
13643         * posix/bug-regex35.c: New file.
13644
13645 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13646
13647         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
13648         comment.
13649         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
13650         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
13651         (CHECK_EOL): Add undef.
13652
13653 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
13654
13655         * bits/stdlib-bsearch.h: New file.
13656         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
13657         * stdlib/stdlib.h: Likewise.
13658
13659 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13660
13661         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
13662         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
13663         declaration.
13664         * manual/search.texi (Array Search Function): Add missing const in
13665         lfind prototype.
13666         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
13667         declaration to use rlim_t.
13668         (Basic Scheduling Functions): Remove erroneous const from
13669         sched_getparam prototype.  Remove erroneous * from
13670         sched_get_priority_max and sched_get_priority_min prototypes.
13671         (Resource Usage): Fix summary @comment on vtimes to refer to
13672         sys/vtimes.h rather than vtimes.h.
13673         Add missing *s in vtimes prototype.
13674         (Limits on Resources): Fix ulimit prototype to return long int.
13675         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
13676         prototypes to use long int rather than double.
13677         (BSD Random): Fix initstate and setstate to use char *, not void *.
13678         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
13679         prototype to make second argument 'struct aiocb64 *const[]'.
13680         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
13681         (Status of AIO Operations): Remove erroneous const in aio_return and
13682         aio_return64 prototypes.
13683         (Synchronizing I/O): Fix sync prototype to return void.
13684         * manual/startup.texi (Suboptions): Remove an erroneous const in
13685         getsubopt prototype.
13686         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
13687         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
13688         use size_t rather than int.
13689         (Scanning All Users): Likewise for getpwent_r.
13690         (Setting Groups): Add missing const to setgroups prototype.
13691         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
13692         * manual/socket.texi (Host Names): Fix gethostbyaddr and
13693         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
13694         'const void *' rather than 'const char *'.
13695         (Host Address Functions): Likewise for inet_ntop.
13696         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
13697         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
13698         ssize_t for return value.
13699         (Sending Data): Likewise for send, sendto, sendmsg.
13700         (Socket Option Functions): Add a missing const in setsockopt prototype.
13701         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
13702         use wchar_t for the argument.
13703         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
13704         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
13705         take no arguments.
13706         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
13707         double/float/long double for second argument.
13708         Fix return types of significand, significandf, significandl.
13709         * manual/filesys.texi (Setting Permissions): Use mode_t for second
13710         argument in fchmod prototype.
13711         (File Owner): Use uid_t and gid_t in fchown prototype.
13712         (File Times): Add const to utimes, futimes, and lutimes prototypes.
13713         (Making Special Files): Use mode_t and dev_t in mknod prototype.
13714         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
13715         use 'const struct dirent **' as argument types to CMP function pointer
13716         argument.
13717         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
13718         (File Times): Fix summary magic @comment for struct utimbuf and utime
13719         to refer to utime.h, not time.h.
13720         * manual/string.texi (Argz Functions): Add missing const in
13721         argz_extract and argz_next prototypes.
13722         (Finding Tokens in a String): Likewise for basename.
13723         (String/Array Comparison): Fix typo in wcscasecmp prototype.
13724         (Copying and Concatenation): Fix typo in wmemmove prototype.
13725         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
13726         (Signal Stack): Remove erroneous const in sigstack prototype.
13727         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
13728         prototype.
13729         (Simple Calendar Time): Likewise for stime.
13730         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
13731         prototype.
13732         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
13733         say sys/sysctl.h instead.
13734         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
13735         and vsyslog prototypes.
13736
13737 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13738
13739         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
13740         Remove.
13741
13742 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13743
13744         * misc/sys/mman.h: Fix typo in mremap comment.
13745
13746 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13747
13748         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
13749         the '\0' terminator.
13750
13751 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13752
13753         [BZ #13550]
13754         * debug/segfault.c: Don't include <bp-checks.h>.
13755         * sysdeps/generic/bp-checks.h: Remove file.
13756         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
13757         (__GETDENTS): Don't use CHECK_N.
13758         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
13759         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
13760         (__getgroups): Don't use CHECK_N.
13761         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
13762         (setgroups): Don't use CHECK_N.
13763         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
13764         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13765         (__libc_msgrcv): Don't use CHECK_N.
13766         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
13767         (__libc_msgsnd): Don't use CHECK_N.
13768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
13769         <bp-checks.h>.
13770         (__libc_pread): Don't use CHECK_N.
13771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
13772         include <bp-checks.h>.
13773         (__libc_pread64): Don't use CHECK_N.
13774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
13775         include <bp-checks.h>.
13776         (__libc_pwrite): Don't use CHECK_N.
13777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
13778         include <bp-checks.h>.
13779         (__libc_pwrite64): Don't use CHECK_N.
13780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
13781         <bp-checks.h>.
13782         (__libc_pread): Don't use CHECK_N.
13783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
13784         include <bp-checks.h>.
13785         (__libc_pread64): Don't use CHECK_N.
13786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
13787         include <bp-checks.h>.
13788         (__libc_pwrite): Don't use CHECK_N.
13789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
13790         include <bp-checks.h>.
13791         (__libc_pwrite64): Don't use CHECK_N.
13792         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
13793         (do_pread): Don't use CHECK_N.
13794         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
13795         (do_pread64): Don't use CHECK_N.
13796         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
13797         (do_pwrite): Don't use CHECK_N.
13798         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
13799         (do_pwrite64): Don't use CHECK_N.
13800         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
13801         (__libc_readv): Don't use CHECK_N.
13802         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
13803         (semop): Don't use CHECK_N.
13804         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
13805         <bp-checks.h>.
13806         (semtimedop): Don't use CHECK_N.
13807         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
13808         (__libc_pread): Don't use CHECK_N.
13809         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
13810         <bp-checks.h>.
13811         (__libc_pread64): Don't use CHECK_N.
13812         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
13813         <bp-checks.h>.
13814         (__libc_pwrite): Don't use CHECK_N.
13815         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
13816         <bp-checks.h>.
13817         (__libc_pwrite64): Don't use CHECK_N.
13818         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
13819         <bp-checks.h>.
13820         (__libc_msgrcv): Don't use CHECK_N.
13821         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
13822         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
13823         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
13824         (__libc_writev): Don't use CHECK_N.
13825
13826 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13827
13828         * string/strcpy.c: Removed unused variable.
13829
13830         * Makeconfig (+sysdep-includes): Define with := rather than =.
13831         Use an existing include/ subdir of each sysdeps dir before it.
13832
13833 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13834
13835         * nscd/connection.c (register_traced_file): Comment function.
13836         [HAVE_INOTIFY] (union __inev): Define.
13837         [HAVE_INOTIFY] (inotify_check_files): New function.
13838         [HAVE_INOTIFY] (clear_db_cache): Likewise.
13839         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
13840         clear_db_cache.
13841         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
13842
13843 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13844
13845         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
13846         loaded if not already and that a failure is permanent.
13847
13848 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13849
13850         [BZ #15006]
13851         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
13852         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
13853
13854 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13855
13856         [BZ #13550]
13857         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
13858         (CHECK_1_NULL_OK): Likewise.
13859         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
13860         (__fxstat): Do not use CHECK_1.
13861         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
13862         <bp-checks.h>.
13863         (___fxstat64): Do not use CHECK_1.
13864         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
13865         <bp-checks.h>.
13866         (__fxstatat): Do not use CHECK_1.
13867         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
13868         <bp-checks.h>.
13869         (__fxstatat64): Do not use CHECK_1.
13870         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
13871         <bp-checks.h>.
13872         (__fxstat): Do not use CHECK_1.
13873         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
13874         <bp-checks.h>.
13875         (__fxstatat): Do not use CHECK_1.
13876         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13877         <bp-checks.h>.
13878         (__getresgid): Do not use CHECK_1.
13879         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13880         <bp-checks.h>.
13881         (__getresuid): Do not use CHECK_1.
13882         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
13883         <bp-checks.h>.
13884         (__lxstat): Do not use CHECK_1.
13885         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13886         <bp-checks.h>.
13887         (__old_msgctl): Do not use CHECK_1.
13888         (__new_msgctl): Likewise.
13889         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
13890         <bp-checks.h>.
13891         (__new_setrlimit): Do not use CHECK_1.
13892         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13893         <bp-checks.h>.
13894         (__old_shmctl): Do not use CHECK_1.
13895         (__new_shmctl): Likewise.
13896         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
13897         <bp-checks.h>.
13898         (__xstat): Do not use CHECK_1.
13899         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
13900         (__lxstat): Do not use CHECK_1.
13901         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
13902         <bp-checks.h>.
13903         (___lxstat64): Do not use CHECK_1.
13904         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
13905         (__old_msgctl): Do not use CHECK_1.
13906         (__new_msgctl): Likewise.
13907         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
13908         <bp-checks.h>.
13909         (__gettimeofday): Do not use CHECK_1.
13910         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
13911         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
13912         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
13913         <bp-checks.h>.
13914         (__gettimeofday): Do not use CHECK_1.
13915         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
13916         (__old_shmctl): Do not use CHECK_1_NULL_OK.
13917         (__new_shmctl): Do not use CHECK_1.
13918         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
13919         <bp-checks.h>.
13920         (do_sigtimedwait): Do not use CHECK_1.
13921         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
13922         <bp-checks.h>.
13923         (do_sigwaitinfo): Do not use CHECK_1.
13924         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
13925         <bp-checks.h>.
13926         (msgctl): Do not use CHECK_1.
13927         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
13928         <bp-checks.h>.
13929         (shmctl): Do not use CHECK_1.
13930         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
13931         (ustat): Do not use CHECK_1.
13932         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
13933         <bp-checks.h>.
13934         (__fxstat): Do not use CHECK_1.
13935         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
13936         <bp-checks.h>.
13937         (__fxstatat): Do not use CHECK_1.
13938         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
13939         <bp-checks.h>.
13940         (__lxstat): Do not use CHECK_1.
13941         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
13942         <bp-checks.h>.
13943         (__xstat): Do not use CHECK_1.
13944         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
13945         (__xstat): Do not use CHECK_1.
13946         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
13947         (___xstat64): Do not use CHECK_1.
13948
13949         [BZ #13550]
13950         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
13951         definitions.
13952         (CHECK_BOUNDS_HIGH): Likewise.
13953         * string/strcpy.c: Do not include <bp-checks.h>.
13954         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
13955
13956 2013-02-07  Roland McGrath  <roland@hack.frob.com>
13957
13958         * nscd/nscd-client.h (__nscd_drop_map_ref):
13959         Add __attribute__ ((unused)).
13960         * nis/nss-nisplus.h (niserr2nss): Likewise.
13961
13962         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
13963         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
13964
13965         * csu/libc-tls.c (init_static_tls, init_slotinfo):
13966         Remove inline keyword.
13967         * include/rounding-mode.h (round_away): Likewise.
13968         * libio/wfileops.c (adjust_wide_data): Likewise.
13969         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
13970         (__m128i_strloadu_tolower): Likewise.
13971         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
13972         (__m128i_strloadu_tolower): Likewise.
13973         * time/mktime.c (ydhms_diff): Likewise.
13974         * locale/elem-hash.h (elem_hash): Likewise.
13975         * locale/setlocale.c (setdata): Likewise.
13976         * posix/regex_internal.h (re_string_char_size_at): Likewise.
13977         (re_string_wchar_at): Likewise.
13978         (bitset_not, bitset_merge, bitset_mask): Likewise.
13979         [!(__GNUC__ > 3)] (inline): Remove macro.
13980         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
13981         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
13982         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
13983         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
13984         * string/memcmp.c (memcmp_bytes): Likewise.
13985         * locale/programs/locarchive.c (compute_hashval): Likewise.
13986         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
13987         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
13988         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
13989         * nss/getent.c (print_rpc, print_protocols): Likewise.
13990         (print_passwd, print_group, print_aliases): Likewise.
13991         * nis/nss-nisplus.h (niserr2nss): Likewise.
13992         * nscd/connections.c (restart_p): Likewise.
13993         Change return type to bool.
13994
13995 2013-02-05  Roland McGrath  <roland@hack.frob.com>
13996
13997         * Makeconfig (all-Depend-files): Add existing
13998         $(sorted-subdirs:=/Depend) files.
13999         (all-subdirs): Remove nss.
14000         * sysdeps/unix/inet/Subdirs: Add it here instead.
14001         * hesiod/Depend: New file.
14002
14003         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
14004         instead of calling alloca.
14005
14006         * io/lseek.c (__lseek): Rename to __libc_lseek.
14007         Define __lseek as an alias.
14008
14009         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
14010
14011 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
14012
14013         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
14014         else clause and remove check for non-standard endianness.
14015
14016 2013-02-04  David S. Miller  <davem@davemloft.net>
14017
14018         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14019
14020 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
14021
14022         [BZ #13550]
14023         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
14024         (__ubp_memchr): Remove prototype.
14025         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
14026         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
14027         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
14028         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
14029         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
14030         Remove alias.
14031         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
14032         (__ubp_memchr): Likewise.
14033         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
14034         (__ubp_memchr): Likewise.
14035         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
14036         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
14037         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
14038         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
14039         CHECK_STRING.
14040         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
14041         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
14042         (__getcwd): Do not use CHECK_STRING.
14043         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
14044         <bp-checks.h>.
14045         (__real_chown): Do not use CHECK_STRING.
14046         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
14047         <bp-checks.h>.
14048         (fchownat): Do not use CHECK_STRING.
14049         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
14050         CHECK_STRING.
14051         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
14052         <bp-checks.h>.
14053         (__lchown): Do not use CHECK_STRING.
14054         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
14055         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
14056         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
14057         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
14058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
14059         include <bp-checks.h>.
14060         (truncate64): Do not use CHECK_STRING.
14061         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
14062         <bp-checks.h>.
14063         (__real_chown): Do not use CHECK_STRING.
14064         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
14065         <bp-checks.h>.
14066         (__lchown): Do not use CHECK_STRING.
14067         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
14068         <bp-checks.h>.
14069         (__chown): Do not use CHECK_STRING.
14070         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
14071         <bp-checks.h>.
14072         (truncate64): Do not use CHECK_STRING.
14073         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
14074         Likewise.
14075         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
14076         (__xmknod): Do not use CHECK_STRING.
14077         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
14078         <bp-checks.h>.
14079         (__xmknodat): Do not use CHECK_STRING.
14080         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
14081         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
14082
14083 2013-02-04  Andreas Schwab  <schwab@suse.de>
14084
14085         [BZ #14142]
14086         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
14087         * include/netdb.h: Likewise for h_errno.
14088         * elf/tst-stackguard1.c: Include <tls.h>.
14089
14090 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
14091
14092         * elf/link.h (struct link_map): Extend the l_addr comment.
14093         * include/link.h (struct link_map): Likewise.
14094
14095 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
14096
14097         [BZ #13550]
14098         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
14099         (BOUNDED_1): Remove macro.
14100         * debug/backtrace.c: Don't include <bp-checks.h>.
14101         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
14102         (__backtrace): Likewise.
14103         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
14104         <bp-checks.h>.
14105         (__backtrace): Don't use BOUNDED_1.
14106         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
14107         <bp-checks.h>.
14108         (__backtrace): Don't use BOUNDED_1.
14109         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
14110         (__backtrace): Don't use BOUNDED_1.
14111         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
14112         (shmat): Don't use BOUNDED_N.
14113
14114 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
14115
14116         [BZ #13550]
14117         * sysdeps/generic/bp-start.h: Remove file.
14118         * csu/libc-start.c: Don't include <bp-start.h>.
14119         (LIBC_START_MAIN): Set up __environ directly instead of using
14120         INIT_ARGV_and_ENVIRON.
14121         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
14122         <bp-start.h>.
14123
14124         [BZ #13550]
14125         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
14126         definitions.
14127         (CHECK_FCNTL): Likewise.
14128         (CHECK_N_PAGES): Likewise.
14129
14130         [BZ #13550]
14131         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
14132         definitions.
14133         (CHECK_SIGSET_NULL_OK): Likewise.
14134         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
14135         <bp-checks.h>.
14136         (sigpending): Don't use CHECK_SIGSET.
14137         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
14138         <bp-checks.h>.
14139         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14140         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
14141         <bp-checks.h>.
14142         (do_sigsuspend): Don't use CHECK_SIGSET.
14143         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
14144         use CHECK_SIGSET.
14145         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
14146         (do_sigwait): Don't use CHECK_SIGSET.
14147         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
14148         use CHECK_SIGSET.
14149         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
14150         include <bp-checks.h>.
14151         (sigpending): Don't use CHECK_SIGSET.
14152         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
14153         include <bp-checks.h>.
14154         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14155         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
14156         <bp-checks.h>.
14157         (sigpending): Don't use CHECK_SIGSET.
14158         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
14159         <bp-checks.h>.
14160         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14161
14162         [BZ #13550]
14163         * sysdeps/generic/bp-semctl.h: Remove file.
14164         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
14165         <bp-checks.h> and <bp-semctl.h>.
14166         (__old_semctl): Don't use CHECK_SEMCTL.
14167         (__new_semctl): Likewise.
14168         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
14169         and <bp-semctl.h>.
14170         (__old_semctl): Don't use CHECK_SEMCTL.
14171         (__new_semctl): Likewise.
14172         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
14173         <bp-checks.h> and <bp-semctl.h>.
14174         (__old_semctl): Don't use CHECK_SEMCTL.
14175         (__new_semctl): Likewise.
14176         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
14177         <bp-checks.h> and <bp-semctl.h>.
14178         (semctl): Don't use CHECK_SEMCTL.
14179
14180         [BZ #13550]
14181         * Makerules (elide-bp-thunks): Remove variable.
14182         (elide-routines.oS): Don't use $(elide-bp-thunks).
14183         (elide-routines.os): Likewise.
14184         (elide-routines.o): Likewise.
14185         (elide-routines.op): Likewise.
14186         (elide-routines.og): Likewise.
14187         (objects): Don't use $(bp-thunks).
14188         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
14189         include.
14190         (common-generated): Do not add s-proto-bp.d.
14191         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
14192         (int): Likewise.
14193         (typ): Likewise.
14194         Do not generate makefile rules for bounded-pointer thunks.
14195         * sysdeps/generic/bp-thunks.h: Remove file.
14196         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
14197         * sysdeps/unix/s-proto-bp.S: Likewise.
14198
14199         [BZ #15062]
14200         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
14201         parts of result separately when argument is not close to line from
14202         -i to i and one part of argument is small.
14203         * math/k_casinhf.c (__kernel_casinhf): Likewise.
14204         * math/k_casinhl.c (__kernel_casinhl): Likewise.
14205         * math/libm-test.inc (cacos_test): Add more tests.
14206         (casin_test): Likewise.
14207         (casinh_test): Likewise.
14208         * sysdeps/i386/fpu/libm-test-ulps: Update.
14209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14210
14211 2013-01-31  David S. Miller  <davem@davemloft.net>
14212
14213         * po/de.po: Update from translation team.
14214
14215 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
14216
14217         * time/tzfile.c: Include stdint.h for SIZE_MAX.
14218
14219 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
14220
14221         * configure.in (_AC_PROG_CC_C89): New definition.
14222         * configure: Regenerate.
14223
14224         * configure.in (AC_PROG_CPP): New definition.
14225         * configure: Regenerate.
14226
14227 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14228
14229         * debug/tst-backtrace.h: New file.
14230         * debug/tst-backtrace2.c: Include tst-backtrace.h.
14231         (ret): Remove variable.
14232         (x): Likewise.
14233         (FAIL): Remove macro.
14234         (NO_INLINE): Likewise.
14235         (fn1): Use match function instead of strstr.
14236         * debug/tst-backtrace3.c: Include tst-backtrace.h.
14237         (ret): Remove variable.
14238         (x): Likewise.
14239         (FAIL): Remove macro.
14240         (NO_INLINE): Likewise.
14241         (fn): Use match function instead of strstr.
14242         * debug/tst-backtrace4.c: Include tst-backtrace.h.
14243         (ret): Remove variable.
14244         (x): Likewise.
14245         (FAIL): Remove macro.
14246         (NO_INLINE): Likewise.
14247         (handle_signal): Use match function instead of strstr.
14248         * debug/tst-backtrace5.c: Include tst-backtrace.h.
14249         (ret): Remove variable.
14250         (x): Likewise.
14251         (FAIL): Remove macro.
14252         (NO_INLINE): Likewise.
14253         (handle_signal): Use match function instead of strstr.
14254
14255 2013-01-23  Roland McGrath  <roland@hack.frob.com>
14256
14257         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
14258
14259 2013-01-23  David S. Miller  <davem@davemloft.net>
14260
14261         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
14262         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
14263         argument of CAS if possible.
14264         * sysdeps/sparc/sparc64/bits/atomic.h
14265         (__arch_compare_and_exchange_val_32_acq): Likewise.
14266         (__arch_compare_and_exchange_val_64_acq): Likewise.
14267
14268 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
14269
14270         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
14271         * sysdeps/posix/ulimit.c: ... this.
14272         Include <limits.h>.
14273         * sysdeps/unix/bsd/ulimit.c: Remove file.
14274
14275 2013-01-23  Adam Conrad  <adconrad@0c3.net>
14276
14277         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
14278         (LDFLAGS-tst-array5): Likewise.
14279
14280 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14281
14282         [BZ #15036]
14283         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
14284         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
14285         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
14286         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
14287
14288 2013-01-21  David S. Miller  <davem@davemloft.net>
14289
14290         * sysdeps/sparc/backtrace.c: New file.
14291         * sysdeps/sparc/sparc32/backtrace.h: New file.
14292         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
14293         * sysdeps/sparc/sparc64/backtrace.h: New file.
14294         * sysdeps/sparc/sparc64/backtrace.c: Delete.
14295         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
14296         -funwind-tables.
14297
14298 2013-01-21  Andreas Schwab  <schwab@suse.de>
14299
14300         [BZ #15020]
14301         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
14302         closed its stdout.
14303
14304 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
14305
14306         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
14307         "mpa2.h".
14308         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14309
14310 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
14311             Mark Mitchell  <mark@codesourcery.com>
14312             Tom de Vries  <tom@codesourcery.com>
14313             Paul Pluzhnikov  <ppluzhnikov@google.com>
14314
14315         * debug/tst-backtrace2.c: New file.
14316         * debug/tst-backtrace3.c: Likewise.
14317         * debug/tst-backtrace4.c: Likewise.
14318         * debug/tst-backtrace5.c: Likewise.
14319         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
14320         (CFLAGS-tst-backtrace3.c): Likewise.
14321         (CFLAGS-tst-backtrace4.c): Likewise.
14322         (CFLAGS-tst-backtrace5.c): Likewise.
14323         (LDFLAGS-tst-backtrace2): Likewise.
14324         (LDFLAGS-tst-backtrace3): Likewise.
14325         (LDFLAGS-tst-backtrace4): Likewise.
14326         (LDFLAGS-tst-backtrace5): Likewise.
14327         (tests): Add new tests tst-backtrace2, tst-backtrace3,
14328         tst-backtrace4 and tst-backtrace5.
14329
14330 2013-01-18  Anton Blanchard  <anton@samba.org>
14331             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14332
14333         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
14334         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
14335         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
14336         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
14337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14338         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
14339         "+r" and remove output regs list as redundant.  Add explicit inline
14340         asm to specify register of return val to work around compiler codegen
14341         bug.  Remove (int) cast on return value.  Add return type parameter to
14342         use in macro so that this macro does not truncate return value for
14343         64-bit values.
14344         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
14345         pass to INTERNAL_VSYSCALL_NCS.
14346         (INLINE_VSYSCALL): Add 'long int' as return type to
14347         INTERNAL_VSYSCALL_NCS macro invocation.
14348         (INTERNAL_VSYSCALL): Add 'long int' as return type to
14349         INTERNAL_VSYSCALL_NCS macro invocation.
14350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14351
14352 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14353
14354         [BZ #14496]
14355         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
14356         Fix application of SIMD FP exception mask.
14357
14358         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
14359         mp_no from a power of two.
14360         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
14361         __mpexp_twomm1.  Use __pow_mp.
14362
14363         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
14364         multiplication.
14365
14366 2013-01-17  David S. Miller  <davem@davemloft.net>
14367
14368         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14369
14370 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14371
14372         [BZ #15023]
14373         * include/complex.h: Condition contents on [!_COMPLEX_H].
14374         (__kernel_casinhf): New prototype.
14375         (__kernel_casinh): Likewise.
14376         (__kernel_casinhl): Likewise.
14377         * math/Makefile (libm_calls): Add k_casinh.
14378         * math/k_casinh.c: New file.
14379         * math/k_casinhf.c: Likewise.
14380         * math/k_casinhl.c: Likewise.
14381         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
14382         finite nonzero arguments.
14383         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
14384         finite nonzero arguments.
14385         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
14386         finite nonzero arguments.
14387         * math/s_casinh.c: Do not include <float.h>.
14388         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
14389         * math/s_casinhf.c: Do not include <float.h>.
14390         (__casinhf): Move code for finite nonzero arguments to
14391         k_casinhf.c.
14392         * math/s_casinhl.c: Do not include <float.h>.
14393         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
14394         redefine.
14395         (__casinhl): Move code for finite nonzero arguments to
14396         k_casinhl.c.
14397         * math/libm-test.inc (cacos_test): Add more tests.
14398         * sysdeps/i386/fpu/libm-test-ulps: Update.
14399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14400
14401 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
14402
14403         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
14404         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
14405         [!HAVE_MREMAP]: Remove [defined linux] case.
14406         * malloc/arena.c: Do not include <malloc-sysdep.h>.
14407
14408 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
14409
14410         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
14411
14412 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14413
14414         * elf/elf.h (R_386_SIZE32): New relocation.
14415         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
14416         R_386_SIZE32.
14417         (elf_machine_rela): Likewise.
14418         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14419         R_X86_64_SIZE64 and R_X86_64_SIZE32.
14420
14421 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14422
14423         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
14424         (FP_FAST_FMA): Do not define.
14425         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
14426         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
14427         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
14428         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
14429         !_SOFT_FLOAT]: Likewise.
14430         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
14431         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
14432         value.
14433         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
14434         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
14435         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
14436         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
14437         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
14438         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
14439         file.
14440
14441 2013-01-16  Andreas Schwab  <schwab@suse.de>
14442
14443         [BZ #14327]
14444         * include/stdlib.h (__mktemp): Add declaration.
14445         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
14446         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
14447
14448 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14449
14450         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
14451         definitions.
14452         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14453         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
14454         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
14455         definitions here.
14456         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
14457         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
14458         definitions.
14459         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
14460         and ONE.
14461         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
14462         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
14463         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
14464         definitions.
14465         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
14466         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
14467         definitions.
14468         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14469
14470         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
14471
14472 2013-01-15  David S. Miller  <davem@davemloft.net>
14473
14474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14475         trunc{,f} to libm-sysdep_routes.
14476         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
14478         file.
14479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
14480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
14481         file.
14482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
14483         file.
14484         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
14485         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
14486         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
14487         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
14488         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
14489         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
14490         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
14491         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
14492
14493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14494         nearbyint{,f} to libm-sysdep_routes.
14495         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
14497         New file.
14498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
14499         file.
14500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
14501         New file.
14502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
14503         file.
14504         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
14505         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
14506         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
14507         file.
14508         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
14509         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
14510         file.
14511         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
14512         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
14513         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
14514
14515         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
14516         libc_feholdexcept and libc_fesetenv.
14517
14518 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
14519
14520         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
14521
14522 2013-01-14  David S. Miller  <davem@davemloft.net>
14523
14524         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
14525         (SPARC_ASM_VIS2_IFUNC): Likewise.
14526         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
14527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
14528         use of 'siam' instruction.
14529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
14530         Likewise.
14531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
14532         Likewise.
14533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
14534         Likewise.
14535         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
14536         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
14537         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
14538         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
14539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
14540         file.
14541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
14542         file.
14543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
14544         file.
14545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
14546         file.
14547         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
14548         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
14549         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
14550         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
14551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
14552         new VIS2 routines.
14553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
14554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
14556         Likewise.
14557         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
14558         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
14559         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
14560         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
14561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
14562         routines to libm-sysdep_routines.
14563         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14564
14565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14566         fdim/fdimf to libm-sysdep_routines.
14567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
14568         file.
14569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
14570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
14571         file.
14572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
14573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
14574         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
14575         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
14576         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
14577         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
14578         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
14579
14580 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14581
14582         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
14583         to optimize copies.
14584
14585         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
14586         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14587         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14588
14589         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
14590         local variable MPTWO.
14591         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
14592         Likewise.
14593
14594 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14595
14596         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
14597         GLOB_NOESCAPE.
14598
14599 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14600
14601         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
14602
14603 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14604
14605         * manual/pattern.texi (glob_t): Document gl_flags.
14606         (glob64_t): Likewise.
14607
14608 2013-01-11  David S. Miller  <davem@davemloft.net>
14609
14610         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
14611         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
14612         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
14613         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
14614         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
14615         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
14616         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
14617         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
14618         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
14619         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
14620         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
14621         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
14622         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
14623
14624         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14625         sparc V9 rather than using V8 code.
14626         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14627         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14628
14629         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14630         Move to...
14631         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
14632         Here.
14633
14634 2013-01-11  Roland McGrath  <roland@hack.frob.com>
14635
14636         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
14637         not in the main loop.
14638         * configure: Regenerated.
14639
14640 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
14641
14642         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
14643         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
14644         to just #else.
14645         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
14646         [!__GLIBC_HAVE_LONG_LONG] case.
14647         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
14648         condition to just #else.
14649         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
14650         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
14651         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
14652         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
14653         unconditional.
14654         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
14655         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14656         #elif condition to just #else.
14657         * sysdeps/unix/sysv/linux/sys/sysmacros.h
14658         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
14659         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14660         #elif condition to just #else.
14661
14662 2013-01-11  Steve Ellcey  <sellcey@mips.com>
14663
14664         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
14665         (EF_MIPS_ARCH_64): Fix value.
14666         (EF_MIPS_ARCH_32R2): New.
14667         (EF_MIPS_ARCH_64R2): New.
14668
14669 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14670
14671         * Makeconfig (+link-pie-before-libc): New.
14672         (+link-pie-after-libc): Likewise.
14673         (+link-pie-tests): Likewise.
14674         (+link-pie): Rewritten.
14675         (link-before-libc): Remove $(config-LDFLAGS).
14676         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
14677         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
14678         (config-LDFLAGS): Renamed to ...
14679         (rtld-LDFLAGS): This.
14680         (rtld-tests-LDFLAGS): New macro.
14681         (link-libc-rpath-link): Likewise.
14682         (link-libc-tests-rpath-link): Likewise.
14683         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
14684         (link-libc): Prepand $(link-libc-rpath-link).
14685         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
14686         (test-program-prefix): New macro.
14687         (test-via-rtld-prefix): Likewise.
14688         (test-program-cmd): Likewise.
14689         (host-test-program-cmd): Likewise.
14690         * Makefile ($(common-objpfx)testrun.sh): Replace
14691         $(run-program-prefix) with $(test-program-prefix).
14692         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
14693         $(rtld-LDFLAGS).
14694         ($(common-objpfx)shlib.lds): Likewise.
14695         (build-module-helper): Likewise.
14696         ($(common-objpfx)format.lds): Likewise.
14697         * Rules (binaries-pie-tests): New.
14698         (binaries-pie-notests): Likewise.
14699         (binaries-pie): Rewritten.
14700         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
14701         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
14702         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
14703         (make-test-out): Replace $(host-built-program-cmd) with
14704         $(host-test-program-cmd).
14705         * config.make.in (build-hardcoded-path-in-tests): New variable.
14706         * configure.in (--enable-hardcoded-path-in-tests): New configure
14707         option.
14708         (hardcoded_path_in_tests): New AC_SUBST.
14709         * configure: Regenerated.
14710         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
14711         $(built-program-cmd) with $(test-program-cmd).
14712         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
14713         (test_program_cmd): This.
14714         * elf/Makefile ($(objpfx)order.out): Run test with
14715         $(test-program-prefix).
14716         ($(objpfx)order2.out): Likewise.
14717         ($(objpfx)tst-initorder.out): Likewise.
14718         ($(objpfx)tst-initorder2.out): Likewise.
14719         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
14720         $(test-program-cmd).
14721         ($(objpfx)tst-array1-static.out): Likewise.
14722         ($(objpfx)tst-array2.out): Likewise.
14723         ($(objpfx)tst-array3.out): Likewise.
14724         ($(objpfx)tst-array4.out): Likewise.
14725         ($(objpfx)tst-array5.out): Likewise.
14726         ($(objpfx)tst-array5-static.out): Likewise.
14727         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
14728         $(test-program-cmd).
14729         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
14730         $(run-program-prefix) with $(test-program-prefix).
14731         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
14732         (test_program_prefix): This.
14733         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
14734         $(run-program-prefix) with $(test-program-prefix).
14735         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
14736         (test_program_prefix): This.
14737         * iconvdata/tst-tables.sh: Likewise.
14738         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
14739         $(run-program-prefix) with $(test-program-prefix).
14740         ($(objpfx)tst-translit.out): Likewise.
14741         ($(objpfx)tst-gettext2.out): Likewise.
14742         ($(objpfx)tst-gettext4.out): Likewise.
14743         ($(objpfx)tst-gettext6.out): Likewise.
14744         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
14745         (test_program_prefix): This.
14746         * intl/tst-gettext2.sh: Likewise.
14747         * intl/tst-gettext4.sh  Likewise.
14748         * intl/tst-gettext6.sh: Likewise.
14749         * intl/tst-translit.sh: Likewise.
14750         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
14751         with $(test-program-cmd).
14752         * libio/Makefile ($(objpfx)test-freopen.out): Replace
14753         $(run-program-prefix) with $(test-program-prefix).
14754         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
14755         (test_program_prefix): This.
14756         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
14757         $(run-program-prefix) with $(test-program-prefix).
14758         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
14759         (test_program_prefix): This.
14760         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
14761         * posix/Makefile ($(objpfx)globtest.out): Replace
14762         $(run-via-rtld-prefix) and $(test-wrapper) with
14763         $(test-program-prefix) and $(test-via-rtld-prefix).
14764         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
14765         $(test-program-prefix).
14766         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
14767         $(host-test-program-cmd).
14768         (tst-spawn-ARGS): Likewise.
14769         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
14770         $(test-program-prefix).
14771         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
14772         (test_via_rtld_prefix): This.
14773         (test_wrapper): Renamed to ...
14774         (test_program_prefix): This.
14775         (run_program_prefix): Replaced by test_program_prefix.
14776         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
14777         (test_program_prefix): This.
14778         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
14779         with $(host-test-program-cmd).
14780         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
14781         $(run-program-prefix) with $(test-program-prefix).
14782         ($(objpfx)tst-printf.out): Likewise.
14783         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
14784         $(test-program-cmd).
14785         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
14786         (test_program_prefix): This.
14787         * stdio-common/tst-unbputc.sh: Likewise.
14788         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
14789         $(run-program-prefix) with $(test-program-prefix).
14790         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
14791         (test_program_prefix): This.
14792         * string/Makefile ($(objpfx)tst-svc.out):  Replace
14793         $(built-program-cmd) with $(test-program-cmd).
14794
14795 2013-01-11  Andreas Jaeger  <aj@suse.de>
14796
14797         [BZ #15003]
14798         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
14799         value. Sync with Linux 3.7.
14800
14801 2013-01-10  David S. Miller  <davem@davemloft.net>
14802
14803         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
14804         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14805         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14806
14807 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14808
14809         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
14810         never set.
14811         * configure: Regenerated.
14812
14813 2013-01-10  David S. Miller  <davem@davemloft.net>
14814
14815         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14816         sparc V9 rather than using V8 code.
14817         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14818         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14819
14820 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14821
14822         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
14823         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
14824         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
14825         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
14826         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
14827         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
14828         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
14829         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
14830         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
14831         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
14832         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
14833         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
14834         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
14835         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
14836         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
14837         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
14838         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
14839         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
14840         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
14841         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
14842         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
14843         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
14844         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
14845         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
14846         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
14847         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
14848         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
14849
14850 2013-01-10  David S. Miller  <davem@davemloft.net>
14851
14852         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14853
14854 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14855
14856         * posix/Makefile (tests-static): New variable.
14857         (tests): Add $(tests-static).
14858         (tst-exec-static-ARGS): New variable.
14859         (tst-spawn-static-ARGS): Likewise.
14860         * posix/tst-exec-static.c: New file.
14861         * posix/tst-spawn-static.c: Likewise.
14862         * posix/tst-exec.c: Support run directly.
14863         * posix/tst-spawn.c: Likewise.
14864
14865 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
14866
14867         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
14868         long.
14869         * math/bits/mathcalls.h (llrint): Likewise.
14870         (llround): Likewise.
14871         * stdlib/stdlib.h (struct drand48_data): Likewise.
14872         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
14873         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
14874         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
14875         Likewise.
14876         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
14877         Likewise.
14878         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
14879         (elf_greg_t): Likewise.
14880         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
14881         (__jmp_buf): Likewise.
14882         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
14883         definitions.
14884         (llrint): Likewise, for all definitions.
14885         (llrintl): Likewise.
14886
14887         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
14888         Remove [__GNUC__] condition.
14889         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
14890         condition to just [__USE_ISOC99].
14891         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
14892
14893 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14894
14895         [BZ #14200]
14896         * sysdeps/unix/sysv/linux/x86/bits/environments.h
14897         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
14898         defined.
14899         (_POSIX_V6_ILP32_OFF32): Likewise.
14900         (_XBS5_ILP32_OFF32): Likewise.
14901         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
14902         (__ILP32_OFFBIG_LDFLAGS): Likewise.
14903
14904 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14905
14906         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
14907
14908         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
14909         doubles __mpexp_twomm1.  Adjust usage.
14910         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
14911         Remove.
14912
14913 2013-01-10  Andreas Schwab  <schwab@suse.de>
14914
14915         [BZ #14964]
14916         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
14917         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
14918
14919 2013-01-09  David S. Miller  <davem@davemloft.net>
14920
14921         [BZ #15003]
14922         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
14923         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
14924         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
14925         TCP_FASTOPEN): Define.
14926         (tcp_repair_opt): New structure.
14927         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
14928         enum values.
14929         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
14930         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
14931         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
14932         (tcp_cookie_transactions): New structure.
14933
14934 2013-01-09  Anton Blanchard  <anton@samba.org>
14935
14936         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
14937         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
14938         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
14939         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
14940
14941 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
14942
14943         * include/features.h (__USE_ANSI): Remove.
14944
14945 2013-01-09  Roland McGrath  <roland@hack.frob.com>
14946
14947         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
14948
14949         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
14950
14951 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
14952
14953         * sysdeps/s390/fpu/libm-test-ulps: Update.
14954
14955         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14956
14957         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
14958         (__acr): Likewise.
14959         (__cpy): Likewise.
14960         (norm): Likewise.
14961         (denorm): Likewise.
14962         (__mp_dbl): Likewise.
14963         (__dbl_mp): Likewise.
14964         (add_magnitudes): Likewise.
14965         (sub_magnitudes): Likewise.
14966         (__add): Likewise.
14967         (__sub): Likewise.
14968         (__mul): Likewise.
14969         (__inv): Likewise.
14970         (__dvd): Likewise.
14971         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
14972         (__acr): Likewise.
14973         (__cpy): Likewise.
14974         (norm): Likewise.
14975         (denorm): Likewise.
14976         (__mp_dbl): Likewise.
14977         (__dbl_mp): Likewise.
14978         (add_magnitudes): Likewise.
14979         (sub_magnitudes): Likewise.
14980         (__add): Likewise.
14981         (__sub): Likewise.
14982         (__mul): Likewise.
14983         (__inv): Likewise.
14984         (__dvd): Likewise.
14985         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
14986         (__acr): Likewise.
14987         (__cpy): Likewise.
14988         (norm): Likewise.
14989         (denorm): Likewise.
14990         (__mp_dbl): Likewise.
14991         (__dbl_mp): Likewise.
14992         (add_magnitudes): Likewise.
14993         (sub_magnitudes): Likewise.
14994         (__add): Likewise.
14995         (__sub): Likewise.
14996         (__mul): Likewise.
14997         (__inv): Likewise.
14998         (__dvd): Likewise.
14999
15000 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
15001
15002         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
15003         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
15004         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
15005         2 && __USE_EXTERN_INLINES]: Likewise.
15006
15007 2013-01-08  Andreas Jaeger  <aj@suse.de>
15008
15009         [BZ# 14985]
15010         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
15011         Remove.
15012         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
15013         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
15014
15015 2013-01-07  Anton Blanchard  <anton@samba.org>
15016
15017         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
15018         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
15019         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
15020         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
15021         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
15022         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15023         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
15024         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15025         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15026         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15027         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15028         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15029         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
15030         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15031         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
15032         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15033         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15034         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
15035         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
15036         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
15037         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
15038         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
15039         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
15040         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
15041         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
15042         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
15043         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15044         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
15045         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
15046         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
15047         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
15048         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15049         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15050         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
15051         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
15052         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
15053         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
15054         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
15055         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
15056         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
15057         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
15058         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15059         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
15060
15061 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
15062
15063         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
15064         (__MALLOC_PMT): Likewise.
15065         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
15066         [__GNUC__], only on [_LIBC].
15067         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
15068         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
15069         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
15070         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
15071         forward declaration.
15072         (realloc_hook_ini): Likewise.
15073         (memalign_hook_ini): Likewise.
15074         (__libc_memalign): Do not use __MALLOC_PMT in variable
15075         declaration.
15076         (__libc_valloc): Likewise.
15077         (__libc_pvalloc): Likewise.
15078         (__libc_calloc): Likewise.
15079         (__posix_memalign): Likewise.
15080
15081         [BZ #14996]
15082         * math/s_casinh.c: Include <float.h>.
15083         (__casinh): Do not do computation with squaring and square root
15084         for large arguments.
15085         * math/s_casinhf.c: Include <float.h>.
15086         (__casinhf): Do not do computation with squaring and square root
15087         for large arguments.
15088         * math/s_casinhl.c: Include <float.h>.
15089         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
15090         (__casinhl): Do not do computation with squaring and square root
15091         for large arguments.
15092         * math/libm-test.inc (casin_test): Add more tests.
15093         (casinh_test): Likewise.
15094         * sysdeps/i386/fpu/libm-test-ulps: Update.
15095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15096
15097 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
15098
15099         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
15100         (__x86_64_raw_data_cache_size): Likewise.
15101         (__x86_64_data_cache_size_half): Likewise.
15102         (__x86_64_raw_data_cache_size_half): Likewise.
15103         (__x86_64_shared_cache_size): Likewise.
15104         (__x86_64_raw_shared_cache_size): Likewise.
15105         (__x86_64_shared_cache_size_half): Likewise.
15106         (__x86_64_raw_shared_cache_size_half): Likewise.
15107         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
15108         to ...
15109         (__x86_data_cache_size): This.
15110         (__x86_64_raw_data_cache_size): Renamed to ...
15111         (__x86_raw_data_cache_size): This.
15112         (__x86_64_data_cache_size_half): Renamed to ...
15113         (__x86_data_cache_size_half): This.
15114         (__x86_64_raw_data_cache_size_half): Renamed to ...
15115         (__x86_raw_data_cache_size_half): This.
15116         (__x86_64_shared_cache_size): Renamed to ...
15117         (__x86_shared_cache_size): This.
15118         (__x86_64_raw_shared_cache_size): Renamed to ...
15119         (__x86_raw_shared_cache_size): This.
15120         (__x86_64_shared_cache_size_half): Renamed to ...
15121         (__x86_shared_cache_size_half): This.
15122         (__x86_64_raw_shared_cache_size_half): Renamed to ...
15123         (__x86_raw_shared_cache_size_half): This.
15124         * sysdeps/x86_64/memcpy.S: Updated.
15125         * sysdeps/x86_64/memset.S: Likewise.
15126         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
15127         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
15128         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
15129
15130 2013-01-04  David S. Miller  <davem@davemloft.net>
15131
15132         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15133
15134 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
15135
15136         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
15137         1 to avoid redefinition warning.
15138         (__USE_GNU): Don't define.
15139         (init_signaling_nan): Protoize.
15140
15141         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15142
15143 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15144
15145         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
15146         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
15147         (__cpymn): Likewise.
15148         (norm): Remove commented code.
15149         (denorm): Likewise.
15150         (__mp_dbl): Likewise.
15151         (__inv): Likewise.
15152         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
15153         (__cpymn): Likewise.
15154         (norm): Remove commented code.
15155         (denorm): Likewise.
15156         (__mp_dbl): Likewise.
15157         (__inv): Likewise.
15158
15159         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
15160         mp_no value for 1.0 and 2.0.
15161         (norm): Use RADIXI instead of radixi.d.
15162         (denorm): Likewise.
15163         (__mul): Use 0.0 instead of zero.d.
15164         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
15165         mp_no value for 1.0 and 2.0.
15166         (norm): Use RADIXI instead of radixi.d.
15167         (denorm): Likewise.
15168         (__mul): Use 0.0 instead of zero.d.
15169
15170 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
15171
15172         [BZ #14994]
15173         * math/s_casinh.c (__casinh): Reduce finite argument to first
15174         quadrant then set signs of results at the end.
15175         * math/s_casinhf.c (__casinhf): Likewise.
15176         * math/s_casinhl.c (__casinhl): Likewise.
15177         * math/libm-test.inc (casin_test): Add more tests.
15178         (casinh_test): Likewise.
15179         * sysdeps/i386/fpu/libm-test-ulps: Update.
15180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15181
15182 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15183
15184         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
15185
15186         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
15187
15188         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
15189         declarations.
15190         (denorm): Likewise.
15191         (__mp_dbl): Likewise.
15192         (__inv): Likewise.
15193
15194         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
15195         and adjust the header comment.
15196
15197         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
15198         variable name from declaration.
15199
15200 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15201
15202         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15203         Initialize COMMON_CPUID_INDEX_7 element.
15204         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
15205         (CPUID_RTM): Likewise.
15206         (HAS_RTM): Likewise.
15207         (COMMON_CPUID_INDEX_7): New enum.
15208
15209 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
15210
15211         [BZ #14981]
15212         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
15213         size is zero, record memory as freed.
15214
15215 2013-01-03  Andreas Jaeger  <aj@suse.de>
15216
15217         * po/ia.po: Add new Interlingua translation.
15218
15219 2012-01-03  Allan McRae  <allan@archlinux.org>
15220
15221         * locale/programs/localedef.c: Fix description of '--posix' flag.
15222
15223 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
15224
15225         * NEWS: Update dates in second copyright notice.
15226         * README: Update copyright dates in example.
15227         * manual/libc.texinfo: Update copyright dates.
15228         * scripts/test-installation.pl: Update copyright date in --version
15229         output.
15230
15231         * hurd/ctty-input.c: Fix copyright notice formatting.
15232         * hurd/ctty-output.c: Likewise.
15233         * hurd/dtable.c: Likewise.
15234         * hurd/hurd-raise.c: Likewise.
15235         * hurd/hurdprio.c: Likewise.
15236         * hurd/msgportdemux.c: Likewise.
15237         * misc/sys/file.h: Likewise.
15238         * misc/sys/ioctl.h: Likewise.
15239         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
15240         * sysdeps/mach/hurd/chdir.c: Likewise.
15241         * sysdeps/mach/hurd/fchdir.c: Likewise.
15242         * sysdeps/mach/hurd/rename.c: Likewise.
15243         * sysdeps/mach/hurd/rmdir.c: Likewise.
15244         * sysdeps/mach/hurd/seekdir.c: Likewise.
15245         * sysdeps/mach/hurd/setsid.c: Likewise.
15246         * sysdeps/posix/wait3.c: Likewise.
15247
15248         * All files with FSF copyright notices: Update copyright dates
15249         using scripts/update-copyrights.
15250         * intl/plural.c: Regenerated.
15251         * locale/programs/charmap-kw.h: Likewise.
15252         * locale/programs/locfile-kw.h: Likewise.
15253
15254 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
15255
15256         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
15257         four values.
15258
15259         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
15260         calculation loop and add branch prediction.
15261
15262         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
15263         check access beyond bounds of m1np.
15264
15265         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15266         MPTWO.
15267         (__inv): Remove local variable MPTWO to use the global
15268         constant.
15269         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
15270         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15271         variable MPTWO.
15272         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
15273         MP3HALFS static const.
15274
15275 2013-01-01  David S. Miller  <davem@davemloft.net>
15276
15277         * po/ca.po: Update from translation team.
15278
15279 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
15280
15281         * scripts/update-copyrights: New file.
15282         * Makeconfig: Reformat copyright notice.
15283         * ctype/ctype.h: Likewise.
15284         * debug/swprintf_chk.c: Likewise.
15285         * elf/dl-cache.c: Likewise.
15286         * elf/dl-debug.c: Likewise.
15287         * elf/dl-object.c: Likewise.
15288         * grp/initgroups.c: Likewise.
15289         * hurd/Makefile: Likewise.
15290         * hurd/hurd/signal.h: Likewise.
15291         * hurd/hurdfault.c: Likewise.
15292         * hurd/hurdioctl.c: Likewise.
15293         * hurd/hurdlookup.c: Likewise.
15294         * hurd/intr-msg.c: Likewise.
15295         * iconv/gconv_open.c: Likewise.
15296         * libio/swprintf.c: Likewise.
15297         * locale/lc-ctype.c: Likewise.
15298         * locale/nl_langinfo.c: Likewise.
15299         * mach/Machrules: Likewise.
15300         * mach/Makefile: Likewise.
15301         * malloc/obstack.h: Likewise.
15302         * manual/Makefile: Likewise.
15303         * manual/tsort.awk: Likewise.
15304         * misc/bits/stab.def: Likewise.
15305         * nis/nis_print_group_entry.c: Likewise.
15306         * nis/nis_table.c: Likewise.
15307         * nis/nss_compat/compat-pwd.c: Likewise.
15308         * nis/nss_compat/compat-spwd.c: Likewise.
15309         * po/Makefile: Likewise.
15310         * posix/fnmatch.c: Likewise.
15311         * posix/regex.h: Likewise.
15312         * resolv/Makefile: Likewise.
15313         * resolv/nss_dns/dns-network.c: Likewise.
15314         * resolv/res_hconf.c: Likewise.
15315         * scripts/gen-sorted.awk: Likewise.
15316         * soft-fp/soft-fp.h: Likewise.
15317         * stdio-common/printf.h: Likewise.
15318         * stdlib/monetary.h: Likewise.
15319         * stdlib/random.c: Likewise.
15320         * stdlib/random_r.c: Likewise.
15321         * sysdeps/generic/Makefile: Likewise.
15322         * sysdeps/gnu/Makefile: Likewise.
15323         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15324         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15325         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15326         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15327         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15328         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15329         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15330         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15331         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15332         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15333         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15334         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15335         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15336         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15337         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15338         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15339         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15340         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15341         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15342         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15343         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15344         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15345         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15346         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15347         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
15348         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15349         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
15350         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
15351         * sysdeps/mach/hurd/errnos.awk: Likewise.
15352         * sysdeps/mach/hurd/fork.c: Likewise.
15353         * sysdeps/mach/hurd/getcwd.c: Likewise.
15354         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
15355         * sysdeps/mach/hurd/mmap.c: Likewise.
15356         * sysdeps/mach/hurd/utimes.c: Likewise.
15357         * sysdeps/mach/hurd/xmknod.c: Likewise.
15358         * sysdeps/posix/profil.c: Likewise.
15359         * sysdeps/posix/readdir_r.c: Likewise.
15360         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15361         * sysdeps/powerpc/bits/setjmp.h: Likewise.
15362         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
15363         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15364         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15365         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
15366         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15367         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15368         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15369         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
15370         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15371         * sysdeps/pthread/lio_listio.c: Likewise.
15372         * sysdeps/sparc/dl-procinfo.h: Likewise.
15373         * sysdeps/unix/i386/sysdep.S: Likewise.
15374         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
15375         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
15376         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
15377         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
15378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15379         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
15380         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
15381         * sysdeps/unix/sysv/linux/speed.c: Likewise.
15382         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
15383         * sysdeps/wordsize-32/divdi3.c: Likewise.
15384         * time/sys/time.h: Likewise.
15385         * wcsmbs/Makefile: Likewise.
15386
15387 2013-01-01  David S. Miller  <davem@davemloft.net>
15388
15389         * po/fr.po: Update from translation team.
15390
15391         * catgets/gencat.c: Update copyright year.
15392         * csu/version.c: Likewise.
15393         * debug/catchsegv.sh: Likewise.
15394         * debug/pcprofiledump.c: Likewise.
15395         * debug/xtrace.sh: Likewise.
15396         * elf/ldconfig.c: Likewise.
15397         * elf/ldd.bash.in: Likewise.
15398         * elf/pldd.c: Likewise.
15399         * elf/sotruss.ksh: Likewise.
15400         * elf/sprof.c: Likewise.
15401         * iconv/iconv_prog.c: Likewise.
15402         * iconv/iconvconfig.c: Likewise.
15403         * locale/programs/locale.c: Likewise.
15404         * locale/programs/localedef.c: Likewise.
15405         * login/programs/pt_chown.c: Likewise.
15406         * malloc/memusage.sh: Likewise.
15407         * malloc/memusagestat.c: Likewise.
15408         * malloc/mtrace.pl: Likewise.
15409         * nscd/nscd.c: Likewise.
15410         * nss/getent.c: Likewise.
15411         * nss/makedb.c: Likewise.
15412         * posix/getconf.c: Likewise.
15413
15414 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15415
15416         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
15417         numbers.
15418
15419 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
15420
15421         * math/bits/mathcalls.h (modf): Use __nonnull.
15422
15423 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15424
15425         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
15426         (split): Use macro CN instead of the bare value.
15427         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
15428         could be used.
15429         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
15430         instead of the bare value.
15431         (power1): Likewise.
15432
15433 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15434
15435         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
15436         __ATAN_TWOM.
15437         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15438
15439         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
15440         their values.
15441         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
15442         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
15443         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
15444         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
15445
15446 2012-12-28  Andreas Jaeger  <aj@suse.de>
15447
15448         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
15449         values are from Linux 3.7.
15450
15451         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
15452         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
15453
15454 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15455
15456         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
15457         TRUE case.
15458
15459         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
15460         (norm): Likewise.
15461         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
15462         variables with preprocessor constants.
15463         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15464         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15465         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15466
15467 2012-12-27  Bruno Haible  <bruno@clisp.org>
15468
15469         [BZ #14317]
15470         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
15471         only if needed.
15472
15473 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15474
15475         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
15476         and use variable directly.
15477         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
15478
15479         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15480         MPONE.
15481         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
15482         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15483         variable MPONE.
15484         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
15485         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
15486         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
15487         include directive.  Remove local variable MPONE.
15488         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
15489         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
15490         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15491
15492 2012-12-25  David S. Miller  <davem@davemloft.net>
15493
15494         * version.h (RELEASE): Set to "development".
15495         (VERSION): Set to "2.17.90".
15496         * NEWS: Add 2.18 section.
15497
15498 2012-12-21  David S. Miller  <davem@davemloft.net>
15499
15500         * po/hr.po: Update from translation team.
15501
15502 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15503
15504         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
15505
15506 2012-12-19  Steve Ellcey  <sellcey@mips.com>
15507
15508         * NEWS:  Mention new memcpy for MIPS.
15509
15510 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15511
15512         * manual/contrib.texi (Contributors): Spelling correction.
15513
15514 2012-12-15  David S. Miller  <davem@davemloft.net>
15515
15516         * po/ru.po: Update from translation team.
15517
15518 2012-12-13  David S. Miller  <davem@davemloft.net>
15519
15520         * NEWS: Mention IFUNC testsuite enhancements.
15521
15522         * po/pl.po: Update from translation team.
15523         * po/bg.po: Likewise.
15524
15525         * manual/contrib.texi (Contributors): Update entries for Hongjiu
15526         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
15527
15528 2012-12-11  David S. Miller  <davem@davemloft.net>
15529
15530         * po/sv.po: Update from translation team.
15531
15532         * po/vi.po: Update from translation team.
15533
15534         * po/cs.po: Update from translation team.
15535
15536         * po/de.po: Update from translation team.
15537         * po/eo.po: Likewise.
15538         * po/nl.po: Likewise.
15539
15540 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15541
15542         [BZ #14246]
15543         * manual/argp.texi (Argp Helper Functions): Move node to follow
15544         Argp Parsing State.
15545
15546         [BZ #14872]
15547         * manual/conf.texi (Limits on File System Capacity): Mention if
15548         terminating null is included in the max size.
15549
15550 2012-12-10  Andreas Jaeger  <aj@suse.de>
15551
15552         * po/cs.po: Update from translation team.
15553
15554 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
15555
15556         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
15557         void pointer and cast to uintptr_t.
15558         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
15559         path.
15560         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15561         * sysdeps/s390/s390-64/memset.S: Likewise.
15562
15563 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
15564
15565         [BZ #14833]
15566         * menual/message.texi (Message Translation): Fix typos.
15567         (Helper programs for gettext): Likewise.
15568
15569 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
15570
15571         [BZ #14898]
15572         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
15573         Change to -1.
15574
15575 2012-12-07  David S. Miller  <davem@davemloft.net>
15576
15577         * po/libc.pot: Update.
15578
15579 2012-12-07  Richard Henderson  <rth@redhat.com>
15580
15581         [BZ #10114]
15582         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
15583         normal/normal case to before the switch.
15584         (_FP_DIV): Likewise.
15585
15586 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
15587             Mike Frysinger  <vapier@gentoo.org>
15588
15589         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
15590         check for __NR_fadvise64_64.
15591
15592 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
15593
15594         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
15595         0, not just to plain "0" as a statement.
15596         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
15597         with cw.
15598
15599 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
15600
15601         * NEWS: Use sourceware.org in Bugzilla URL.
15602
15603 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15604
15605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
15606         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15607
15608         * stdio-common/tst-put-error.c (do_test): Add newline to the
15609         padded test to ensure flush.
15610
15611 2012-12-05  Jeff Law  <law@redhat.com>
15612
15613         * sunrpc/etc.rpc (fedfs_admin): Add entry.
15614
15615 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
15616
15617         * README: Don't refer to ports add-on as distributed separately.
15618         Mention AArch64 in list of systems supported in the ports add-on.
15619
15620         * LICENSES: Add more non-FSF copyright and license notices.
15621
15622         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
15623         ((unused)).
15624
15625         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
15626
15627         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
15628         10000 as width of padded output.
15629
15630 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15631
15632         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
15633
15634         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
15635         variable LX with __attribute__ ((unused)).
15636         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15637         Likewise.
15638         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
15639         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15640         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
15641         with __attribute__ ((unused)).
15642
15643 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
15644
15645         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
15646
15647 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15648
15649         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
15650         (CFLAGS-nldbl-acos.c): New variable.
15651         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
15652         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
15653         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
15654         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
15655         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
15656         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
15657         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
15658         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
15659         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
15660         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
15661         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
15662         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
15663         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
15664         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
15665         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
15666         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
15667         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
15668         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
15669         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
15670         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
15671         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
15672         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
15673         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
15674         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
15675         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
15676         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
15677         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
15678         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
15679         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
15680         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
15681         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
15682         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
15683         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
15684         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
15685         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
15686         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
15687         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
15688         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
15689         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
15690         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
15691         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
15692         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
15693         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
15694         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
15695         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
15696         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
15697         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
15698         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
15699         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
15700         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
15701         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
15702         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
15703         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
15704         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
15705         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
15706         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
15707         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
15708         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
15709         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
15710         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
15711         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
15712         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
15713         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
15714         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
15715         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
15716         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
15717         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
15718         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
15719         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
15720         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
15721         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
15722         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
15723         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
15724         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
15725         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
15726         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
15727         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
15728         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
15729         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
15730         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
15731         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
15732         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
15733         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
15734         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
15735         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
15736         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
15737         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
15738         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
15739         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
15740         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
15741         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
15742         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
15743         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
15744         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
15745         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
15746         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
15747         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
15748
15749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
15750         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15751
15752         [BZ #14914]
15753         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
15754         whole low double instead of just low 47 bits when splitting values
15755         into two parts.
15756
15757 2012-12-03  Allan McRae  <allan@archlinux.org>
15758
15759         * manual/stdio.texi (Predefined Printf Handlers): Remove
15760         @hsep and @vsep usage.
15761
15762 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
15763
15764         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
15765         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
15766
15767 2012-12-03  Jeff Law  <law@redhat.com>
15768
15769         * time/sys/time.h (settimeofday): Do not mark TV argument
15770         as __nonnull.
15771
15772 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
15773
15774         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
15775         when currently writing and seek to current position when not.
15776         * libio/Makefile (tests): Remove bug-fclose1.
15777         * libio/bug-fclose1.c: Delete.
15778
15779 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
15780
15781         * manual/arith.texi (feenableexcept): Fix typo.
15782         (fedisableexcept): Likewise.
15783
15784 2012-11-30  Roland McGrath  <roland@hack.frob.com>
15785
15786         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
15787         second, differently-typed declaration, rather than a cast.
15788
15789 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15790
15791         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
15792         * include/rpc/svc.h: ... here.
15793
15794 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
15795
15796         [BZ #13013]
15797         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
15798         depending n and resplen2 to catch cases where answer
15799         equals answerp2.
15800
15801 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
15802
15803         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
15804         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
15805
15806 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
15807
15808         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
15809
15810 2012-11-29  Roland McGrath  <roland@hack.frob.com>
15811
15812         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
15813
15814 2012-11-28  Jeff Law  <law@redhat.com>
15815
15816         [BZ #13761]
15817         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
15818         dataset_temporary.  Track alloca usage into alloca_used.
15819         If dataset is large allocate and release it via malloc/free.
15820
15821 2012-06-04  Florian Weimer  <fweimer@redhat.com>
15822
15823         [BZ #14197]
15824         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
15825
15826 2012-11-28  David S. Miller  <davem@davemloft.net>
15827
15828         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15829
15830 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15831
15832         [BZ #14803]
15833         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
15834         of pi/2 rounded to nearest to 64 bits.
15835         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
15836         nearest to 64 bits.
15837         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
15838         bits.
15839
15840 2012-11-28  Jeff Law <law@redhat.com>
15841             Martin Osvald <mosvald@redhat.com>
15842
15843         [BZ #14889]
15844         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
15845         * sunrpc/svc.c: Include time.h.
15846         (__svc_accept_failed): New function.
15847         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
15848         any reason other than EINTR, call __svc_accept_failed.
15849         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
15850         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
15851
15852 2012-11-28  Andreas Schwab  <schwab@suse.de>
15853
15854         * scripts/abilist.awk: Also handle indirect functions in .opd
15855         section.
15856
15857 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15858
15859         [BZ #13881]
15860         * sysdeps/x86/fpu/powl_helper.c: New file.
15861         * sysdeps/x86/fpu/Makefile: Likewise.
15862         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
15863         (p3): New object.
15864         (__ieee754_powl): Use __powl_helper for finite arguments except
15865         integer exponents below 8.
15866         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
15867         (p3): New object.
15868         (__ieee754_powl): Use __powl_helper for finite arguments except
15869         integer exponents below 8.
15870         * math/libm-test.inc (pow_test): Add more tests and enable some
15871         previously disabled tests.
15872         * sysdeps/i386/fpu/libm-test-ulps: Update.
15873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15874
15875 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15876             Carlos O'Donell  <carlos_odonell@mentor.com>
15877
15878         * nss/makedb.c (is_prime): Assert that input is odd and greater
15879         than 4.  Note that fact in a comment too.
15880         (next_prime): Add 4 to input.
15881
15882 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15883
15884         [BZ #11741]
15885         * libio/Makefile (tests): Add test case tst-fwrite-error.
15886         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
15887         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15888         * libio/tst-fwrite-error.c: New test case.
15889
15890 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
15891
15892         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
15893         before casting to void *.
15894         * include/libc-internal.h (__pointer_type): New macro.
15895         (__integer_if_pointer_type_sub): Likewise.
15896         (__integer_if_pointer_type): Likewise.
15897         (cast_to_integer): Likewise.
15898         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
15899         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
15900         before casting to atomic64_t.
15901         (atomic_exchange_acq): Likewise.
15902         (__arch_exchange_and_add_body): Likewise.
15903         (__arch_add_body): Likewise.
15904         (atomic_add_negative): Likewise.
15905         (atomic_add_zero): Likewise.
15906
15907 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
15908
15909         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
15910         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
15911         (add_fdes): Likewise.
15912         (linear_search_fdes): Likewise.
15913         (binary_search_unencoded_fdes): Likewise.
15914
15915 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
15916
15917         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
15918
15919 2012-11-24  Adam Conrad  <adconrad@0c3.net>
15920
15921         * configure.in: Autodetect C++ header directories.
15922         * configure: Regenerated.
15923
15924 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
15925
15926         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
15927
15928 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
15929
15930         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15931
15932 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
15933
15934         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
15935         LDBL_MANT_DIG == 106]: Disable some tests.
15936         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15937         Likewise.
15938         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
15939         Likewise.
15940
15941         [BZ #14871]
15942         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
15943         input for small inputs.  Return +/- pi/2 for large inputs.
15944         * math/libm-test.inc (atan_test): Add more tests.
15945
15946         * sysdeps/generic/unwind-dw2-fde-glibc.c
15947         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
15948         __attribute__ ((unused)).
15949
15950         [BZ #14645]
15951         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
15952         x * y if x and y are nonzero and z is zero.
15953
15954         [BZ #14811]
15955         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
15956         nonzero exponents with absolute value below 0x1p-117 to +/-
15957         0x1p-117.
15958
15959         [BZ #14869]
15960         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
15961         up arguments below 2**-450, not just those below 2**-500.
15962         * math/libm-test.inc (hypot_test): Add another test.
15963
15964         [BZ #14868]
15965         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
15966         Return a+b for ratio over 2**120, not 2**60.
15967         * math/libm-test.inc (hypot_test): Add another test.
15968
15969         * math/libm-test.inc (clog_test): Use
15970         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
15971         (clog10_test): Likewise.
15972
15973         [BZ #6778]
15974         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
15975
15976 2012-11-22  Andreas Schwab  <schwab@suse.de>
15977
15978         * sysdeps/i386/fpu/libm-test-ulps: Update.
15979
15980 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
15981
15982         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
15983         printf output with newline.
15984
15985 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15986
15987         [BZ #14865]
15988         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
15989         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
15990         -z nodlopen, -z initfirst and -z execstack support.
15991         * configure: Regenerated.
15992
15993         * elf/elf.h (DF_1_NODIRECT): New macro.
15994         (DF_1_IGNMULDEF): Likewise.
15995         (DF_1_NOKSYMS): Likewise.
15996         (DF_1_NOHDR): Likewise.
15997         (DF_1_EDITED): Likewise.
15998         (DF_1_NORELOC): Likewise.
15999         (DF_1_SYMINTPOSE): Likewise.
16000         (DF_1_GLOBAUDIT): Likewise.
16001         (DF_1_SINGLETON): Likewise.
16002         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
16003         DT_1_SUPPORTED_MASK bits.
16004         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
16005
16006 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
16007
16008         * sysdeps/unix/make-syscalls.sh: Document prefixes.
16009
16010 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
16011
16012         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
16013         macro.
16014
16015         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
16016         (sendmmsg): Move declarations...
16017         * socket/sys/socket.h: ... here.
16018         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
16019         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
16020         include it from...
16021         * socket/recvmmsg.c: ... this new file.
16022         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
16023         (sendmmsg): Rename to __sendmmsg, create weak alias and make
16024         definition of __sendmmsg hidden.
16025         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16026         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
16027         Move ENOSYS stub into and include it from...
16028         * socket/sendmmsg.c: ... this new file.
16029         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
16030         (sysdep_routines): Move recvmmsg and sendmmsg...
16031         * socket/Makefile (routines): ... here.
16032         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
16033         (GLIBC_PRIVATE): Add __sendmmsg.
16034         * include/sys/socket.h (__sendmmsg): Add declarations.
16035         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
16036         sendmmsg.
16037
16038 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
16039
16040         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
16041         variable I1 with __attribute__ ((unused)).
16042         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
16043
16044 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
16045
16046         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
16047         DUMMY variables with __attribute__ ((unused)).
16048
16049         * bits/byteswap.h: Include <bits/types.h>.
16050         (__bswap_64): Use __uint64_t instead of unsigned long long int.
16051
16052 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16053
16054         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
16055         string_t.  Do not manually set errno.
16056         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
16057         length with __strnlen.  Make sure to both set errno and return it on
16058         failure.
16059
16060 2012-11-19  David S. Miller  <davem@davemloft.net>
16061
16062         With help from Joseph Myers.
16063         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
16064         very large arguments properly.
16065         * math/libm-test.inc (atan_test): New tests.
16066         (atan2_test): New tests.
16067         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16068         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16069
16070 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
16071
16072         [BZ #14856]
16073         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
16074         Define to 3.
16075
16076         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
16077         [POSIX] (EADDRNOTAVAIL): Likewise.
16078         [POSIX] (EAFNOSUPPORT): Likewise.
16079         [POSIX] (EALREADY): Likewise.
16080         [POSIX] (ECONNABORTED): Likewise.
16081         [POSIX] (ECONNREFUSED): Likewise.
16082         [POSIX] (ECONNRESET): Likewise.
16083         [POSIX] (EDESTADDRREQ): Likewise.
16084         [POSIX] (EDQUOT): Likewise.
16085         [POSIX] (EHOSTUNREACH): Likewise.
16086         [POSIX] (EIDRM): Likewise.
16087         [POSIX] (EISCONN): Likewise.
16088         [POSIX] (ELOOP): Likewise.
16089         [POSIX] (EMULTIHOP): Likewise.
16090         [POSIX] (ENETDOWN): Likewise.
16091         [POSIX] (ENETUNREACH): Likewise.
16092         [POSIX] (ENOBUFS): Likewise.
16093         [POSIX] (ENODATA): Likewise.
16094         [POSIX] (ENOLINK): Likewise.
16095         [POSIX] (ENOMSG): Likewise.
16096         [POSIX] (ENOPROTOOPT): Likewise.
16097         [POSIX] (ENOSR): Likewise.
16098         [POSIX] (ENOSTR): Likewise.
16099         [POSIX] (ENOTCONN): Likewise.
16100         [POSIX] (ENOTSOCK): Likewise.
16101         [POSIX] (EOPNOTSUPP): Likewise.
16102         [POSIX] (EOVERFLOW): Likewise.
16103         [POSIX] (EPROTO): Likewise.
16104         [POSIX] (EPROTONOSUPPORT): Likewise.
16105         [POSIX] (EPROTOTYPE): Likewise.
16106         [POSIX] (ESTALE): Likewise.
16107         [POSIX] (ETIME): Likewise.
16108         [POSIX] (ETXTBSY): Likewise.
16109         [POSIX] (EWOULDBLOCK): Likewise.
16110         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
16111         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
16112         [POSIX] (SEEK_CUR): Likewise.
16113         [POSIX] (SEEK_END): Likewise.
16114         [POSIX || UNIX98] (mode_t): Do not require.
16115         [POSIX] (off_t): Likewise.
16116         [POSIX] (pid_t): Likewise.
16117         [POSIX] (sys/stat.h): Do not allow header.
16118         [POSIX] (unistd.h): Likewise.
16119         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
16120         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
16121         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
16122         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
16123         require.
16124         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
16125         sigevent): Specify elements.
16126         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
16127         entry.
16128         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
16129         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
16130
16131         * conform/data/cpio.h-data [POSIX]: Disable whole file.
16132         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
16133         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
16134         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
16135         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
16136         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
16137         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
16138         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
16139         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
16140         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
16141         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
16142         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
16143         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
16144         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
16145         Likewise.
16146         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
16147         Likewise.
16148         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
16149         Likewise.
16150         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
16151         Likewise.
16152         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
16153         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
16154         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
16155         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
16156         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
16157         Specify lower bound on value.
16158         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
16159         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
16160         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
16161         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
16162         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
16163         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
16164         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
16165         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
16166         value.
16167         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
16168         as optional.
16169         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
16170         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
16171         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
16172         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
16173         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
16174         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
16175         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
16176         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
16177         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
16178         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
16179         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
16180         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
16181         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
16182         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
16183         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
16184         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
16185         entry.
16186         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
16187         optional.
16188         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
16189         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
16190         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
16191         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
16192         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
16193         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
16194         Likewise.
16195         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
16196         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
16197         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
16198         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
16199         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
16200         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
16201         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
16202         as optional.
16203         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
16204         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
16205         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
16206         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
16207         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
16208         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
16209         specify as optional.
16210         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
16211         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
16212         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
16213         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
16214         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
16215         [XPG3] (NL_LANGMAX): Likewise.
16216         [POSIX || XPG3] (NL_MSGMAX): Likewise.
16217         [POSIX || XPG3] (NL_NMAX): Likewise.
16218         [POSIX || XPG3] (NL_SETMAX): Likewise.
16219         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
16220         [XPG3] (NZERO): Likewise.
16221         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
16222         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
16223         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
16224         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
16225         (REG_ERANGE): Expect.
16226         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
16227         optional-constant.
16228         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
16229         Use (void) in prototype.
16230         [POSIX] (*_t): Allow.
16231         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
16232         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
16233         (WRDE_BADVAL): Expect.
16234
16235         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
16236         expect.
16237         [XPG3 || XPG4] (O_RSYNC): Likewise.
16238         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
16239         Likewise.
16240         [XPG3 || XPG4] (pthread_sigmask): Likewise.
16241         [XPG3 || XPG4] (sigqueue): Likewise.
16242         [XPG3 || XPG4] (sigtimedwait): Likewise.
16243         [XPG3 || XPG4] (sigwaitinfo): Likewise.
16244         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
16245         [XPG3 || XPG4] (vsnprintf): Likewise.
16246         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
16247         Likewise.
16248         [XPG3 || XPG4] (blksize_t): Likewise.
16249         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
16250         Likewise.
16251         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
16252         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
16253         [XPG3 || XPG4] (struct itimerspec): Likewise.
16254         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
16255         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
16256         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
16257         [XPG3 || XPG4] (clockid_t): Likewise.
16258         [XPG3 || XPG4] (timer_t): Likewise.
16259         [XPG3 || XPG4] (clock_getres): Likewise.
16260         [XPG3 || XPG4] (clock_gettime): Likewise.
16261         [XPG3 || XPG4] (clock_settime): Likewise.
16262         [XPG3 || XPG4] (nanosleep): Likewise.
16263         [XPG3 || XPG4] (timer_create): Likewise.
16264         [XPG3 || XPG4] (timer_delete): Likewise.
16265         [XPG3 || XPG4] (timer_gettime): Likewise.
16266         [XPG3 || XPG4] (timer_getoverrun): Likewise.
16267         [XPG3 || XPG4] (timer_settime): Likewise.
16268         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
16269         [XPG3 || XPG4] (getlogin_r): Likewise.
16270         [XPG3 || XPG4] (pread): Likewise.
16271         [XPG3 || XPG4] (pthread_atfork): Likewise.
16272         [XPG3 || XPG4] (pwrite): Likewise.
16273
16274         [BZ #14835]
16275         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
16276         <bits/siginfo.h>.
16277
16278 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16279
16280         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
16281         finalizing MALLSTREAM.
16282
16283         * sysdeps/mach/hurd/syncfs.c: New file.
16284
16285 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
16286
16287         [BZ #14719]
16288         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
16289         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
16290         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
16291         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
16292         (_nss_dns_gethostbyname4_r): Likewise.
16293         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
16294         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
16295
16296 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
16297
16298         [BZ #13763]
16299         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
16300
16301 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
16302
16303         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
16304         * elf/cache.c (print_entry): Print ",AArch64" for
16305         FLAG_AARCH64_LIB64
16306
16307         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
16308         * elf/cache.c (print_entry): Print ",hard-float" for
16309         FLAG_ARM_LIBHF.
16310
16311 2012-11-18  David S. Miller  <davem@davemloft.net>
16312
16313         With help from Joseph Myers.
16314         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
16315         cutoff to 2**-13.
16316         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
16317         cutoff to 2**-25.
16318         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
16319         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
16320         small.
16321         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
16322         * math/libm-test.inc (y0_test): New tests.
16323         (y1_test): New tests.
16324         * sysdeps/i386/fpu/libm-test-ulps: Update.
16325         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16326         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16327
16328 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
16329
16330         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
16331         64-bit targets.
16332         * configure: Regenerated.
16333
16334 2012-11-17  David S. Miller  <davem@davemloft.net>
16335
16336         [BZ #14811]
16337         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
16338         nonzero exponents with absolute value below 0x1p-128 to +/-
16339         0x1p-128.
16340
16341 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
16342
16343         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
16344
16345         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
16346
16347         * posix/getconf-speclist.c: New file.
16348         * posix/posix-envs.def: Likewise.
16349         * posix/confstr.c (START_ENV_GROUP): New macro.
16350         (END_ENV_GROUP): Likewise.
16351         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16352         (KNOWN_PRESENT_ENV_STRING): Likewise.
16353         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16354         (UNKNOWN_ENVIRONMENT): Likewise.
16355         (confstr): Include posix-envs.def instead of handling
16356         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
16357         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
16358         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
16359         (END_ENV_GROUP): Likewise.
16360         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16361         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16362         (UNKNOWN_ENVIRONMENT): Likewise.
16363         (__sysconf): Include posix-envs.def instead of handling associated
16364         cases directly here.
16365         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
16366         preprocessing getconf-speclist.c rather than running getconf or
16367         generating empty file.
16368
16369 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
16370
16371         * scripts/check-local-headers.sh: Ignore 'mach' headers.
16372
16373 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
16374
16375         [BZ #14672]
16376         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
16377
16378 2012-11-16  David S. Miller  <davem@davemloft.net>
16379
16380         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
16381         smaller than LDBL_EPSILON/2.0L, just return xm1.
16382
16383 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
16384
16385         * elf/tst-array1.c (init): Set constructor priority to 1000.
16386         (fini): Set destructor priority to 1000.
16387         * elf/tst-array2dep.c: Likewise.
16388
16389 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16390
16391         [BZ #11741]
16392         * libio/fileops.c (_IO_new_file_write): Correctly return error.
16393         (_IO_new_file_xsputn): Also return EOF if none of the input
16394         data was written when overflow failed.
16395         * libio/iopadn.c (_IO_padn): Likewise.
16396         * libio/iowpadn.c (_IO_wpadn): Likewise.
16397         * stdio-common/tst-put-error.c: Add copyright notice.
16398         (do_test): Add case for printing padded string.
16399         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
16400         _IO_padn returned error.
16401         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
16402         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
16403         return EOF.
16404
16405 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16406
16407         * libio/libioP.h: Add comment note that the references to C++
16408         bits are now obsolete.
16409
16410 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16411
16412         * math/libm-test.inc (check_complex): Use asprintf.
16413
16414 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
16415
16416         * debug/pcprofiledump.c (print_version): Update copyright year.
16417         * malloc/memusagestat.c (print_version): Likewise.
16418
16419 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
16420
16421         [BZ #14831]
16422         * elf/Makefile (tests): Add tst-audit8.
16423         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
16424         ($(objpfx)tst-audit8.out): New target.
16425         (tst-audit8-ENV): New variable.
16426         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
16427         audit if l_reloc_result is NULL.
16428         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
16429         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
16430         * elf/tst-audit8.c: New file.
16431
16432 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16433
16434         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
16435         * misc/Makefile (CFLAGS-select.c): Define.
16436         * posix/Makefile (CFLAGS-pause.c): Define.
16437
16438 2012-11-13  David S. Miller  <davem@davemloft.net>
16439
16440         * crypt/Makefile: Move test targets after toplevel Rules
16441         inclusion.  Grab any necessary sysdep routines when linking.
16442         * crypt/md5.c (md5_process_block): Remove define, we will always
16443         name it __md5_process_block.
16444         (md5_finish_ctx): Update md5_process_block call.
16445         (md5_stream): Likewise.
16446         (md5_process_bytes): Likewise.
16447         (md5_process_block): Rename to __md5_process_block and move to ...
16448         * crypt/md5-block.c: ... here.
16449         * crypt/sha256.c (sha256_process_block): Move to ...
16450         * crypt/sha256-block.c: ... here.
16451         * crypt/sha512.c (sha512_process_block): Move to ...
16452         * crypt/sha512-block.c: ... here.
16453         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
16454         path.
16455         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
16456         * sysdeps/sparc/sparc64/multiarch/Makefile
16457         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
16458         crypt subdir.
16459         (localedef-aux): Add md5 crypto assembler when in locale subdir.
16460         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
16461         multiarch changes.
16462         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
16463         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
16464         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
16465         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
16466         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
16467         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
16468         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
16469         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
16470         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
16471         file.
16472         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
16473         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
16474         file.
16475         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
16476
16477 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
16478
16479         * timezone/tzselect.ksh: Update from tzcode git revision
16480         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
16481         * timezone/zdump.c: Likewise.
16482         * timezone/zic.c: Likewise.
16483         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
16484         in TZVERSION setting, not $(PKGVERSION).
16485         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
16486         REPORT_BUGS_TO settings.
16487
16488         [BZ #14838]
16489         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
16490         macro.
16491
16492 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16493
16494         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
16495         detection to immediately after _FP_ROUND().
16496         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
16497         bits are 0.
16498
16499 2012-11-11  David S. Miller  <davem@davemloft.net>
16500
16501         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
16502         inttypes.h
16503         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
16504         __close rather than their public counterparts.
16505
16506 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
16507
16508         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
16509         file.
16510         [UNIX98] (sem_timedwait): Do not expect.
16511         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
16512         [XPG4 || UNIX98] (sockatmark): Do not expect.
16513         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
16514         (clock_getcpuclockid): Do not expect.
16515         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
16516         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
16517         Do not expect.
16518         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
16519         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
16520         [UNIX98] (vwscanf): Likewise.
16521         [UNIX98] (vswscanf): Likewise.
16522
16523 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
16524
16525         * timezone/version.h: Remove file.
16526         * timezone/README: Do not refer to version.h.
16527         * timezone/Makefile ($(objpfx)zic.o): New dependency on
16528         $(objpfx)version.h.
16529         ($(objpfx)zdump.o): Likewise.
16530         ($(objpfx)version.h): New target.
16531
16532         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
16533         2012i.
16534         * timezone/README: Don't mention modification to tzselect.ksh.
16535         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
16536         work on unmodified tzselect.ksh.  Substitute version numbers in
16537         tzselect.ksh.
16538
16539         * Makefile (format-me): Remove.
16540         (INSTALL): Adjust indentation.  Use commands directly instead of
16541         using $(format-me).
16542
16543         * aclocal.m4 (ACX_PKGVERSION): New macro.
16544         (ACX_BUGURL): Likewise.
16545         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
16546         (PKGVERSION): New AC_DEFINE_UNQUOTED.
16547         (REPORT_BUGS_TO): Likewise.
16548         * configure: Regenerated.
16549         * config.h.in (PKGVERSION): New macro.
16550         (REPORT_BUGS_TO): Likewise.
16551         * config.make.in (PKGVERSION): New variable.
16552         (PKGVERSION_TEXI): Likewise.
16553         (REPORT_BUGS_TO): Likewise.
16554         (REPORT_BUGS_TEXI): Likewise.
16555         * Makefile (format-me): Use -I$(common-objpfx)manual.
16556         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
16557         ($(common-objpfx)manual/%): New target.
16558         (manual/%): Remove target.
16559         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
16560         (print_version): Use PKGVERSION.
16561         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
16562         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
16563         and REPORT_BUGS_TO.
16564         ($(objpfx)xtrace): Likewise.
16565         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
16566         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
16567         (print_version): Use PKGVERSION.
16568         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
16569         (do_version): Use PKGVERSION.
16570         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
16571         REPORT_BUGS_TO.
16572         (common-ldd-rewrite): Likewise.
16573         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
16574         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
16575         (print_version): Use PKGVERSION.
16576         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
16577         * elf/pldd.c (argp_program_bug_address): Remove variable.
16578         (more_help): New function.
16579         (argp): Use more_help.
16580         (print_version): Use PKGVERSION.
16581         * elf/sln.c (main): Use PKGVERSION.
16582         (usage): Use REPORT_BUGS_TO.
16583         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
16584         (top level): Use PKGVERSION.
16585         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
16586         (print_version): Use PKGVERSION.
16587         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
16588         (print_version): Use PKGVERSION.
16589         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
16590         (print_version): Use PKGVERSION.
16591         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
16592         (print_version): Use PKGVERSION.
16593         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
16594         (print_version): Use PKGVERSION.
16595         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
16596         (print_version): Use PKGVERSION.
16597         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
16598         and BUGURL.
16599         ($(objpfx)memusage): Likewise.
16600         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
16601         (do_version): Use PKGVERSION.
16602         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
16603         (print_version): Use PKGVERSION.
16604         * malloc/mtrace.pl ($PACKAGE): Remove variable.
16605         ($PKGVERSION): New variable.
16606         ($REPORT_BUGS_TO): Likewise.
16607         (usage): Use $REPORT_BUGS_TO.
16608         (top level): Use $PKGVERSION.
16609         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
16610         ($(objpfx)pkgvers.texi): New rule.
16611         ($(objpfx)stamp-pkgvers): Likewise.
16612         * manual/install.texi: Include pkgvers.texi.
16613         (--with-pkgversion): Document new configure option.
16614         (--with-bugurl): Likewise.
16615         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
16616         than necessarily for this particular distribution.  Use
16617         REPORT_BUGS_TO for where to report bugs.
16618         * INSTALL: Regenerated.
16619         * manual/libc.texinfo: Include pkgvers.texi.
16620         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
16621         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
16622         (print_version): Use PKGVERSION.
16623         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
16624         (print_version): Use PKGVERSION.
16625         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
16626         (print_version): Use PKGVERSION.
16627         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
16628         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
16629         macro.
16630         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
16631         (print_version): Use PKGVERSION.
16632         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
16633         (print_version): Use PKGVERSION.
16634         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
16635         and PKGVERSION.
16636
16637         * timezone/checktab.awk: Update from tzcode 2012i.
16638         * timezone/ialloc.c: Likewise.
16639         * timezone/private.h: Likewise.
16640         * timezone/scheck.c: Likewise.
16641         * timezone/tzfile.h: Likewise.
16642         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
16643         (TZVERSION): Hardcode tzcode version number.
16644         * timezone/zdump.c: Update from tzcode 2012i.
16645         * timezone/zic.c: Likewise.
16646         * timezone/version.h: New file.
16647         * timezone/README: Describe version.h.  Update upstream location.
16648
16649         [BZ #14824]
16650         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
16651         (mktemp): Enable declaration.
16652         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
16653         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
16654         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
16655         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
16656         Likewise.
16657         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
16658         Likewise.
16659         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
16660         Likewise.
16661         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
16662         Likewise.
16663         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
16664         Likewise.
16665         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
16666         Likewise.
16667
16668         [BZ #14821]
16669         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
16670         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
16671         for copies of such integer values.
16672         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16673         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16674
16675 2012-11-09  Andreas Jaeger  <aj@suse.de>
16676
16677         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
16678         definitions and declarations that are provided by
16679         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
16680
16681 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16682
16683         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
16684         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
16685         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
16686         definition.
16687
16688 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16689
16690         * elf/elf.h: Update comment before AArch64 relocations.
16691
16692 2012-11-07  David S. Miller  <davem@davemloft.net>
16693
16694         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
16695         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16696         (__start_context): Declare.
16697         (__makecontext_ret): Delete.
16698         (__makecontext): Hook up __start_context instead of
16699         __makecontext_ret.
16700         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
16701         (sysdep_routines): Add __start_context when in stdlib.
16702
16703 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16704
16705         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
16706         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
16707         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
16708         hardcoded "nm".
16709         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
16710         (READELF): New variable.  Use it instead of hardcoded "readelf".
16711
16712 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16713
16714         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
16715         * sysdeps/x86/Makefile: Here.
16716         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
16717         * sysdeps/x86/tst-xmmymm.sh: This.
16718
16719 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16720
16721         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
16722         expectations.
16723         [UNIX98] (pthread_barrier_t): Do not expect.
16724         [UNIX98] (pthread_barrierattr_t): Likewise.
16725         [UNIX98] (pthread_spinlock_t): Likewise.
16726         [UNIX98] (pthread_barrier_destroy): Likewise.
16727         [UNIX98] (pthread_barrier_init): Likewise.
16728         [UNIX98] (pthread_barrier_wait): Likewise.
16729         [UNIX98] (pthread_barrierattr_destroy): Likewise.
16730         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
16731         [UNIX98] (pthread_barrierattr_init): Likewise.
16732         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
16733         [UNIX98] (pthread_getcpuclockid): Likewise.
16734         [UNIX98] (pthread_mutex_timedlock): Likewise.
16735         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
16736         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
16737         [UNIX98] (pthread_sigmask): Likewise.
16738         [UNIX98] (pthread_spin_destroy): Likewise.
16739         [UNIX98] (pthread_spin_init): Likewise.
16740         [UNIX98] (pthread_spin_lock): Likewise.
16741         [UNIX98] (pthread_spin_trylock): Likewise.
16742         [UNIX98] (pthread_spin_unlock): Likewise.
16743         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
16744         Do not expect.
16745         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
16746         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
16747         [XPG3 || XPG4] (pthread_cond_t): Likewise.
16748         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
16749         [XPG3 || XPG4] (pthread_key_t): Likewise.
16750         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
16751         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
16752         [XPG3 || XPG4] (pthread_once_t): Likewise.
16753         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
16754         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
16755         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
16756         [XPG3 || XPG4] (pthread_t): Likewise.
16757
16758         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
16759         not expect.
16760         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
16761
16762         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
16763         Change function return type to int.
16764
16765         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
16766         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
16767         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
16768         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
16769         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
16770         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
16771         [!POSIX] (posix_madvise): Likewise.
16772         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
16773         && !UNIX98].
16774         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
16775         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
16776         (mode_t): Likewise.
16777         (posix_mem_offset): Likewise.
16778         (posix_typed_mem_get_info): Likewise.
16779         (posix_typed_mem_open): Likewise.
16780
16781         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
16782         Change condition to [XOPEN2K8].
16783
16784         * conform/conformtest.pl: Preprocess allow-header data with -x c
16785         instead of from stdin.
16786         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
16787         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
16788         [C99-based standards] (cerfc): Likewise.
16789         [C99-based standards] (cexp2): Likewise.
16790         [C99-based standards] (cexpm1): Likewise.
16791         [C99-based standards] (clog10): Likewise.
16792         [C99-based standards] (clog1p): Likewise.
16793         [C99-based standards] (clog2): Likewise.
16794         [C99-based standards] (clgamma): Likewise.
16795         [C99-based standards] (ctgamma): Likewise.
16796         [C99-based standards] (cerff): Likewise.
16797         [C99-based standards] (cerfcf): Likewise.
16798         [C99-based standards] (cexp2f): Likewise.
16799         [C99-based standards] (cexpm1f): Likewise.
16800         [C99-based standards] (clog10f): Likewise.
16801         [C99-based standards] (clog1pf): Likewise.
16802         [C99-based standards] (clog2f): Likewise.
16803         [C99-based standards] (clgammaf): Likewise.
16804         [C99-based standards] (ctgammaf): Likewise.
16805         [C99-based standards] (cerfl): Likewise.
16806         [C99-based standards] (cerfcl): Likewise.
16807         [C99-based standards] (cexp2l): Likewise.
16808         [C99-based standards] (cexpm1l): Likewise.
16809         [C99-based standards] (clog10l): Likewise.
16810         [C99-based standards] (clog1pl): Likewise.
16811         [C99-based standards] (clog2l): Likewise.
16812         [C99-based standards] (clgammal): Likewise.
16813         [C99-based standards] (ctgammal): Likewise.
16814         * conform/data/inttypes.h-data [C99-based standards]: Include
16815         stdint.h-data.  Remove all expectations for stdint.h contents.
16816         [C99-based standards] (PRI*): Do not allow.
16817         [C99-based standards] (SCN*): Likewise.
16818         [C99-based standards] (*_t): Likewise.
16819         [C99-based-standards] (PRId8): Expect macro.
16820         [C99-based-standards] (PRIi8): Likewise.
16821         [C99-based-standards] (PRIo8): Likewise.
16822         [C99-based-standards] (PRIu8): Likewise.
16823         [C99-based-standards] (PRIx8): Likewise.
16824         [C99-based-standards] (PRIX8): Likewise.
16825         [C99-based-standards] (SCNd8): Likewise.
16826         [C99-based-standards] (SCNi8): Likewise.
16827         [C99-based-standards] (SCNo8): Likewise.
16828         [C99-based-standards] (SCNu8): Likewise.
16829         [C99-based-standards] (SCNx8): Likewise.
16830         [C99-based-standards] (PRIdLEAST8): Likewise.
16831         [C99-based-standards] (PRIiLEAST8): Likewise.
16832         [C99-based-standards] (PRIoLEAST8): Likewise.
16833         [C99-based-standards] (PRIuLEAST8): Likewise.
16834         [C99-based-standards] (PRIxLEAST8): Likewise.
16835         [C99-based-standards] (PRIXLEAST8): Likewise.
16836         [C99-based-standards] (SCNdLEAST8): Likewise.
16837         [C99-based-standards] (SCNiLEAST8): Likewise.
16838         [C99-based-standards] (SCNoLEAST8): Likewise.
16839         [C99-based-standards] (SCNuLEAST8): Likewise.
16840         [C99-based-standards] (SCNxLEAST8): Likewise.
16841         [C99-based-standards] (PRIdFAST8): Likewise.
16842         [C99-based-standards] (PRIiFAST8): Likewise.
16843         [C99-based-standards] (PRIoFAST8): Likewise.
16844         [C99-based-standards] (PRIuFAST8): Likewise.
16845         [C99-based-standards] (PRIxFAST8): Likewise.
16846         [C99-based-standards] (PRIXFAST8): Likewise.
16847         [C99-based-standards] (SCNdFAST8): Likewise.
16848         [C99-based-standards] (SCNiFAST8): Likewise.
16849         [C99-based-standards] (SCNoFAST8): Likewise.
16850         [C99-based-standards] (SCNuFAST8): Likewise.
16851         [C99-based-standards] (SCNxFAST8): Likewise.
16852         [C99-based-standards] (PRId16): Likewise.
16853         [C99-based-standards] (PRIi16): Likewise.
16854         [C99-based-standards] (PRIo16): Likewise.
16855         [C99-based-standards] (PRIu16): Likewise.
16856         [C99-based-standards] (PRIx16): Likewise.
16857         [C99-based-standards] (PRIX16): Likewise.
16858         [C99-based-standards] (SCNd16): Likewise.
16859         [C99-based-standards] (SCNi16): Likewise.
16860         [C99-based-standards] (SCNo16): Likewise.
16861         [C99-based-standards] (SCNu16): Likewise.
16862         [C99-based-standards] (SCNx16): Likewise.
16863         [C99-based-standards] (PRIdLEAST16): Likewise.
16864         [C99-based-standards] (PRIiLEAST16): Likewise.
16865         [C99-based-standards] (PRIoLEAST16): Likewise.
16866         [C99-based-standards] (PRIuLEAST16): Likewise.
16867         [C99-based-standards] (PRIxLEAST16): Likewise.
16868         [C99-based-standards] (PRIXLEAST16): Likewise.
16869         [C99-based-standards] (SCNdLEAST16): Likewise.
16870         [C99-based-standards] (SCNiLEAST16): Likewise.
16871         [C99-based-standards] (SCNoLEAST16): Likewise.
16872         [C99-based-standards] (SCNuLEAST16): Likewise.
16873         [C99-based-standards] (SCNxLEAST16): Likewise.
16874         [C99-based-standards] (PRIdFAST16): Likewise.
16875         [C99-based-standards] (PRIiFAST16): Likewise.
16876         [C99-based-standards] (PRIoFAST16): Likewise.
16877         [C99-based-standards] (PRIuFAST16): Likewise.
16878         [C99-based-standards] (PRIxFAST16): Likewise.
16879         [C99-based-standards] (PRIXFAST16): Likewise.
16880         [C99-based-standards] (SCNdFAST16): Likewise.
16881         [C99-based-standards] (SCNiFAST16): Likewise.
16882         [C99-based-standards] (SCNoFAST16): Likewise.
16883         [C99-based-standards] (SCNuFAST16): Likewise.
16884         [C99-based-standards] (SCNxFAST16): Likewise.
16885         [C99-based-standards] (PRId32): Likewise.
16886         [C99-based-standards] (PRIi32): Likewise.
16887         [C99-based-standards] (PRIo32): Likewise.
16888         [C99-based-standards] (PRIu32): Likewise.
16889         [C99-based-standards] (PRIx32): Likewise.
16890         [C99-based-standards] (PRIX32): Likewise.
16891         [C99-based-standards] (SCNd32): Likewise.
16892         [C99-based-standards] (SCNi32): Likewise.
16893         [C99-based-standards] (SCNo32): Likewise.
16894         [C99-based-standards] (SCNu32): Likewise.
16895         [C99-based-standards] (SCNx32): Likewise.
16896         [C99-based-standards] (PRIdLEAST32): Likewise.
16897         [C99-based-standards] (PRIiLEAST32): Likewise.
16898         [C99-based-standards] (PRIoLEAST32): Likewise.
16899         [C99-based-standards] (PRIuLEAST32): Likewise.
16900         [C99-based-standards] (PRIxLEAST32): Likewise.
16901         [C99-based-standards] (PRIXLEAST32): Likewise.
16902         [C99-based-standards] (SCNdLEAST32): Likewise.
16903         [C99-based-standards] (SCNiLEAST32): Likewise.
16904         [C99-based-standards] (SCNoLEAST32): Likewise.
16905         [C99-based-standards] (SCNuLEAST32): Likewise.
16906         [C99-based-standards] (SCNxLEAST32): Likewise.
16907         [C99-based-standards] (PRIdFAST32): Likewise.
16908         [C99-based-standards] (PRIiFAST32): Likewise.
16909         [C99-based-standards] (PRIoFAST32): Likewise.
16910         [C99-based-standards] (PRIuFAST32): Likewise.
16911         [C99-based-standards] (PRIxFAST32): Likewise.
16912         [C99-based-standards] (PRIXFAST32): Likewise.
16913         [C99-based-standards] (SCNdFAST32): Likewise.
16914         [C99-based-standards] (SCNiFAST32): Likewise.
16915         [C99-based-standards] (SCNoFAST32): Likewise.
16916         [C99-based-standards] (SCNuFAST32): Likewise.
16917         [C99-based-standards] (SCNxFAST32): Likewise.
16918         [C99-based-standards] (PRId64): Likewise.
16919         [C99-based-standards] (PRIi64): Likewise.
16920         [C99-based-standards] (PRIo64): Likewise.
16921         [C99-based-standards] (PRIu64): Likewise.
16922         [C99-based-standards] (PRIx64): Likewise.
16923         [C99-based-standards] (PRIX64): Likewise.
16924         [C99-based-standards] (SCNd64): Likewise.
16925         [C99-based-standards] (SCNi64): Likewise.
16926         [C99-based-standards] (SCNo64): Likewise.
16927         [C99-based-standards] (SCNu64): Likewise.
16928         [C99-based-standards] (SCNx64): Likewise.
16929         [C99-based-standards] (PRIdLEAST64): Likewise.
16930         [C99-based-standards] (PRIiLEAST64): Likewise.
16931         [C99-based-standards] (PRIoLEAST64): Likewise.
16932         [C99-based-standards] (PRIuLEAST64): Likewise.
16933         [C99-based-standards] (PRIxLEAST64): Likewise.
16934         [C99-based-standards] (PRIXLEAST64): Likewise.
16935         [C99-based-standards] (SCNdLEAST64): Likewise.
16936         [C99-based-standards] (SCNiLEAST64): Likewise.
16937         [C99-based-standards] (SCNoLEAST64): Likewise.
16938         [C99-based-standards] (SCNuLEAST64): Likewise.
16939         [C99-based-standards] (SCNxLEAST64): Likewise.
16940         [C99-based-standards] (PRIdFAST64): Likewise.
16941         [C99-based-standards] (PRIiFAST64): Likewise.
16942         [C99-based-standards] (PRIoFAST64): Likewise.
16943         [C99-based-standards] (PRIuFAST64): Likewise.
16944         [C99-based-standards] (PRIxFAST64): Likewise.
16945         [C99-based-standards] (PRIXFAST64): Likewise.
16946         [C99-based-standards] (SCNdFAST64): Likewise.
16947         [C99-based-standards] (SCNiFAST64): Likewise.
16948         [C99-based-standards] (SCNoFAST64): Likewise.
16949         [C99-based-standards] (SCNuFAST64): Likewise.
16950         [C99-based-standards] (SCNxFAST64): Likewise.
16951         [C99-based-standards] (PRIdMAX): Likewise.
16952         [C99-based-standards] (PRIiMAX): Likewise.
16953         [C99-based-standards] (PRIoMAX): Likewise.
16954         [C99-based-standards] (PRIuMAX): Likewise.
16955         [C99-based-standards] (PRIxMAX): Likewise.
16956         [C99-based-standards] (PRIXMAX): Likewise.
16957         [C99-based-standards] (SCNdMAX): Likewise.
16958         [C99-based-standards] (SCNiMAX): Likewise.
16959         [C99-based-standards] (SCNoMAX): Likewise.
16960         [C99-based-standards] (SCNuMAX): Likewise.
16961         [C99-based-standards] (SCNxMAX): Likewise.
16962         [C99-based-standards] (PRIdPTR): Likewise.
16963         [C99-based-standards] (PRIiPTR): Likewise.
16964         [C99-based-standards] (PRIoPTR): Likewise.
16965         [C99-based-standards] (PRIuPTR): Likewise.
16966         [C99-based-standards] (PRIxPTR): Likewise.
16967         [C99-based-standards] (PRIXPTR): Likewise.
16968         [C99-based-standards] (SCNdPTR): Likewise.
16969         [C99-based-standards] (SCNiPTR): Likewise.
16970         [C99-based-standards] (SCNoPTR): Likewise.
16971         [C99-based-standards] (SCNuPTR): Likewise.
16972         [C99-based-standards] (SCNxPTR): Likewise.
16973         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
16974         allow.
16975         * conform/data/stdint.h-data: Update comments to clarify
16976         requirements.
16977         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
16978         type.
16979         [C99-based standards] (INT8_MAX): Likewise.
16980         [C99-based standards] (INT16_MIN): Likewise.
16981         [C99-based standards] (INT16_MAX): Likewise.
16982         [C99-based standards] (INT32_MIN): Likewise.
16983         [C99-based standards] (INT32_MAX): Likewise.
16984         [C99-based standards] (INT64_MIN): Likewise.
16985         [C99-based standards] (INT64_MAX): Likewise.
16986         [C99-based standards] (UINT8_MAX): Likewise.
16987         [C99-based standards] (UINT16_MAX): Likewise.
16988         [C99-based standards] (UINT32_MAX): Likewise.
16989         [C99-based standards] (UINT64_MAX): Likewise.
16990         [C99-based standards] (INT_LEAST8_MIN): Likewise.
16991         [C99-based standards] (INT_LEAST8_MAX): Likewise.
16992         [C99-based standards] (INT_LEAST16_MIN): Likewise.
16993         [C99-based standards] (INT_LEAST16_MAX): Likewise.
16994         [C99-based standards] (INT_LEAST32_MIN): Likewise.
16995         [C99-based standards] (INT_LEAST32_MAX): Likewise.
16996         [C99-based standards] (INT_LEAST64_MIN): Likewise.
16997         [C99-based standards] (INT_LEAST64_MAX): Likewise.
16998         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
16999         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
17000         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
17001         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
17002         [C99-based standards] (INT_FAST8_MIN): Likewise.
17003         [C99-based standards] (INT_FAST8_MAX): Likewise.
17004         [C99-based standards] (INT_FAST16_MIN): Likewise.
17005         [C99-based standards] (INT_FAST16_MAX): Likewise.
17006         [C99-based standards] (INT_FAST32_MIN): Likewise.
17007         [C99-based standards] (INT_FAST32_MAX): Likewise.
17008         [C99-based standards] (INT_FAST64_MIN): Likewise.
17009         [C99-based standards] (INT_FAST64_MAX): Likewise.
17010         [C99-based standards] (UINT_FAST8_MAX): Likewise.
17011         [C99-based standards] (UINT_FAST16_MAX): Likewise.
17012         [C99-based standards] (UINT_FAST32_MAX): Likewise.
17013         [C99-based standards] (UINT_FAST64_MAX): Likewise.
17014         [C99-based standards] (INTPTR_MIN): Likewise.
17015         [C99-based standards] (INTPTR_MAX): Likewise.
17016         [C99-based standards] (UINTPTR_MAX): Likewise.
17017         [C99-based standards] (INTMAX_MIN): Likewise.
17018         [C99-based standards] (INTMAX_MAX): Likewise.
17019         [C99-based standards] (UINTMAX_MAX): Likewise.
17020         [C99-based standards] (PTRDIFF_MIN): Likewise.
17021         [C99-based standards] (PTRDIFF_MAX): Likewise.
17022         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
17023         [C99-based standards] (SIZE_MAX): Likewise.
17024         [C99-based standards] (WCHAR_MAX): Likewise.
17025         [C99-based standards] (WINT_MAX): Likewise.
17026         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
17027         constraint on value.
17028         [C99-based standards] (WCHAR_MIN): Likewise.
17029         [C99-based standards] (WINT_MIN): Likewise.
17030         [C99-based standards] (*_t): Allow.
17031         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
17032         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
17033         Include math.h-data and complex.h-data.  Remove all expectations
17034         of math.h and complex.h contents.
17035         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
17036         at end of line.
17037         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
17038         (struct tm): Expect tag.
17039         [C99-based-standards] (wcstof): Expect function.
17040         [C99-based-standards] (wcstold): Likewise.
17041         [C99-based-standards] (wcstoll): Likewise.
17042         [C99-based-standards] (wcstoull): Likewise.
17043         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
17044         macro-int-constant.  Specify type.
17045         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
17046         constraint on value.
17047         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
17048         Specify type.
17049         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
17050         Specify value.
17051         [ISO C standards]: Do not allow headers.
17052         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
17053         wcs[abcdefghijklmnopqrstuvwxyz]*.
17054         [ISO C standards] (*_t): Do not allow.
17055         * conform/data/wctype.h-data [C99-based standards] (iswblank):
17056         Expect function.
17057         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
17058         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
17059         Specify type.
17060         [ISO C standards]: Do not allow headers.
17061         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
17062         is[abcdefghijklmnopqrstuvwxyz]*.
17063         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
17064         to[abcdefghijklmnopqrstuvwxyz]*.
17065         [ISO C standards] (*_t): Do not allow.
17066         * conform/data/stdalign.h-data: New file.
17067         * conform/data/stdbool.h-data: Likewise.
17068         * conform/data/stdnoreturn.h-data: Likewise.
17069
17070 2012-11-07  Roland McGrath  <roland@hack.frob.com>
17071
17072         [BZ #14815]
17073         * manual/filesys.texi (Directory Entries): Typo fix.
17074         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
17075
17076 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
17077
17078         * elf/elf.h (EM_AARCH64): New macro.
17079         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
17080         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
17081         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
17082         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
17083         (R_AARCH64_TLSDESC): Likewise.
17084         (NT_ARM_TLS): Likewise.
17085         (NT_ARM_HW_BREAK): Likewise.
17086         (NT_ARM_HW_WATCH): Likewise.
17087
17088 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
17089
17090         [BZ #14811]
17091         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
17092         (__ieee754_powl): Saturate nonzero exponents with absolute value
17093         below 0x1p-79 to +/- 0x1p-79.
17094         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
17095         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
17096         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
17097         nonzero exponents with absolute value below 0x1p-32 to +/-
17098         0x1p-32.
17099         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
17100         (__ieee754_powl): Saturate nonzero exponents with absolute value
17101         below 0x1p-79 to +/- 0x1p-79.
17102         * math/libm-test.inc (pow_test): Add more tests.
17103
17104 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17105
17106         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
17107         _dl_s390_cap_flags with kernel. Increase string length.
17108         (_dl_s390_platforms): Add z196 and zEC12.
17109
17110 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
17111
17112         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
17113         Change XOPEN21K to XOPEN2K.
17114
17115 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17116
17117         * string/memmove.c: Use memcpy when possible.
17118
17119 2012-11-06  Andreas Jaeger  <aj@suse.de>
17120
17121         * po/eo.po: Update from translation team.
17122
17123 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
17124
17125         [BZ #14793]
17126         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
17127         exponent and small x and y exponents, scale x or y up.  Increase
17128         by 2 the exponent used in scaling up.
17129         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17130         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17131         * math/libm-test.inc (fma_test): Add more tests.
17132         (fma_test_towardzero): Likewise.
17133         (fma_test_downward): Likewise.
17134         (fma_test_upward): Likewise.
17135
17136 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
17137
17138         [BZ #14805]
17139         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
17140         fenv_t *.
17141
17142         [BZ #14801]
17143         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
17144         namespace for names of struct fields.
17145         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
17146         fenv_t fields.
17147         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
17148         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
17149
17150 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17151
17152         [BZ #3665]
17153         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
17154
17155 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17156
17157         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
17158         PTR_DEMANGLE.
17159
17160         [BZ #5246]
17161         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
17162         PTR_DEMANGLE.
17163
17164 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
17165
17166         [BZ #14797]
17167         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
17168         definitely overflow as x * y not x * y + z.
17169         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17170         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17171         * math/libm-test.inc (fma_test): Add more tests.
17172         (fma_test_towardzero): Likewise.
17173         (fma_test_downward): Likewise.
17174         (fma_test_upward): Likewise.
17175
17176 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17177
17178         [BZ #157]
17179
17180         * include/stub-tag.h: Remove file.
17181         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
17182         '#include' of it.
17183         * manual/maint.texi (Porting): Don't reference it.
17184         * Makerules ($(objpfx)stubs): Likewise.
17185         * dirent/closedir.c: Don't include <stub-tag.h>.
17186         * dirent/dirfd.c: Likewise.
17187         * dirent/fdopendir.c: Likewise.
17188         * dirent/getdents.c: Likewise.
17189         * dirent/getdents64.c: Likewise.
17190         * dirent/opendir.c: Likewise.
17191         * dirent/readdir.c: Likewise.
17192         * dirent/readdir64.c: Likewise.
17193         * dirent/readdir64_r.c: Likewise.
17194         * dirent/readdir_r.c: Likewise.
17195         * dirent/rewinddir.c: Likewise.
17196         * dirent/seekdir.c: Likewise.
17197         * dirent/telldir.c: Likewise.
17198         * gmon/profil.c: Likewise.
17199         * grp/setgroups.c: Likewise.
17200         * inet/if_index.c: Likewise.
17201         * io/access.c: Likewise.
17202         * io/chdir.c: Likewise.
17203         * io/chmod.c: Likewise.
17204         * io/chown.c: Likewise.
17205         * io/close.c: Likewise.
17206         * io/dup.c: Likewise.
17207         * io/dup2.c: Likewise.
17208         * io/dup3.c: Likewise.
17209         * io/euidaccess.c: Likewise.
17210         * io/faccessat.c: Likewise.
17211         * io/fchdir.c: Likewise.
17212         * io/fchmod.c: Likewise.
17213         * io/fchmodat.c: Likewise.
17214         * io/fchown.c: Likewise.
17215         * io/fchownat.c: Likewise.
17216         * io/fcntl.c: Likewise.
17217         * io/flock.c: Likewise.
17218         * io/fstatfs.c: Likewise.
17219         * io/fstatfs64.c: Likewise.
17220         * io/fstatvfs.c: Likewise.
17221         * io/fstatvfs64.c: Likewise.
17222         * io/futimens.c: Likewise.
17223         * io/fxstat.c: Likewise.
17224         * io/fxstat64.c: Likewise.
17225         * io/fxstatat.c: Likewise.
17226         * io/fxstatat64.c: Likewise.
17227         * io/getcwd.c: Likewise.
17228         * io/isatty.c: Likewise.
17229         * io/lchmod.c: Likewise.
17230         * io/lchown.c: Likewise.
17231         * io/link.c: Likewise.
17232         * io/linkat.c: Likewise.
17233         * io/lseek.c: Likewise.
17234         * io/lseek64.c: Likewise.
17235         * io/lxstat64.c: Likewise.
17236         * io/mkdir.c: Likewise.
17237         * io/mkdirat.c: Likewise.
17238         * io/mkfifo.c: Likewise.
17239         * io/mkfifoat.c: Likewise.
17240         * io/open.c: Likewise.
17241         * io/open64.c: Likewise.
17242         * io/openat.c: Likewise.
17243         * io/openat64.c: Likewise.
17244         * io/pipe.c: Likewise.
17245         * io/pipe2.c: Likewise.
17246         * io/poll.c: Likewise.
17247         * io/posix_fadvise.c: Likewise.
17248         * io/posix_fadvise64.c: Likewise.
17249         * io/posix_fallocate.c: Likewise.
17250         * io/posix_fallocate64.c: Likewise.
17251         * io/read.c: Likewise.
17252         * io/readlink.c: Likewise.
17253         * io/readlinkat.c: Likewise.
17254         * io/rmdir.c: Likewise.
17255         * io/sendfile.c: Likewise.
17256         * io/sendfile64.c: Likewise.
17257         * io/statfs.c: Likewise.
17258         * io/statfs64.c: Likewise.
17259         * io/statvfs.c: Likewise.
17260         * io/statvfs64.c: Likewise.
17261         * io/symlink.c: Likewise.
17262         * io/symlinkat.c: Likewise.
17263         * io/ttyname.c: Likewise.
17264         * io/ttyname_r.c: Likewise.
17265         * io/umask.c: Likewise.
17266         * io/unlink.c: Likewise.
17267         * io/unlinkat.c: Likewise.
17268         * io/utime.c: Likewise.
17269         * io/utimensat.c: Likewise.
17270         * io/write.c: Likewise.
17271         * io/xmknod.c: Likewise.
17272         * io/xmknodat.c: Likewise.
17273         * io/xstat.c: Likewise.
17274         * io/xstat64.c: Likewise.
17275         * login/getpt.c: Likewise.
17276         * login/grantpt.c: Likewise.
17277         * login/unlockpt.c: Likewise.
17278         * math/e_acoshl.c: Likewise.
17279         * math/e_acosl.c: Likewise.
17280         * math/e_asinl.c: Likewise.
17281         * math/e_atan2l.c: Likewise.
17282         * math/e_atanhl.c: Likewise.
17283         * math/e_coshl.c: Likewise.
17284         * math/e_expl.c: Likewise.
17285         * math/e_fmodl.c: Likewise.
17286         * math/e_gammal_r.c: Likewise.
17287         * math/e_hypotl.c: Likewise.
17288         * math/e_j0l.c: Likewise.
17289         * math/e_j1l.c: Likewise.
17290         * math/e_jnl.c: Likewise.
17291         * math/e_lgammal_r.c: Likewise.
17292         * math/e_log10l.c: Likewise.
17293         * math/e_log2l.c: Likewise.
17294         * math/e_logl.c: Likewise.
17295         * math/e_powl.c: Likewise.
17296         * math/e_rem_pio2l.c: Likewise.
17297         * math/e_sinhl.c: Likewise.
17298         * math/e_sqrtl.c: Likewise.
17299         * math/fclrexcpt.c: Likewise.
17300         * math/fedisblxcpt.c: Likewise.
17301         * math/feenablxcpt.c: Likewise.
17302         * math/fegetenv.c: Likewise.
17303         * math/fegetexcept.c: Likewise.
17304         * math/fegetround.c: Likewise.
17305         * math/feholdexcpt.c: Likewise.
17306         * math/fesetenv.c: Likewise.
17307         * math/fesetround.c: Likewise.
17308         * math/feupdateenv.c: Likewise.
17309         * math/fgetexcptflg.c: Likewise.
17310         * math/fraiseexcpt.c: Likewise.
17311         * math/fsetexcptflg.c: Likewise.
17312         * math/ftestexcept.c: Likewise.
17313         * math/k_cosl.c: Likewise.
17314         * math/k_rem_pio2l.c: Likewise.
17315         * math/k_sinl.c: Likewise.
17316         * math/k_tanl.c: Likewise.
17317         * math/s_asinhl.c: Likewise.
17318         * math/s_atanl.c: Likewise.
17319         * math/s_cbrtl.c: Likewise.
17320         * math/s_erfl.c: Likewise.
17321         * math/s_expm1l.c: Likewise.
17322         * math/s_log1pl.c: Likewise.
17323         * math/s_tanhl.c: Likewise.
17324         * misc/acct.c: Likewise.
17325         * misc/brk.c: Likewise.
17326         * misc/chflags.c: Likewise.
17327         * misc/chroot.c: Likewise.
17328         * misc/fchflags.c: Likewise.
17329         * misc/fgetxattr.c: Likewise.
17330         * misc/flistxattr.c: Likewise.
17331         * misc/fremovexattr.c: Likewise.
17332         * misc/fsetxattr.c: Likewise.
17333         * misc/fsync.c: Likewise.
17334         * misc/ftruncate.c: Likewise.
17335         * misc/futimes.c: Likewise.
17336         * misc/futimesat.c: Likewise.
17337         * misc/getdomain.c: Likewise.
17338         * misc/getdtsz.c: Likewise.
17339         * misc/gethostid.c: Likewise.
17340         * misc/gethostname.c: Likewise.
17341         * misc/getloadavg.c: Likewise.
17342         * misc/getpagesize.c: Likewise.
17343         * misc/getsysstats.c: Likewise.
17344         * misc/getxattr.c: Likewise.
17345         * misc/gtty.c: Likewise.
17346         * misc/ioctl.c: Likewise.
17347         * misc/lgetxattr.c: Likewise.
17348         * misc/listxattr.c: Likewise.
17349         * misc/llistxattr.c: Likewise.
17350         * misc/lremovexattr.c: Likewise.
17351         * misc/lsetxattr.c: Likewise.
17352         * misc/lutimes.c: Likewise.
17353         * misc/madvise.c: Likewise.
17354         * misc/mincore.c: Likewise.
17355         * misc/mlock.c: Likewise.
17356         * misc/mlockall.c: Likewise.
17357         * misc/mmap.c: Likewise.
17358         * misc/mprotect.c: Likewise.
17359         * misc/msync.c: Likewise.
17360         * misc/munlock.c: Likewise.
17361         * misc/munlockall.c: Likewise.
17362         * misc/munmap.c: Likewise.
17363         * misc/preadv.c: Likewise.
17364         * misc/preadv64.c: Likewise.
17365         * misc/ptrace.c: Likewise.
17366         * misc/pwritev.c: Likewise.
17367         * misc/pwritev64.c: Likewise.
17368         * misc/readv.c: Likewise.
17369         * misc/reboot.c: Likewise.
17370         * misc/remap_file_pages.c: Likewise.
17371         * misc/removexattr.c: Likewise.
17372         * misc/revoke.c: Likewise.
17373         * misc/select.c: Likewise.
17374         * misc/setdomain.c: Likewise.
17375         * misc/setegid.c: Likewise.
17376         * misc/seteuid.c: Likewise.
17377         * misc/sethostid.c: Likewise.
17378         * misc/sethostname.c: Likewise.
17379         * misc/setregid.c: Likewise.
17380         * misc/setreuid.c: Likewise.
17381         * misc/setxattr.c: Likewise.
17382         * misc/sstk.c: Likewise.
17383         * misc/stty.c: Likewise.
17384         * misc/swapoff.c: Likewise.
17385         * misc/swapon.c: Likewise.
17386         * misc/sync.c: Likewise.
17387         * misc/syncfs.c: Likewise.
17388         * misc/syscall.c: Likewise.
17389         * misc/truncate.c: Likewise.
17390         * misc/ualarm.c: Likewise.
17391         * misc/usleep.c: Likewise.
17392         * misc/ustat.c: Likewise.
17393         * misc/utimes.c: Likewise.
17394         * misc/vhangup.c: Likewise.
17395         * misc/writev.c: Likewise.
17396         * posix/_exit.c: Likewise.
17397         * posix/alarm.c: Likewise.
17398         * posix/execve.c: Likewise.
17399         * posix/fexecve.c: Likewise.
17400         * posix/fork.c: Likewise.
17401         * posix/fpathconf.c: Likewise.
17402         * posix/getaddrinfo.c: Likewise.
17403         * posix/getegid.c: Likewise.
17404         * posix/geteuid.c: Likewise.
17405         * posix/getgid.c: Likewise.
17406         * posix/getgroups.c: Likewise.
17407         * posix/getlogin.c: Likewise.
17408         * posix/getlogin_r.c: Likewise.
17409         * posix/getpgid.c: Likewise.
17410         * posix/getpid.c: Likewise.
17411         * posix/getppid.c: Likewise.
17412         * posix/getresgid.c: Likewise.
17413         * posix/getresuid.c: Likewise.
17414         * posix/getsid.c: Likewise.
17415         * posix/getuid.c: Likewise.
17416         * posix/glob64.c: Likewise.
17417         * posix/nanosleep.c: Likewise.
17418         * posix/pathconf.c: Likewise.
17419         * posix/pause.c: Likewise.
17420         * posix/posix_madvise.c: Likewise.
17421         * posix/pread.c: Likewise.
17422         * posix/pread64.c: Likewise.
17423         * posix/pwrite.c: Likewise.
17424         * posix/pwrite64.c: Likewise.
17425         * posix/sched_getaffinity.c: Likewise.
17426         * posix/sched_getp.c: Likewise.
17427         * posix/sched_gets.c: Likewise.
17428         * posix/sched_primax.c: Likewise.
17429         * posix/sched_primin.c: Likewise.
17430         * posix/sched_rr_gi.c: Likewise.
17431         * posix/sched_setaffinity.c: Likewise.
17432         * posix/sched_setp.c: Likewise.
17433         * posix/sched_sets.c: Likewise.
17434         * posix/sched_yield.c: Likewise.
17435         * posix/setgid.c: Likewise.
17436         * posix/setlogin.c: Likewise.
17437         * posix/setpgid.c: Likewise.
17438         * posix/setresgid.c: Likewise.
17439         * posix/setresuid.c: Likewise.
17440         * posix/setsid.c: Likewise.
17441         * posix/setuid.c: Likewise.
17442         * posix/sleep.c: Likewise.
17443         * posix/spawni.c: Likewise.
17444         * posix/sysconf.c: Likewise.
17445         * posix/times.c: Likewise.
17446         * posix/wait.c: Likewise.
17447         * posix/wait3.c: Likewise.
17448         * posix/wait4.c: Likewise.
17449         * posix/waitpid.c: Likewise.
17450         * resolv/gai_sigqueue.c: Likewise.
17451         * resource/getpriority.c: Likewise.
17452         * resource/getrlimit.c: Likewise.
17453         * resource/getrusage.c: Likewise.
17454         * resource/nice.c: Likewise.
17455         * resource/setpriority.c: Likewise.
17456         * resource/setrlimit.c: Likewise.
17457         * resource/ulimit.c: Likewise.
17458         * rt/aio_cancel.c: Likewise.
17459         * rt/aio_fsync.c: Likewise.
17460         * rt/aio_read.c: Likewise.
17461         * rt/aio_sigqueue.c: Likewise.
17462         * rt/aio_suspend.c: Likewise.
17463         * rt/aio_write.c: Likewise.
17464         * rt/clock_getres.c: Likewise.
17465         * rt/clock_gettime.c: Likewise.
17466         * rt/clock_nanosleep.c: Likewise.
17467         * rt/clock_settime.c: Likewise.
17468         * rt/lio_listio.c: Likewise.
17469         * rt/mq_close.c: Likewise.
17470         * rt/mq_getattr.c: Likewise.
17471         * rt/mq_notify.c: Likewise.
17472         * rt/mq_open.c: Likewise.
17473         * rt/mq_receive.c: Likewise.
17474         * rt/mq_send.c: Likewise.
17475         * rt/mq_setattr.c: Likewise.
17476         * rt/mq_timedreceive.c: Likewise.
17477         * rt/mq_timedsend.c: Likewise.
17478         * rt/mq_unlink.c: Likewise.
17479         * rt/shm_open.c: Likewise.
17480         * rt/shm_unlink.c: Likewise.
17481         * rt/timer_create.c: Likewise.
17482         * rt/timer_delete.c: Likewise.
17483         * rt/timer_getoverr.c: Likewise.
17484         * rt/timer_gettime.c: Likewise.
17485         * rt/timer_settime.c: Likewise.
17486         * setjmp/__longjmp.c: Likewise.
17487         * setjmp/setjmp.c: Likewise.
17488         * signal/kill.c: Likewise.
17489         * signal/killpg.c: Likewise.
17490         * signal/raise.c: Likewise.
17491         * signal/sigaction.c: Likewise.
17492         * signal/sigaltstack.c: Likewise.
17493         * signal/sigblock.c: Likewise.
17494         * signal/sigignore.c: Likewise.
17495         * signal/sigintr.c: Likewise.
17496         * signal/signal.c: Likewise.
17497         * signal/sigpause.c: Likewise.
17498         * signal/sigpending.c: Likewise.
17499         * signal/sigqueue.c: Likewise.
17500         * signal/sigreturn.c: Likewise.
17501         * signal/sigset.c: Likewise.
17502         * signal/sigsetmask.c: Likewise.
17503         * signal/sigstack.c: Likewise.
17504         * signal/sigsuspend.c: Likewise.
17505         * signal/sigtimedwait.c: Likewise.
17506         * signal/sigvec.c: Likewise.
17507         * signal/sigwait.c: Likewise.
17508         * signal/sigwaitinfo.c: Likewise.
17509         * signal/sysv_signal.c: Likewise.
17510         * socket/accept.c: Likewise.
17511         * socket/accept4.c: Likewise.
17512         * socket/bind.c: Likewise.
17513         * socket/connect.c: Likewise.
17514         * socket/getpeername.c: Likewise.
17515         * socket/getsockname.c: Likewise.
17516         * socket/getsockopt.c: Likewise.
17517         * socket/isfdtype.c: Likewise.
17518         * socket/listen.c: Likewise.
17519         * socket/recv.c: Likewise.
17520         * socket/recvfrom.c: Likewise.
17521         * socket/recvmsg.c: Likewise.
17522         * socket/send.c: Likewise.
17523         * socket/sendmsg.c: Likewise.
17524         * socket/sendto.c: Likewise.
17525         * socket/setsockopt.c: Likewise.
17526         * socket/shutdown.c: Likewise.
17527         * socket/sockatmark.c: Likewise.
17528         * socket/socket.c: Likewise.
17529         * socket/socketpair.c: Likewise.
17530         * stdio-common/ctermid.c: Likewise.
17531         * stdio-common/cuserid.c: Likewise.
17532         * stdio-common/remove.c: Likewise.
17533         * stdio-common/rename.c: Likewise.
17534         * stdio-common/renameat.c: Likewise.
17535         * stdio-common/tempname.c: Likewise.
17536         * stdlib/getcontext.c: Likewise.
17537         * stdlib/makecontext.c: Likewise.
17538         * stdlib/setcontext.c: Likewise.
17539         * stdlib/swapcontext.c: Likewise.
17540         * stdlib/system.c: Likewise.
17541         * streams/fattach.c: Likewise.
17542         * streams/fdetach.c: Likewise.
17543         * streams/getmsg.c: Likewise.
17544         * streams/getpmsg.c: Likewise.
17545         * streams/putmsg.c: Likewise.
17546         * streams/putpmsg.c: Likewise.
17547         * sysdeps/unix/bsd/getpt.c: Likewise.
17548         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
17549         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
17550         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
17551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17552         Likewise.
17553         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
17554         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17555         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
17556         * sysvipc/msgctl.c: Likewise.
17557         * sysvipc/msgget.c: Likewise.
17558         * sysvipc/msgrcv.c: Likewise.
17559         * sysvipc/msgsnd.c: Likewise.
17560         * sysvipc/semctl.c: Likewise.
17561         * sysvipc/semget.c: Likewise.
17562         * sysvipc/semop.c: Likewise.
17563         * sysvipc/semtimedop.c: Likewise.
17564         * sysvipc/shmat.c: Likewise.
17565         * sysvipc/shmctl.c: Likewise.
17566         * sysvipc/shmdt.c: Likewise.
17567         * sysvipc/shmget.c: Likewise.
17568         * termios/tcdrain.c: Likewise.
17569         * termios/tcflow.c: Likewise.
17570         * termios/tcflush.c: Likewise.
17571         * termios/tcgetattr.c: Likewise.
17572         * termios/tcgetpgrp.c: Likewise.
17573         * termios/tcsendbrk.c: Likewise.
17574         * termios/tcsetattr.c: Likewise.
17575         * termios/tcsetpgrp.c: Likewise.
17576         * time/adjtime.c: Likewise.
17577         * time/clock.c: Likewise.
17578         * time/getitimer.c: Likewise.
17579         * time/gettimeofday.c: Likewise.
17580         * time/setitimer.c: Likewise.
17581         * time/settimeofday.c: Likewise.
17582         * time/stime.c: Likewise.
17583         * time/time.c: Likewise.
17584
17585 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
17586
17587         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
17588         /usr/old/bin.
17589
17590         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
17591         instead of spaces.
17592         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
17593
17594 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
17595
17596         [BZ #14796]
17597         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
17598         FE_TONEAREST before applying Dekker multiplication and Knuth
17599         addition.  Clear inexact exceptions and check for exact zero
17600         results afterwards.
17601         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17602         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17603         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17604         * math/libm-test.inc (fma_test): Add more tests.
17605         (fma_test_towardzero): Likewise.
17606         (fma_test_downward): Likewise.
17607         (fma_test_upward): Likewise.
17608         * sysdeps/generic/math_private.h (default_libc_fesetround): New
17609         function.
17610         (libc_fesetround): New macro.
17611         (libc_fesetroundf): Likewise.
17612         (libc_fesetroundl): Likewise.
17613         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
17614         function.
17615         (libc_fesetround_387): Likewise.
17616         (libc_fesetroundf): New macro.
17617         (libc_fesetround): Likewise.
17618         (libc_fesetroundl): Likewise.
17619         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
17620         function.
17621         (libc_fesetroundf): New macro.
17622         (libc_fesetround): Likewise.
17623         (libc_fesetroundl): Likewise.
17624         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
17625         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
17626         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
17627         libm_hidden_ver.
17628         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
17629         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
17630         libm_hidden_def.
17631         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
17632         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
17633         libm_hidden_ver.
17634         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
17635         libm_hidden_def.
17636
17637         [BZ #3439]
17638         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
17639         integer constant usable in #if and use that to give value to enum
17640         constant.
17641         (FE_DIVBYZERO): Likewise.
17642         (FE_UNDERFLOW): Likewise.
17643         (FE_OVERFLOW): Likewise.
17644         (FE_INVALID): Likewise.
17645         (FE_INVALID_SNAN): Likewise.
17646         (FE_INVALID_ISI): Likewise.
17647         (FE_INVALID_IDI): Likewise.
17648         (FE_INVALID_ZDZ): Likewise.
17649         (FE_INVALID_IMZ): Likewise.
17650         (FE_INVALID_COMPARE): Likewise.
17651         (FE_INVALID_SOFTWARE): Likewise.
17652         (FE_INVALID_SQRT): Likewise.
17653         (FE_INVALID_INTEGER_CONVERSION): Likewise.
17654         (FE_TONEAREST): Likewise.
17655         (FE_TOWARDZERO): Likewise.
17656         (FE_UPWARD): Likewise.
17657         (FE_DOWNWARD): Likewise.
17658         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
17659         (FE_DIVBYZERO): Likewise.
17660         (FE_OVERFLOW): Likewise.
17661         (FE_UNDERFLOW): Likewise.
17662         (FE_INEXACT): Likewise.
17663         (FE_TONEAREST): Likewise.
17664         (FE_DOWNWARD): Likewise.
17665         (FE_UPWARD): Likewise.
17666         (FE_TOWARDZERO): Likewise.
17667         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
17668         (FE_UNDERFLOW): Likewise.
17669         (FE_OVERFLOW): Likewise.
17670         (FE_DIVBYZERO): Likewise.
17671         (FE_INVALID): Likewise.
17672         (FE_TONEAREST): Likewise.
17673         (FE_TOWARDZERO): Likewise.
17674         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
17675         (FE_OVERFLOW): Likewise.
17676         (FE_UNDERFLOW): Likewise.
17677         (FE_DIVBYZERO): Likewise.
17678         (FE_INEXACT): Likewise.
17679         (FE_TONEAREST): Likewise.
17680         (FE_TOWARDZERO): Likewise.
17681         (FE_UPWARD): Likewise.
17682         (FE_DOWNWARD): Likewise.
17683         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
17684         (FE_DIVBYZERO): Likewise.
17685         (FE_OVERFLOW): Likewise.
17686         (FE_UNDERFLOW): Likewise.
17687         (FE_INEXACT): Likewise.
17688         (FE_TONEAREST): Likewise.
17689         (FE_DOWNWARD): Likewise.
17690         (FE_UPWARD): Likewise.
17691         (FE_TOWARDZERO): Likewise.
17692
17693 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
17694
17695         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
17696
17697 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
17698
17699         * scripts/cross-test-ssh.sh (command): Use newlines to separate
17700         commands.  Quote $PWD.
17701         (blacklist_exports): Don't use remove_newlines.  Replace "declare
17702         -x" by "export".
17703         (remove_newlines): Remove.
17704
17705 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
17706
17707         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
17708         * stdlib/stdlib.h (atof): Moved to ...
17709         * include/bits/stdlib-float.h: Here.  New file.
17710         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
17711         * stdlib/bits/stdlib-float.h: New file.
17712         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
17713         -mno-sse -mno-mmx.
17714         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
17715         <xmmintrin.h>.
17716
17717 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17718
17719         * conform/conformtest.pl (@headers): Add fenv.h.
17720         * conform/data/fenv.h-data: New file.
17721         * include/fenv.h [_ISOMAC]: Disable all contents of file except
17722         include of <math/fenv.h>.
17723
17724         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
17725         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
17726         && !UNIX98].  Enables tests for XOPEN2K8.
17727         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
17728         POSIX2008]: Likewise.
17729
17730         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
17731         (struct rusage): Do not expect type or its members.
17732
17733         [BZ #3439]
17734         * math/math.h (FP_NAN): Define macro to integer constant usable in
17735         #if and use that to give value to enum constant.
17736         (FP_INFINITE): Likewise.
17737         (FP_ZERO): Likewise.
17738         (FP_SUBNORMAL): Likewise.
17739         (FP_NORMAL): Likewise.
17740
17741 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
17742
17743         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
17744         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
17745         arguments.
17746
17747 2012-11-02  Roland McGrath  <roland@hack.frob.com>
17748
17749         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
17750         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
17751         autoconf-time if not.
17752         * configure.in: Remove AC_PREREQ.
17753
17754 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17755
17756         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
17757         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
17758         of the internal implementation.
17759
17760 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17761
17762         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
17763         except include of <misc/sys/syslog.h>.
17764
17765 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17766
17767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
17768         function returns with a NULL context exit with zero.
17769
17770 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17771
17772         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
17773
17774 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
17775
17776         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
17777         (run_program_cmd): This.
17778         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
17779         (tst_langinfo): New variable.  Use it.
17780
17781 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
17782
17783         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
17784         floating point opcodes.
17785
17786 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17787
17788         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
17789         variable.
17790
17791         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
17792
17793         * sysdeps/mach/hurd/powerpc: Remove directory.
17794         * sysdeps/mach/powerpc: Likewise.
17795
17796 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17797
17798         * scripts/check-local-headers.sh: Ignore c++ headers.
17799
17800 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17801
17802         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
17803         __libc_cleanup_region_start argument.
17804
17805 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
17806
17807         [BZ #14784]
17808         [BZ #14785]
17809         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
17810         x * y using scaling, not as x * y + z.
17811         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17812         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17813         * math/libm-test.inc (fma_test): Add more tests.
17814         (fma_test_towardzero): Likewise.
17815         (fma_test_downward): Likewise.
17816         (fma_test_upward): Likewise.
17817
17818 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17819
17820         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
17821
17822 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17823
17824         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
17825         New variable.
17826
17827 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
17828
17829         * rt/tst-shm.c (worker): Correct checking for mmap failure.
17830
17831 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17832
17833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17834         Fix sort order.
17835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17836         Likewise.
17837
17838 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17839
17840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17841         Fix the order of the list for glibc 2.17.
17842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17843         Likewise.
17844
17845 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17846
17847         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17848
17849 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17850
17851         [BZ #14610]
17852         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
17853         for low part of x being zero before using __atanl (y).
17854         * math/libm-test.inc (atan2_test): Add another test.
17855
17856         * manual/install.texi (Configuring and compiling): Document
17857         general use of test-wrapper and test-wrapper-env.
17858         * INSTALL: Regenerated.
17859
17860         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
17861         (__fma): Do not extract and scale down low bits on after-rounding
17862         systems when result rounded to normal precision would have normal
17863         exponent.
17864         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
17865         (__fmal): Do not extract and scale down low bits on after-rounding
17866         systems when result rounded to normal precision would have normal
17867         exponent.
17868         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
17869         (__fmal): Do not extract and scale down low bits on after-rounding
17870         systems when result rounded to normal precision would have normal
17871         exponent.
17872         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
17873         macro.
17874         (fma_test): Add more tests.
17875         (fma_test_towardzero): Likewise.
17876         (fma_test_downward): Likewise.
17877         (fma_test_upward): Likewise.
17878
17879 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
17880
17881         * sysdeps/i386/tininess.h: Renamed to ...
17882         * sysdeps/x86/tininess.h: This.
17883         * sysdeps/x86_64/tininess.h: Removed.
17884
17885 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17886
17887         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
17888         input.  Use $(build-program-cmd).
17889         ($(objpfx)tst-array1-static.out): Likewise.
17890         ($(objpfx)tst-array2.out): Likewise.
17891         ($(objpfx)tst-array3.out): Likewise.
17892         ($(objpfx)tst-array4.out): Likewise.
17893         ($(objpfx)tst-array5.out): Likewise.
17894         ($(objpfx)tst-array5-static.out): Likewise.
17895
17896 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
17897
17898         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
17899         if defined.
17900
17901         * nss/nsswitch.h (nss_interface_function): Provide new
17902         macro for use with NSS functions.
17903         * grp/initgroups.c: Use new macro.
17904         * nss/getXXbyYY.c: Likewise.
17905         * nss/getXXbyYY_r.c: Likewise.
17906         * nss/getXXent.c: Likewise.
17907         * nss/getXXent_r.c: Likewise.
17908         * sysdeps/posix/getaddrinfo.c: Likewise.
17909
17910 2012-10-30  Andreas Jaeger  <aj@suse.de>
17911
17912         * po/ru.po: Update Russion translation from translation project.
17913
17914 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17915
17916         [BZ #14152]
17917         [BZ #14783]
17918         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
17919         result and shift together with sticky bit instead of replicating
17920         round-to-nearest rounding.
17921         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17922         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17923         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
17924         missing underflow exceptions.
17925         (fma_test_towardzero): Add more tests.
17926         (fma_test_downward): Likewise.
17927         (fma_test_upward): Likewise.
17928
17929         [BZ #14047]
17930         * sysdeps/generic/tininess.h: New file.
17931         * sysdeps/i386/tininess.h: Likewise.
17932         * sysdeps/sh/tininess.h: Likewise.
17933         * sysdeps/x86_64/tininess.h: Likewise.
17934         * stdlib/tst-strtod-underflow.c: Likewise.
17935         * stdlib/tst-tininess.c: Likewise.
17936         * stdlib/strtod_l.c: Include <tininess.h>.
17937         (round_and_return): Do not set errno for exact underflow cases.
17938         Force an underflow exception when setting errno for underflow.
17939         Determine underflow based on rounding to normal precision if
17940         TININESS_AFTER_ROUNDING.
17941         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
17942         ERANGE for exact underflow cases.
17943         * stdlib/Makefile (tests): Add tst-tininess and
17944         tst-strtod-underflow.
17945         ($(objpfx)tst-tininess): Use $(link-libm).
17946         ($(objpfx)tst-strtod-underflow): Likewise.
17947
17948 2012-10-30  Andreas Jaeger  <aj@suse.de>
17949
17950         [BZ#14767]
17951         * elf/Makefile (tests): Remove conditional for have-initfini-array
17952         since this is now always required and the variable does not exist
17953         anymore.
17954         (tests-static): Likewise.
17955         (modules-names): Likewise.
17956
17957         * po/eo.po: Add Esperanto translation from translation project.
17958
17959         * elf/tst-array1.c (fini_array): Make writeable so that it can be
17960         merged with constructor/destructor.
17961         (init_array): Likewise.
17962         * elf/tst-array2dep.c (fini_array): Likewise.
17963         (init_array): Likewise.
17964
17965 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
17966
17967         * manual/message.texi: Delete @cartouche tags.
17968
17969 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
17970
17971         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
17972         EOPNOTSUPP.
17973         * sysdeps/mach/hurd/fsync.c: Likewise.
17974
17975         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
17976         [_POSIX_REALTIME_SIGNALS]: Change condition to
17977         [_POSIX_REALTIME_SIGNALS > 0].
17978
17979 2012-10-27  Andreas Jaeger  <aj@suse.de>
17980
17981         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
17982         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
17983         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
17984         [__WORDSIZE != 64]: Likewise.
17985
17986 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
17987
17988         *  iconvdata/tst-table.sh: Remove ${SHELL}.
17989         *  iconvdata/tst-tables.sh: Likewise.
17990
17991 2012-10-25  David S. Miller  <davem@davemloft.net>
17992
17993         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17994         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
17995         of strtoull.
17996
17997         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
17998         ifunc-impl-list.c
17999         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18000         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
18001         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
18002         file.
18003
18004 2012-10-25  Roland McGrath  <roland@hack.frob.com>
18005
18006         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18007         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
18008         __getdirentries.
18009
18010 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
18011             Jim Blandy  <jimb@codesourcery.com>
18012
18013         * scripts/cross-test-ssh.sh: New file.
18014         * manual/install.texi (Configuring and compiling): Document use of
18015         cross-test-ssh.sh.
18016         * INSTALL: Regenerated.
18017
18018 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
18019
18020         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
18021         EOPNOTSUPP.
18022
18023 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
18024
18025         * Makeconfig (run-program-prefix): Fix comment.
18026
18027 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
18028             Jim Blandy  <jimb@codesourcery.com>
18029
18030         * Makeconfig (test-wrapper): New variable,
18031         (test-wrapper-env): Likewise.
18032         [$(cross-compiling) = yes && $(test-wrapper) != ""]
18033         (run-built-tests): Define to yes.
18034         (run-program-prefix): Use $(test-wrapper).
18035         (built-program-cmd): Likewise.
18036         * Rules (make-test-out): Use $(test-wrapper-env) and
18037         $(host-built-program-cmd).
18038         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
18039         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
18040         tst-pathopt.sh.
18041         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
18042         $(test-wrapper-env) to tst-rtld-load-self.sh.
18043         ($(objpfx)order2.out): Use $(test-wrapper).
18044         ($(objpfx)tst-initorder.out): Likewise.
18045         ($(objpfx)tst-initorder2.out): Likewise.
18046         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
18047         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
18048         (test_wrapper_env): New variable.  Use it to run ld.so.
18049         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
18050         Use it to run ld.so.
18051         (test_wrapper_env): Likewise.
18052         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
18053         $(test-wrapper) to run-iconv-test.sh.
18054         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
18055         (ICONV): Use $test_wrapper.
18056         * posix/Makefile ($(objpfx)globtest.out): Pass
18057         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
18058         globtest.sh, not $(run-program-prefix).
18059         * posix/globtest.sh (run_via_rtld_prefix): New variable.
18060         (test_wrapper): Likewise.
18061         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
18062         set together with run_via_rtld_prefix.
18063         (run_program_prefix): Define in terms of test_wrapper and
18064         run_via_rtld_prefix.
18065
18066 2012-10-24  Roland McGrath  <roland@hack.frob.com>
18067
18068         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
18069         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
18070         Targets removed.
18071
18072         [BZ #14743]
18073         * include/time.h: Remove librt_hidden_proto (clock_gettime).
18074         Declare __clock_getres, __clock_gettime, __clock_settime,
18075         __clock_nanosleep, and __clock_getcpuclockid.
18076         * rt/clock_gettime.c: Define __clock_gettime as an alias.
18077         Remove librt_hidden_def (clock_gettime).
18078         * sysdeps/unix/clock_gettime.c: Likewise.
18079         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
18080         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
18081         * rt/clock_getres.c: Define __clock_getres as an alias.
18082         * sysdeps/posix/clock_getres.c: Likewise.
18083         * rt/clock_settime.c: Define __clock_settime as an alias.
18084         * sysdeps/unix/clock_settime.c: Likewise.
18085         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
18086         * sysdeps/unix/clock_nanosleep.c: Likewise.
18087         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
18088         * rt/clock-compat.c: New file.
18089         * rt/Makefile (librt-routines): Add clock-compat and move
18090         $(clock-routines) to ...
18091         (routines): ... here, new variable.
18092         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
18093         Don't add get_clockfreq here.
18094         * rt/Versions (libc: GLIBC_2.17): New version set.
18095         Add clock_* symbols here.
18096         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
18097         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
18098         (GLIBC_2.17): Add clock_* symbols.
18099         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
18100         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
18101         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
18102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
18103         Likewise.
18104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
18105         Likewise.
18106         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
18107         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
18108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
18109         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
18110         * NEWS: Mention the move.
18111
18112         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
18113         Use __open, __read, __close rather than their public counterparts.
18114         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18115         (__get_clockfreq_via_cpuinfo): Likewise.
18116         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
18117         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
18118
18119         * config.h.in (HAVE_IFUNC): New #undef.
18120         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
18121         was successful.
18122         * configure: Regenerated.
18123
18124 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
18125
18126         * configure.in: Move READELF check to start of file.
18127         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
18128         libc_cv_asm_gnu_indirect_function in the process.
18129         * configure: Regenerated.
18130
18131 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
18132
18133         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
18134         send the output to /dev/null.
18135         (libc_cv_cc_with_libunwind): Likewise.
18136         (libc_cv_as_noexecstack): Likewise.
18137         * configure: Regenerate.
18138
18139 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
18140
18141         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
18142
18143         * posix/globtest.sh (TMPDIR): Do not set.
18144         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
18145         (testout): Likewise.
18146
18147 2012-10-24  Andreas Jaeger  <aj@suse.de>
18148
18149         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
18150         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
18151         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
18152         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
18153         posix_fadvise64, posix_fallocate64.
18154
18155         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
18156         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
18157         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
18158         Likewise.
18159         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
18160         Likewise.
18161         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
18162
18163         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
18164         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
18165         <bits/fcntl-linux.h>.
18166         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
18167
18168         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
18169         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
18170         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
18171         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
18172         [__WORDSIZE != 64]: Likewise.
18173
18174 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18175
18176         * Makeconfig (run-built-tests): New variable.
18177         * Rules [$(cross-compiling) = yes]: Change condition to
18178         [$(run-built-tests) = no].
18179         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
18180         to [$(run-built-tests) = yes].
18181         * elf/Makefile [$(cross-compiling) = no]: Likewise
18182         * grp/Makefile [$(cross-compiling) = no]: Likewise.
18183         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
18184         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
18185         * intl/Makefile [$(cross-compiling) = no]: Likewise.
18186         * io/Makefile [$(cross-compiling) = no]: Likewise.
18187         * libio/Makefile [$(cross-compiling) = no]: Likewise.
18188         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
18189         * misc/Makefile [$(cross-compiling) = no]: Likewise.
18190         * posix/Makefile [$(cross-compiling) = no]: Likewise.
18191         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
18192         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
18193         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
18194         * string/Makefile [$(cross-compiling) = no]: Likewise.
18195
18196         * posix/Makefile ($(objpfx)globtest.out): Pass
18197         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
18198         $(rtld-installed-name).
18199         * posix/globtest.sh (elf_objpfx): Remove variable.
18200         (rtld_installed_name): Likewise.
18201         (library_path): Likewise.
18202         (run_program_prefix): New variable.  Use for running globtest
18203         binary.
18204
18205 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
18206             Joseph Myers  <joseph@codesourcery.com>
18207
18208         * Makeconfig (host-built-program-cmd): New variable.
18209         * elf/Makefile (tst-stackguard1-ARGS): Use
18210         $(host-built-program-cmd).
18211         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
18212         (tst-spawn-ARGS): Likewise.
18213         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
18214
18215 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18216             Jim Blandy  <jimb@codesourcery.com>
18217
18218         * Makeconfig (run-via-rtld-prefix): New variable.
18219         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
18220         (built-program-cmd): Likewise.
18221
18222 2012-10-22  Andreas Jaeger  <aj@suse.de>
18223
18224         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
18225         __O_RSYNC if it exists, otherwise to O_SYNC.
18226
18227 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
18228             Joseph Myers  <joseph@codesourcery.com>
18229
18230         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
18231         /dev/null.
18232         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
18233         from /dev/null
18234         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
18235         /dev/null.
18236
18237 2012-10-22  Andreas Jaeger  <aj@suse.de>
18238
18239         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
18240         Define always.
18241         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
18242
18243         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18244         bits/fcntl-linux.h.
18245
18246         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
18247         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
18248
18249         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
18250         to __O_LARGEFILE.
18251         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
18252         to __O_LARGEFILE.
18253
18254 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
18255             Joseph Myers  <joseph@codesourcery.com>
18256
18257         * config.make.in (NM): New variable.
18258
18259 2012-10-21  Andreas Jaeger  <aj@suse.de>
18260
18261         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
18262         definitions and declarations that are provided by
18263         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
18264
18265 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18266
18267         [BZ #14683]
18268         * elf/Makefile (tests-static): Add tst-leaks1-static.
18269         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
18270         ($(objpfx)tst-leaks1-static): New rule.
18271         ($(objpfx)tst-leaks1-static-mem): Likewise.
18272         (tst-leaks1-static-ENV): New macro.
18273         * elf/dl-open.c (dl_open_worker): Check the main application
18274         only if SHARED is defined.
18275         * elf/tst-leaks1-static.c: New file.
18276
18277 2012-10-20  Andreas Jaeger  <aj@suse.de>
18278
18279         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
18280         generic values for Linux.
18281         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
18282         and declarations that are provided by <bits/fcntl-linux.h> and
18283         include <bits/fcntl-linux.h>.
18284         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18285         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18286
18287 2012-10-20  Roland McGrath  <roland@hack.frob.com>
18288
18289         * io/fcntl.h: Move include of <bits/types.h> to the top and
18290         include it unconditionally.
18291
18292 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18293
18294         * wcsmbs/Makefile (tests-ifunc): New variable.
18295         (tests): Add $(tests-ifunc).
18296         * wcsmbs/test-wcschr-ifunc.c: New file.
18297         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
18298         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
18299         * wcsmbs/test-wcslen-ifunc.c: Likewise.
18300         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
18301         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
18302
18303         * string/Makefile (tests-ifunc): New variable.
18304         (tests): Add $(tests-ifunc).
18305         * string/test-memccpy.c (TEST_NAME): New macro.
18306         * string/test-memchr.c (TEST_NAME): Likewise.
18307         * string/test-memcmp.c (TEST_NAME): Likewise.
18308         * string/test-memcpy.c (TEST_NAME): Likewise.
18309         * string/test-memmem.c (TEST_NAME): Likewise.
18310         * string/test-memmove.c (TEST_NAME): Likewise.
18311         * string/test-memset.c (TEST_NAME): Likewise.
18312         * string/test-rawmemchr.c (TEST_NAME): Likewise.
18313         * string/test-stpcpy.c (TEST_NAME): Likewise.
18314         * string/test-stpncpy.c (TEST_NAME): Likewise.
18315         * string/test-strcasecmp.c (TEST_NAME): Likewise.
18316         * string/test-strcasestr.c (TEST_NAME): Likewise.
18317         * string/test-strcat.c (TEST_NAME): Likewise.
18318         * string/test-strchr.c (TEST_NAME): Likewise.
18319         * string/test-strcmp.c(TEST_NAME): Likewise.
18320         * string/test-strcpy.c (TEST_NAME): Likewise.
18321         * string/test-strcspn.c (TEST_NAME): Likewise.
18322         * string/test-strlen.c (TEST_NAME): Likewise.
18323         * string/test-strncasecmp.c (TEST_NAME): Likewise.
18324         * string/test-strncmp.c (TEST_NAME): Likewise.
18325         * string/test-strncpy.c (TEST_NAME): Likewise.
18326         * string/test-strnlen.c (TEST_NAME): Likewise.
18327         * string/test-strpbrk.c (TEST_NAME): Likewise.
18328         * string/test-strrchr.c (TEST_NAME): Likewise.
18329         * string/test-strspn.c (TEST_NAME): Likewise.
18330         * string/test-strstr.c (TEST_NAME): Likewise.
18331         * string/test-bcopy-ifunc.c: New file.
18332         * string/test-bzero-ifunc.c: Likewise.
18333         * string/test-memccpy-ifunc.c: Likewise.
18334         * string/test-memchr-ifunc.c: Likewise.
18335         * string/test-memcmp-ifunc.c: Likewise.
18336         * string/test-memcpy-ifunc.c: Likewise.
18337         * string/test-memmem-ifunc.c: Likewise.
18338         * string/test-memmove-ifunc.c: Likewise.
18339         * string/test-mempcpy-ifunc.c: Likewise.
18340         * string/test-memset-ifunc.c: Likewise.
18341         * string/test-rawmemchr-ifunc.c: Likewise.
18342         * string/test-stpcpy-ifunc.c: Likewise.
18343         * string/test-stpncpy-ifunc.c: Likewise.
18344         * string/test-strcasecmp-ifunc.c: Likewise.
18345         * string/test-strcasestr-ifunc.c: Likewise.
18346         * string/test-strcat-ifunc.c: Likewise.
18347         * string/test-strchr-ifunc.c: Likewise.
18348         * string/test-strchrnul-ifunc.c: Likewise.
18349         * string/test-strcmp-ifunc.c: Likewise.
18350         * string/test-strcpy-ifunc.c: Likewise.
18351         * string/test-strcspn-ifunc.c: Likewise.
18352         * string/test-strlen-ifunc.c: Likewise.
18353         * string/test-strncasecmp-ifunc.c: Likewise.
18354         * string/test-strncat-ifunc.c: Likewise.
18355         * string/test-strncmp-ifunc.c: Likewise.
18356         * string/test-strncpy-ifunc.c: Likewise.
18357         * string/test-strnlen-ifunc.c: Likewise.
18358         * string/test-strpbrk-ifunc.c: Likewise.
18359         * string/test-strrchr-ifunc.c: Likewise.
18360         * string/test-strspn-ifunc.c: Likewise.
18361         * string/test-strstr-ifunc.c: Likewise.
18362
18363         * debug/Makefile (tests-ifunc): New variable.
18364         (tests): Add $(tests-ifunc).
18365         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
18366         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
18367         * debug/test-stpcpy_chk-ifunc.c: New file.
18368         * debug/test-strcpy_chk-ifunc.c: Likewise.
18369
18370 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
18371
18372         [BZ #13601]
18373         * elf/dl-load.c (open_verify): Retry read if the entire ELF
18374         header is not read in.
18375
18376 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
18377
18378         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
18379         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
18380         directly.  Pass built executable to script as
18381         $(built-program-cmd).
18382         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
18383         $testprogram without using LD_LIBRARY_PATH and $ldso.
18384
18385         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
18386         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
18387         $(rtld-installed-name).
18388         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
18389         (rtld_installed_name): Likewise.
18390         (library_path): Likewise.
18391         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
18392         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
18393         $(run-program-prefix) to tst-tables.sh.
18394         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
18395         it to run tst-table-from and tst-table-to.
18396         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
18397         Pass it to tst-table.sh.
18398         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
18399         $(run-program-prefix) to tst-gettext.sh.
18400         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
18401         tst-translit.sh.
18402         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
18403         tst-gettext2.sh.
18404         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
18405         to run tst-gettext.
18406         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
18407         to run tst-gettext2.
18408         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
18409         to run tst-translit.
18410         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
18411         $(run-program-prefix) to tst-mtrace.sh.
18412         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
18413         to run tst-mtrace.
18414         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
18415         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
18416         $(rtld-installed-name).
18417         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
18418         (rtld_installed_name): Likewise.
18419         (run_program_prefix): New variable.  Use it to run wordexp-test.
18420
18421         * Makeconfig (ARCH): Remove all definitions.
18422         (machine): Likewise.
18423         [ARCH]: Remove conditional code.
18424         [!objdir]: Give error.
18425         [!objdir] (objpfx): Remove.
18426         [!objdir] (common-objpfx): Likewise.
18427         [!objdir] (common-objdir): Likewise.
18428         * configure.in (config_makefile): Remove.  Hardcode Makefile in
18429         AC_CONFIG_FILES call.
18430         * configure: Regenerated.
18431
18432         [BZ #13888]
18433         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
18434         or TMPDIR.
18435         (testout): Likewise.
18436
18437         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
18438         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
18439         $(rtld-installed-name).
18440         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
18441         (rtld_installed_name): Likwise.
18442         (runit): Remove function.
18443         (run_getconf): New variable,  Use it for running getconf binary.
18444
18445 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
18446
18447         [BZ #14716]
18448         * string/test-memmem.c (check_result): New function.
18449         (do_one_test): Use it.
18450         (check1): New function.
18451         (test_main): Use it.
18452
18453 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
18454
18455         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
18456
18457 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
18458
18459         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
18460         (_G_LSEEK64): Likewise.
18461         (_G_MMAP64): Likewise.
18462         (_G_FSTAT64): Likewise.
18463         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
18464         (_G_LSEEK64): Likewise.
18465         (_G_MMAP64): Likewise.
18466         (_G_FSTAT64): Likewise.
18467         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
18468         unconditional.  Call __mmap64 directly.
18469         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
18470         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
18471         __lseek64 directly.
18472         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
18473         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
18474         __mmap64 directly.
18475         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
18476         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18477         __lseek64 directly.
18478         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
18479         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18480         __lseek64 directly.
18481         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
18482         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
18483         __lseek64 directly.
18484         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
18485         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
18486         __fxstat64 directly.
18487         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
18488         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
18489         unconditional.
18490         (freopen64) [!_G_OPEN64]: Remove conditional code.
18491         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
18492         unconditional.
18493         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
18494         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
18495         unconditional.
18496         (ftello64) [!_G_LSEEK64]: Remove conditional code.
18497         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
18498         unconditional.
18499         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18500         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
18501         unconditional.
18502         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
18503         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
18504         unconditional.
18505         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18506         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
18507         unconditional.
18508         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18509         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
18510         unconditional.
18511         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18512
18513 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18514
18515         [BZ #12140]
18516         * manual/memory.texi (Malloc Tunable Parameters): Add note
18517         about free list pointers overwriting some perturb bytes.
18518         Wording suggested by Roland McGrath.
18519
18520 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
18521
18522         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
18523         (lgamma_test): Likewise.
18524         (tgamma_test): Likewise.
18525
18526 2012-10-16  Florian Weimer  <fweimer@redhat.com>
18527
18528         [BZ #14700]
18529         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
18530         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
18531
18532 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
18533
18534         * NEWS: Mention BZ #14716.
18535         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
18536         when removing AVAILABLE1_USES_J macro.
18537
18538 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
18539
18540         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
18541         (__bswap_64): __uint64_t for unsigned 64-bit int.
18542
18543 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
18544
18545         * include/string.h (memmem): Declare libc hidden alias.
18546         * string/memmem.c (memmem): Define libc hidden alias.
18547         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
18548         __read, __close instead of open, read, close.
18549
18550 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
18551
18552         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
18553         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
18554         global and hidden.
18555         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
18556         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
18557         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
18558         Likewise.
18559         (__rawmemchr_sse2): Likewise.
18560         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
18561         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
18562         (__strchr_sse2): Likewise.
18563         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
18564         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
18565         (__strcasecmp_sse2): Likewise.
18566         (__strncasecmp_sse2): Likewise.
18567         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
18568         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
18569         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
18570         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
18571         (__strrchr_sse2): Likewise.
18572         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
18573         ifunc-impl-list.c.
18574         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
18575         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
18576         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18577         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18578         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
18579         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
18580         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18581         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18582         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
18583         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
18584         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
18585         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
18586         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
18587         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
18588         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
18589         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
18590         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
18591         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
18592         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
18593         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
18594         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
18595         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
18596         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
18597         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
18598         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
18599         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18600         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18601         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
18602         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
18603         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
18604
18605         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
18606         global and hidden.
18607         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
18608         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
18609         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
18610         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
18611         Likewise.
18612         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
18613         Likewise.
18614         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
18615         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
18616         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
18617         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
18618         ifunc-impl-list.c.
18619         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18620         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18621         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18622         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18623         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18624         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18625         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18626         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18627         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18628         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18629         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18630         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18631         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18632         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18633         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18634         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18635         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18636         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
18637         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18638         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18639         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18640         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18641         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18642         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18643         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18644         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18645         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18646         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18647         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18648         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18649         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18650         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18651         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18652         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
18653         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18654         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18655         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18656         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18657         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18658         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18659         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
18660
18661         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
18662         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
18663         * include/ifunc-impl-list.h: New file.
18664         * misc/ifunc-impl-list.c: Likewise.
18665         * misc/Makefile (routines): Add ifunc-impl-list.
18666         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
18667         * string/test-string.h: Include <ifunc-impl-list.h>.
18668         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
18669         impl_array): New variables.
18670         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
18671         are defined.
18672         (test_init): Call __libc_ifunc_impl_list to initialize
18673         func_list if TEST_IFUNC and TEST_NAME are defined.
18674
18675         * string/Makefile (strop-tests): Add bcopy and bzero.
18676         * string/test-bcopy.c: New file.
18677         * string/test-bzero.c: Likewise.
18678         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
18679         defined.
18680         * string/test-memset.c: Support bzero test if TEST_BZERO is
18681         defined.
18682         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
18683         __libc_memmove.
18684         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
18685         __libc_memset.
18686         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
18687         of memset.
18688
18689 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
18690
18691         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
18692         * configure: Regenerated.
18693
18694         * Makeconfig (+link-static-before-libc): Don't include
18695         $(link-static-libc).
18696
18697         * libio/libio.h (_IO_pos_t): Remove.
18698
18699 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18700
18701         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
18702         McGrath.
18703
18704 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18705
18706         * crypt/crypt-entry.c: Include fips-private.h.
18707         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
18708         * crypt/md5c-test.c (main): Tolerate disabled MD5.
18709         * sysdeps/unix/sysv/linux/fips-private.h: New file.
18710         * sysdeps/generic/fips-private.h: New file, dummy fallback.
18711
18712 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18713
18714         * crypt/crypt-private.h: Include stdbool.h.
18715         (_ufc_setup_salt_r): Return bool.
18716         * crypt/crypt-entry.c: Include errno.h.
18717         (__crypt_r): Return NULL with EINVAL for bad salt.
18718         * crypt/crypt_util.c (bad_for_salt): New.
18719         (_ufc_setup_salt_r): Check that salt is long enough and within
18720         the specified alphabet.
18721         * crypt/badsalttest.c: New file.
18722         * crypt/Makefile (tests): Add it.
18723         ($(objpfx)badsalttest): New.
18724
18725 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
18726
18727         * NEWS: Add entry for BZ #14602.
18728
18729 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18730
18731         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
18732         type-generic.
18733         * math/libm-test.inc: Update comment listing what functions and
18734         macros are tested.
18735         (isgreater_test): New function.
18736         (isgreaterequal_test): Likewise.
18737         (isless_test): Likewise.
18738         (islessequal_test): Likewise.
18739         (islessgreater_test): Likewise.
18740         (isunordered_test): Likewise.
18741         (main): Call the new functions.
18742
18743 2012-10-09  Roland McGrath  <roland@hack.frob.com>
18744
18745         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
18746         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
18747         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
18748         * sysdeps/i386/configure: Regenerated.
18749         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
18750         * sysdeps/mach/configure: Regenerated.
18751         * sysdeps/mach/hurd/configure: Regenerated.
18752         * sysdeps/powerpc/configure: Regenerated.
18753         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18754         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18755         * sysdeps/s390/s390-32/configure: Regenerated.
18756         * sysdeps/s390/s390-64/configure: Regenerated.
18757         * sysdeps/sh/configure: Regenerated.
18758         * sysdeps/sparc/configure: Regenerated.
18759         * sysdeps/unix/sysv/linux/configure: Regenerated.
18760         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
18761         * sysdeps/x86_64/configure: Regenerated.
18762
18763         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
18764         defined.  Don't check if MAP is NULL.
18765
18766 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18767
18768         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
18769         (_G_stat64): Likewise.
18770         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
18771         (_G_stat64): Likewise.
18772         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
18773         instead of struct _G_stat64.
18774         * libio/fileops.c (mmap_remap_check): Likewise.
18775         (decide_maybe_mmap): Likewise.
18776         (_IO_new_file_seekoff): Likewise.
18777         (_IO_file_stat): Likewise.
18778         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
18779         _G_off64_t.
18780         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
18781         instead of struct _G_stat64.
18782         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18783
18784 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18785
18786         [BZ #14602]
18787         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18788         Replace with ...
18789         (CHECK_EOL): New macro.
18790         (two_way_short_needle): Check beginning of haystack for EOL.  Use
18791         CHECK_EOL.
18792         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18793         Replace with CHECK_EOL.
18794         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18795         Replace with CHECK_EOL.
18796
18797 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
18798
18799         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
18800         type-generic.
18801         * math/libm-test.inc: Update comment listing what functions and
18802         macros are tested.
18803         (finite_test): New function.
18804         (isinf_test): Likewise.
18805         (isnan_test): Likewise.
18806         (fpclassify_test): Test subnormal input.
18807         (isfinite_test): Likewise.
18808         (isnormal_test): Likewise.
18809         (main): Call the new functions.
18810
18811 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
18812
18813         [BZ #14660]
18814         * Makerules (%.dynsym): Force C locale when running
18815         $(OBJDUMP) --dynamic-syms.
18816
18817 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
18818
18819         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
18820         <stdint.h>.
18821
18822 2012-10-06  David S. Miller  <davem@davemloft.net>
18823
18824         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
18825         upper 32-bits of the length value in %o2 since we use branch-on-register
18826         tests which consider the entire 64-bit register.
18827
18828 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
18829
18830         * string/test-strstr.c (check2): Add a test for page boundary.
18831
18832 2012-10-05  David S. Miller  <davem@davemloft.net>
18833
18834         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
18835         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
18836         file.
18837         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18838         sysdep_routines.
18839         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18840         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
18841         and bzero when HWCAP_SPARC_CRYPTO is present.
18842
18843 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
18844
18845         [BZ #14602]
18846         * string/test-strstr.c (check2): New function.
18847         (test_main): Call check2.
18848
18849         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
18850         and bug-strchr1.
18851         * string/bug-strcasestr1.c (do_test): Moved to ...
18852         * string/test-strcasestr.c (check1): Here.  New function.
18853         (do_one_test): Break out result checking code into ...
18854         (check_result): This.  New function.
18855         (do_one_test): Call check_result.
18856         (test_main): Call check1.
18857         * string/bug-strchr1.c (do_test): Moved to ...
18858         * string/test-strchr.c (check1): Here.  New function.
18859         (do_one_test): Break out result checking code into ...
18860         (check_result): This.  New function.
18861         (do_one_test): Call check_result.
18862         (test_main): Call check1.
18863         * string/bug-strstr1.c (main): Moved to ...
18864         * string/test-strstr.c (check1): Here.  New function.
18865         (do_one_test): Break out result checking code into ...
18866         (check_result): This.  New function.
18867         (do_one_test): Call check_result.
18868         (test_main): Call check1.
18869         * string/bug-strcasestr1.c: Removed.
18870         * string/bug-strchr1.c: Likewise.
18871         * string/bug-strstr1.c: Likewise.
18872
18873         * elf/Makefile (dl-routines): Add hwcaps.
18874         * elf/dl-support.c (_dl_important_hwcaps): Removed.
18875         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
18876         (_dl_important_hwcaps): Moved to ...
18877         * elf/dl-hwcaps.c: Here.  New file.
18878         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
18879
18880         [BZ #14557]
18881         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
18882         if IS_IN_rtld isn't defined.
18883
18884         * elf/dl-support.c (_dl_sysinfo_map): New.
18885         Include "get-dynamic-info.h" and "setup-vdso.h".
18886         (_dl_non_dynamic_init): Call setup_vdso.
18887         * elf/dynamic-link.h: Don't include <assert.h>.
18888         (elf_get_dynamic_info): Moved to ...
18889         * elf/get-dynamic-info.h: Here.  New file.
18890         * elf/dynamic-link.h: Include "get-dynamic-info.h".
18891         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
18892         * elf/setup-vdso.h: Here.  New file.
18893         * elf/rtld.c: Include "setup-vdso.h".
18894         (dl_main): Call setup_vdso.
18895
18896 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
18897
18898         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
18899         creal in comment listing functions tested.  List finite, isinf,
18900         isnan, isless, islessequal, isgreater, isgreaterequal,
18901         islessgreater, isunordered, lgamma_r and pow10 as functions and
18902         macros not tested.  Mention which functions not tested are aliases
18903         for other functions.  Fix typo.  Note that signs of NaNs are not
18904         tested.
18905
18906         * scripts/config.guess: Update from config.git.
18907         * scripts/config.sub: Likewise.
18908
18909 2012-10-04  Roland McGrath  <roland@hack.frob.com>
18910
18911         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
18912         * misc/madvise.c (madvise): Renamed to __madvise.
18913         Make madvise a weak alias.
18914         * include/sys/mman.h: Declare __madvise.
18915         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
18916         * sysdeps/unix/syscalls.list
18917         (madvise): Make __madvise the strong name, and madvise a weak alias.
18918         * sysdeps/unix/sysv/linux/syscalls.list
18919         (madvise, mmap): Remove redundant entries.
18920         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
18921         * malloc/malloc.c (mtrim): Likewise.
18922         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
18923
18924 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18925
18926         * sysdeps/mach/hurd/dl-cache.c: File removed.
18927         * config.h.in (USE_LDCONFIG): New #undef.
18928         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
18929         * configure: Regenerated.
18930         * elf/Makefile (dl-routines): Add dl-cache only under
18931         [$(use-ldconfig) = yes].
18932         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
18933         cache on [USE_LDCONFIG].
18934         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
18935         [USE_LDCONFIG].
18936         * elf/rtld.c (dl_main): Likewise.
18937
18938 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
18939
18940         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
18941         _SC_LEVEL4_CACHE_LINESIZE.
18942
18943 2012-10-03  Roland McGrath  <roland@hack.frob.com>
18944
18945         * sysdeps/unix/bsd/confstr.h: File removed.
18946
18947 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
18948
18949         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
18950         sys/sdt-config.h.
18951
18952 2012-10-02  Roland McGrath  <roland@hack.frob.com>
18953
18954         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
18955         Make 'mapoff' field ElfW(Off) rather than off_t.
18956
18957 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
18958
18959         * nscd/Makefile: Remove nscd-cflags and all its users.
18960         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
18961         (CFLAGS-nonlib): Add compiler flags for nscd modules.
18962
18963         [BZ #10631]
18964         * malloc.c (malloc_printerr): Clarify error message.
18965
18966 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
18967
18968         [BZ #14648]
18969         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18970         Set bit_FMA_Usable if FMA is supported.
18971         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
18972         macro.
18973         (bit_FMA4_Usable): Updated.
18974         (index_FMA_Usable): New macro.
18975         (CPUID_FMA): Likewise
18976         (HAS_FMA): Defined with bit_FMA_Usable.
18977
18978 2012-10-01  Roland McGrath  <roland@hack.frob.com>
18979
18980         * bits/types.h (__swblk_t): Type removed.
18981         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
18982         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
18983         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18984         (__SWBLK_T_TYPE): Likewise.
18985         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
18986         (__SWBLK_T_TYPE): Likewise.
18987         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18988         (__SWBLK_T_TYPE): Likewise.
18989         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18990         (__SWBLK_T_TYPE): Likewise.
18991
18992 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
18993             Honza Horak <hhorak@redhat.com>
18994
18995         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
18996         (xdr_mapname): Use YPMAXMAP as maxsize.
18997         (xdr_peername): Use YPMAXPEER as maxsize.
18998         (xdr_keydat): Use YPAXRECORD as maxsize.
18999         (xdr_valdat): Use YPMAXRECORD as maxsize.
19000
19001 2012-10-01  Roland McGrath  <roland@hack.frob.com>
19002
19003         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
19004
19005         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
19006         * csu/init-first.c: ... here.
19007         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
19008         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19009         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
19010         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
19011         * sysdeps/i386/init-first.c: File removed.
19012         * sysdeps/sh/init-first.c: File removed.
19013
19014 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
19015
19016         [BZ #14645]
19017         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
19018         if x * y might underflow to zero and z is zero.
19019         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19020         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19021         * math/libm-test.inc (min_subnorm_value): New variable.
19022         (fma_test): Add more tests.
19023         (fma_test_towardzero): Likewise.
19024         (fma_test_downward): Likewise
19025         (fma_test_upward): Likewise.
19026         (initialize): Set min_subnorm_value.
19027
19028 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
19029
19030         [BZ #14638]
19031         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
19032         0 + 0.
19033         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
19034         mode for addition resulting in exact zero.
19035         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
19036         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
19037         exact 0 + 0.
19038         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
19039         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19040         * math/libm-test.inc (fma_test): Add more tests.
19041         (fma_test_towardzero): New function.
19042         (fma_test_downward): Likewise.
19043         (fma_test_upward): Likewise.
19044         (main): Call the new functions.
19045
19046 2012-09-28  David S. Miller  <davem@davemloft.net>
19047
19048         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
19049
19050 2012-09-28  Roland McGrath  <roland@hack.frob.com>
19051
19052         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
19053         instead of SIGALRM.
19054
19055         * sysdeps/gnu/_G_config.h: Moved to ...
19056         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
19057         * sysdeps/mach/hurd/_G_config.h: Moved to ...
19058         * sysdeps/generic/_G_config.h: ... here.
19059
19060         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
19061
19062         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
19063
19064         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
19065         Conditionalize target on [libnss_test1.so-version].
19066
19067         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
19068
19069         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
19070         (elfobjdir): Move out of conditionals.
19071
19072         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
19073         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
19074         (__nss_lookup_function): Conditionalize label remove_from_tree on
19075         [!DO_STATIC_NSS || SHARED], matching its only use.
19076
19077 2012-09-28  David S. Miller  <davem@davemloft.net>
19078
19079         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
19080         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
19081         file.
19082         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
19083         sysdep_routines.
19084         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
19085         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
19086         when HWCAP_SPARC_CRYPTO is present.
19087
19088 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19089
19090         * io/tst-mknodat.c: Create a FIFO instead of a socket.
19091
19092 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
19093
19094         [BZ #6530]
19095         * stdio-common/vfprintf.c (process_string_arg): Revert
19096         2000-07-22 change.
19097
19098 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
19099
19100         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
19101         for testcase.
19102         * stdio-common/tst-sprintf.c: Include <locale.h>
19103         (main): Test sprintf's handling of incomplete multibyte
19104         characters.
19105
19106 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
19107
19108         * elf/dl-runtime.c (VERSYMIDX): Removed.
19109         * elf/dl-version.c (VERSYMIDX): Likewise.
19110         * elf/do-rel.h (VERSYMIDX): Likewise.
19111         (VALIDX): Likewise.
19112         * elf/dynamic-link.h (VERSYMIDX): Likewise.
19113         * elf/rtld.c (VALIDX): Likewise.
19114         (ADDRIDX): Likewise.
19115         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
19116         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
19117         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
19118         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
19119         (VALIDX): Likewise.
19120         (ADDRIDX): Likewise.
19121
19122 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19123
19124         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
19125
19126 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
19127
19128         [BZ #11438]
19129         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
19130         to global scope.
19131         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
19132         addresses are in the same scope as 192.0.2/24.
19133         * posix/gai.conf: Document new scope table defaults.
19134
19135 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19136
19137         [BZ #5298]
19138         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
19139         for ftell.  Compute offsets from write pointers instead.
19140         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19141
19142 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19143
19144         [BZ #14543]
19145         * libio/Makefile (tests): New test case tst-fseek.
19146         * libio/tst-fseek.c: New test case to verify that fseek/ftell
19147         combination works in wide mode.
19148         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
19149         state when the external buffer state changes.
19150
19151 2012-09-27  David S. Miller  <davem@davemloft.net>
19152
19153         [BZ #14376]
19154         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
19155         pass reloc->r_addend in as the 'high' argument to
19156         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
19157
19158         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19159
19160 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19161
19162         * rt/tst-aio2.c: Include <pthread.h>.
19163         * rt/tst-aio3.c: Likewise.
19164
19165 2012-09-27  Steve Ellcey  <sellcey@mips.com>
19166
19167         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
19168
19169 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
19170
19171         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
19172         contents on [SHARED].
19173
19174 2012-09-26  Marek Polacek  <polacek@redhat.com>
19175
19176         [BZ #14530]
19177         [BZ #13741]
19178         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
19179         for C++ and GCC <4.3 as well as for non GCC compilers.
19180
19181 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19182
19183         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19184
19185 2012-09-25  Roland McGrath  <roland@hack.frob.com>
19186
19187         * Makefile.in (all, install): Declare with .PHONY.
19188         Reported by Michael Hope <michael.hope@linaro.org>.
19189
19190 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19191
19192         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
19193         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
19194         system header.
19195         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
19196         Likewise.
19197         (sydep_routines): Add the new and the internal functions.
19198         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
19199         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
19200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
19201         (GLIBC_2.17): Add the new function.
19202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
19203         (GLIBC_2.17): Likewise.
19204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
19205         (GLIBC_2.17): Likewise.
19206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
19207         (GLIBC_2.17): Likewise.
19208         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
19209
19210 2012-09-25  Alan Modra  <amodra@gmail.com>
19211
19212         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
19213         Add release barrier before setting once_control to say
19214         initialisation is done.  Add hints on lwarx.  Use macro in
19215         place of isync.
19216         (clear_once_control): Add release barrier.
19217
19218 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19219
19220         [BZ #13629]
19221         * math/s_clog.c (__clog): Handle more values close to |z| = 1
19222         specially.
19223         * math/s_clog10.c (__clog10): Likewise.
19224         * math/s_clog10f.c (__clog10f): Likewise.
19225         * math/s_clog10l.c (__clog10l): Likewise.
19226         * math/s_clogf.c (__clogf): Likewise.
19227         * math/s_clogl.c (__clogl): Likewise.
19228         * math/Makefile (libm-calls): Add x2y2m1.
19229         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
19230         (__x2y2m1): Likewise.
19231         (__x2y2m1l): Likewise.
19232         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
19233         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
19234         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
19235         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
19236         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
19237         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
19238         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
19239         * sysdeps/i386/fpu/libm-test-ulps: Update.
19240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19241
19242         [BZ #14621]
19243         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
19244         int as type of variable DEPTH.
19245         (glob): Use size_t instead of int as type of variables NEWCOUNT
19246         and OLD_PATHC.
19247
19248 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19249
19250         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19251         Add s_sincosf-sse2.
19252         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
19253         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
19254         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
19255         macros for using routine as __sincosf_ia32.
19256         Use macro for function declaration and weak_alias.
19257         * sysdeps/i386/fpu/libm-test-ulps: Update.
19258
19259         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
19260         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19261
19262         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
19263         subnormal argument.
19264         * math/s_cexpf.c (__cexpf): Likewise.
19265         * math/s_csinf.c (__csinf): Likewise.
19266         * math/s_csinhf.c (__csinhf): Likewise.
19267         * math/s_ctanf.c (__ctanf): Likewise.
19268         * math/s_ctanhf.c (__ctanhf): Likewise.
19269         * math/s_ccosh.c (__ccoshf): Likewise.
19270         * math/s_cexp.c (__cexpl): Likewise.
19271         * math/s_csin.c (__csin): Likewise.
19272         * math/s_csinh.c (__csinh): Likewise.
19273         * math/s_ctan.c (__ctan): Likewise.
19274         * math/s_ctanh.c (ctanh): Likewise.
19275         * math/s_ccoshl.c (__ccoshl): Likewise.
19276         * math/s_cexpl.c (__cexpl): Likewise.
19277         * math/s_csinl.c (__csinl): Likewise.
19278         * math/s_csinhl.c (__csinhl): Likewise.
19279         * math/s_ctanl.c (__ctanl): Likewise.
19280         * math/s_ctanhl.c (__ctanhl): Likewise.
19281
19282 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19283
19284         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
19285         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
19286         (_IO_off_t): Define to __off_t, not _G_off_t.
19287         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
19288         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
19289         (_IO_wint_t): Define to wint_t, not _G_wint_t.
19290         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
19291         type of __dummy and __dummy2 fields.
19292         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
19293         (_G_ssize_t): Likewise.
19294         (_G_off_t): Likewise.
19295         (_G_pid_t): Likewise.
19296         (_G_uid_t): Likewise.
19297         (_G_wchar_t): Likewise.
19298         (_G_wint_t): Likewise.
19299         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
19300         (_G_ssize_t): Likewise.
19301         (_G_off_t): Likewise.
19302         (_G_pid_t): Likewise.
19303         (_G_uid_t): Likewise.
19304         (_G_wchar_t): Likewise.
19305         (_G_wint_t): Likewise.
19306         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
19307         (_G_ssize_t): Likewise.
19308         (_G_off_t): Likewise.
19309         (_G_pid_t): Likewise.
19310         (_G_uid_t): Likewise.
19311         (_G_wchar_t): Likewise.
19312         (_G_wint_t): Likewise.
19313
19314 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19315
19316         * malloc/arena.c: Include malloc-sysdep.h.
19317         (shrink_heap): Use check_may_shrink_heap to decide if madvise
19318         is sufficient to shrink the heap or an unmap is needed.
19319         * sysdeps/generic/malloc-sysdep.h: New file.  Define
19320         new function check_may_shrink_heap.
19321         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
19322         new function check_may_shrink_heap.
19323
19324 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19325
19326         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
19327         comments.
19328
19329 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
19330
19331         * catgets/test-gencat.sh: Add "set -e".
19332         * elf/tst-pathopt.sh: Likewise.
19333         * grp/tst_fgetgrent.sh: Likewise.
19334         * iconvdata/run-iconv-test.sh: Likewise.
19335         * intl/tst-gettext.sh: Likewise.
19336         * intl/tst-gettext2.sh: Likewise.
19337         * intl/tst-gettext4.sh: Likewise.
19338         * intl/tst-gettext6.sh: Likewise.
19339         * intl/tst-translit.sh: Likewise.
19340         * io/ftwtest-sh: Likewise.
19341         * libio/test-freopen.sh: Likewise.
19342         * malloc/tst-mtrace.sh: Likewise.
19343         * posix/globtest.sh: Likewise.
19344         * posix/tst-getconf.sh: Likewise.
19345         * posix/wordexp-tst.sh: Likewise.
19346         * stdio-common/tst-printf.sh: Likewise.
19347         * stdio-common/tst-unbputc.sh: Likewise.
19348         * stdlib/tst-fmtmsg.sh: Likewise.
19349         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19350         * catgets/Makefile: Do not specify -e option when running
19351         testsuite shell scripts.
19352         * elf/Makefile: Likewise.
19353         * grp/Makefile: Likewise.
19354         * iconvdata/Makefile: Likewise.
19355         * intl/Makefile: Likewise.
19356         * io/Makefile: Likewise.
19357         * libio/Makefile: Likewise.
19358         * malloc/Makefile: Likewise.
19359         * posix/Makefile: Likewise.
19360         * stdio-common/Makefile: Likewise.
19361         * stdlib/Makefile: Likewise.
19362         * sysdeps/x86_64/Makefile: Likewise.
19363
19364         * io/ftwtest-sh: Add copyright header.
19365         * posix/globtest.sh: Likewise.
19366         * posix/tst-getconf.sh: Likewise.
19367         * posix/wordexp-tst.sh: Likewise.
19368         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19369
19370 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
19371
19372         [BZ #13679]
19373         * Makeconfig (+link): Defined as $(+link-static) if
19374         $(build-shared) isn't yes.
19375         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
19376         isn't yes.
19377         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
19378
19379         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
19380
19381         [BZ #14562]
19382         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
19383         new chunk size with MALLOC_ALIGN_MASK.
19384
19385 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
19386
19387         [BZ #5044]
19388         * stdio-common/printf_fphex.c: Include <stdbool.h> and
19389         <rounding-mode.h>.
19390         (__printf_fphex): Determine rounding using get_rounding_mode and
19391         round_away.
19392         * stdio-common/tst-printf-round.c (struct hex_test): New
19393         structure.
19394         (hex_tests): New variable.
19395         (test_hex_in_one_mode): New function.
19396         (do_test): Also run tests for hex float output.
19397
19398 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
19399
19400         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19401         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19402         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
19403         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19404         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19405         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
19406         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19407         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19408
19409 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
19410
19411         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
19412         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
19413         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
19414         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
19415
19416 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
19417
19418         [BZ #14579]
19419         * elf/rtld.c (dl_main): Limit the check for self loading to normal
19420         mode only.
19421         * elf/tst-rtld-load-self.sh: New test.
19422         * elf/Makefile: Run it.
19423
19424 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
19425
19426         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
19427         (tst-writev-ENV): Remove.
19428         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
19429
19430 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
19431
19432         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
19433
19434 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
19435
19436         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
19437         unconditional.
19438         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
19439         Likewise.
19440         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
19441         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
19442         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
19443         Likewise.
19444
19445 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
19446
19447         [BZ #14587]
19448         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
19449         * config.make.in (have-cpp-asm-debuginfo): Removed.
19450         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
19451         * configure: Regenerated.
19452
19453 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
19454
19455         [BZ #5044]
19456         * stdio-common/printf_fp.c: Include <stdbool.h> and
19457         <rounding-mode.h>.
19458         (___printf_fp): Determine rounding using get_rounding_mode and
19459         round_away.
19460         * stdio-common/tst-printf-round.c: New file.
19461         * stdio-common/Makefile (tests): Add tst-printf-round.
19462         (link-libm): New variable.
19463         ($(objpfx)tst-printf-round): Depend in $(link-libm).
19464
19465 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
19466
19467         [BZ #14576]
19468         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
19469         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
19470         Likewise.
19471         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
19472         Likewise.
19473
19474 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
19475
19476         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
19477         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19478         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19479         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19480
19481 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
19482
19483         [BZ #14518]
19484         * include/rounding-mode.h: New file.
19485         * sysdeps/generic/get-rounding-mode.h: Likewise.
19486         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
19487         * stdlib/strtod_l.c: Include <rounding-mode.h>.
19488         (MAX_VALUE): New macro.
19489         (MIN_VALUE): Likewise.
19490         (overflow_value): New function.
19491         (underflow_value): Likewise.
19492         (round_and_return): Use overflow_value and underflow_value to
19493         determine return values in overflow and underflow cases.  Use
19494         round_away to determine rounding depending on rounding mode.
19495         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
19496         determine return values in overflow and underflow cases.
19497         * stdlib/tst-strtod-round.c: Include <fenv.h>.
19498         (struct test_results): New structure.
19499         (struct test): Use struct test_results to store expected results
19500         for all rounding modes.
19501         (TEST): Include expected results for all rounding modes.
19502         (test_in_one_mode): New function.
19503         (do_test): Use test_in_one_mode to compute and check results.
19504         Check results for all rounding modes.
19505         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
19506         $(link-libm).
19507
19508 2012-12-09  Allan McRae  <allan@archlinux.org>
19509
19510         * sysdeps/i386/fpu/libm-test-ulps: Update
19511
19512 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
19513
19514         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
19515         (_G_int32_t): Likewise.
19516         (_G_uint16_t): Likewise.
19517         (_G_uint32_t): Likewise.
19518         (_G_HAVE_BOOL): Likewise.
19519         (_G_HAVE_ATEXIT): Likewise.
19520         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19521         (_G_HAVE_IO_FILE_OPEN): Likewise.
19522         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
19523         (_G_int32_t): Likewise.
19524         (_G_uint16_t): Likewise.
19525         (_G_uint32_t): Likewise.
19526         (_G_HAVE_BOOL): Likewise.
19527         (_G_HAVE_ATEXIT): Likewise.
19528         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19529         (_G_HAVE_IO_FILE_OPEN): Likewise.
19530         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
19531         (_G_int32_t): Likewise.
19532         (_G_uint16_t): Likewise.
19533         (_G_uint32_t): Likewise.
19534         (_G_HAVE_BOOL): Likewise.
19535         (_G_HAVE_ATEXIT): Likewise.
19536         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19537         (_G_HAVE_IO_FILE_OPEN): Likewise.
19538
19539 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
19540
19541         * csu/libc-tls.c: Update copyright years.
19542
19543 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
19544
19545         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
19546         [!_G_USING_THUNKS]: Remove conditional code.
19547         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
19548         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
19549
19550         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
19551         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
19552         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19553         (_G_VTABLE_LABEL_PREFIX): Likewise.
19554         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19555         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19556         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19557         (_G_VTABLE_LABEL_PREFIX): Likewise.
19558         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19559         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19560         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19561         (_G_VTABLE_LABEL_PREFIX): Likewise.
19562         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19563
19564 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
19565
19566         * libio/Makefile: Include ../Makeconfig before tests.
19567         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
19568         only if $(build-shared) is yes.
19569
19570         * iconv/gconv_db.c: Update copyright years.
19571
19572 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19573
19574         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
19575         unwind info if defined PIC. Fix special cases description.
19576         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
19577
19578         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
19579         DP_HI_MASK entry.
19580         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
19581
19582 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
19583
19584         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
19585
19586         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
19587         is NULL.
19588
19589         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
19590         (LDLIBS-tst-chk4): This.
19591         (LDFLAGS-tst-chk5): Renamed to ...
19592         (LDLIBS-tst-chk5): This.
19593         (LDFLAGS-tst-chk6): Renamed to ...
19594         (LDLIBS-tst-chk6): This.
19595         (LDFLAGS-tst-lfschk4): Renamed to ...
19596         (LDLIBS-tst-lfschk4): This.
19597         (LDFLAGS-tst-lfschk5): Renamed to ...
19598         (LDLIBS-tst-lfschk5): This.
19599         (LDFLAGS-tst-lfschk6): Renamed to ...
19600         (LDLIBS-tst-lfschk6): This.
19601
19602         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
19603         on $(common-objpfx)soversions.mk.
19604
19605 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
19606
19607         [BZ #10014]
19608         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
19609         example host name.
19610
19611 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19612
19613         * malloc/arena.c (arena_get_retry): New function that gets
19614         another arena for the caller to try its request on.
19615         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
19616         current arena cannot fulfill the request.
19617         (__libc_memalign): Likewise.
19618         (__libc_memalign): Likewise.
19619         (__libc_pvalloc): Likewise.
19620         (__libc_calloc): Likewise.
19621
19622 2012-09-05  John Tobey  <john.tobey@gmail.com>
19623
19624         [BZ #13542]
19625         * manual/arith.texi (Operations on Complex): Fix description
19626         of carg branch cut.
19627
19628 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19629
19630         [BZ #10014]
19631         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
19632         host name.
19633
19634         [BZ #10038]
19635         * manual/memory.texi (Memory): Make order of menu items match
19636         order of sections.
19637
19638 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19639
19640         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
19641         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
19642         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
19643
19644 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19645
19646         * csu/libc-tls.c (static_dtv): Renamed to ...
19647         (_dl_static_dtv): This.  Make it global.
19648         (_dl_initial_dtv): Removed.
19649         (__libc_setup_tls): Updated.
19650         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
19651         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
19652         DL_INITIAL_DTV.
19653
19654 2012-09-06  Petr Machata  <pmachata@redhat.com>
19655
19656         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
19657         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
19658         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
19659         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
19660
19661 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19662
19663         [BZ #14545]
19664         * csu/libc-tls.c (_dl_initial_dtv): New variable.
19665         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
19666         freeing dtv[-1].
19667
19668 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19669
19670         [BZ #14544]
19671         * Makeconfig (link-static-before-libc): Replace $(+prector)
19672         with $(+prectorT).
19673         (link-static-after-libc): Replace $(+postctor) with
19674         $(+postctorT).
19675         (link-bounded): Replace $(+prector)/$(+postctor) with
19676         $(+prectorT)/$(+postctorT).
19677         (+prectorT): New macro.
19678         (+postctorT): Likewise.
19679
19680 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19681
19682         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
19683         (round_str): Handle values above the maximum for IBM long double
19684         as inexact.
19685         * stdlib/tst-strtod-round.c (tests): Regenerated.
19686
19687 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19688
19689         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
19690         assembler flag.
19691         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
19692         zarch_nohighgprs around the zarch optimized routines.
19693         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
19694         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
19695         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
19696         for zarch.
19697
19698 2012-09-05  David S. Miller  <davem@davemloft.net>
19699
19700         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19701
19702         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
19703         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
19704         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
19705         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19706         entries.
19707
19708 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19709
19710         * malloc/arena.c: Fold copyright years.
19711         * malloc/mcheck.c, malloc/memusage.c: Likewise.
19712
19713 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19714
19715         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
19716
19717 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19718
19719         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
19720
19721 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19722
19723         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
19724         change internal state upon failure.
19725
19726 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19727
19728         * malloc/mcheck.c (mcheck_check_all): Fix typo.
19729         * malloc/memusage.c (mmap): Likewise.
19730         (mmap64, mremap): Likewise.  Adjust name in comment.
19731
19732 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19733
19734         * libio/fileops.c: Fix typos in comments.
19735         * libio/oldfileops.c: Likewise.
19736         * libio/wfileops.c: Likewise.
19737
19738 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19739
19740         [BZ #1349]
19741         * malloc/Makefile (tests): Add tst-malloc-usable test case.
19742         (tst-malloc-usable-ENV): Set environment for test case.
19743         * malloc/hooks.c (malloc_check_get_size): New function to get
19744         requested size.
19745         * malloc/malloc.c (musable): Use malloc_check_get_size.
19746         * malloc/tst-malloc-usable.c: New test case.
19747
19748 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19749
19750         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
19751
19752 2012-09-05  Allan McRae  <allan@archlinux.org>
19753
19754         [BZ #13966]
19755         * configure.in (CXX_SYSINCLUDES): Use compiler output to
19756         determine header location.
19757         * configure: Regenerated.
19758
19759 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19760
19761         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
19762         float format.
19763         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
19764         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
19765         format.
19766         (test): Regenerate.
19767
19768 2012-09-04  David S. Miller  <davem@davemloft.net>
19769
19770         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
19771         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
19772         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
19773
19774 2012-09-04  Florian Weimer  <fweimer@redhat.com>
19775
19776         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
19777         failures.
19778
19779         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
19780
19781 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
19782
19783         [BZ #9914]
19784         * libio/iogetdelim.c: Include <limits.h>.
19785         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
19786         + len + 1 would overflow.
19787
19788 2012-09-03  Andreas Jaeger  <aj@suse.de>
19789
19790         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19791         * sysdeps/i386/fpu/libm-test-ulps: Update.
19792
19793 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19794
19795         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19796         Add s_sinf-sse2, s_conf-sse2.
19797
19798         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
19799         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
19800         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
19801         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
19802
19803         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
19804         for using routine as __sinf_ia32.
19805         Use macro for function declaration and weak_alias.
19806         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
19807         for using routine as __cosf_ia32.
19808         Use macro for function declaration and weak_alias.
19809
19810         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
19811         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
19812
19813         * sysdeps/x86_64/fpu/s_sinf.S: New file.
19814         * sysdeps/x86_64/fpu/s_cosf.S: New file.
19815         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19816
19817         * math/libm-test.inc (cos_test): Add more test cases.
19818         (sin_test): Likewise.
19819         (sincos_test): Likewise.
19820
19821 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19822
19823         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
19824         (IFUNC_RESOLVE): Make pointers to the specialized implementations
19825         hidden.
19826         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19827
19828 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
19829
19830         [BZ #14538]
19831         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
19832         first element of the GOT.
19833         (elf_machine_load_address): Return the difference between
19834         the runtime address of _DYNAMIC and elf_machine_dynamic ().
19835
19836 2012-09-01  Allan McRae  <allan@archlinux.org>
19837
19838         [BZ #13412]
19839         * configure.in (AWK): Require gawk version 3.0 or later.
19840         * configure: Regenerated.
19841
19842 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
19843
19844         * sysdeps/unix/sysv/linux/kernel-features.h
19845         (__ASSUME_POSIX_CPU_TIMERS): Remove.
19846         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19847         [__NR_clock_getres]: Make code unconditional.
19848         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
19849         (clock_getcpuclockid): Remove code left unreachable by removal of
19850         conditionals.
19851         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
19852         code unconditional.
19853         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19854         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19855         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
19856         Make code unconditional.
19857         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19858         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19859         * sysdeps/unix/sysv/linux/clock_settime.c
19860         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
19861         conditional code.
19862         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
19863         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19864
19865 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
19866
19867         [BZ #14476]
19868         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
19869         scripts/test-installation.pl.
19870
19871         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
19872         and $ld_so_version if it is set.
19873
19874 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19875
19876         [BZ #14516]
19877         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
19878         failure if reading from procfs failed.
19879         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
19880
19881 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19882
19883         * sysdeps/unix/sysv/linux/kernel-features.h
19884         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
19885         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19886         Remove conditional code.
19887         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19888         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
19889         Remove conditional code.
19890         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19891         * sysdeps/unix/sysv/linux/i386/fxstat.c
19892         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19893         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19894         * sysdeps/unix/sysv/linux/i386/fxstatat.c
19895         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19896         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19897         * sysdeps/unix/sysv/linux/i386/lxstat.c
19898         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19899         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19900         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
19901         Remove conditional code.
19902         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19903         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19904         Remove conditional code.
19905         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19906         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
19907         <kernel-features.h>.
19908         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
19909         Remove.
19910         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
19911         Remove conditional code.
19912         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19913         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
19914         Remove conditional.
19915
19916 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
19917
19918         [BZ #5400]
19919         * NEWS: Add fixed bug number.
19920
19921 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19922
19923         [BZ #14519]
19924         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
19925         underflowing exponent in case of negative sign.
19926         * stdlib/tst-strtod-round-data: Add more tests.
19927         * stdlib/tst-strtod-round.c (tests): Regenerated.
19928
19929         [BZ #3479]
19930         * stdlib/strtod_l.c (NDIG): Remove.
19931         (HEXNDIG): Likewise.
19932         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
19933         smallest representable value.
19934         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
19935         lie within an exact representation of 1/2 ulp of the result.
19936         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
19937         unconditionally.
19938         (TENS_P9_IDX): Define unconditionally.
19939         (TENS_P9_SIZE): Likewise.
19940         (TENS_P10_IDX): Likewise.
19941         (TENS_P10_SIZE): Likewise.
19942         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
19943         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
19944         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
19945         entries for 10^2^13 and 10^2^14.
19946         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
19947         (TENS_P13_IDX): Define.
19948         (TENS_P13_SIZE): Likewise.
19949         (TENS_P14_IDX): Likewise.
19950         (TENS_P14_SIZE): Likewise.
19951         (_fpioconst_pow10): Change array size to
19952         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
19953         unconditional.
19954         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
19955         1024]: Add entries for 10^2^13 and 10^2^14.
19956         [LAST_POW10 > _LAST_POW10]: Remove #error.
19957         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
19958         (_fpioconst_pow10): Change array size to
19959         FPIOCONST_POW10_ARRAY_SIZE.
19960         * stdlib/gen-fpioconst.c: New file.
19961         * stdlib/gen-tst-strtod-round.c: Likewise.
19962         * stdlib/tst-strtod-round-data: Likewise.
19963         * stdlib/tst-strtod-round.c: Likewise.
19964         * stdlib/Makefile (tests): Add tst-strtod-round.
19965
19966         [BZ #14459]
19967         * stdlib/strtod_l.c: Include <stdint.h>.
19968         (NDEBUG): Do not define.
19969         (round_and_return): Change EXPONENT parameter to type intmax_t.
19970         Rearrange calculations to avoid internal overflow possibilities.
19971         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
19972         Rearrange calculations to avoid internal overflow possibilities.
19973         Assert that number fits inside MPNSIZE limbs.
19974         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
19975         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
19976         calculations and add assertions to avoid internal overflow
19977         possibilities.  Add casts to avoid signed/unsigned operations.
19978         * stdlib/tst-strtod-overflow.c: New file.
19979         * stdlib/Makefile (tests): Add tst-strtod-overflow.
19980
19981 2012-08-25  Marek Polacek  <polacek@redhat.com>
19982
19983         * time/time.h: Fix some typos in comments.
19984
19985 2012-08-23  Roland McGrath  <roland@hack.frob.com>
19986
19987         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
19988         * posix/tst-rfc3484-2.c: Likewise.
19989         * posix/tst-rfc3484-3.c: Likewise.
19990
19991 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
19992
19993         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
19994         (EF_ARM_ABI_FLOAT_HARD): Likewise.
19995
19996 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
19997
19998         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
19999         #include of fxstatat64.c.
20000
20001 2012-08-22  Roland McGrath  <roland@hack.frob.com>
20002
20003         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
20004         * shadow/getspent_r.c: Likewise.
20005         * shadow/getspnam.c: Likewise.
20006         * shadow/getspnam_r.c: Likewise.
20007         * gshadow/getsgent.c: Likewise.
20008         * gshadow/getsgent_r.c: Likewise.
20009         * gshadow/getsgnam.c: Likewise.
20010         * gshadow/getsgnam_r.c: Likewise.
20011         * inet/getnetbyad.c: Likewise.
20012         * inet/getnetbyad_r.c: Likewise.
20013         * inet/getnetbynm.c: Likewise.
20014         * inet/getnetbynm_r.c: Likewise.
20015         * inet/getnetent.c: Likewise.
20016         * inet/getnetent_r.c: Likewise.
20017         * inet/getproto.c: Likewise.
20018         * inet/getproto_r.c: Likewise.
20019         * inet/getprtent.c: Likewise.
20020         * inet/getprtent_r.c: Likewise.
20021         * inet/getprtname.c: Likewise.
20022         * inet/getprtname_r.c: Likewise.
20023         * inet/getrpcbyname.c: Likewise.
20024         * inet/getrpcbyname_r.c: Likewise.
20025         * inet/getrpcbynumber.c: Likewise.
20026         * inet/getrpcbynumber_r.c: Likewise.
20027         * inet/getrpcent.c: Likewise.
20028         * inet/getrpcent_r.c: Likewise.
20029         * inet/getaliasent.c: Likewise.
20030         * inet/getaliasent_r.c: Likewise.
20031         * inet/getaliasname.c: Likewise.
20032         * inet/getaliasname_r.c: Likewise.
20033         * nscd/getgrgid_r.c: Likewise.
20034         * nscd/getgrnam_r.c: Likewise.
20035         * nscd/gethstbyad_r.c: Likewise.
20036         * nscd/gethstbynm3_r.c: Likewise.
20037         * nscd/getpwnam_r.c: Likewise.
20038         * nscd/getpwuid_r.c: Likewise.
20039         * nscd/getsrvbynm_r.c: Likewise.
20040         * nscd/getsrvbypt_r.c: Likewise.
20041         * nscd/gai.c: Likewise.
20042
20043         * configure.in (build_nscd): New substituted variable, set
20044         by --disable-build-nscd and defaults to $use_nscd.
20045         * configure: Regenerated.
20046         * config.make.in (build-nscd): New substituted variable.
20047         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
20048         Change conditional to require [$(build-nscd) = yes] as well.
20049         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
20050
20051         [BZ# 13696]
20052         * configure.in (use_nscd): New substituted variable, set by
20053         --disable-nscd.  If enabled, define USE_NSCD.
20054         * configure: Regenerated.
20055         * config.h.in: Add USE_NSCD.
20056         * config.make.in (use-nscd): New substituted variable.
20057         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20058         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
20059         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
20060         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
20061         (CFLAGS-getgrnam_r.c): Likewise.
20062         (CFLAGS-initgroups.c): Likewise.
20063         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
20064         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
20065         Variables removed.
20066         * inet/getnetgrent_r.c
20067         (nscd_setnetgrent): New function, broken out of ...
20068         (setnetgrent): ... here.  Call it.
20069         (innetgr): Conditionalize nscd bits on [USE_NSCD].
20070         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
20071         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
20072         * nscd/Makefile (routines, aux): Move definitions after include of
20073         Makeconfig.  Conditionalize on [$(use-nscd) != no].
20074         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
20075         Conditionalize on [USE_NSCD].
20076         (is_nscd, nscd_init_cb): Likewise.
20077         (nss_load_library): Conditionalize init callback on [USE_NSCD].
20078         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
20079         * nss/nss_db/db-init.c: Likewise.
20080         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
20081         [USE_NSCD].
20082         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
20083         (make_request): Use it.
20084         (cache_valid_p): New function.
20085         (__check_pf): Use it.
20086         * NEWS: Add item for --disable-nscd.
20087
20088 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
20089
20090         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
20091         to support sed >= 4.2.1-20-ga9bf076.
20092         * configure: Regenerated.
20093
20094 2012-08-22  Roland McGrath  <roland@hack.frob.com>
20095
20096         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
20097         Conditionalize whole body on [IREL].
20098
20099 2012-08-22  Jeff Law <law@redhat.com>
20100
20101         [BZ #14505]
20102         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
20103         if the family is PF_UNSPEC.
20104
20105 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
20106
20107         * Makerules (lib-version): Rename from V.
20108         (install-lib-nosubdir): Change V to lib-version.
20109
20110 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
20111
20112         [BZ #14252]
20113         * powerpc32/power6/wcschr.c: New file.
20114         * powerpc32/power6/wcscpy.c: New file.
20115         * powerpc32/power6/wcsrchr.c: New file.
20116         * powerpc64/power6/wcschr.c: New file.
20117         * powerpc64/power6/wcscpy.c: New file.
20118         * powerpc64/power6/wcsrchr.c: New file.
20119
20120 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20121
20122         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
20123         (two_way_short_needle): Use it.
20124         * string/strstr.c (AVAILABLE1_USES_J): Define.
20125         * string/strcasestr.c: Likewise.
20126
20127         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
20128         array references.
20129         * string/strcasestr.c (TOLOWER): Make side-effect safe.
20130
20131         [BZ #11607]
20132         * NEWS: Add an entry.
20133         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
20134         define their defaults.
20135         (two_way_short_needle): Detect end-of-string on-the-fly.
20136         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
20137         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
20138         * string/bug-strcasestr1.c: New test.
20139         * string/Makefile: Run it.
20140
20141 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20142
20143         [BZ #11607]
20144         * string/str-two-way.h (two_way_short_needle): Optimize matching of
20145         the first character.
20146
20147 2012-08-21  Roland McGrath  <roland@hack.frob.com>
20148
20149         * csu/elf-init.c (__libc_csu_irel): Function removed.
20150         * csu/libc-start.c (apply_irel): New function.
20151         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
20152
20153 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
20154
20155         * sysdeps/unix/sysv/linux/kernel-features.h
20156         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
20157         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
20158         <kernel-features.h>.
20159         [__NR_fadvise64_64]: Make code unconditional.
20160         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
20161         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20162         !__NR_fadvise64_64)]: Likewise.
20163         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20164         !__NR_fadvise64_64))]: Likewise.
20165         [__NR_fadvise64]: Make code unconditional.
20166         [!__NR_fadvise64]: Remove conditional code.
20167         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
20168         <kernel-features.h>.
20169         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20170         unconditional.
20171         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20172         conditional code.
20173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
20174         not include <kernel-features.h>.
20175         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20176         unconditional.
20177         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20178         conditional code.
20179         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
20180         include <kernel-features.h>.
20181         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20182         unconditional.
20183         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20184         conditional code.
20185
20186 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
20187
20188         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
20189         slight instruction rearrangements per scrollpipe analysis.
20190         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
20191
20192 2012-08-20  Roland McGrath  <roland@hack.frob.com>
20193
20194         * manual/syslog.texi (syslog; vsyslog, closelog):
20195         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
20196         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
20197
20198         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
20199         DSOCAPS to match condition on defining it.
20200
20201 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
20202
20203         * sysdeps/unix/sysv/linux/kernel-features.h
20204         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
20205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
20206         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20207         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
20209         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20210         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
20212         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20213         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20214
20215         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
20216         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
20217
20218         * sysdeps/unix/sysv/linux/kernel-features.h
20219         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
20220         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
20221         unconditional.
20222         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20223         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
20224         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20225         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20226         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
20227         Make code unconditional.
20228         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20229         (__mmap64) [!__NR_mmap2]: Likewise.
20230         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
20231         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20232         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20233         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
20234         [__NR_mmap2]: Make code unconditional.
20235         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20236         (__mmap64) [!__NR_mmap2]: Likewise.
20237
20238 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20239
20240         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
20241
20242 2012-08-18  Andreas Jaeger  <aj@suse.de>
20243
20244         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
20245
20246 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20247
20248         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
20249         * include/unistd.h (__have_sock_cloexec): Likewise.
20250         (__have_pipe2): Likewise.
20251         (__have_dup3): Likewise.
20252
20253 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20254
20255         [BZ #9685]
20256         * include/unistd.h (__have_pipe2): Change define into an extern int.
20257         (__have_dup3): Likewise.
20258         * socket/have_sock_cloexec.c: Include fcntl.h.
20259         (__have_pipe2): New variable.
20260         (__have_dup3): Likewise.
20261
20262 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
20263
20264         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
20265
20266 2012-08-17  Marek Polacek  <polacek@redhat.com>
20267
20268         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
20269         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
20270
20271 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20272
20273         * configure.in: Add AC_SUBST for sysheaders.
20274         * configure: Regenerated.
20275         * config.make.in (sysheaders): New substituted variable.
20276
20277         * sysdeps/unix/mkfifo.c: Moved ...
20278         * sysdeps/posix/mkfifo.c: ... here.
20279         * sysdeps/unix/mkfifoat.c: Moved ...
20280         * sysdeps/posix/mkfifoat.c: ... here.
20281
20282         * sysdeps/unix/utime.c: Moved ...
20283         * sysdeps/posix/utime.c: ... here.
20284
20285         * sysdeps/unix/time.c: Moved ...
20286         * sysdeps/posix/time.c: ... here.
20287         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
20288         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
20289
20290         * sysdeps/unix/nice.c: Moved ...
20291         * sysdeps/posix/nice.c: ... here.
20292
20293         * sysdeps/unix/alarm.c: Moved ...
20294         * sysdeps/posix/alarm.c: ... here.
20295
20296         * intl/Makefile ($(codeset_mo)): Depend on the input file.
20297
20298 2012-08-17  Jeff Law <law@redhat.com>
20299
20300         * intl/Makefile (codeset_mo): New variable.
20301         ($(codeset_mo)): New target.
20302         (tst-codeset.out): Depend on that.  Remove explicit rule.
20303         (tst-gettext3.out, tst-gettext5.out): Likewise.
20304         (LOCPATH-ENV, tst-codeset-ENV): New variables.
20305         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
20306         * intl/tst-codeset.sh: Remove.
20307         * intl/tst-gettext3.sh: Likewise.
20308         * intl/tst-gettext5.sh: Likewise.
20309
20310 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20311
20312         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
20313         * sysdeps/unix/syscalls.list: ... here.
20314
20315         * sysdeps/posix/getaddrinfo.c
20316         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
20317         (gaiconf_init, gaiconf_reload): Use them.
20318         [!_STATBUF_ST_NSEC]
20319         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
20320         Define using time_t rather than struct timespec.
20321
20322         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
20323         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
20324         Macros removed.
20325         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
20326         [!NO_THREADS].
20327         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
20328         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
20329         Likewise.
20330
20331         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
20332         __libc_cleanup_push argument.
20333
20334         * bits/param.h: New file.
20335         * misc/sys/param.h: New file.
20336         * include/sys/param.h: New file.
20337         * misc/Makefile (headers): Add bits/param.h.
20338         * sysdeps/generic/sys/param.h: File removed.
20339         * sysdeps/unix/sysv/linux/bits/param.h: New file.
20340         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
20341         * sysdeps/mach/hurd/bits/param.h: New file.
20342         * sysdeps/mach/hurd/sys/param.h: File removed.
20343
20344         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
20345         last change.
20346
20347         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
20348         [_IO_MTSAFE_IO].
20349         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
20350         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
20351         New macros.
20352
20353         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
20354         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
20355         rather than -D_IO_MTSAFE_IO conditionally.
20356         * stdio-common/Makefile (CPPFLAGS): Likewise.
20357         * wcsmbs/Makefile (CPPFLAGS): Likewise.
20358         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
20359         Use $(libio-mtsafe).
20360         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
20361         of -D_IO_MTSAFE_IO.
20362         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
20363         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
20364         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
20365         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
20366         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
20367         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
20368         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
20369         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
20370         (CFLAGS-fread_u_chk.c): Likewise.
20371         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
20372         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
20373         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
20374         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
20375         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
20376         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
20377         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
20378         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
20379         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
20380
20381         * libio/Makefile: Test [$(libc-reentrant) = yes]
20382         instead of [$(filter %REENTRANT, $(defines)) nonempty].
20383
20384         * Makeconfig
20385         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
20386         * sysdeps/pthread/configure: File removed.
20387         * sysdeps/pthread/Makeconfig: New file.
20388         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
20389         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
20390
20391 2012-08-16  Gary Benson  <gbenson@redhat.com>
20392
20393         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
20394         unmapping the first object in a namespace.
20395
20396 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20397
20398         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
20399         (__internal_setnetgrent): ... this.  Add internal_function to
20400         definition.  Add libc_hidden_def.
20401         (setnetgrent): Update caller.
20402         (internal_endnetgrent): Renamed to ...
20403         (__internal_endnetgrent): ... this.  Add internal_function to
20404         definition.  Add libc_hidden_def.
20405         (endnetgrent): Update caller.
20406         (internal_getnetgrent_r): Renamed to ...
20407         (__internal_getnetgrent_r): ... this.  Add internal_function to
20408         definition.  Add libc_hidden_def.
20409         (__getnetgrent_r): Update caller.
20410         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
20411
20412 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20413
20414         * stdlib/longlong.h: Update from GCC.
20415
20416 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20417
20418         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
20419         on _QL, which is set by umul_ppmm but never used.
20420         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
20421         variables, which are set by GMP macros but never used.
20422         * stdio-common/_itowa.c (_itowa): Likewise.
20423         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
20424         * stdlib/mod_1.c (mpn_mod_1): Likewise.
20425
20426 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
20427
20428         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
20429         struct La_sh_regs is not constant.
20430         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
20431         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
20432         and struct La_sparc64_regs are not constant.
20433
20434 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20435
20436         * sysdeps/unix/sysv/linux/kernel-features.h
20437         (__ASSUME_POSIX_TIMERS): Remove.
20438         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
20439         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20440         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
20441         Make code unconditional.
20442         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20443         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
20444         Make code unconditional.
20445         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20446         * sysdeps/unix/sysv/linux/clock_nanosleep.c
20447         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
20448         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20449         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
20450         Make code unconditional.
20451         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20452         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
20453         (__libc_missing_posix_timers): Remove.
20454
20455 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20456
20457         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
20458         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
20459
20460         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
20461
20462         * elf/dl-sym.c: Include <stdlib.h>.
20463
20464         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
20465         constants, which avoids warnings in 32-bit builds.
20466
20467         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
20468         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
20469
20470         * misc/lseek.c: File moved to ...
20471         * io/lseek.c: ... here.
20472
20473         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
20474
20475         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
20476         shifting LEN more than 31 bits at once.
20477
20478 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20479
20480         [BZ #14195]
20481         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
20482         segmentation fault for a case of two empty input strings.
20483         * string/test-strncasecmp.c (check1): Renamed to...
20484         (bz12205): ...this.
20485         (bz14195): Add new testcase for two empty input strings and N > 0.
20486         (test_main): Call new testcase, adapt for renamed function.
20487
20488 2012-08-15  Andreas Jaeger  <aj@suse.de>
20489
20490         [BZ #14090]
20491         * crypt/md5test2.c: New test, based on test supplied by Serge
20492         Belyshev <belyshev@depni.sinp.msu.ru>.
20493         * crypt/Makefile (xtests): Add md5test-giant..
20494         * crypt/Makefile ($(objpfx)md5test-giant): Add.
20495
20496 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20497
20498         [BZ #14090]
20499         * crypt/md5.c (md5_process_block): Don't assume the buffer
20500         length is less than 2**32.
20501         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
20502         length is less than 2**64.
20503
20504 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20505
20506         * string/str-two-way.h: Include <sys/param.h>.
20507         (MAX): Macro removed.
20508
20509         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
20510         Move #define and #undef of memmove to just before and after
20511         including <string.h>.
20512
20513         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
20514         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
20515         and after including <string.h>.  Move declarations of
20516         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
20517         to before #include "string/memmove.c".
20518
20519         * include/dirent.h: Declare __getdirentries.
20520
20521         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
20522         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
20523
20524 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
20525
20526         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
20527         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
20528         * sysdeps/i386/configure: Regenerated.
20529         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
20530         STABS_CURRENT_FILE, and STABS_FUN.
20531         (END): Remove call to STABS_FUN_END.
20532         (STABS_CURRENT_FILE1): Delete.
20533         (STABS_CURRENT_FILE): Likewise.
20534         (STABS_FUN): Likewise.
20535         (STABS_FUN_END): Likewise.
20536         (STABS_FUN2): Likewise.
20537         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
20538         * sysdeps/x86_64/configure: Regenerated.
20539
20540 2012-08-14  Roland McGrath  <roland@hack.frob.com>
20541
20542         * elf/dl-open.c: Include <atomic.h>.
20543         * elf/dl-lookup.c: Likewise.
20544
20545 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
20546
20547         * sysdeps/unix/sysv/linux/kernel-features.h
20548         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
20549         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
20550         unconditionally.
20551         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
20552         unconditionally.
20553         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
20554         condition on __ASSUME_CLONE_THREAD_FLAGS.
20555
20556 2012-08-14  Andreas Jaeger  <aj@suse.de>
20557
20558         * sysdeps/i386/fpu/libm-test-ulps: Update.
20559
20560 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
20561
20562         * include/atomic.h (atomic_exchange_and_add): Split into ...
20563         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
20564         New atomic macros.
20565
20566 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
20567
20568         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20569
20570 2012-08-13  Jeff Law <law@redhat.com>
20571
20572         * manual/stdio.texi (snprintf): Clarify handling of the trailing
20573         null byte in the output string.
20574
20575 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
20576
20577         * sysdeps/unix/sysv/linux/kernel-features.h
20578         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
20579         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
20580         (__ASSUME_ARG_MAX_STACK_BASED): Define.
20581         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
20582         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
20583         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
20584         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
20585
20586 2012-08-09  Jeff Law <law@redhat.com>
20587
20588         [BZ #13939]
20589         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
20590         When avoid_arena is set, don't retry in the that arena.  Pick the
20591         next one, whatever it might be.
20592         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
20593         (arena_lock): Pass in new parameter to arena_get2.
20594         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
20595         arena_get2.
20596         (__libc_malloc): Unify retrying after main arena failure with
20597         __libc_memalign version.
20598         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
20599
20600 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20601
20602         [BZ #14166]
20603         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
20604         to __redirect_strstr.
20605         (__strstr_sse42): Use typeof __redirect_strstr.
20606         (__strstr_ia32): Likewise.
20607         (__libc_strstr): New prototype.
20608         (strstr): Renamed to ...
20609         (__libc_strstr): This.
20610         (strstr): New strong alias of __libc_strstr.
20611         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
20612         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
20613         __redirect_time.
20614         Include <time.h>.
20615         (__libc_time): New prototype.
20616         (time_ifunc): Replace time with __libc_time.
20617         (time): New strong alias and hidden definition of __libc_time.
20618         (__GI_time): Remove strong alias.
20619         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
20620         Include <stddef.h>.
20621         (memmove): Redefined to __redirect_memmove.
20622         (__memmove_sse2): Use typeof __redirect_memmove.
20623         (__memmove_ssse3): Likewise.
20624         (__memmove_ssse3_back): Likewise.
20625         (__libc_memmove): New prototype.
20626         (memmove): Renamed to ...
20627         (__libc_memmove): This.
20628         (memmove): New strong alias of __libc_memmove.
20629
20630 2012-08-08  Mark Salter  <msalter@redhat.com>
20631
20632         * elf/elf.h
20633         (R_MN10300_TLS_GD): Define.
20634         (R_MN10300_TLS_LD): Likewise.
20635         (R_MN10300_TLS_LDO): Likewise.
20636         (R_MN10300_TLS_GOTIE): Likewise.
20637         (R_MN10300_TLS_IE): Likewise.
20638         (R_MN10300_TLS_LE): Likewise.
20639         (R_MN10300_TLS_DTPMOD): Likewise.
20640         (R_MN10300_TLS_DTPOFF): Likewise.
20641         (R_MN10300_TLS_TPOFF): Likewise.
20642         (R_MN10300_SYM_DIFF): Likewise.
20643         (R_MN10300_ALIGN): Likewise.
20644         (R_MN10300_NUM): Update.
20645
20646 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
20647
20648         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
20649         Remove.
20650
20651 2012-08-08  Roland McGrath  <roland@hack.frob.com>
20652
20653         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
20654
20655         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
20656         sysdeps/unix -> sysdeps/posix move.
20657         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
20658
20659 2012-08-07      Allan McRae     <allan@archlinux.org>
20660
20661         [BZ #14303]
20662         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
20663         (SUNOS_CPP): Likewise.
20664         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
20665         not found.
20666         (open_input): Call CPP using execvp.
20667
20668 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20669
20670         * sysdeps/unix/sysv/linux/kernel-features.h
20671         (__ASSUME_PROT_GROWSUPDOWN): Remove.
20672         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20673         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20674         (__ASSUME_WAITID_SYSCALL): Likewise.
20675         * sysdeps/unix/sysv/linux/dl-execstack.c
20676         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
20677         code unconditional.
20678         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
20679         conditional code.
20680         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
20681         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
20682         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
20683         code.
20684         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
20685         unconditional.
20686         [__ASSUME_WAITID_SYSCALL]: Likewise.
20687         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
20688
20689 2012-08-07  Roland McGrath  <roland@hack.frob.com>
20690
20691         * sysdeps/unix/closedir.c: Renamed to ...
20692         * sysdeps/posix/closedir.c: ... here.
20693         * sysdeps/unix/dirfd.c: Renamed to ...
20694         * sysdeps/posix/dirfd.c: ... here.
20695         * sysdeps/unix/dirstream.h: Renamed to ...
20696         * sysdeps/posix/dirstream.h: ... here.
20697         * sysdeps/unix/fdopendir.c: Renamed to ...
20698         * sysdeps/posix/fdopendir.c: ... here.
20699         * sysdeps/unix/opendir.c: Renamed to ...
20700         * sysdeps/posix/opendir.c: ... here.
20701         * sysdeps/unix/readdir.c: Renamed to ...
20702         * sysdeps/posix/readdir.c: ... here.
20703         * sysdeps/unix/readdir_r.c: Renamed to ...
20704         * sysdeps/posix/readdir_r.c: ... here.
20705         * sysdeps/unix/rewinddir.c: Renamed to ...
20706         * sysdeps/posix/rewinddir.c: ... here.
20707         * sysdeps/unix/seekdir.c: Renamed to ...
20708         * sysdeps/posix/seekdir.c: ... here.
20709         * sysdeps/unix/telldir.c: Renamed to ...
20710         * sysdeps/posix/telldir.c: ... here.
20711         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
20712         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
20713         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
20714         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
20715
20716         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
20717         * bits/fcntl.h: ... here.
20718
20719         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
20720         not 0.
20721         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
20722         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
20723         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
20724         (struct flock): Move l_start, l_len to the beginning.
20725         Use __pid_t for l_pid.
20726         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
20727         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
20728         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
20729         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
20730         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
20731         [__USE_LARGEFILE64] (struct flock64): New type.
20732         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
20733
20734         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
20735         * bits/dirent.h: ... here.
20736
20737         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
20738         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
20739
20740 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20741
20742         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20743         Change from 2.6.0 to 2.6.16.
20744         * sysdeps/unix/sysv/linux/configure: Regenerated.
20745         * sysdeps/unix/sysv/linux/kernel-features.h
20746         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
20747         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
20748         version.
20749         (__ASSUME_UTIMES): Likewise.
20750         (__ASSUME_CLONE_STOPPED): Remove.
20751         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
20752         architectures, not kernel version.
20753         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
20754         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20755         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20756         (__ASSUME_WAITID_SYSCALL): Likewise.
20757         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
20758         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
20759         * README: State 2.6.16 as minimum Linux kernel version.  Do not
20760         refer to older versions.
20761
20762 2012-08-06  Roland McGrath  <roland@hack.frob.com>
20763
20764         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
20765         Define alphasort64 as an alias.
20766         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
20767         Define versionsort64 as an alias.
20768         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
20769         Define scandir64 as an alias.
20770         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
20771         Define scandirat64 as an alias.
20772         * dirent/alphasort64.c (alphasort64):
20773         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
20774         * dirent/versionsort64.c: Likewise.
20775         * dirent/scandir64.c: Likewise.
20776         * dirent/scandirat64.c: Likewise.
20777         * sysdeps/wordsize-64/alphasort.c: File removed.
20778         * sysdeps/wordsize-64/alphasort64.c: File removed.
20779         * sysdeps/wordsize-64/scandir.c: File removed.
20780         * sysdeps/wordsize-64/scandir64.c: File removed.
20781         * sysdeps/wordsize-64/scandirat.c: File removed.
20782         * sysdeps/wordsize-64/scandirat64.c: File removed.
20783         * sysdeps/wordsize-64/versionsort.c: File removed.
20784         * sysdeps/wordsize-64/versionsort64.c: File removed.
20785         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
20786         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
20787         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
20788         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
20789         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
20790         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
20791         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
20792         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
20793
20794         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
20795         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20796         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
20797         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20798         [defined __arch64__ || defined __sparcv9]
20799         (__INO_T_MATCHES_INO64_T): New macro.
20800         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20801         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
20802         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
20803         * sysdeps/unix/sysv/linux/bits/dirent.h
20804         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
20805         (_DIRENT_MATCHES_DIRENT64): New macro.
20806
20807         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
20808         Define lockf64 as an alias.
20809         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
20810         Define fseeko64 as an alias.
20811         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
20812         Define ftello64 as an alias.
20813         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
20814         Define _IO_fgetpos64 and fgetpos64 as aliases.
20815         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
20816         Define _IO_fsetpos64 and fsetpos64 as aliases.
20817         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
20818         Conditionalize body on this.
20819         * libio/fseeko64.c: Likewise.
20820         * libio/ftello64.c: Likewise.
20821         * libio/iofgetpos64.c: Likewise.
20822         * libio/iofsetpos64.c: Likewise.
20823         * sysdeps/wordsize-64/lockf.c: File removed.
20824         * sysdeps/wordsize-64/lockf64.c: File removed.
20825         * sysdeps/wordsize-64/fseeko.c: File removed.
20826         * sysdeps/wordsize-64/fseeko64.c: File removed.
20827         * sysdeps/wordsize-64/ftello.c: File removed.
20828         * sysdeps/wordsize-64/ftello64.c: File removed.
20829         * sysdeps/wordsize-64/iofgetpos.c: File removed.
20830         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
20831         * sysdeps/wordsize-64/iofsetpos.c: File removed.
20832         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
20833         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
20834         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
20835         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
20836         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
20837         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
20838         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
20839         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
20840         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
20841         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
20842         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
20843
20844         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20845         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20846         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
20847         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20848         [defined __arch64__ || defined __sparcv9]
20849         (__OFF_T_MATCHES_OFF64_T): New macro.
20850         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20851         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20852         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20853         (__OFF_T_MATCHES_OFF64_T): New macro.
20854
20855 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20856
20857         * stdlib/secure-getenv.c (__secure_getenv): Replace
20858         GLIBC_2_16 with GLIBC_2_17.
20859
20860 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20861
20862         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
20863         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20864
20865 2012-08-03  David S. Miller  <davem@davemloft.net>
20866
20867         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20868
20869 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20870
20871         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
20872         Remove.
20873         (__ASSUME_CORRECT_SI_PID): Likewise.
20874         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
20875         (__ASSUME_TMPFS_NAME): Likewise.
20876         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
20877         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
20878         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
20879         (HAVE_AUX_SECURE): Make definition unconditional.
20880         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
20881         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
20882
20883 2012-08-03  Roland McGrath  <roland@hack.frob.com>
20884
20885         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
20886         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
20887         * sysdeps/mach/hurd/eloop-threshold.h: New file.
20888         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20889         __eloop_threshold instead of SYMLOOP_MAX.
20890
20891         * sysdeps/generic/eloop-threshold.h: New file.
20892         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
20893         of MAXSYMLINKS.
20894         * elf/chroot_canon.c (chroot_canon): Likewise.
20895
20896 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20897
20898         [BZ #13717]
20899         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20900         Change to 2.6.0 everywhere.
20901         * sysdeps/unix/sysv/linux/configure: Regenerated.
20902         * sysdeps/unix/sysv/linux/kernel-features.h
20903         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
20904         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
20905         kernel versions.
20906         (__ASSUME_POSIX_TIMERS): Define unconditionally.
20907         (__ASSUME_FUTEX_REQUEUE): Remove.
20908         (__ASSUME_STATFS64): Define unconditionally.
20909         (__ASSUME_AT_SECURE): Likewise.
20910         (__ASSUME_CORRECT_SI_PID): Likewise.
20911         (__ASSUME_TGKILL): Define without depending on kernel version for
20912         i386.
20913         (__ASSUME_UTIMES): Likewise.
20914         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
20915         kernel version.
20916         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
20917         (__ASSUME_TMPFS_NAME): Likewise.
20918         * README: Update reference to Linux kernel versions.
20919
20920 2012-08-02  Marek Polacek  <polacek@redhat.com>
20921
20922         [BZ# 14150]
20923         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
20924         libc_cv_asm_type_prefix with %.
20925         * configure: Regenerated.
20926         * include/libc-symbols.h: Remove comment about
20927         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20928         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
20929         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
20930         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
20931         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
20932         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
20933         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
20934         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
20935         * elf/tst-unique2mod1.c: Likewise.
20936         * elf/tst-unique1mod2.c: Likewise.
20937         * elf/tst-unique1mod1.c: Likewise.
20938         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
20939         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
20940         Replace ASM_TYPE_DIRECTIVE with .type.
20941         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20942         * sysdeps/i386/sysdep.h: Likewise.
20943         * sysdeps/x86_64/sysdep.h: Likewise.
20944         * sysdeps/sh/sysdep.h: Likewise.
20945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20946         Do not define ASM_TYPE_DIRECTIVE.
20947         * sysdeps/powerpc/sysdep.h: Likewise.
20948         * sysdeps/powerpc/powerpc32/sysdep.h:
20949         Replace ASM_TYPE_DIRECTIVE with .type.
20950         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
20951         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
20952         * sysdeps/i386/fpu/e_powf.S: Likewise.
20953         * sysdeps/i386/fpu/e_expl.S: Likewise.
20954         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20955         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20956         * sysdeps/i386/fpu/e_pow.S: Likewise.
20957         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20958         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20959         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20960         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20961         * sysdeps/i386/fpu/e_log2.S: Likewise.
20962         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20963         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20964         * sysdeps/i386/fpu/e_powl.S: Likewise.
20965         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20966         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20967         * sysdeps/i386/fpu/e_logl.S: Likewise.
20968         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20969         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20970         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20971         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20972         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20973         * sysdeps/i386/fpu/e_log.S: Likewise.
20974         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20975         * sysdeps/i386/fpu/e_logf.S: Likewise.
20976         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20977         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20978         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20979         * sysdeps/i386/fpu/e_log10.S: Likewise.
20980         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20981         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20982         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20983         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20984         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20985         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
20986         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20987         * sysdeps/i386/i686/strtok.S: Likewise.
20988         * sysdeps/i386/i386-mcount.S: Likewise.
20989         * sysdeps/i386/strtok.S: Likewise.
20990         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
20991         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20992         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20993         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20994         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
20995         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20996         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20997         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20998         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20999         * sysdeps/x86_64/_mcount.S: Likewise.
21000         * sysdeps/x86_64/strtok.S: Likewise.
21001         * sysdeps/sh/_mcount.S: Likewise.
21002
21003 2012-08-01  Roland McGrath  <roland@hack.frob.com>
21004
21005         * libio/iofopen.c: Include <fcntl.h>.
21006         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
21007         (_IO_fopen64, fopen64): Define as aliases.
21008         * libio/iofopen64.c: Include <fcntl.h>.
21009         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
21010         Conditionalize body on this.
21011         * sysdeps/wordsize-64/iofopen.c: File removed.
21012         * sysdeps/wordsize-64/iofopen64.c: File removed.
21013
21014 2012-08-01  Marek Polacek  <polacek@redhat.com>
21015
21016         * libc/Makeconfig: Use elf in place of binfmt-subdir.
21017         Use dlfcn directly instead of a variable.
21018         (binfmt-subdir): Do not define.
21019         (dlfcn): Likewise.
21020
21021 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
21022
21023         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
21024         Remove all definitions.
21025         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
21026         <kernel-features.h>.
21027         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
21028         (miss_F_GETOWN_EX): Remove all definitions.
21029         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
21030         macro definition.
21031         [!__ASSUME_FCNTL64]: Remove conditional code.
21032         [__ASSUME_FCNTL64]: Make code unconditional.
21033         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
21034         <kernel-features.h>.
21035         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
21036         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
21037         (lockf64) [__NR_fcntl64]: Make code unconditional.
21038         (lockf64) [__ASSUME_FCNTL64]: Likewise.
21039
21040         * sysdeps/unix/sysv/linux/kernel-features.h
21041         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
21042         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
21043         Make code unconditional.
21044         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21045         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
21047         [__NR_vfork]: Make code unconditional.
21048         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21049         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
21051         [__NR_vfork]: Make code unconditional.
21052         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21053         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21054
21055 2012-08-01  Roland McGrath  <roland@hack.frob.com>
21056
21057         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
21058         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
21059
21060         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21061         Define mkstemp64 as an alias.
21062         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21063         Define mkstemps64 as an alias.
21064         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21065         Define mkostemp64 as an alias.
21066         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21067         Define mkostemps64 as an alias.
21068         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
21069         Conditionalize body on this.
21070         * misc/mkostemp64.c: Likewise.
21071         * misc/mkostemps64.c: Likewise.
21072         * misc/mkstemps64.c: Likewise.
21073         * sysdeps/wordsize-64/mkstemp64.c: File removed.
21074         * sysdeps/wordsize-64/mkostemp64.c: File removed.
21075         * sysdeps/wordsize-64/mkostemp.c: File removed.
21076         * sysdeps/wordsize-64/mkstemp.c: File removed.
21077         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
21078         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
21079         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
21080         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
21081
21082         [BZ #14138]
21083         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
21084         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
21085         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
21086         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
21087
21088         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
21089         compat_symbol macros from <shlib-compat.h> rather than the underlying
21090         default_symbol_version and symbol_version macros, so that DEFAULT
21091         lines in shlib-versions are respected.
21092         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
21093
21094 2012-08-01  Florian Weimer  <fweimer@redhat.com>
21095
21096         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
21097         Declare with warn_unused_result.
21098         (setgid, setregid, setegid, setresgid): Likewise.
21099         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
21100         Likewise.
21101         * WUR-REPORT: Remove set*id functions.
21102
21103 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
21104
21105         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
21106
21107 2012-07-31  Roland McGrath  <roland@hack.frob.com>
21108
21109         [BZ #10191]
21110         * include/sys/socket.h (__libc_accept, __libc_accept4):
21111         Add attribute_hidden.
21112         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
21113
21114         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
21115         use of PTR_MANGLE.
21116         * inet/getnetgrent_r.c (setup): Likewise.
21117
21118         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
21119
21120 2012-07-31  David S. Miller  <davem@davemloft.net>
21121
21122         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21123
21124 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
21125
21126         [BZ #13629]
21127         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
21128         value between 1.0 and 2.0 and smaller part has absolute value less
21129         than 1.0.
21130         * math/s_clog10.c (__clog10): Likewise.
21131         * math/s_clog10f.c (__clog10f): Likewise.
21132         * math/s_clog10l.c (__clog10l): Likewise.
21133         * math/s_clogf.c (__clogf): Likewise.
21134         * math/s_clogl.c (__clogl): Likewise.
21135         * math/libm-test.inc (clog_test): Add more tests.
21136         (clog10_test): Likewise.
21137         * sysdeps/i386/fpu/libm-test-ulps: Update.
21138         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21139
21140 2012-07-31  Florian Weimer  <fweimer@redhat.com>
21141
21142         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
21143         Exit with zero in case no suitable GID is found, and write a
21144         message to standard error.
21145
21146 2012-07-30  Roland McGrath  <roland@hack.frob.com>
21147
21148         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
21149         rather than to 1.
21150         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
21151         (MAXPATHLEN): Removed.
21152         (NOGROUP, NODEV): New macros.
21153         (setbit, clrbit, isset, isclr): New macros.
21154         (howmany, roundup, powerof2): New macros.
21155         (DEV_BSIZE): New macro.
21156
21157         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
21158         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
21159
21160         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
21161         definition on [!__NO_LONG_DOUBLE_MATH].
21162
21163         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
21164         PTR_MANGLE and PTR_DEMANGLE.
21165
21166         * socket/accept4.c (accept4): Rename to __libc_accept4.
21167         Define accept4 as a weak alias.
21168
21169         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
21170         on [_DIRENT_HAVE_D_TYPE].
21171         * io/ftw.c (ftw_dir): Likewise.
21172
21173         * io/xmknod.c (__xmknod): Don't check PATH for being null.
21174
21175         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
21176
21177         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
21178         Use the BSD numbers rather than the arbitrary ones we had.
21179         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
21180         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
21181         (SIGXCPU, SIGXFSZ): New macros.
21182         (_NSIG): Now 32.
21183
21184         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
21185         initializer on [_LIBC_REENTRANT].
21186
21187         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
21188         definitions inside [_POSIX_MAPPED_FILES].
21189
21190         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
21191
21192         * dirent/opendir.c: Include <fcntl.h>.
21193
21194         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
21195         (__libc_getspecific): Likewise.
21196         (__libc_key_create): Likewise.
21197
21198         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
21199         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
21200         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
21201         (tmpfile64): Define as alias.
21202         * sysdeps/wordsize-64/tmpfile.c: File removed.
21203         * sysdeps/wordsize-64/tmpfile64.c: File removed.
21204         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
21205         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
21206
21207         * stdio-common/vfscanf.c: Include <stdbool.h>.
21208         * nss/makedb.c: Likewise.
21209         * stdio-common/_i18n_number.h: Likewise.
21210         * argp/argp-help.c: Likewise.
21211         * posix/wordexp.c: Likewise.
21212         * sysdeps/posix/spawni.c: Likewise.
21213         * nss/nss_files/files-initgroups.c: Likewise.
21214         * stdio-common/reg-modifier.c: Include <stdlib.h>.
21215         * nss/nss_files/files-initgroups.c: Likewise.
21216         * nss/nss_db/db-netgrp.c: Likewise.
21217         * nss/nss_db/db-initgroups.c: Likewise.
21218         * io/fchmodat.c: Include <sys/stat.h>.
21219
21220         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
21221         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
21222
21223         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
21224         [HAVE_MMAP].
21225
21226         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
21227         Add multiple inclusion protection.
21228
21229 2012-07-27  David S. Miller  <davem@davemloft.net>
21230
21231         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21232
21233 2012-07-27  Gary Benson  <gbenson@redhat.com>
21234
21235         [BZ #14298]
21236         * elf/rtld.c: Include <stap-probe.h>.
21237         (dl_main): Added static probes "init_start" and "init_complete".
21238         * elf/dl-load.c: Include <stap-probe.h>.
21239         (lose): Take new parameter "nsid".
21240         Added static probe "map_failed".
21241         (_dl_map_object_from_fd): Pass namespace id to lose.
21242         Added static probe "map_start".
21243         (open_verify): Pass namespace id to lose.
21244         * elf/dl-open.c: Include <stap-probe.h>.
21245         (dl_open_worker) Added static probes "map_complete", "reloc_start"
21246         and "reloc_complete".
21247         * elf/dl-close.c: Include <stap-probe.h>.
21248         (_dl_close_worker): Added static probes "unmap_start" and
21249         "unmap_complete".
21250         * elf/rtld-debugger-interface.txt: New file documenting the above.
21251
21252 2012-07-26  Roland McGrath  <roland@hack.frob.com>
21253
21254         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
21255         rather than a string variable.
21256         * sunrpc/rpc_main.c (h_output): Likewise.
21257         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
21258
21259 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
21260
21261         * inet/check_native.c: New file.
21262
21263 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
21264
21265         [BZ #13629]
21266         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
21267         if larger part has absolute value 1.0.
21268         * math/s_clog10.c (__clog10): Likewise.
21269         * math/s_clog10f.c (__clog10f): Likewise.
21270         * math/s_clog10l.c (__clog10l): Likewise.
21271         * math/s_clogf.c (__clogf): Likewise.
21272         * math/s_clogl.c (__clogl): Likewise.
21273         * math/libm-test.inc (clog_test): Add more tests.
21274         (clog10_test): Likewise.
21275         * sysdeps/i386/fpu/libm-test-ulps: Update.
21276         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21277
21278         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
21279         (pltexit): Likewise.
21280         (La_regs): Likewise.
21281         (La_retval): Likewise.
21282         (int_retval): Likewise.
21283         Update #error for removed macros to refer only to definitions in
21284         tst-audit.h.
21285         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
21286         macro.
21287         (pltexit): Likewise.
21288         (La_regs): Likewise.
21289         (La_retval): Likewise.
21290         (int_retval): Likewise.
21291         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
21292         macro.
21293         (pltexit): Likewise.
21294         (La_regs): Likewise.
21295         (La_retval): Likewise.
21296         (int_retval): Likewise.
21297         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
21298         macro.
21299         (pltexit): Likewise.
21300         (La_regs): Likewise.
21301         (La_retval): Likewise.
21302         (int_retval): Likewise.
21303         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
21304         macro.
21305         (pltexit): Likewise.
21306         (La_regs): Likewise.
21307         (La_retval): Likewise.
21308         (int_retval): Likewise.
21309         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
21310         macro.
21311         (pltexit): Likewise.
21312         (La_regs): Likewise.
21313         (La_retval): Likewise.
21314         (int_retval): Likewise.
21315         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
21316         macro.
21317         (pltexit): Likewise.
21318         (La_regs): Likewise.
21319         (La_retval): Likewise.
21320         (int_retval): Likewise.
21321         * sysdeps/generic/tst-audit.h: Update comment to refer only to
21322         macro definitions in tst-audit.h.
21323         * sysdeps/i386/tst-audit.h: New file.
21324         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
21325         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
21326         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
21327         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
21328         * sysdeps/sh/tst-audit.h: Likewise.
21329         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
21330         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
21331         * sysdeps/x86_64/tst-audit.h: Likewise.
21332
21333 2012-07-26  Andreas Jaeger  <aj@suse.de>
21334
21335         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
21336         ptrace.
21337
21338         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
21339         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
21340         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
21341         PTRACE_O_MASK.
21342         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
21343         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
21344         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
21345
21346         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
21347         value.
21348
21349         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
21350         _sigsys.
21351         (si_call_addr, si_syscall, si_arch): Define new macro.
21352         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
21353         _sigsys.
21354         (si_call_addr, si_syscall, si_arch): Define new marcro.
21355         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
21356         _sigsys.
21357         (si_call_addr, si_syscall, si_arch): Define new macro.
21358         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
21359         _sigsys.
21360         (si_call_addr, si_syscall, si_arch): Define new macro.
21361
21362 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21363
21364         [BZ #13717]
21365         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21366         Change to 2.4.21 where previously 2.4.1.
21367         * sysdeps/unix/sysv/linux/configure: Regenerated.
21368         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
21369         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
21370         Linux kernel version.
21371         (__ASSUME_STD_AUXV): Remove.
21372         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
21373         kernel version.
21374         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
21375         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
21376         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
21377         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
21378         (__ASSUME_NETLINK_SUPPORT): Likewise.
21379         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
21380         (__no_netlink_support): Remove conditional definition.
21381         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
21382         Remove.
21383         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21384         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
21385         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
21386         (if_nameindex_ioctl): Remove.
21387         (if_nameindex_netlink): Do not handle __no_netlink_support.
21388         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21389         code.
21390         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
21391         Remove conditional code.
21392         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21393         code.
21394         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
21395         unconditional.
21396         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21397         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
21398         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
21399         Remove.
21400         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
21401         [!__ASSUME_STD_AUXV]: Remove conditional code.
21402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
21403         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
21404         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
21405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
21406         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
21407         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21408         code.
21409         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
21411         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
21412         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21413         conditional code.
21414         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
21416         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21417         code.
21418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
21419         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21420         conditional code.
21421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
21422         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21423         code unconditional.
21424         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21425         conditional code.
21426         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21427         unconditional.
21428         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21429         conditional code.
21430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21431         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21432         unconditional.
21433         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21434         conditional code.
21435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
21436         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21437         code unconditional.
21438         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21439         conditional code.
21440         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21441         unconditional.
21442         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21443         conditional code.
21444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
21445         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21446         code unconditional.
21447         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21448         conditional code.
21449         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21450         unconditional.
21451         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21452         conditional code.
21453
21454 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
21455
21456         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
21457         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
21458         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
21459         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
21460         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
21461         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
21462         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
21463         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
21464         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
21465         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
21466         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
21467         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
21468         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
21469         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
21470         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
21471         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
21472         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
21473         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
21474         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
21475         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
21476         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
21477         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
21478         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
21479
21480 2012-07-25  Florian Weimer  <fweimer@redhat.com>
21481
21482         * Versions.def: Add GLIBC_2.17.
21483         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
21484         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
21485         Introduce __libc_secure_getenv.
21486         * stdlib/Versions (2.17): Add secure_getenv
21487         (GLIBC_PRIVATE): Add __libc_secure_getenv.
21488         * stdlib/secure-getenv.c: Rename __secure_getenv to
21489         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
21490         symbol __secure_getenv for GLIBC_2.0.
21491         * stdlib/tst-secure-getenv.c: New.
21492         * stdlib/Makefile (tests): Add testcase.
21493         * manual/startup.texi (Environment Access): Document
21494         secure_getenv.
21495         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
21496         __libc_secure_getenv.
21497         * inet/ruserpass.c (ruserpass): Likewise.
21498         * malloc/mtrace.c (mtrace): Likewise.
21499         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
21500         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
21501         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
21502         * sysdeps/posix/tempname.c: Likewise.  Evaluate
21503         HAVE_SECURE_GETENV.
21504         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
21505         __secure_getenv to __libc_secure_getenv.
21506         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
21507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21508         Likewise.
21509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21510         Likewise.
21511         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
21512         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
21513         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21514         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
21515         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
21516         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21517         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
21518
21519 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21520
21521         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
21522         (struct La_i86_retval): Likewise.
21523         (struct La_x86_64_regs): Likewise.
21524         (struct La_x86_64_retval): Likewise.
21525         (struct La_x32_regs): Likewise.
21526         (struct La_x32_retval): Likewise.
21527         (struct La_ppc32_regs): Likewise.
21528         (struct La_ppc32_retval): Likewise.
21529         (struct La_ppc64_regs): Likewise.
21530         (struct La_ppc64_retval): Likewise.
21531         (struct La_sh_regs): Likewise.
21532         (struct La_sh_retval): Likewise.
21533         (struct La_s390_32_regs): Likewise.
21534         (struct La_s390_32_retval): Likewise.
21535         (struct La_s390_64_regs): Likewise.
21536         (struct La_s390_64_retval): Likewise.
21537         (struct La_sparc32_regs): Likewise.
21538         (struct La_sparc32_retval): Likewise.
21539         (struct La_sparc64_regs): Likewise.
21540         (struct La_sparc64_retval): Likewise.
21541         (struct audit_ifaces): Remove architecture-specific pltenter and
21542         pltexit members.
21543         * sysdeps/i386/ldsodefs.h: New file.
21544         * sysdeps/powerpc/ldsodefs.h: Likewise.
21545         * sysdeps/s390/ldsodefs.h: Likewise.
21546         * sysdeps/sh/ldsodefs.h: Likewise.
21547         * sysdeps/sparc/ldsodefs.h: Likewise.
21548         * sysdeps/x86_64/ldsodefs.h: Likewise.
21549
21550 2012-07-25  Marek Polacek  <polacek@redhat.com>
21551
21552         [BZ #6808]
21553         * math/libm-test.inc (yn_test): Add another test.
21554         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
21555         to ERANGE when the result is +-Inf.
21556         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
21557         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
21558         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
21559         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
21560
21561 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
21562
21563         * conform/data/time.h-data (NULL): Use macro-constant.  Require
21564         equal to 0.
21565         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
21566         clock_t.
21567         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
21568
21569 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
21570
21571         * configure.in <sysdeps resolving>: Correct printing
21572         Implies_before.
21573         * configure: Regenerate.
21574
21575 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
21576
21577         * math/w_ilogb.c: Include <limits.h>.
21578         * math/w_ilogbl.c: Likewise.
21579
21580 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21581
21582         * manual/lang.texi (__va_copy): Document primarily as ISO C99
21583         va_copy.  Document allowing for unavailable va_copy only as
21584         pre-C99 compatibility.
21585         * manual/string.texi (Copying and Concatenation): Use va_copy
21586         instead of __va_copy in concat example.
21587
21588 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
21589
21590         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
21591         (__sendto): Use create_address_port.  Initialize APORT and deallocate
21592         it if not null.
21593
21594         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
21595         with O_NOLINK passed to __file_name_lookup.
21596
21597         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
21598         with O_NOLINK passed to __file_name_lookup.
21599
21600         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
21601         negative N or less than NGIDS.
21602
21603         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
21604         type to string_t.  Set ERANGE as errno and return it if NAME is not big
21605         enough.  Use memcpy instead of strncpy.
21606
21607 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21608
21609         * elf/Makefile (check-data): Remove.
21610         (localplt.data): New vpath directive.
21611         ($(objpfx)check-localplt.out): Use localplt.data from vpath
21612         instead of $(check-data).
21613         * scripts/data/localplt-generic.data: Move to ...
21614         * sysdeps/generic/localplt.data: ... here.
21615         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
21616         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
21617         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
21618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
21619         ... here.
21620         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
21621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
21622         ... here.
21623         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
21624         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
21625         ... here.
21626         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
21627         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
21628         ... here.
21629         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
21630         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
21631         ... here.
21632         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
21633         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
21634         ... here.
21635
21636 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21637
21638         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
21639         PPC32 and PPC64 files.
21640         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
21641         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
21642
21643 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21644
21645         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
21646         __makecontext_ret to ...
21647         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21648         ... here and call exit if uc_link is NULL.  New file.
21649         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
21650         __makecontext_ret.S.
21651         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
21652         __makecontext_ret to ...
21653         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21654         ... here and call exit if uc_link is NULL.  New file.
21655         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
21656         __makecontext_ret.S.
21657
21658 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21659
21660         * elf/elf.h (R_390_IRELATIVE): New definition.
21661         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
21662         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
21663         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
21664         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
21665         (elf_machine_lazy_rel): Likewise.
21666         * sysdeps/s390/dl-irel.h: New file.
21667         * sysdeps/s390/s390-64/memcpy.S: New asm code.
21668         * sysdeps/s390/s390-64/memset.S: New asm code.
21669         * sysdeps/s390/s390-64/memcmp.S: New asm code.
21670         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
21671         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
21672         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
21673         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
21674         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
21675         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
21676         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
21677         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
21678         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
21679         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
21680         * sysdeps/s390/s390-32/memcpy.S: New asm code.
21681         * sysdeps/s390/s390-32/memset.S: New asm code.
21682         * sysdeps/s390/s390-32/memcmp.S: New asm code.
21683
21684 2012-07-17  Marek Polacek  <polacek@redhat.com>
21685
21686         [BZ #14349]
21687         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
21688         * sysdeps/s390/s390-64/configure.in: Likewise.
21689         * sysdeps/sparc/configure.in: Likewise.
21690         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
21691         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
21692         * sysdeps/i386/configure.in: Likewise.
21693         * sysdeps/x86_64/configure.in: Likewise.
21694         * sysdeps/sh/configure.in: Likewise.
21695         * sysdeps/s390/s390-32/configure: Regenerated.
21696         * sysdeps/s390/s390-64/configure: Likewise.
21697         * sysdeps/x86_64/configure: Likewise.
21698         * sysdeps/sh/configure: Likewise.
21699         * sysdeps/powerpc/powerpc64/configure: Likewise.
21700         * sysdeps/powerpc/powerpc32/configure: Likewise.
21701         * sysdeps/sparc/configure: Likwise.
21702         * sysdeps/i386/configure: Likewise.
21703
21704         * elf/dl-open.c: Comment fixes.
21705
21706 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
21707
21708         * Makefile [CXX] (check-data): Remove.
21709         [CXX] (c++-types.data): New vpath directive.
21710         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
21711         vpath.  Do not allow for C++ type data being missing.
21712         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
21713         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
21714         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
21715         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
21716         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
21717         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
21718         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
21719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
21720         ... here.
21721         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
21722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
21723         ... here.
21724         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
21725         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
21726         ... here.
21727         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
21728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
21729         ... here.
21730         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
21731         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
21732         ... here.
21733         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
21734         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
21735         ... here.
21736         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
21737         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
21738         ... here.
21739         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
21740         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
21741
21742         * elf/tls-macros.h (TLS_LE): Move architecture-specific
21743         definitions to architecture-specific files.
21744         (TLS_IE): Likewise.
21745         (TLS_LD): Likewise.
21746         (TLS_GD): Likewise.
21747         * sysdeps/i386/tls-macros.h: New file.
21748         * sysdeps/powerpc/tls-macros.h: Likewise.
21749         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
21750         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
21751         * sysdeps/sh/tls-macros.h: Likewise.
21752         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
21753         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
21754         * sysdeps/x86_64/tls-macros.h: Likewise.
21755
21756 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21757
21758         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
21759         zero value for regular exit case.
21760
21761         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21762         (__start_context): Preserve zero value for regular exit case.
21763
21764 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21765             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21766
21767         * manual/setjmp.texi (setcontext): Clarify normal process
21768         termination when uc_link is the null pointer.
21769         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
21770         exit call.
21771
21772 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
21773
21774         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
21775         preprocessor.  Test for each exception mask separately.
21776
21777 2012-07-16  Andreas Jaeger  <aj@suse.de>
21778
21779         * po/ru.po: Update from translation team.
21780
21781 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
21782
21783         * conform/data/string.h-data (NULL): Use macro-constant.  Require
21784         equal to 0.
21785         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
21786         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
21787         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
21788         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
21789         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21790
21791 2012-07-13  Andreas Jaeger  <aj@suse.de>
21792
21793         * po/fr.po: Update from translation team.
21794
21795 2012-07-12  Marek Polacek  <polacek@redhat.com>
21796
21797         [BZ #14173]
21798         * math/libm-test.inc (yn_test): Add test for BZ #14173.
21799         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
21800         loop condition.
21801
21802 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
21803
21804         [BZ #13717]
21805         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21806         Change to 2.4.1 where previously 2.4.0.
21807         * sysdeps/unix/sysv/linux/configure: Regenerated.
21808         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
21809         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
21810         version.
21811         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
21812         (__ASSUME_AT_CLKTCK): Remove.
21813         (__ASSUME_AT_PAGESIZE): Likewise.
21814         (__ASSUME_AT_XID): Likewise.
21815         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
21816         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
21817         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
21818         unconditionally.
21819         (HAVE_AUX_PAGESIZE): Likewise.
21820         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
21821         [__ASSUME_AT_CLKTCK]: Make code unconditional.
21822         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
21823
21824 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
21825
21826         [BZ #14307]
21827         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
21828         the temporary buffer used to invoke __gethostbyname2_r,
21829         __gethostbyaddr_r and gethostbyname4_r to make room for struct
21830         host_data / struct gaih_addrtuple.
21831         * resolv/nss_dns/dns-host.c (global scope): Move definition of
21832         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
21833         header file nss/nsswitch.h.
21834         * nss/nsswitch.h (global scope): Add definition of implementation
21835         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
21836         resolv/nss_dns/dns-host.c).
21837
21838 2012-07-11  Andreas Jaeger  <aj@suse.de>
21839
21840         * po/fr.po: Update from translation team.
21841
21842         * po/sv.po: Update from translation team
21843         * po/fr.po: Another update from translation team.
21844
21845 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21846
21847         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
21848         for subnormals or multiply small sinh result by itself.
21849         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
21850         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21851
21852 2012-07-11  David S. Miller  <davem@davemloft.net>
21853
21854         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21855
21856 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
21857
21858         [BZ #14347]
21859         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
21860         (INTERNAL_MARK): Shift it here.
21861
21862 2012-07-10  Marek Polacek  <polacek@redhat.com>
21863
21864         [BZ #14151]
21865         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
21866         libc_cv_asm_global_directive with .globl.
21867         * configure: Regenerated.
21868         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
21869         with .globl.
21870         * sysdeps/i386/configure: Regenerated.
21871         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
21872         with .globl.
21873         * sysdeps/x86_64/configure: Regenerated.
21874         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
21875         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
21876         * elf/tst-unique2mod2.c: Likewise.
21877         * elf/tst-unique2mod1.c: Likewise.
21878         * elf/tst-unique1mod2.c: Likewise.
21879         * elf/tst-unique1mod1.c: Likewise.
21880         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21881         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21882         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21883         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21884         * sysdeps/mach/sysdep.h: Likewise.
21885         * sysdeps/i386/sysdep.h: Likewise.
21886         * sysdeps/i386/i386-mcount.S: Likewise.
21887         * sysdeps/x86_64/_mcount.S: Likewise.
21888         * sysdeps/x86_64/sysdep.h: Likewise.
21889         * sysdeps/sh/_mcount.S: Likewise.
21890         * sysdeps/sh/sysdep.h: Likewise.
21891         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
21892         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
21893         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
21894         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21895         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
21896         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
21897         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
21898         * locale/localeinfo.h: Likewise.
21899         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
21900         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
21901
21902 2012-07-09  Roland McGrath  <roland@hack.frob.com>
21903
21904         [BZ #14336]
21905         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
21906         system".
21907         * manual/message.texi (The Uniforum approach): Likewise.
21908         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
21909         (glibc iconv Implementation): Likewise.
21910
21911 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
21912
21913         [BZ #14337]
21914         * math/s_clog.c (__clog): Avoid scaling a value down where that
21915         could result in underflow.
21916         * math/s_clog10.c (__clog10): Likewise.
21917         * math/s_clog10f.c (__clog10f): Likewise.
21918         * math/s_clog10l.c (__clog10l): Likewise.
21919         * math/s_clogf.c (__clogf): Likewise.
21920         * math/s_clogl.c (__clogl): Likewise.
21921         * math/libm-test.inc (clog_test): Add more tests.
21922         (clog10_test): Likewise.
21923         * sysdeps/i386/fpu/libm-test-ulps: Update.
21924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21925
21926 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
21927
21928         [BZ #14283]
21929         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
21930         by 7 not 8 to examine high bit of fractional part.
21931
21932         [BZ #14042]
21933         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
21934         for call to __mcount_internal.
21935         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
21936         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
21937         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
21938
21939 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
21940
21941         [BZ #14154]
21942         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
21943         approximation for values within 0x1p-13f of an odd multiple of
21944         pi/4.
21945         * math/libm-test.inc (tan_test): Do not allow spurious underflow
21946         exception.  Add more tests.
21947         * sysdeps/i386/fpu/libm-test-ulps: Update.
21948
21949         [BZ #6778]
21950         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
21951         inputs and return -1 for them.  Do not check for +Inf in case not
21952         reachable for +Inf.
21953         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
21954         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
21955         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21956         and return -1 for them.  Do not check for +Inf in case not
21957         reachable for +Inf.
21958         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
21959         define.
21960         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
21961         and return -1 for them.  Do not check for +Inf in case not
21962         reachable for +Inf.
21963         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
21964         spurious underflow.
21965         * sysdeps/i386/fpu/libm-test-ulps: Update.
21966         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21967
21968 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
21969
21970         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
21971
21972 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
21973
21974         [BZ #14157]
21975         [BZ #14331]
21976         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
21977         could result in spurious underflow.  Scale down values above
21978         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
21979         * math/s_csqrtf.c (__csqrtf): Likewise.
21980         * math/s_csqrtl.c (__csqrtl): Likewise.
21981         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
21982         spurious underflow.
21983         * sysdeps/i386/fpu/libm-test-ulps: Update.
21984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21985
21986 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
21987
21988         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
21989         xopen-msg.sed.
21990         * catgets/xopen-msg.awk: New file.
21991         * catgets/xopen-msg.sed: Removed.
21992
21993         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
21994         po2text.sed.
21995         * intl/po2test.awk: New file.
21996         * intl/po2test.sed: Removed.
21997
21998 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
21999
22000         [BZ #14328]
22001         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
22002         or multiply small sinh result by itself.
22003         * math/s_ctanf.c (__ctanf): Likewise.
22004         * math/s_ctanh.c (__ctanh): Likewise.
22005         * math/s_ctanhf.c (__ctanhf): Likewise.
22006         * math/s_ctanhl.c (__ctanhl): Likewise.
22007         * math/s_ctanl.c (__ctanl): Likewise.
22008         * math/libm-test.inc (ctan_test_tonearest): New function.
22009         (ctan_test_towardzero): Likewise.
22010         (ctan_test_downward): Likewise.
22011         (ctan_test_upward): Likewise.
22012         (ctanh_test_tonearest): Likewise.
22013         (ctanh_test_towardzero): Likewise.
22014         (ctanh_test_downward): Likewise.
22015         (ctanh_test_upward): Likewise.
22016         (main): Call these new functions.
22017         * sysdeps/i386/fpu/libm-test-ulps: Update.
22018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22019
22020 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
22021
22022         * .gitignore: Delete /ports entry.
22023
22024 2012-07-03  Andreas Jaeger  <aj@suse.de>
22025
22026         * po/bg.po: Update from translation team.
22027         * po/cs.po: Likewise.
22028         * po/de.po: Likewise.
22029         * po/hr.po: Likewise.
22030         * po/nl.pl: Likewise.
22031         * po/pl.po: Likewise.
22032         * po/vi.po: Likewise.
22033
22034 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
22035
22036         * Makeconfig [!+link] (+link-before-libc): New variable.
22037         [!+link] (+link-after-libc): Likewise.
22038         [!+link] (+link-tests): Likewise.
22039         [!+link] (+link): Define in terms of $(+link-before-libc) and
22040         $(+link-after-libc).
22041         [!+link-static] (+link-static-before-libc): New variable.
22042         [!+link-static] (+link-static-after-libc): Likewise.
22043         [!+link-static] (+link-static-tests): Likewise.
22044         [!+link-static] (+link-static): Define in terms of
22045         $(+link-static-before-libc) and $(+link-static-after-libc).
22046         [build-shared] (link-libc-before-gnulib): New variable.
22047         [build-shared] (link-libc-tests): Likewise.
22048         [build-shared] (link-libc): Define in terms of
22049         $(link-libc-before-gnulib).
22050         [!build-shared] (link-libc-tests): New variable.
22051         (link-libc-static-tests): New variable.
22052         [!gnulib] (gnulib-arch): New variable.
22053         [!gnulib] (gnulib-tests): Likewise.
22054         [!gnulib] (static-gnulib-arch): Likewise.
22055         [!gnulib] (static-gnulib-tests): Likewise.
22056         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
22057         Define with "=" instead of ":=".
22058         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
22059         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
22060         * Rules (binaries-all-notests): New variable.
22061         (binaries-all-tests): Likewise.
22062         (binaries-static-notests): Likewise.
22063         (binaries-static-tests): Likewise.
22064         (binaries-all): Define using $(binaries-all-notests) and
22065         $(binaries-all-tests).
22066         (binaries-static): Define using $(binaries-static-notests) and
22067         $(binaries-static-tests).
22068         (binaries-shared-tests): New variable.
22069         (binaries-shared-notests): Likewise.
22070         (binaries-shared): Remove variable.
22071         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
22072         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
22073         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
22074         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
22075         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
22076         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
22077         * elf/Makefile (sln-modules): New variable.
22078         (extra-objs): Add $(sln-modules:=.o).
22079         (ldconfig-modules): Add static-stubs.
22080         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
22081         * elf/static-stubs.c: New file.
22082
22083         [BZ #14283]
22084         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
22085         by 7 not 8 to examine high bit of fractional part.  Use volatile
22086         variables when splitting into final array of floats if
22087         __FLT_EVAL_METHOD__ != 0.
22088         * math/libm-test.inc (cos_test): Add another test.
22089         (sin_test): Likewise.
22090         * sysdeps/i386/fpu/libm-test-ulps: Update.
22091
22092         [BZ #14273]
22093         * math/libm-test.inc (cosh_test): Add more tests.
22094
22095         * version.h (RELEASE): Set to "development".
22096         (VERSION): Set to "2.16.90".
22097
22098 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
22099
22100         * NEWS: Update copyright. Remove last-updated date.
22101         Mention math library bug fixes and timezone data changes.
22102         * README: Mention GNU/Hurd, x32, and HPPA support status.
22103
22104 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
22105
22106         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
22107
22108 2012-06-27  Andreas Jaeger  <aj@suse.de>
22109
22110         * manual/contrib.texi (Contributors): Add Samuel Thibault.
22111
22112 2012-06-25  Andreas Jaeger  <aj@suse.de>
22113
22114         * sysdeps/s390/fpu/libm-test-ulps: Update.
22115
22116 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
22117             Thomas Schwinge  <thomas@codesourcery.com>
22118
22119         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
22120         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
22121         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
22122         fanotify_mark.
22123
22124 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
22125
22126         * sysdeps/mach/start.c: Remove file.
22127         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
22128         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
22129         * sysdeps/sh/init-first.c: Likewise.
22130
22131         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
22132         registers for frame unwinding purposes, add CFI directives.
22133         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22134         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
22135         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
22136         Likewise.
22137
22138         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
22139         __fortify_fail returning.
22140         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22141
22142         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
22143         sysdeps/sh/____longjmp_chk.S.
22144         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
22145         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
22146         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
22147         (gen-as-const-headers): Append sigaltstack-offsets.sym.
22148
22149         * sysdeps/sh/abort-instr.h: New file.
22150         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
22151         process in case exit returns.
22152
22153         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
22154         initialize the GOT register before use.
22155
22156         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
22157         calculation of ARGC > 4.
22158
22159         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
22160         meaningful names to some local labels.
22161
22162 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22163             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22164
22165         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
22166         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
22167         (__arch_compare_and_exchange_val_16_acq): Likewise.
22168         (__arch_compare_and_exchange_val_32_acq): Likewise.
22169         (atomic_exchange_and_add): Fix gUSA sequence.
22170         (atomic_add): Likewise.
22171         (atomic_add_negative): Likewise.
22172         (atomic_add_zero): Likewise.
22173         (atomic_bit_test_set): Likewise.
22174
22175 2012-06-22  Andreas Schwab  <schwab@redhat.com>
22176
22177         [BZ #13579]
22178         * include/link.h (struct link_map): Add l_free_initfini.
22179         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
22180         l_initfini.
22181         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
22182         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
22183         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
22184         set.
22185
22186 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
22187
22188         * configure.in: Use AC_LANG_SOURCE.
22189         * configure: Regenerate.
22190
22191 2012-06-22  Roland McGrath  <roland@hack.frob.com>
22192
22193         * configure.in (libc_cv_localstatedir): New substituted variable.
22194         * configure: Regenerated.
22195         * config.make.in (localstatedir): New variable, substituted from
22196         libc_cv_localstatedir.
22197         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
22198         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
22199         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
22200         * sysdeps/gnu/configure: Regenerated.
22201
22202 2012-06-21  Jeff Law  <law@redhat.com>
22203
22204         [BZ #14277]
22205         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
22206         free.  Simplify list management for _LIBC case.
22207
22208 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
22209
22210         [BZ #14273]
22211         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22212         Clear sign bit of 64-bit integer value before comparing against
22213         overflow value.
22214
22215         * sysdeps/mach/configure: Regenerated.
22216
22217 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
22218
22219         [BZ #14278]
22220         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
22221
22222 2012-06-21  Jeff Law  <law@redhat.com>
22223
22224         [BZ #13882]
22225         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
22226         uint16_t for elements in the "seen" array to avoid char overflows.
22227         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22228         * elf/dl-open.c (dl_open_worker): Likewise.
22229
22230 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
22231
22232         * scripts/list-sources.sh: Scan PORTS for translations.
22233         * po/libc.pot: Regenerated.
22234
22235 2012-06-21  Andreas Jaeger  <aj@suse.de>
22236
22237         [BZ #12194]
22238         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
22239         warning.
22240         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
22241         * bits/byteswap-16.h (__bswap_16): Likewise.
22242         * bits/byteswap.h (__bswap_constant_16): Likewise.
22243
22244 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22245
22246         [BZ #14117]
22247         * sysdeps/i386/fpu_control.h: Removed.
22248         * sysdeps/x86_64/fpu_control.h: Moved to ...
22249         * sysdeps/x86/fpu_control.h: Here.
22250
22251         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
22252         (_FPU_SETCW): Likewise.
22253
22254 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
22255
22256         [BZ #14117]
22257         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
22258         * sysdeps/x86/fpu/bits/mathinline.h: This.
22259         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
22260
22261         [BZ #14050]
22262         [BZ #14117]
22263         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
22264         functions if __x86_64__ is defined.
22265
22266 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
22267
22268         * string/endian.h: Add !__ASSEMBLER__ condition for including
22269         conversion interfaces.
22270
22271 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
22272
22273         [BZ #14241]
22274         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
22275         of ABS(x) in calculating zero to negative powers other than odd
22276         integers.
22277         * math/libm-test.inc (pow_test): Add more tests.
22278
22279 2012-06-15  Andreas Jaeger  <aj@suse.de>
22280
22281         * manual/contrib.texi (Contributors): Update entry of Liubov
22282         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
22283         Machado Filho.
22284
22285 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
22286
22287         * string/string.h: Add __wur to GNU version of strerror_r.
22288
22289 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
22290
22291         [BZ #14229]
22292         * string/Makefile (tests): Add tst-strtok_r.
22293         * string/tst-strtok_r.c: New file.
22294         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
22295         RAX_LP/RDX_LP on SAVE_PTR.
22296
22297 2012-06-14  Roland McGrath  <roland@hack.frob.com>
22298
22299         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
22300
22301 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
22302
22303         * libm_test.inc (csqrt_test): Allow more spurious underflow
22304         exceptions.
22305         (j0_test): Likewise.
22306         (j1_test): Likewise.
22307         (y0_test): Likewise.
22308         (y1_test): Likewise.
22309
22310 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
22311
22312         * po/Makefile (libc.pot): Use UTF-8 charset.
22313
22314 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
22315
22316         [BZ #14210]
22317         Suppress sign-conversion warning from FD_SET.
22318         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
22319         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
22320         not unsigned long int.
22321         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
22322
22323 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
22324
22325         [BZ #14050]
22326         [BZ #14117]
22327         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
22328         __extern_always_inline instead of __extern_inline.
22329         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
22330         (__signbit): Likewise.
22331         (__signbitl): Support C++ namespace.
22332         (lrintf): New inline function.
22333         (lrint): Likewise.
22334         (llrintf): Likewise.
22335         (llrint): Likewise.
22336         (fmaxf): Likewise.
22337         (fmax): Likewise.
22338         (fminf): Likewise.
22339         (fmin): Likewise.
22340         (rint): Likewise.
22341         (rintf): Likewise.
22342         (ceil): Likewise.
22343         (ceilf): Likewise.
22344         (floor): Likewise.
22345         (floorf): Likewise.
22346         (nearbyint): Likewise.
22347         (nearbyintf): Likewise.
22348
22349 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
22350
22351         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
22352         non-default versions.
22353
22354 2012-06-11  Roland McGrath  <roland@hack.frob.com>
22355
22356         [BZ #14218]
22357         * manual/argp.texi (Argp): Reword argp_parse description slightly.
22358
22359 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
22360
22361         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
22362         (FE_UPWARD, FE_DOWNWARD): Don't define.
22363         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
22364         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22365
22366         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
22367         reading it.
22368         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22369         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22370
22371 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22372
22373         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22374         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
22375         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
22376         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
22377
22378 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
22379
22380         [BZ #14117]
22381         * sysdeps/i386/fpu/bits/fenv.h: Removed.
22382         * sysdeps/i386/fpu/Implies: New file.
22383         * sysdeps/x86_64/fpu/Implies: Likewise.
22384         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
22385         * sysdeps/x86/fpu/bits/fenv.h: This.
22386
22387         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
22388         __SSE_MATH__.
22389
22390 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
22391
22392         [BZ #14134]
22393         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
22394         character 0xffff that matches the last element of the
22395         conversion table.
22396
22397 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22398
22399         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
22400         fmodl commit.
22401
22402 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22403
22404         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
22405         values higher than 25.6283.
22406
22407 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22408
22409         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
22410         subnormal exponent extraction and add some __builtin_expect.
22411         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
22412         Fix for subnormal mantissa calculation.
22413
22414 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
22415
22416         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
22417         cpu2 is -1 and errno is not ENOSYS.
22418
22419 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22420
22421         [BZ #14117]
22422         * sysdeps/i386/i486/bits/string.h: Renamed to ...
22423         * sysdeps/x86/bits/string.h: This.
22424         * sysdeps/x86_64/bits/string.h: Removed.
22425
22426         * sysdeps/i386/i486/bits/string.h: Define inline functions only
22427         if not compiling for x86-64, but compiling for >= i486.
22428
22429         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
22430         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
22431
22432         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
22433         New macro from Linux kernel 3.4.0.
22434         (FP_XSTATE_MAGIC2): Likewise.
22435         (FP_XSTATE_MAGIC2_SIZE): Likewise.
22436         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
22437         (struct _fpx_sw_bytes): New struct.
22438         (struct _xsave_hdr): Likewise.
22439         (struct _ymmh_state): Likewise.
22440         (struct _xstate): Likewise.
22441
22442         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
22443         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
22444         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
22445         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
22446         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
22447         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
22448
22449         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
22450         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
22451         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
22452         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
22453         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
22454         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
22455
22456 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22457
22458         [BZ #13743]
22459         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
22460         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
22461         (sysdep_headers): Include sys/platform/ppc.h.
22462         * sysdeps/powerpc/test-gettimebase.c: Test for
22463         __ppc_get_timebase() to catch future ISA opcode/insn changes.
22464         * manual/Makefile (appendices): Include platform.texi.
22465         * manual/contrib.texi (Contributors): Update @node pointers.
22466         * manual/maint.texi (Maintenance): Likewise.
22467         (Platform): New node.
22468         * manual/platform.texi: New file.  Document the new features.
22469
22470 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22471             Jakub Jelinek  <jakub@redhat.com>
22472
22473         [BZ #14188]
22474         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
22475         where __builtin_expect is unavailable.
22476
22477 2012-06-03  David S. Miller  <davem@davemloft.net>
22478
22479         * stdlib/longlong.h: Updated from GCC.
22480
22481 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
22482
22483         [BZ #14042]
22484         * sysdeps/powerpc/powerpc32/mcount.c: New file.
22485         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
22486         __mcount_internal.
22487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
22488         (GLIBC_2.16): Likewise.
22489
22490 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22491
22492         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
22493
22494 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22495
22496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
22497         (default-abi): New variable.
22498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
22499         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
22500         variable.
22501         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
22502         Likewise.
22503         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
22504         Likewise.
22505         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
22506         Likewise.
22507
22508         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
22509         definition.  Document in comment.
22510
22511 2012-06-01  David S. Miller  <davem@davemloft.net>
22512
22513         * stdlib/longlong.h: Updated from GCC.
22514
22515 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22516
22517         [BZ #14117]
22518         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
22519         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
22520         sys/debugreg.h sys/io.h here.
22521         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
22522         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
22523         sys/io.h.
22524         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
22525         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
22526         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
22527         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
22528         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
22529         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
22530
22531         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
22532         Define only if __x86_64__ is defined.
22533
22534 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22535
22536         [BZ #14048]
22537         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
22538         Use int64_t for variable i.
22539         * math/libm-test.inc (fmod_test): Add more tests.
22540
22541         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
22542         z computation is not scheduled after fetestexcept.
22543         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
22544         Use math_force_eval instead of asm to ensure calculation scheduled
22545         before exception test.
22546         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
22547         Ensure a1 + u.d computation is not scheduled after fetestexcept.
22548
22549 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
22550
22551         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
22552         computation is not scheduled after fetestexcept.
22553
22554 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22555
22556         [BZ #14117]
22557         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
22558         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
22559
22560 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22561
22562         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
22563         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
22564
22565 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22566
22567         [BZ #14117]
22568         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
22569         <bits/wordsize.h>.
22570         (__WCHAR_MIN): Support __WORDSIZE == 64.
22571         (__WCHAR_MAX): Likewise.
22572
22573         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
22574         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
22575
22576         [BZ #14183]
22577         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
22578         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
22579
22580         [BZ #14117]
22581         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
22582         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
22583
22584         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
22585         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
22586
22587         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
22588         Defined to 1 if __x86_64__ isn't defined.
22589         (_STAT_VER_LINUX_OLD): New.
22590         (st_atime): Remove duplicate.
22591         (st_mtime): Likewise.
22592         (st_ctime): Likewise.
22593
22594 2012-05-31  David S. Miller  <davem@davemloft.net>
22595
22596         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
22597         entries.
22598
22599 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
22600
22601         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
22602         gen-libm-test.pl.
22603
22604         [BZ #14132]
22605         * elf/dl-reloc.c: Include <_itoa.h>.
22606         (_dl_reloc_bad_type): Remove use of INTUSE.
22607         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
22608         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
22609         * stdio-common/psiginfo.c (psiginfo): Likewise.
22610         * stdio-common/psignal.c (psignal): Likewise.
22611         * string/strsignal.c (strsignal): Likewise.
22612         * include/signal.h (_sys_siglist): Declare hidden proto.
22613         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
22614         INTVARDEF with libc_hidden_data_def.
22615         * stdio-common/itoa-udigits.c: Likewise.
22616         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
22617         (_itoa_lower_digits_internal): Remove declaration.
22618         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
22619         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
22620         (_sys_sigabbrev_internal): Remove aliases.
22621         (_sys_siglist): Define hidden alias.
22622
22623 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
22624
22625         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22626         bits/sysctl.h.
22627
22628 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22629
22630         [BZ #14117]
22631         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
22632         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
22633
22634         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
22635         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
22636         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
22637         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
22638         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
22639         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
22640
22641         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
22642         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
22643         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
22644
22645         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
22646         with __addr.
22647         (insw): Likewise.
22648         (insl): Likewise.
22649         (outsb): Likewise.
22650         (outsw): Likewise.
22651         (outsl): Likewise.
22652
22653         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
22654         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
22655         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
22656
22657         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
22658         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
22659         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
22660         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
22661         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
22662         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
22663
22664         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
22665         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
22666
22667         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
22668         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
22669
22670         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
22671         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
22672         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
22673
22674         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
22675         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
22676         to ...
22677         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
22678
22679         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
22680         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
22681         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
22682
22683         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
22684         for x86-64.
22685         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
22686
22687 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
22688
22689         * math/math.h (M_El): Use two more decimal places.
22690         (M_LOG2El): Likewise.
22691         (M_LOG10El): Likewise.
22692         (M_LN2l): Likewise.
22693         (M_LN10l): Likewise.
22694         (M_PIl): Likewise.
22695         (M_PI_2l): Likewise.
22696         (M_PI_4l): Likewise.
22697         (M_1_PIl): Likewise.
22698         (M_2_PIl): Likewise.
22699         (M_2_SQRTPIl): Likewise.
22700         (M_SQRT2l): Likewise.
22701         (M_SQRT1_2l): Likewise.
22702
22703 2012-05-31  David S. Miller  <davem@davemloft.net>
22704
22705         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
22706         values between float registers.
22707         * sysdeps/sparc/sparc64/memset.S: Likewise.
22708         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22709
22710 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
22711
22712         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
22713         -D_FORTIFY_SOURCE=1.
22714         (CPPFLAGS-tst-longjmp_chk.c): Define.
22715         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
22716         (CPPFLAGS-tst-longjmp_chk2.c): Define.
22717         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
22718         CFLAGS-tst-wchar-h.c.
22719
22720 2012-05-31  Marek Polacek  <polacek@redhat.com>
22721
22722         [BZ #14132]
22723         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
22724         __endmntent_internal): Remove declaration.
22725         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
22726         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
22727         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
22728
22729 2012-05-30  David S. Miller  <davem@davemloft.net>
22730
22731         * sysdeps/sparc/sparc32/soft-fp/q_util.c
22732         (___Q_simulate_exceptions): Use real FP ops rather than writing
22733         into the %fsr.
22734         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
22735         Likewise.
22736
22737 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22738
22739         [BZ #14117]
22740         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
22741         * sysdeps/x86/bits/xtitypes.h: This.
22742
22743         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
22744         * sysdeps/x86/bits/wordsize.h: This.
22745
22746         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
22747         * sysdeps/x86/bits/huge_vall.h: This.
22748
22749         * sysdeps/i386/bits/select.h: Removed.
22750         * sysdeps/x86_64/bits/select.h: Renamed to ...
22751         * sysdeps/x86/bits/select.h: This.
22752
22753         * sysdeps/i386/bits/setjmp.h: Removed.
22754         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
22755         * sysdeps/x86/bits/setjmp.h: This.
22756
22757         * sysdeps/i386/bits/mathdef.h: Removed.
22758         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
22759         * sysdeps/x86/bits/mathdef.h: This.
22760
22761 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
22762
22763         [BZ #14132]
22764         * include/sys/socket.h (__connect_internal)
22765         (__libc_sa_len_internal): Remove declaration.
22766         (__connect, __libc_sa_len): Declare hidden_proto.
22767         (SA_LEN): Remove use of INTUSE.
22768         * socket/connect.c: Add libc_hidden_def.
22769         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
22770         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
22771         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
22772         alias.
22773         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
22774         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
22775         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
22776         of adding _internal alias.
22777
22778 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22779
22780         [BZ #14117]
22781         * sysdeps/i386/bits/link.h: Removed.
22782         * sysdeps/i386/bits/linkmap.h: Likewise.
22783         * sysdeps/x86_64/bits/link.h: Renamed to ...
22784         * sysdeps/x86/bits/link.h: This.
22785         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
22786         * sysdeps/x86/bits/linkmap.h: This.
22787
22788         * sysdeps/i386/bits/endian.h: Removed.
22789         * sysdeps/x86_64/bits/endian.h: Renamed to ...
22790         * sysdeps/x86/bits/endian.h: This.
22791
22792         * sysdeps/i386/bits/byteswap.h: Removed.
22793         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22794         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
22795         * sysdeps/x86/bits/byteswap.h: This.
22796         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
22797         * sysdeps/x86/bits/byteswap-16.h: This.
22798         * sysdeps/i386/Implies: Add x86.
22799         * sysdeps/x86_64/Implies: Likewise.
22800
22801 2012-05-30  David S. Miller  <davem@davemloft.net>
22802
22803         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
22804         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
22805         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
22806         (FP_TRAPPING_EXCEPTIONS): Define.
22807         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
22808         (FP_TRAPPING_EXCEPTIONS): Define.
22809         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
22810         subnormals only when inexact has been signalled or underflow
22811         exceptions are enabled.
22812         (_FP_PACK_CANONICAL): Likewise.
22813
22814 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22815
22816         [BZ #14183]
22817         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
22818         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
22819
22820 2012-05-30  Richard Henderson  <rth@twiddle.net>
22821
22822         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
22823         with #ifndef NOT_IN_libc.
22824
22825         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
22826         marked to avoid plt entry.
22827
22828 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22829
22830         [BZ #14112]
22831         * Makeconfig (default-abi): New macro.
22832         (abi-includes): Likewise.
22833         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
22834         $(abi-$(default-abi)-lib-soname) for soname if defined.
22835         ($(common-objpfx)gnu/lib-names.stmp): Generate from
22836         abi-variants.
22837         * Makefile (installed-stubs): Likewise.
22838         * include/stubs-biarch.h: Removed.
22839         * scripts/lib-names.awk: Only handle one library at a time.
22840         * scripts/soversions.awk: Remove WORDSIZE support.
22841         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
22842         entries.
22843         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
22844         Removed.
22845         (syscall-list-default-condition): Likewise.
22846         (syscall-list-default-condition): Likewise.
22847         (syscall-list-includes): Likewise.
22848         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
22849         syscall-list-* with abi-*.  Handle undefined abi-variants.
22850         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
22851         * sysdeps/unix/sysv/linux/i386/Implies: New file.
22852         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
22853         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
22854         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
22855         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
22856         Removed.
22857         (syscall-list-32-options): Likewise.
22858         (syscall-list-32-condition): Likewise.
22859         (syscall-list-64-options): Likewise.
22860         (syscall-list-64-condition): Likewise.
22861         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
22862         macro.
22863         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
22864         Renamed to ...
22865         (abi-*): This.
22866         (abi-64-ld-soname): New macro.
22867         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
22868         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
22869         Renamed to ...
22870         (abi-*): This.
22871         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
22872         * sysdeps/x86_64/x32/shlib-versions: Likewise.
22873
22874 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
22875
22876         * sysdeps/unix/sysv/linux/kernel-features.h
22877         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
22878         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
22879         include <kernel-features.h>.
22880         [!__NR_ftruncate64]: Remove conditional code.
22881         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22882         [__NR_ftruncate64]: Make code unconditional.
22883         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22884         * sysdeps/unix/sysv/linux/truncate64.c: Do not
22885         include <kernel-features.h>.
22886         [!__NR_ftruncate64]: Remove conditional code.
22887         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22888         [__NR_ftruncate64]: Make code unconditional.
22889         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
22891         include <kernel-features.h>.
22892         [!__NR_ftruncate64]: Remove conditional code.
22893         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22894         [__NR_ftruncate64]: Make code unconditional.
22895         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22897         include <kernel-features.h>.
22898         [!__NR_ftruncate64]: Remove conditional code.
22899         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22900         [__NR_ftruncate64]: Make code unconditional.
22901         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22902
22903         * configure.in (libc_cv_fpie): Weaken to a compile test using
22904         LIBC_TRY_CC_OPTION.
22905         * configure: Regenerated.
22906
22907 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22908
22909         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
22910         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
22911         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
22912         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22913         Refreshed.
22914         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
22915         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
22916         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
22917         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
22918         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
22919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22920         Refreshed.
22921
22922 2012-05-27  David S. Miller  <davem@davemloft.net>
22923
22924         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
22925         (___Q_zero): New.
22926         (__Q_simulate_exceptions): Return void.  Change to simulate
22927         exceptions by writing into the %fsr.
22928         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
22929         (__Qp_handle_exceptions): Likewise.
22930         (numbers): Delete.
22931         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
22932         __Qp_handle_exceptions.
22933         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
22934         __Qp_handle_exceptions.
22935         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22936         as unused and give dummy FP_RND_NEAREST initializer.
22937         (FP_INHIBIT_RESULTS): Define.
22938         (___Q_simulate_exceptions): Update declaration.
22939         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
22940         formatting.
22941         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
22942         as unused and give dummy FP_RND_NEAREST initializer.
22943         (__Qp_handle_exceptions): Update declaration.
22944         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
22945         formatting.
22946
22947 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
22948
22949         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
22950         the temporary FPU control word.
22951         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
22952         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
22953         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22954         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22955         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22956         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22957         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22958         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22959         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22960         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
22961         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22962
22963 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22964
22965         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
22966         fields.
22967
22968 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
22969
22970         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
22971         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
22972         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
22973         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
22974         Likewise.
22975         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
22976         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
22977         Likewise.
22978
22979 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
22980
22981         * po/h.po: Update from translation team.
22982
22983 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
22984
22985         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
22986
22987         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
22988         handling of denormals.
22989         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
22990         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
22991         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
22992         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
22993         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
22994         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
22995         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
22996         Likewise.
22997
22998 2012-05-26  Marek Polacek  <polacek@redhat.com>
22999
23000         [BZ #14152]
23001         * math/libm-test.inc (fma_test): Don't always expect underflow
23002         exception.
23003
23004 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
23005
23006         [BZ #12416]
23007         * elf/tst-execstack.c: Include stackinfo.h.
23008         (do_test): Adjust test case to ensure that pthread_getattr_np
23009         behaviour remains the same after marking stack executable.
23010
23011 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
23012
23013         * sysdeps/unix/sysv/linux/kernel-features.h
23014         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
23015         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
23016         kernel-features.h.
23017         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
23018         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
23019         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
23020         kernel-features.h.
23021         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
23022         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
23023
23024 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
23025
23026         * configure.in: Define the default includes to being none.
23027         * configure: Regenerated.
23028
23029 2012-05-25  Roland McGrath  <roland@hack.frob.com>
23030
23031         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
23032         * sysdeps/x86_64/setjmp.S: Likewise.
23033         * sysdeps/i386/bsd-setjmp.S: Likewise.
23034         * sysdeps/i386/bsd-_setjmp.S: Likewise.
23035         * sysdeps/i386/setjmp.S: Likewise.
23036         * sysdeps/i386/__longjmp.S: Likewise.
23037         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23038         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
23039
23040         * include/stap-probe.h: New file.
23041         * configure.in: Handle --enable-systemtap.
23042         * configure: Regenerated.
23043         * config.h.in (USE_STAP_PROBE): New #undef.
23044         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
23045         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
23046         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23047
23048 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
23049
23050         [BZ #13717]
23051         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
23052         to 2.4.0 where earlier.
23053         * sysdeps/unix/sysv/linux/configure: Regenerated.
23054         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
23055         <kernel-features.h>.
23056         [__ASSUME_32BITUIDS]: Make code unconditional.
23057         [!__ASSUME_32BITUIDS]: Remove conditional code.
23058         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
23059         <kernel-features.h>.
23060         [__ASSUME_32BITUIDS]: Make code unconditional.
23061         [!__ASSUME_32BITUIDS]: Remove conditional code.
23062         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
23063         [__ASSUME_32BITUIDS]: Make code unconditional.
23064         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
23065         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
23066         <kernel-features.h>.
23067         [__ASSUME_32BITUIDS]: Make code unconditional.
23068         [!__ASSUME_32BITUIDS]: Remove conditional code.
23069         * sysdeps/unix/sysv/linux/i386/geteuid.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/getgid.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/getgroups.c: Do not include
23078         <kernel-features.h>.
23079         [__ASSUME_32BITUIDS]: Make code unconditional.
23080         [!__ASSUME_32BITUIDS]: Remove conditional code.
23081         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
23082         <kernel-features.h>.
23083         [__ASSUME_32BITUIDS]: Make code unconditional.
23084         [!__ASSUME_32BITUIDS]: Remove conditional code.
23085         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
23086         <kernel-features.h>.
23087         [__ASSUME_32BITUIDS]: Make code unconditional.
23088         [!__ASSUME_32BITUIDS]: Remove conditional code.
23089         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
23090         <kernel-features.h>.
23091         [__ASSUME_32BITUIDS]: Make code unconditional.
23092         [!__ASSUME_32BITUIDS]: Remove conditional code.
23093         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
23094         <kernel-features.h>.
23095         [__ASSUME_32BITUIDS]: Make code unconditional.
23096         [!__ASSUME_32BITUIDS]: Remove conditional code.
23097         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
23098         <kernel-features.h>.
23099         [__ASSUME_32BITUIDS]: Make code unconditional.
23100         [!__ASSUME_32BITUIDS]: Remove conditional code.
23101         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
23102         <kernel-features.h>.
23103         [__ASSUME_32BITUIDS]: Make code unconditional.
23104         [!__ASSUME_32BITUIDS]: Remove conditional code.
23105         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
23106         <kernel-features.h>.
23107         [__NR_setresgid] (__setresgid): Do not declare.
23108         [__ASSUME_32BITUIDS]: Make code unconditional.
23109         [!__ASSUME_32BITUIDS]: Remove conditional code.
23110         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
23111         <kernel-features.h>.
23112         [__NR_setresuid] (__setresuid): Do not declare.
23113         [__ASSUME_32BITUIDS]: Make code unconditional.
23114         [!__ASSUME_32BITUIDS]: Remove conditional code.
23115         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
23116         <kernel-features.h>.
23117         [__ASSUME_32BITUIDS]: Make code unconditional.
23118         [!__ASSUME_32BITUIDS]: Remove conditional code.
23119         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
23120         <kernel-features.h>.
23121         [__ASSUME_32BITUIDS]: Make code unconditional.
23122         [!__ASSUME_32BITUIDS]: Remove conditional code.
23123         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
23124         <kernel-features.h>.
23125         [__ASSUME_32BITUIDS]: Make code unconditional.
23126         [!__ASSUME_32BITUIDS]: Remove conditional code.
23127         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
23128         <kernel-features.h>.
23129         [__ASSUME_32BITUIDS]: Make code unconditional.
23130         [!__ASSUME_32BITUIDS]: Remove conditional code.
23131         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
23132         <kernel-features.h>.
23133         [__ASSUME_32BITUIDS]: Make code unconditional.
23134         [!__ASSUME_32BITUIDS]: Remove conditional code.
23135         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
23136         <kernel-features.h>.
23137         [__ASSUME_32BITUIDS]: Make code unconditional.
23138         [!__ASSUME_32BITUIDS]: Remove conditional code.
23139         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
23140         <kernel-features.h>.
23141         [__ASSUME_32BITUIDS]: Make code unconditional.
23142         [!__ASSUME_32BITUIDS]: Remove conditional code.
23143         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
23144         <kernel-features.h>.
23145         [__ASSUME_32BITUIDS]: Make code unconditional.
23146         [!__ASSUME_32BITUIDS]: Remove conditional code.
23147         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
23148         <kernel-features.h>.
23149         [__ASSUME_32BITUIDS]: Make code unconditional.
23150         [!__ASSUME_32BITUIDS]: Remove conditional code.
23151         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
23152         <kernel-features.h>.
23153         [__ASSUME_32BITUIDS]: Make code unconditional.
23154         [!__ASSUME_32BITUIDS]: Remove conditional code.
23155         * sysdeps/unix/sysv/linux/kernel-features.h
23156         (__ASSUME_SETRESUID_SYSCALL): Remove.
23157         (__ASSUME_SETRESGID_SYSCALL): Likewise.
23158         (__ASSUME_32BITUIDS): Likewise.
23159         (__ASSUME_LDT_WORKS): Likewise.
23160         (__ASSUME_O_DIRECTORY): Likewise.
23161         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
23162         architecture but not kernel version.
23163         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
23164         (__ASSUME_MMAP2_SYSCALL): Likewise.
23165         (__ASSUME_STAT64_SYSCALL): Likewise.
23166         (__ASSUME_IPC64): Likewise.
23167         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
23168         <kernel-features.h>.
23169         [__ASSUME_32BITUIDS]: Make code unconditional.
23170         [!__ASSUME_32BITUIDS]: Remove conditional code.
23171         * sysdeps/unix/sysv/linux/opendir.c: Do not include
23172         <kernel-features.h>.
23173         [__ASSUME_O_DIRECTORY]: Make code unconditional.
23174         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
23175         132096]: Remove conditional code.
23176         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
23177         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
23178         <kernel-features.h>.
23179         [__ASSUME_32BITUIDS]: Make code unconditional.
23180         [!__ASSUME_32BITUIDS]: Remove conditional code.
23181         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
23182         <kernel-features.h>.
23183         [__ASSUME_32BITUIDS]: Make code unconditional.
23184         [!__ASSUME_32BITUIDS]: Remove conditional code.
23185         * sysdeps/unix/sysv/linux/setegid.c: Do not include
23186         <kernel-features.h>.
23187         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
23188         unconditional.
23189         (__setresgid): Do not declare.
23190         [__ASSUME_32BITUIDS]: Make code unconditional.
23191         [!__ASSUME_32BITUIDS]: Remove conditional code.
23192         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
23193         <kernel-features.h>.
23194         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
23195         unconditional.
23196         (__setresuid): Do not declare.
23197         [__ASSUME_32BITUIDS]: Make code unconditional.
23198         [!__ASSUME_32BITUIDS]: Remove conditional code.
23199         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
23200         <kernel-features.h>.
23201         [__ASSUME_32BITUIDS]: Make code unconditional.
23202         [!__ASSUME_32BITUIDS]: Remove conditional code.
23203         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
23204         <kernel-features.h>.
23205         [__ASSUME_32BITUIDS]: Make code unconditional.
23206         [!__ASSUME_32BITUIDS]: Remove conditional code.
23207
23208 2012-05-25  Richard Henderson  <rth@twiddle.net>
23209
23210         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
23211         dl_hwcap to ifunc resolver.
23212         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
23213         elf_ifunc_invoke.
23214         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
23215         dl_hwcap to ifunc resolver.
23216         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
23217
23218 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23219
23220         [BZ #14153]
23221         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
23222         for |x| <= 2**-26, not 2**-57.
23223         * math/libm-test.inc (acos_test): Do not allow spurious underflow
23224         exception.
23225
23226 2012-05-24  Jeff Law  <law@redhat.com>
23227
23228         * stdio-common/Makefile (tests): Add bug25.
23229         * stdio-common/bug25.c: New test.
23230
23231 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23232
23233         [BZ #13576]
23234         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
23235         multiple of MALLOC_ALIGNMENT in size.
23236         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
23237
23238 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23239
23240         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
23241         Require >= 256.
23242         (FILENAME_MAX): Use macro-int-constant.
23243         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
23244         (_IOFBF): Use macro-int-constant.
23245         (_IOLBF): Likewise.
23246         (_IONBF): Likewise.
23247         (SEEK_CUR): Likewise.
23248         (SEEK_END): Likewise.
23249         (SEEK_SET): Likewise.
23250         (TMP_MAX): Likewise.
23251         (EOF): Use macro-int-constant.  Require < 0.
23252         (NULL): Use macro-constant.  Require == 0.
23253         (stdin): Require type to be FILE *.
23254         (stdout): Likewise.
23255         (stderr): Likewise.
23256         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
23257         macro-int-constant.
23258         (EXIT_SUCCESS): Likewise.
23259         (NULL): Use macro-constant.  Require == 0.
23260         (RAND_MAX): Use macro-int-constant.
23261         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
23262         [C99-based standards] (strtof): Require function.
23263         [C99-based standards] (strtold): Likewise.
23264         [C99-based standards] (strtoll): Likewise.
23265         [C99-based standards] (strtoull): Likewise.
23266         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
23267         [ISO || ISO99 || ISO11] (limits.h): Likewise.
23268         [ISO || ISO99 || ISO11] (math.h): Likewise.
23269         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
23270         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
23271         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23272
23273 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
23274
23275         [BZ #14132]
23276         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
23277         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
23278         * intl/dgettext.c (DCGETTEXT): Likewise.
23279         * intl/gettext.c (DCGETTEXT): Likewise.
23280         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
23281         * posix/regex_internal.h (gettext): Likewise.
23282         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
23283         Remove declaration.
23284         * include/argz.h (__argz_count_internal)
23285         (__argz_stringify_internal): Remove declaration.
23286         (__argz_count, __argz_stringify): Declare hidden proto.
23287         * intl/dcgettext.c: Remove use of INTDEF.
23288         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
23289         * string/argz-stringify.c: Likewise.
23290         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23291         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23292         Declare hidden proto.
23293         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23294         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23295         Declare hidden proto.
23296         * include/stdio.h (__asprintf_internal): Don't declare.
23297         (__asprintf): Don't define as macro.  Declare hidden proto.
23298         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
23299         (__fsetlocking): Declare hidden proto.
23300         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
23301         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
23302         hidden proto.
23303         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
23304         (_IO_setlinebuf): Remove use of INTUSE.
23305         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
23306         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
23307         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
23308         Remove declaration.
23309         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
23310         (_IO_do_flush): Remove use of INTUSE.
23311         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
23312         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
23313         (_IO_adjust_column, _IO_least_wmarker)
23314         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
23315         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
23316         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
23317         (_IO_default_doallocate, _IO_wdefault_doallocate)
23318         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
23319         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
23320         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
23321         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
23322         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
23323         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
23324         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
23325         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
23326         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
23327         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
23328         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
23329         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
23330         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
23331         proto.
23332         (_IO_flush_all_internal, _IO_adjust_column_internal)
23333         (_IO_default_uflow_internal, _IO_default_finish_internal)
23334         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
23335         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
23336         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
23337         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
23338         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
23339         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
23340         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
23341         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
23342         (_IO_file_close_internal, _IO_file_close_it_internal)
23343         (_IO_file_underflow_internal, _IO_file_overflow_internal)
23344         (_IO_file_init_internal, _IO_file_attach_internal)
23345         (_IO_file_fopen_internal, _IO_file_read_internal)
23346         (_IO_file_sync_internal, _IO_file_seek_internal)
23347         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
23348         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
23349         (_IO_str_underflow_internal, _IO_str_overflow_internal)
23350         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
23351         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
23352         (_IO_list_all_internal, _IO_link_in_internal)
23353         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
23354         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
23355         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
23356         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
23357         (_IO_do_write_internal, _IO_padn_internal)
23358         (_IO_getline_info_internal, _IO_getline_internal)
23359         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
23360         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
23361         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
23362         (_IO_vfscanf_internal, _IO_vfprintf_internal)
23363         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
23364         (_IO_init_internal, _IO_un_link_internal): Don't declare.
23365         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
23366         with libc_hidden_ver, remove use of INTUSE.
23367         * libio/genops.c: Likewise.
23368         * libio/freopen.c: Likewise.
23369         * libio/freopen64.c: Likewise.
23370         * libio/iofclose.c: Likewise.
23371         * libio/iofdopen.c: Likewise.
23372         * libio/iofflush.c: Likewise.
23373         * libio/iofflush_u.c: Likewise.
23374         * libio/iofgets.c: Likewise.
23375         * libio/iofgets_u.c: Likewise.
23376         * libio/iofopen.c: Likewise.
23377         * libio/iofopncook.c: Likewise.
23378         * libio/iofread.c: Likewise.
23379         * libio/iofread_u.c: Likewise.
23380         * libio/ioftell.c: Likewise.
23381         * libio/iofwrite.c: Likewise.
23382         * libio/iogetline.c: Likewise.
23383         * libio/iogets.c: Likewise.
23384         * libio/iogetwline.c: Likewise.
23385         * libio/iopadn.c: Likewise.
23386         * libio/iopopen.c: Likewise.
23387         * libio/ioseekoff.c: Likewise.
23388         * libio/ioseekpos.c: Likewise.
23389         * libio/iosetbuffer.c: Likewise.
23390         * libio/iosetvbuf.c: Likewise.
23391         * libio/ioungetc.c: Likewise.
23392         * libio/ioungetwc.c: Likewise.
23393         * libio/iovdprintf.c: Likewise.
23394         * libio/iovsprintf.c: Likewise.
23395         * libio/iovsscanf.c: Likewise.
23396         * libio/memstream.c: Likewise.
23397         * libio/obprintf.c: Likewise.
23398         * libio/oldfileops.c: Likewise.
23399         * libio/oldiofclose.c: Likewise.
23400         * libio/oldiofdopen.c: Likewise.
23401         * libio/oldiofopen.c: Likewise.
23402         * libio/oldiopopen.c: Likewise.
23403         * libio/oldstdfiles.c: Likewise.
23404         * libio/putc.c: Likewise.
23405         * libio/setbuf.c: Likewise.
23406         * libio/setlinebuf.c: Likewise.
23407         * libio/stdfiles.c: Likewise.
23408         * libio/strops.c: Likewise.
23409         * libio/vasprintf.c: Likewise.
23410         * libio/vscanf.c: Likewise.
23411         * libio/vsnprintf.c: Likewise.
23412         * libio/vswprintf.c: Likewise.
23413         * libio/wfiledoalloc.c: Likewise.
23414         * libio/wfileops.c: Likewise.
23415         * libio/wgenops.c: Likewise.
23416         * libio/wmemstream.c: Likewise.
23417         * libio/wstrops.c: Likewise.
23418         * libio/__fpurge.c: Likewise.
23419         * libio/__fsetlocking.c: Likewise.
23420         * assert/assert.c: Likewise.
23421         * debug/fgets_chk.c: Likewise.
23422         * debug/fgets_u_chk.c: Likewise.
23423         * debug/fread_chk.c: Likewise.
23424         * debug/fread_u_chk.c: Likewise.
23425         * debug/gets_chk.c: Likewise.
23426         * debug/obprintf_chk.c: Likewise.
23427         * debug/vasprintf_chk.c: Likewise.
23428         * debug/vdprintf_chk.c: Likewise.
23429         * debug/vsnprintf_chk.c: Likewise.
23430         * debug/vsprintf_chk.c: Likewise.
23431         * malloc/mtrace.c: Likewise.
23432         * misc/error.c: Likewise.
23433         * misc/syslog.c: Likewise.
23434         * stdio-common/asprintf.c: Likewise.
23435         * stdio-common/fxprintf.c: Likewise.
23436         * stdio-common/getw.c: Likewise.
23437         * stdio-common/isoc99_fscanf.c: Likewise.
23438         * stdio-common/isoc99_scanf.c: Likewise.
23439         * stdio-common/isoc99_vfscanf.c: Likewise.
23440         * stdio-common/isoc99_vscanf.c: Likewise.
23441         * stdio-common/isoc99_vsscanf.c: Likewise.
23442         * stdio-common/printf-prs.c: Likewise.
23443         * stdio-common/printf_fp.c: Likewise.
23444         * stdio-common/printf_fphex.c: Likewise.
23445         * stdio-common/printf_size.c: Likewise.
23446         * stdio-common/putw.c: Likewise.
23447         * stdio-common/scanf.c: Likewise.
23448         * stdio-common/sprintf.c: Likewise.
23449         * stdio-common/tmpfile.c: Likewise.
23450         * stdio-common/vfprintf.c: Likewise.
23451         * stdio-common/vfscanf.c: Likewise.
23452         * stdlib/strfmon_l.c: Likewise.
23453         * sunrpc/openchild.c: Likewise.
23454         * sunrpc/xdr_stdio.c: Likewise.
23455         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
23456         * sysdeps/mach/hurd/tmpfile.c: Likewise.
23457
23458 2012-05-24  Roland McGrath  <roland@hack.frob.com>
23459
23460         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23461
23462         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
23463         in the third column, to generate for the shared library an IFUNC
23464         that uses _dl_vdso_vsym.
23465         * Makerules (COMPILE.c, compile-stdin.c): New variables.
23466         * Makeconfig (object-suffixes-noshared): New variable.
23467
23468         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
23469         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
23470         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
23471         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
23472
23473         [BZ #14132]
23474         * include/sys/time.h (__gettimeofday): Remove macro.
23475         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
23476         * time/gettimeofday.c (__gettimeofday): Remove #undef.
23477         Remove INTDEF.
23478         (__gettimeofday): Add libc_hidden_def.
23479         (gettimeofday): Add libc_hidden_weak.
23480         * sysdeps/mach/gettimeofday.c: Likewise.
23481         * sysdeps/posix/gettimeofday.c: Likewise.
23482         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
23483         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23484         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
23485         (__gettimeofday_internal): Remove strong_alias.
23486         (__gettimeofday): Add libc_hidden_def.
23487         (gettimeofday): Add libc_hidden_weak.
23488         * sysdeps/unix/syscalls.list (gettimeofday):
23489         Remove __gettimeofday_internal alias.
23490
23491 2012-05-24  Daniel Jacobowitz  <drow@false.org>
23492             H.J. Lu  <hongjiu.lu@intel.com>
23493
23494         [BZ #12495]
23495         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
23496         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
23497         (largebin_index_32_big): New.
23498         (largebin_index): Use it for 16-byte alignment.
23499         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
23500         correction with front_misalign.
23501
23502 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23503
23504         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
23505         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
23506         Likewise.
23507         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
23508         Likewise.
23509         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
23510         Likewise.
23511         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
23512         Likewise.
23513         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
23514         Likewise.
23515         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
23516         Likewise.
23517         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
23518         Likewise.
23519         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
23520         Likewise.
23521         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
23522         Likewise.
23523         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
23524         Likewise.
23525         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
23526         Likewise.
23527         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
23528         Likewise.
23529
23530         * scripts/data/c++-types-x32-linux-gnu.data: New file.
23531         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
23532
23533 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23534
23535         [BZ #10846]
23536         [BZ #14036]
23537         * math/libm-test.inc (exp_test): Add test from bug 14036.
23538         (pow_test): Add test from bug 10846.
23539
23540         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
23541         and other flags.
23542         (special_function): Do not include flags in test name.
23543         (parse_args): Likewise.
23544         * sysdeps/i386/fpu/libm-test-ulps: Update.
23545         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23546         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
23547         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
23548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23549
23550         * math/gen-libm-test.pl (%beautify): Add entries for underflow
23551         exceptions.
23552         * math/libm-test.inc ("Philosophy"): Update comment about
23553         exception testing.
23554         (UNDERFLOW_EXCEPTION): New macro.
23555         (UNDERFLOW_EXCEPTION_OK): Likewise.
23556         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
23557         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
23558         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
23559         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
23560         (INVALID_EXCEPTION_OK): Update value.
23561         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23562         (OVERFLOW_EXCEPTION_OK): Likewise.
23563         (IGNORE_ZERO_INF_SIGN): Likewise.
23564         (test_exceptions): Handle underflow exceptions.
23565         (acos_test): Update for underflow exception expectations.
23566         (cexp_test): Likewise.
23567         (clog_test): Likewise.
23568         (clog10_test): Likewise.
23569         (csqrt_test): Likewise.
23570         (ctan_test): Likewise.
23571         (ctanh_test): Likewise.
23572         (exp_test): Likewise.
23573         (exp10_test): Likewise.
23574         (exp2_test): Likewise.
23575         (expm1_test): Likewise.
23576         (fma_test): Likewise.
23577         (j0_test): Likewise.
23578         (jn_test): Likewise.
23579         (nexttoward_test): Likewise.
23580         (pow_test): Likewise.
23581         (scalbn_test): Likewise.
23582         (scalbln_test): Likewise.
23583         (tan_test): Likewise.
23584         (y1_test): Likewise.
23585         * sysdeps/i386/fpu/libm-test-ulps: Update.
23586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23587
23588 2012-05-23  David S. Miller  <davem@davemloft.net>
23589
23590         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23591         (__libc_sigaction): Remove unused local variables.
23592
23593 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23594
23595         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
23596
23597 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23598
23599         mktime: avoid signed integer overflow
23600         * time/mktime.c (__mktime_internal): Do not mishandle the case
23601         where diff == INT_MIN.
23602
23603         mktime: simplify computation of average
23604         * time/mktime.c (ranged_convert): Use new time_t_avg function
23605         instead of rolling our own (probably-slower) code.
23606
23607         mktime: do not assume signed right shift propagates sign bit
23608         * time/mktime.c (isdst_differ): New static function.
23609         (__mktime_internal): No need to normalize tm_isdst now.
23610         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
23611         tm_isdst values.
23612
23613         mktime: merge another wrapv change from gnulib
23614         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
23615         from some compilers.
23616
23617         mktime: remove incorrect attempt at unusual arithmetics
23618         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
23619         The code didn't really work on such machines anyway.
23620         (TYPE_MINIMUM): Assume two's complement.
23621         (twos_complement_arithmetic): Verify that long_int and time_t
23622         are two's complement (or unsigned, in the latter case).
23623
23624         mktime: check signed shifts on long_int and time_t, too
23625         * time/mktime.c (SHR): Check that shifts work as desired
23626         on the types long_int and time_t too, as SHR is used on
23627         such types.
23628
23629         mktime: do not assume 'long' is wide enough
23630         * time/mktime.c (verify): Move decl up.
23631         (long_int): New type.
23632         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
23633         to remove assumption in the code that 'long' is wide enough to
23634         store year values.  This assumption is not true on x32 and on
23635         some non-glibc platforms.
23636
23637         mktime: merge wrapv change from gnulib
23638         * time/mktime.c (WRAPV): New macro.
23639         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
23640         (guess_time_tm, __mktime_internal): Do not assume that signed
23641         integer overflow wraps around; modern compilers generate code
23642         where this assumption is no longer valid.
23643
23644 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23645
23646         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23647         Replace "jmp L(pseudo_end)" with "ret".
23648         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
23649         Likewise.
23650
23651 2012-05-23  Andreas Jaeger  <aj@suse.de>
23652
23653         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
23654         * sysdeps/unix/sysv/linux/poll.c: Remove file.
23655
23656 2012-05-23  Andreas Jaeger  <aj@suse.de>
23657             Maximilian Attems  <max@stro.at>
23658
23659         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
23660         New macros.
23661
23662 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23663
23664         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
23665         code so that pseudo_end is just ret and the stack pointer is
23666         correct also for static library in error case.
23667
23668 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
23669
23670         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
23671         move to syscalls.list.
23672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
23673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
23674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
23675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
23676
23677         * manual/install.texi (Running make install): Do not mention Linux
23678         kernel version for which pt_chown is not needed.
23679         (Linux): Do not mention problems with nscd with 2.0 kernels.
23680         * INSTALL: Regenerated.
23681
23682 2012-05-23  Andreas Jaeger  <aj@suse.de>
23683
23684         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
23685         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
23686         macro.
23687         * sysdeps/unix/sysv/linux/s390/bits/mman.h
23688         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23689         * sysdeps/unix/sysv/linux/sh/bits/mman.h
23690         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23691         * sysdeps/unix/sysv/linux/i386/bits/mman.h
23692         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23693         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
23694         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23695         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
23696         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23697         * sysdeps/unix/sysv/linux/bits/in.h
23698         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
23699
23700 2012-05-22  Roland McGrath  <roland@hack.frob.com>
23701
23702         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
23703         (PREPARE_VERSION): Just use assert instead, it will be elided
23704         under [NDEBUG] anyway.
23705
23706 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23707
23708         * sysdeps/unix/sysv/linux/Makefile: Include
23709         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
23710         (sysdep_routines): Remove sysctl.
23711         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
23712         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
23713         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
23714         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
23715         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
23716
23717 2012-05-22  Andreas Jaeger  <aj@suse.de>
23718
23719         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
23720         that pseudo_end is just ret and the stack pointer is correct also
23721         for static library in error case.
23722
23723 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23724
23725         [BZ #14122]
23726         * nss/nsswitch.c (defconfig_entries): New variable.
23727         (__nss_database_lookup): Don't leak defconfig entries.
23728         (nss_parse_service_list): Don't leak on error paths.
23729         (free_database_entries): New function.
23730         (free_defconfig): New function.
23731         (free_mem): Move common code to free_database_entries.
23732
23733 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23734
23735         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
23736         Add arch_prctl.
23737         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
23738
23739         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
23740         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
23741         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
23742         New macro.
23743         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
23744         (INTERNAL_SYSCALL_TYPES): Likewise.
23745         (LOAD_ARGS_TYPES_[1-6]): Likewise.
23746         (LOAD_REGS_TYPES_[1-6]): Likewise.
23747         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
23748         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
23749
23750 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23751
23752         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
23753         copysignl for GLIBC_2_0.
23754         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
23755         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
23756         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
23757         logbl for GLIBC_2_0.
23758         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23759         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23760
23761 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23762
23763         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
23764         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23765
23766         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23767         Use "neg %eax".
23768
23769         * time/mktime.c: Update copyright years.
23770
23771 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23772
23773         mktime: merge comment-quoting-style change from gnulib
23774         * time/mktime.c: Quote 'like this' in comments.
23775         The GNU coding standards suggest that we no longer quote `like this',
23776         as "`" and "'" are typically rendered asymmetrically nowadays.
23777         The typical gnulib style is to quote 'like this' when quoting
23778         code, and "like this" when quoting English.
23779
23780         * time/mktime.c (compile-command): Add "-I.".
23781
23782         mktime: merge mktime-internal.h change from gnulib
23783         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
23784
23785         mktime: merge time_r change from gnulib
23786         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
23787
23788         mktime: merge DEBUG change from gnulib
23789         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
23790         case system <time.h> has a #define.
23791
23792         mktime: merge <sys/types.h> change from gnulib
23793         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
23794         since <time.t> is now guaranteed to define time_t.
23795
23796         mktime: merge HAVE_CONFIG_H change from gnulib
23797         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
23798
23799 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23800
23801         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23802         Use "neg %eax".
23803
23804         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
23805         __rlim_t cast.
23806         (struct rusage): Use anonymous union to pad each field to
23807         __syscall_slong_t.
23808
23809 2012-05-21  David S. Miller  <davem@davemloft.net>
23810
23811         * Makefules (o-iterator): Remove .s cases.
23812         (compile-command.s): Delete.
23813         (COMPILE.s): Delete.
23814         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
23815
23816 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
23817
23818         * configure.in (libc_cv_predef_stack_protector): Only consider
23819         "foobar" and "__stack_chk_fail" lines in libc_undefs.
23820         * configure: Regenerated.
23821
23822 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23823
23824         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23825         New macro.  Use R*LP on int and pointer.
23826         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
23827         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
23828         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
23829         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
23830
23831         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
23832         [__WORDSIZE_TIME64_COMPAT32] instead of
23833         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
23834         (struct utmp): Likewise.
23835         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
23836         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
23837         Renamed to ...
23838         (__WORDSIZE_TIME64_COMPAT32): This.
23839         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
23840         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
23841         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
23842         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
23843         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
23844         (__WORDSIZE_TIME64_COMPAT32): New macro.
23845
23846 2012-05-21  Andreas Jaeger  <aj@suse.de>
23847
23848         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
23849         only if [SHARED]. Add prototype for __wcschr_ia32.
23850
23851 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23852
23853         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
23854         of %rbp unmolested in the jmp_buf while mangling the low bits.
23855         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
23856         unmolested high bits of %rbp while demangling the low bits.
23857         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23858
23859 2012-05-21  Andreas Jaeger  <aj@suse.de>
23860
23861         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
23862         * sunrpc/svc_simple.c: Use it for registerrpc.
23863         * sunrpc/xcrypt.c: Use it for passwd2des.
23864
23865         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
23866
23867 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23868
23869         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
23870         Don't define if [__SYSCALL_WORDSIZE != 32].
23871         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
23872         New macro.
23873
23874 2012-05-21  Bruno Haible  <bruno@clisp.org>
23875             Andreas Jaeger  <aj@suse.de>
23876
23877         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
23878         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
23879         inptr and inend for must_buffer_ch.
23880         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
23881         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
23882         * stdio-common/Makefile (tests): Remove bug15.
23883         (bug15-ENV): Remove macro.
23884         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
23885         anymore.
23886
23887 2012-05-19  Andreas Jaeger  <aj@suse.de>
23888             Roland McGrath  <roland@hack.frob.com>
23889
23890         * manual/contrib.texi: Completely rewritten. It contains now an
23891         alphabetical list of contributors and their contributions.
23892
23893 2012-05-21  Richard Henderson  <rth@twiddle.net>
23894
23895         * misc/getauxval.c (__getauxval): Use unsigned long int.
23896         * misc/sys/auxv.h: Include <sys/cdefs.h>.
23897         (getauxval): Use unsigned long int.
23898
23899 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23900
23901         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23902
23903 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23904
23905         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
23906         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
23907         __alignof__ (long double).
23908
23909 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23910
23911         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23912
23913 2012-05-20  Richard Henderson  <rth@twiddle.net>
23914
23915         * misc/getauxval.c: New file.
23916         * misc/sys/auxv.h: New file.
23917         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
23918         (routines): Add getauxval.
23919         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
23920         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
23921         * elf/dl-sysdep.c (_dl_auxv): Remove.
23922         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
23923         * elf/dl-support.c (_dl_auxv): New variable.
23924         (_dl_aux_init): Initialize it.
23925         * manual/startup.texi (Auxiliary Vector): New node.
23926         * sysdeps/generic/bits/hwcap.h: New file.
23927         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
23928         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
23929         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
23930         * sysdeps/sparc/sysdep.h: ... here.  Include it.
23931         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
23932         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
23933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23934         Update.
23935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
23936         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
23937         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
23938         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
23939         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23940         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
23941         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
23942         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
23943
23944 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23945
23946         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23947
23948 2012-05-19  David S. Miller  <davem@davemloft.net>
23949
23950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23951
23952 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23953
23954         [BZ #14123]
23955         * math/s_ccosh.c: Include <float.h>
23956         (__ccosh): Avoid internal overflow calculating sinh and cosh
23957         values before multiplying by sin and cos values.
23958         * math/s_ccoshf.c: Likewise.
23959         * math/s_ccoshl.c: Likewise.
23960         * math/s_csin.c: Likewise.
23961         * math/s_csinf.c: Likewise.
23962         * math/s_csinl.c: Likewise.
23963         * math/s_csinh.c: Likewise.
23964         * math/s_csinhf.c: Likewise.
23965         * math/s_csinhl.c: Likewise.
23966         * math/libm-test.inc (ccos_test): Add more tests.
23967         (ccosh_test): Likewise.
23968         (csin_test): Likewise.
23969         (csinh_test): Likewise.
23970         * sysdeps/i386/fpu/libm-test-ulps: Update.
23971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23972
23973 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
23974
23975         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
23976         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
23977
23978         * sysdeps/x86_64/x32/_itoa.h: Add comment.
23979
23980 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
23981
23982         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
23983         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
23984         * sysdeps/powerpc/soft-fp/Versions: Likewise.
23985         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
23986         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
23987         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
23988         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
23989         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
23990         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
23991         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
23992         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
23993         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
23994         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
23995         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
23996         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
23997         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
23998         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
23999         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
24000         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
24001         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
24002         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
24003         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
24004         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
24005         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
24006         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
24007         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
24008         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
24009         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
24010         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
24011         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
24012         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
24013
24014 2012-05-18  Andreas Jaeger  <aj@suse.de>
24015
24016         * csu/.gitignore: Delete.
24017
24018 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24019
24020         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
24021         (timex): Use __syscall_slong_t.
24022
24023 2012-05-18  Andreas Jaeger  <aj@suse.de>
24024             Carlos O'Donell  <carlos_odonell@mentor.com>
24025
24026         * manual/install.texi (Configuring and compiling): Update
24027         description about files modified in the source directory.
24028         * INSTALL: Regenerated.
24029
24030 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24031
24032         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
24033         value.  Use "or" to set return value to -1.
24034         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
24035         negate return value.
24036
24037 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24038
24039         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
24040         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
24041         failure if the compiler has Graphite support disabled.
24042         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
24043         Likewise.
24044         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
24045         CFLAGS-memmove.c): Likewise.
24046         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
24047         Likewise.
24048
24049 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24050
24051         * sysdeps/x86_64/x32/_itoa.h: New file.
24052
24053         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
24054         getdents system call only if kernel and user dirents have the
24055         same d_ino and d_off.
24056
24057         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
24058         LLONG_MAX != LONG_MAX.
24059         (_itoa_word): Use _ITOA_WORD_TYPE on value.
24060         (_fitoa_word): Likewise.
24061
24062         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
24063         years.
24064         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
24065         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
24066         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
24067
24068         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
24069         include <bits/wordsize.h>.  Check __x86_64__ instead of
24070         __WORDSIZE.
24071         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
24072         if __x86_64__ is defined.  Use anonymous union on fpstate.
24073
24074         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
24075         anonymous union.
24076
24077 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
24078
24079         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
24080         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
24081         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
24082         Refer to _rtld_local_ro instead of _rtld_global_ro.
24083         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
24084         Likewise.
24085         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
24086         Likewise.
24087         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
24088         Likewise.
24089         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
24090         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
24091         of _rtld_global, and rtld_progname instead of _dl_argv[0].
24092
24093         * sysdeps/powerpc/powerpc32/dl-machine.c
24094         (__elf_machine_runtime_setup) [PROF]: Don't reference
24095         _dl_prof_resolve.
24096
24097 2012-05-18  Andreas Jaeger  <aj@suse.de>
24098
24099         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
24100         function only available for GCCs before 3.4 since GCC 3.4
24101         introduced a builtin.
24102         (lrint): Likewise.
24103         (llrintf): Likewise.
24104         (llrint): Likewise.
24105         (fmaxf): Likewise.
24106         (fmax): Likewise.
24107         (fminf): Likewise.
24108         (fmin): Likewise.
24109         (rint): Likewise.
24110         (rintf): Likewise.
24111         (nearbyint): Likewise.
24112         (nearbyintf): Likewise.
24113         (ceil): Likewise.
24114         (ceilf): Likewise.
24115         (floor): Likewise.
24116         (floorf): Likewise.
24117
24118 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24119
24120         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
24121         on both fields and cast pointer to __syscall_ulong_t.
24122
24123         * bits/types.h (__fsword_t): New type.
24124         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
24125         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
24126         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24127         (__FSWORD_T_TYPE): Likewise.
24128         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24129         (__FSWORD_T_TYPE): Likewise.
24130         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24131         (__FSWORD_T_TYPE): Likewise.
24132         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
24133         (__FSWORD_T_TYPE): Likewise.
24134         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
24135         __SWORD_TYPE with __fsword_t.
24136         (statfs64): Likewise.
24137
24138 2012-05-17  David S. Miller  <davem@davemloft.net>
24139
24140         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
24141
24142 2012-05-17  Andreas Jaeger  <aj@suse.de>
24143
24144         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
24145         warning.
24146
24147 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24148
24149         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
24150
24151 2012-05-17  Andreas Jaeger  <aj@suse.de>
24152
24153         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
24154         when it is used.
24155
24156 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24157
24158         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
24159
24160 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24161
24162         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
24163         * sysdeps/x86_64/tst-mallocalign1.c: New file.
24164
24165 2012-05-17  Andreas Jaeger  <aj@suse.de>
24166             Carlos O'Donell  <carlos_odonell@mentor.com>
24167
24168         [BZ #14059]
24169         * sysdeps/x86_64/multiarch/init-arch.h
24170         (bit_YMM_Usable): Rename to...
24171         (bit_AVX_Usable): ... this.
24172         (bit_FMA4_Usable): New macro.
24173         (bit_XMM_state): New macro.
24174         (bit_YMM_state): New macro.
24175         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
24176         [__ASSEMBLER__] (index_AVX_Usable): ... this.
24177         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
24178         (CPUID_OSXSAVE): New macro.
24179         (CPUID_AVX): New macro.
24180         (CPUID_FMA4): New macro.
24181         (index_YMM_Usable): Rename to...
24182         (index_AVX_Usable): ... this.
24183         (HAS_AVX): Use HAS_ARCH_FEATURE.
24184         (HAS_FMA4): Likewise.
24185         (HAS_YMM_USABLE): Remove.
24186         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24187         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
24188         are present.
24189         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
24190         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
24191         * sysdeps/x86_64/multiarch/Makefile: Likewise.
24192         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
24193         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
24194
24195 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24196
24197         * math/libm-test.c: Support platforms without multiple rounding modes.
24198         * math/bug-nextafter.c: Support platforms without FP exceptions.
24199         * math/bug-nexttoward.c: Likewise.
24200         * math/test-fenv.c: Likewise.
24201         * math/test-misc.c: Likewise.
24202         * stdlib/bug-getcontext.c: Likewise.
24203
24204 2012-05-17  Andreas Jaeger  <aj@suse.de>
24205
24206         * manual/examples/search.c (critter_cmp): Change signature to
24207         avoid warnings.
24208         * manual/string.texi (Collation Functions): Likewise.
24209
24210 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24211
24212         * bits/types.h: Fold copyright years.
24213         * bits/typesizes.h: Likewise.
24214         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
24215         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
24216         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
24217         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
24218         * time/time.h: Likewise.
24219
24220 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
24221
24222         [BZ #208]
24223         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
24224         in instead of returning them.  Return void.
24225         (__libc_mallinfo): Accumulate over all arenas.
24226         (__malloc_stats): Adjust for change in int_mallinfo interface.
24227
24228 2012-05-16  Roland McGrath  <roland@hack.frob.com>
24229
24230         [BZ #10375]
24231         * configure.in (NM): Add AC_CHECK_TOOL for it.
24232         (libc_extra_cflags): New substituted variable.
24233         Check for -fstack-protector being used implicitly.
24234         * configure: Regenerated.
24235         * config.make.in (config-extra-cflags): New variable,
24236         gets @libc_extra_cflags@.
24237         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
24238
24239         [BZ #10375]
24240         * configure.in: Check for _FORTIFY_SOURCE being predefined.
24241         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
24242         * configure: Regenerated.
24243         * config.make.in (CPPUNDEFS): New substituted variable.
24244         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
24245         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
24246         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
24247
24248 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24249
24250         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
24251         (mq_attr): Use __syscall_slong_t.
24252
24253 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24254
24255         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
24256         Check __x86_64__ instead of __WORDSIZE.
24257         (_STAT_VER_LINUX): Likewise.
24258         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
24259         __syscall_ulong_t and __syscall_slong_t.
24260         (stat64): Likewise.
24261
24262 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24263
24264         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
24265
24266 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24267
24268         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
24269
24270 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24271
24272         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
24273         __syscall_ulong_t.
24274
24275         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
24276         include <bits/wordsize.h>.  Check __x86_64__ instead of
24277         __WORDSIZE.
24278         (greg_t): Use "__extension__ long long int" if __x86_64__ is
24279         defined.
24280         (mcontext_t): Replace "unsigned long" with "unsigned long long".
24281
24282         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
24283         include <bits/wordsize.h>.  Check __x86_64__ instead of
24284         __WORDSIZE.
24285         (user_regs_struct): Use "__extension__ unsigned long long"
24286         instead of "unsigned long" if __x86_64__ is defined.
24287         (user): Likewise.  Pad after pointer field if __ILP32__ is
24288         defined.
24289
24290 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
24291
24292         * configure.in (makeinfo): Require version 4.5 or later.  Allow
24293         versions 5 to 9.
24294         * configure: Regenerated.
24295         * manual/install.texi (texinfo): Increase version requirement to
24296         4.5 or later.
24297         * INSTALL: Regenerated.
24298
24299         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
24300
24301 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24302
24303         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
24304
24305         * sysdeps/x86_64/x32/ffs.c: New file.
24306
24307         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
24308         __syscall_ulong_t.
24309         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
24310         defined.  Use __syscall_ulong_t.
24311         (shminfo): Use __syscall_ulong_t.
24312         (shm_info): Likewise.
24313
24314         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
24315         __syscall_ulong_t.
24316
24317         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
24318         <bits/wordsize.h>.
24319         (msgqnum_t): Use __syscall_ulong_t.
24320         (msglen_t): Likewise.
24321         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
24322         __syscall_ulong_t.
24323
24324         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
24325         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24326
24327         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
24328
24329         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
24330         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
24331
24332         * sysvipc/sys/msg.h (msgbuf): Replace long int with
24333         __syscall_slong_t.
24334
24335         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
24336         include <bits/wordsize.h>.  Check __x86_64__ instead of
24337         __WORDSIZE.
24338
24339         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
24340         "unsigned long long int" if __x86_64__ is defined.
24341         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
24342
24343         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
24344         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24345         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
24346
24347         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
24348         <stdint.h>.
24349         (GET_PC): Cast to uintptr_t first.
24350         (GET_FRAME): Likewise.
24351         (GET_STACK): Likewise.
24352
24353         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
24354         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
24355         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
24356         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
24357         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
24358         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
24359         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
24360         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
24361         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24362         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
24363         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
24364         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
24365         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
24366         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
24367         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
24368         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
24369         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
24370         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
24371         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
24372         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
24373         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
24374         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
24375         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
24376         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
24377         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
24378         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
24379         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
24380         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
24381         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
24382
24383 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
24384
24385         * Makerules (+depfiles): Also collect depfiles from .oS in
24386         $(extra-objs).
24387         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
24388         .oS, $(libnldbl-routines)).
24389
24390         * Makerules (native-compile-mkdep-flags): Define.
24391         * sunrpc/Makefile (extra-objs): Add $(addprefix
24392         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
24393         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
24394         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
24395         calling $(make-target-directory).
24396
24397 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24398
24399         * bits/types.h (__snseconds_t): Removed.
24400         * time/time.h (struct timespec): Replace __snseconds_t with
24401         __syscall_slong_t.
24402         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
24403         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
24404         Likewise.
24405         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24406         (__SNSECONDS_T_TYPE): Likewise.
24407         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24408         (__SNSECONDS_T_TYPE): Likewise.
24409         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24410         (__SNSECONDS_T_TYPE): Likewise.
24411
24412 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24413
24414         * sysdeps/mach/hurd/bits/typesizes.h
24415         (__SYSCALL_SLONG_TYPE): New macro.
24416         (__SYSCALL_ULONG_TYPE): Likewise.
24417
24418 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24419
24420         * bits/types.h (__syscall_slong_t): New type.
24421         (__syscall_ulong_t): Likewise.
24422
24423         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
24424         (__SYSCALL_ULONG_TYPE): Likewise.
24425         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24426         (__SYSCALL_SLONG_TYPE): Likewise.
24427         (__SYSCALL_ULONG_TYPE): Likewise.
24428         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24429         (__SYSCALL_SLONG_TYPE): Likewise.
24430         (__SYSCALL_ULONG_TYPE): Likewise.
24431         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24432         (__SYSCALL_SLONG_TYPE): Likewise.
24433         (__SYSCALL_ULONG_TYPE): Likewise.
24434
24435 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24436
24437         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
24438         Add sigaltstack-offsets.sym.
24439         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
24440         <sigaltstack-offsets.h>.
24441         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
24442         longjmp_msg pointer.
24443         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
24444         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
24445         signal stack.
24446         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
24447
24448 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24449
24450         * elf/stackguard-macros.h: Remove file.
24451         * sysdeps/generic/stackguard-macros.h: New file.
24452         * sysdeps/i386/stackguard-macros.h: Likewise.
24453         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
24454         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
24455         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
24456         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
24457         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
24458         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
24459         * sysdeps/x86_64/stackguard-macros.h: Likewise.
24460         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
24461         <elf/stackguard-macros.h>.
24462
24463         [BZ #14109]
24464         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
24465         __aligned__ in attribute.
24466         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
24467         (gregset_t): Likewise.
24468
24469 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24470
24471         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
24472         * sysdeps/x86_64/64/Implies-after: Here.  New file.
24473         * sysdeps/x86_64/x32/Implies-after: New file.
24474
24475 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24476
24477         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
24478         and access return value for _dl_profile_fixup.  Use R10_LP to
24479         load frame size.
24480
24481 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24482
24483         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
24484
24485 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24486
24487         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
24488         * sysdeps/x86_64/x32/sysdep.h: New file.
24489
24490 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24491
24492         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
24493         * sysdeps/x86_64/setjmp.S: Likewise.
24494
24495 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24496
24497         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
24498         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
24499         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
24500         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
24501         remove unused global constant.
24502
24503 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
24504
24505         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
24506         include of <not-cancel.h>.
24507
24508 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24509
24510         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
24511
24512 2012-05-15  Jeff Law  <law@redhat.com>
24513             Andreas Jaeger  <aj@suse.de>
24514
24515         [BZ #13594]
24516         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
24517         out from...
24518         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
24519         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
24520         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
24521         code changing __hst_map_handle.map.
24522
24523 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24524
24525         * configure.in (sysnames): Look for Implies-before and Implies-after
24526         files.
24527         * configure: Regenerated.
24528
24529 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24530
24531         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
24532         8-byte data alignment with LP_SIZE alignment.
24533
24534 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24535
24536         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
24537         into R10_LP.
24538
24539 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24540
24541         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
24542
24543 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24544
24545         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
24546         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
24547         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
24548         Likewise.
24549         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
24550
24551 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24552
24553         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
24554         (stackinfo_sub_sp): Likewise.
24555
24556 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24557
24558         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
24559         RAX_LP.
24560
24561 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24562
24563         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
24564         into R*_LP.
24565
24566 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24567
24568         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
24569         sizes into R*_LP.
24570
24571 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24572
24573         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
24574
24575 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24576
24577         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
24578         into R11_LP and load __x86_64_shared_cache_size_half into
24579         R8_LP.
24580
24581 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24582
24583         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
24584         R8_LP.
24585
24586 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24587
24588         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
24589         logb for POWER7.
24590         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
24591         logbf for POWER7.
24592         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
24593         logbl for POWER7.
24594         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
24595         powerpc32/power7/fpu/s_logb.c via #include.
24596         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
24597         powerpc32/power7/fpu/s_logbf.c via #include.
24598         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
24599         powerpc32/power7/fpu/s_logbl.c via #include.
24600
24601 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24602
24603         * README.libm: Remove file.
24604
24605 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24606
24607         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
24608         count for x32.  Use R*_LP and omit operand-size suffix.
24609
24610 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24611
24612         * shlib-versions: Move x86_64-.*-linux.* entries to ...
24613         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
24614         * sysdeps/x86_64/x32/shlib-versions: New file.
24615
24616 2012-05-14  Roland McGrath  <roland@hack.frob.com>
24617
24618         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
24619         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
24620         Use _dl_fatal_printf instead.
24621
24622 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24623
24624         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
24625         set if not set by the user.  Do not allow for being unset.
24626         * sysdeps/unix/sysv/linux/configure: Regenerated.
24627
24628 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24629
24630         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
24631         the `q' suffix from lea and replace .quad with ASM_ADDR.
24632
24633 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24634
24635         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
24636         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
24637         instead of $17.
24638         (PTR_DEMANGLE): Likewise.
24639
24640 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24641
24642         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
24643         (LP_OP): Likewise.
24644         (ASM_ADDR): Likewise.
24645         (RAX_LP): Likewise.
24646         (RBP_LP): Likewise.
24647         (RBX_LP): Likewise.
24648         (RCX_LP): Likewise.
24649         (RDI_LP): Likewise.
24650         (RSI_LP): Likewise.
24651         (RSP_LP): Likewise.
24652         (R8_LP): Likewise.
24653         (R9_LP): Likewise.
24654         (R10_LP): Likewise.
24655         (R10_LP): Likewise.
24656         (R11_LP): Likewise.
24657         (R12_LP): Likewise.
24658         (R13_LP): Likewise.
24659         (R14_LP): Likewise.
24660         (R15_LP): Likewise.
24661
24662 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24663
24664         * sysdeps/x86_64/x32/dl-machine.h: New file.
24665
24666 2012-05-14  Andreas Jaeger  <aj@suse.de>
24667
24668         * manual/Makefile (subdir): Remove export of subdir.
24669         (all): Remove target.
24670         (.PHONY): Remove all from list.
24671         (mkinstalldirs): Remove.
24672         (.PHONY): Remove installdirs from list.
24673         ($(inst_infodir)/libc.info): Use make-target-directory.
24674         (installdirs): Remove.
24675         (subdir_%): Remove.
24676         (glibc-targets): Remove.
24677         (lib): Remove.
24678         (stubs): Remove.
24679         ($(objpfx)stubs ../po/manual.pot): Remove.
24680         ($(objpfx)stamp%): Remove.
24681         (make-target-directory): Remove.
24682         (subdir_install): Remove.
24683         (routines): Remove.
24684         (aux): Remove.
24685         (sources): Remove.
24686         (objects): Remove.
24687         (headers): Remove.
24688
24689         [BZ #13750]
24690         * manual/.gitignore: Remove, it's not needed anymore.
24691         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
24692         all files in it.
24693         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
24694         directory.
24695         (texis): Renamed to $(objpfx)texis.
24696         (texis-path): New, contains path to generated files.
24697         (chapters.%): Use texis-path for complete path, add extra argument
24698         libc-texinfo.sh.
24699         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
24700         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
24701         (summary,texi, stamp-summary): Use complete path of
24702         files. Generate files in build dir.
24703         (dir-add.texi): Build in build dir.
24704         (libm-err.texi,stamp-libm-err): Likewise.
24705         (version.texi, stamp-version): Likewise.
24706         (.%c.texi): Likewise.
24707         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
24708         (mostlyclean): Remove target.
24709         (realclean): Remove target.
24710         (generated): Add new variable with contents from mostlyclean and
24711         realclean, remove entries duplicated in common-mostlyclean, add
24712         stamp-libm-err and stamp-version.
24713         (generated-dirs): Add libc directory.
24714         ($(inst_infodir)/libc.info): Install files from build dir.
24715
24716         * manual/install.texi (Configuring and compiling): Adjust since
24717         the info files are not part of the tar ball anymore.
24718
24719 2012-05-14  Andreas Jaeger  <aj@suse.de>
24720
24721         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
24722         variable.
24723
24724 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24725
24726         [BZ #13717]
24727         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
24728         to 2.2.0 where earlier.
24729         * sysdeps/unix/sysv/linux/configure: Regenerated.
24730         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
24731         Remove conditional code.
24732         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
24733         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
24734         Remove conditional code.
24735         [!__NR_lchown]: Likewise.
24736         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24737         [__NR_lchown]: Likewise.
24738         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
24739         comment referencing __ASSUME_LCHOWN_SYSCALL.
24740         * sysdeps/unix/sysv/linux/i386/sigaction.c
24741         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24742         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24743         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
24744         Remove conditional code.
24745         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
24746         (__protocol_available): Remove #if 0 code.
24747         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
24748         conditional code.
24749         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
24750         * sysdeps/unix/sysv/linux/kernel-features.h
24751         (__ASSUME_GETCWD_SYSCALL): Don't define.
24752         (__ASSUME_REALTIME_SIGNALS): Likewise.
24753         (__ASSUME_PREAD_SYSCALL): Likewise.
24754         (__ASSUME_PWRITE_SYSCALL): Likewise.
24755         (__ASSUME_POLL_SYSCALL): Likewise.
24756         (__ASSUME_LCHOWN_SYSCALL): Likewise.
24757         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
24758         non-SPARC.
24759         (__ASSUME_SIOCGIFNAME): Don't define.
24760         (__ASSUME_MSG_NOSIGNAL): Likewise.
24761         (__ASSUME_SENDFILE): Define unconditionally.
24762         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
24763         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
24764         conditional code.
24765         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
24766         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
24767         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24768         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24769         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
24770         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24771         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
24773         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24774         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
24776         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24777         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
24779         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24780         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
24782         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24783         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
24785         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24786         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
24788         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24789         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
24791         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24792         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
24794         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24795         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24796         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
24797         Remove conditional code.
24798         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24799         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24800         Remove conditional code.
24801         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24802         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
24803         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
24804         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24805         Remove conditional code.
24806         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24807         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
24808         Remove conditional code.
24809         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24810         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
24811         Remove conditional code.
24812         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24813         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24814         Remove conditional code.
24815         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24816         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24817         Remove conditional code.
24818         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24819         * sysdeps/unix/sysv/linux/sh/pwrite64.c
24820         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24821         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24822         * sysdeps/unix/sysv/linux/sigaction.c
24823         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24824         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24825         * sysdeps/unix/sysv/linux/sigpending.c
24826         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24827         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24828         * sysdeps/unix/sysv/linux/sigprocmask.c
24829         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24830         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24831         * sysdeps/unix/sysv/linux/sigsuspend.c
24832         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24833         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24834         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
24835         (__libc_missing_rt_sigs): Remove.
24836         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
24837         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
24838         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
24839         Remove conditional code.
24840         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
24841         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
24842         return 1.
24843         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
24844         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
24845         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
24846         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
24847
24848 2012-05-14  Andreas Jaeger  <aj@suse.de>
24849
24850         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
24851         it's not used in glibc.
24852         (__coshm1): Likewise.
24853         (__acosh1p): Likewise.
24854         (__sgn): Likewise.
24855
24856         * manual/string.texi (Copying and Concatenation): Add missing
24857         variable in concat example.
24858         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
24859
24860 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24861
24862         [BZ #14103]
24863         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
24864         __builtin_clzl with __builtin_clzll.
24865
24866 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24867
24868         [BZ #14104]
24869         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
24870         libc_freeres_ptr.
24871
24872 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24873
24874         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
24875         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
24876         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
24877         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
24878
24879 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
24880
24881         * NEWS: Update ia64 info.
24882
24883 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
24884
24885         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
24886         used as bcopy.
24887
24888 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
24889
24890         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
24891         * sysdeps/unix/syscalls.list (dup3): Likewise.
24892         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
24893         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
24894
24895 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24896
24897         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
24898         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
24899
24900 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24901
24902         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
24903         thread pointer.
24904         (TLS_IE): Use mov/add instead of movq/addq to load thread
24905         pointer.
24906         (TLS_GD_PREFIX): New.
24907         (TLS_GD): Use it.
24908
24909 2012-05-11  David S. Miller  <davem@davemloft.net>
24910
24911         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
24912         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
24913         (_FPU_SETCW): Likewise.
24914
24915 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24916
24917         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
24918         is 32-byte aligned.
24919
24920 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
24921
24922         [BZ #11837]
24923         * iconvdata/gb18030.c: Update tables.
24924         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
24925         characters specially.
24926         (BODY for TO_LOOP): Add encoding of missing ranges.
24927
24928 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
24929
24930         [BZ #13673]
24931         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
24932         * sysdeps/mach/hurd/dup3.c: Likewise.
24933         * sysdeps/mach/hurd/readlinkat.c: Likewise.
24934         * sysdeps/powerpc/memmove.c:: Likewise.
24935
24936 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24937
24938         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
24939         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
24940
24941 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24942
24943         * elf/elf.h (R_X86_64_RELATIVE64): New.
24944         (R_X86_64_NUM): Updated.
24945         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
24946         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
24947         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
24948         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
24949         tst-quad1pie tst-quad2pie
24950         (modules-names): Add tst-quadmod1 tst-quadmod2.
24951         ($(objpfx)tst-quad1): New dependency.
24952         ($(objpfx)tst-quad2): Likewise.
24953         ($(objpfx)tst-quad1pie): Likewise.
24954         ($(objpfx)tst-quad2pie): Likewise.
24955         * sysdeps/x86_64/tst-quad1.c: New file.
24956         * sysdeps/x86_64/tst-quad1pie.c: New file.
24957         * sysdeps/x86_64/tst-quad2.c: Likewise.
24958         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
24959         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
24960         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
24961         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
24962         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
24963
24964 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24965
24966         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
24967         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
24968         * streams/stropts.h (t_scalar_t): Define type.
24969
24970         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
24971         (_PATH_PRESERVE): Set to "/var/lib".
24972         (_PATH_RWHODIR): Set to "/var/spool/rwho".
24973
24974         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
24975         instead of int.
24976
24977         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
24978         if __dir_mkfile succeeded.
24979
24980         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
24981         checking for _hurd_dtablesize.  Unlock it right after having
24982         finished _hurd_dtable allocation.
24983
24984 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24985
24986         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
24987         * sysdeps/mach/hurd/configure: Regenerated.
24988         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
24989         special-casing to...
24990         * sysdeps/gnu/configure.in: ... this new file.
24991         * sysdeps/unix/sysv/linux/configure: Regenerated.
24992         * sysdeps/gnu/configure: New generated file.
24993
24994         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
24995         for Linux: use nsec instead of usec, as well as:
24996         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
24997         members of type struct timespec.
24998         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
24999         New macros.
25000         (struct stat64): Likewise.
25001         (_STATBUF_ST_NSEC): New macro.
25002         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
25003
25004         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
25005         __strtoul_internal rather than strtoul.
25006
25007 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25008
25009         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
25010         and reject them.
25011
25012 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25013
25014         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
25015         which preserves existing values.
25016         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
25017
25018 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25019
25020         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
25021         TIMEOUT values.  Return EINVAL for NFDS values either negative or
25022         greater than FD_SETSIZE.
25023
25024 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25025
25026         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
25027         allocated, call __vm_protect to finish enabling the existing space, and
25028         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
25029         allocate the remainder.
25030
25031 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25032
25033         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
25034         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
25035
25036 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25037
25038         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
25039         sysdeps/mach/hurd/readlink.c.
25040
25041         * posix/tst-sysconf.c (posix_options): Only use
25042         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
25043         _POSIX_SYNCHRONIZED_IO when they are defined
25044         * sysdeps/mach/hurd/bits/posix_opt.h:
25045         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
25046         (_XOPEN_REALTIME): Undefine macro.
25047         (_XOPEN_REALTIME_THREADS): Undefine macro.
25048         (_XOPEN_SHM): Undefine macro.
25049         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
25050         macro to -1.
25051         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
25052         macro to -1.
25053         (_POSIX_ASYNC_IO): Undefine macro.
25054         (_POSIX_PRIORITIZED_IO): Undefine macro.
25055         (_POSIX_SPIN_LOCKS): Define macro to -1.
25056
25057         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
25058         SA_NODEFER, SA_RESETHAND.
25059         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
25060         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
25061         F_DUPFD_CLOEXEC.
25062
25063 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25064
25065         * elf/Makefile (pldd-modules): Define unconditionally.
25066
25067 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25068
25069         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
25070
25071 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25072
25073         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
25074         Return ENOENT when name is empty.
25075         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
25076
25077 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25078
25079         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
25080
25081         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
25082
25083 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25084
25085         Fix mlock in all cases except non-readable pages.
25086         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
25087         instead of VM_PROT_ALL as parameter to __vm_wire function.
25088
25089         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
25090         (__mkdir): When path is `/', just fail with EEXIST.
25091         * sysdeps/mach/hurd/mkdirat.c: Likewise.
25092
25093 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25094
25095         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
25096         <sys/uio.h> (for writev).
25097         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
25098         and <sys/param.h> (for MIN).
25099
25100 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25101
25102         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
25103         REQUESTED_TIME.  Properly set the remaining time and return EINTR
25104         if interrupted.
25105
25106 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25107
25108         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
25109         Depend on against $(link-rpcuserlibs).
25110
25111 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25112
25113         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
25114         (__libc_stack_end): Do not use attribute_relro.
25115         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
25116         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
25117         to libthread-provided value.
25118         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
25119         attribute_relro.
25120
25121 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25122
25123         [BZ #3748]
25124         * bits/libc-lock.h (__libc_once_get): New macro.
25125         * sysdeps/mach/bits/libc-lock.h: Likewise.
25126         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
25127         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
25128         instead of using implementation details.
25129
25130         * libio/fileops.c: Unconditionally include <kernel-features.h>.
25131         * libio/freopen.c: Likewise.
25132         * libio/freopen64.c: Likewise.
25133         * misc/syslog.c: Likewise.
25134         * nscd/connections.c: Likewise.
25135         * nscd/netgroupcache.c: Likewise.
25136         * sysdeps/posix/getcwd.c: Likewise.
25137
25138 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25139
25140         * math/w_ilogbf.c: Add #include <limits.h>.
25141
25142 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25143
25144         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
25145         path instead of returning without unlocking.
25146
25147         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
25148         immediate-write ioctls.
25149         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
25150
25151 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25152
25153         * sysdeps/mach/hurd/i386/init-first.c (init): Use
25154         __builtin_frame_address instead of making assumptions about the
25155         location of the return address relative to DATA.  Force early load of
25156         the return address.
25157         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
25158         __builtin_frame_address.
25159
25160         dup3 for GNU Hurd.
25161         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
25162         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
25163         implement dup3 and do some further code clean-ups.
25164         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
25165         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
25166
25167 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25168
25169         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
25170
25171         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
25172         HURD_CRITICAL_END around holding _hurd_dtable_lock.
25173         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
25174         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
25175         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
25176         d->port.lock.
25177
25178         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
25179         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
25180         when handler == SIG_ERR, not when handler != SIG_ERR.
25181
25182 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25183
25184         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
25185         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
25186         definitions.
25187
25188         accept4 for GNU Hurd.
25189         * include/sys/socket.h (__libc_accept4): New prototype.
25190         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
25191         to implement __libc_accept4.
25192         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
25193         __libc_accept4.
25194         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
25195
25196         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
25197         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
25198         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
25199         signal-defines.sym.
25200
25201 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25202
25203         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
25204
25205 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25206
25207         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
25208         assertion on O_CLOEXEC flag.
25209         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
25210         * hurd/intern-fd.c: Likewise.
25211         * hurd/port2fd.c: Likewise.
25212
25213 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25214
25215         [BZ #3906]
25216         * bits/in.h (IPV6_PKTINFO): Define new macro.
25217         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
25218
25219 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25220
25221         [BZ #13954]
25222         [BZ #13955]
25223         [BZ #13956]
25224         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
25225         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
25226         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
25227         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
25228         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
25229         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
25230         * math/libm-test.inc (logb_test) : Additional logb tests.
25231
25232 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
25233             Andreas Jaeger  <aj@suse.de>
25234
25235         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
25236         * configure: Regenerated.
25237         * config.h.in (LINK_OBSOLETE_RPC): New macro.
25238         * config.make.in (link-obsolete-rpc): New substituted variable.
25239         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
25240         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
25241         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25242         (shared-only-routines): Don't set it under [link-obsolete-rpc],
25243         so that libc.a contains the symbols.
25244         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25245         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
25246         * sunrpc/auth_none.c: Likewise.
25247         * sunrpc/auth_unix.c: Likewise.
25248         * sunrpc/authdes_prot.c: Likewise.
25249         * sunrpc/authuxprot.c: Likewise.
25250         * sunrpc/clnt_gen.c: Likewise.
25251         * sunrpc/clnt_perr.c: Likewise.
25252         * sunrpc/clnt_raw.c: Likewise.
25253         * sunrpc/clnt_simp.c: Likewise.
25254         * sunrpc/clnt_tcp.c: Likewise.
25255         * sunrpc/clnt_udp.c: Likewise.
25256         * sunrpc/clnt_unix.c: Likewise.
25257         * sunrpc/des_crypt.c: Likewise.
25258         * sunrpc/des_soft.c: Likewise.
25259         * sunrpc/get_myaddr.c: Likewise.
25260         * sunrpc/key_call.c: Likewise.
25261         * sunrpc/key_prot.c: Likewise.
25262         * sunrpc/netname.c: Likewise.
25263         * sunrpc/pm_getmaps.c: Likewise.
25264         * sunrpc/pm_getport.c: Likewise.
25265         * sunrpc/pmap_clnt.c: Likewise.
25266         * sunrpc/pmap_prot.c: Likewise.
25267         * sunrpc/pmap_prot2.c: Likewise.
25268         * sunrpc/pmap_rmt.c: Likewise.
25269         * sunrpc/publickey.c: Likewise.
25270         * sunrpc/rpc_cmsg.c: Likewise.
25271         * sunrpc/rpc_common.c: Likewise.
25272         * sunrpc/rpc_dtable.c: Likewise.
25273         * sunrpc/rpc_prot.c: Likewise.
25274         * sunrpc/rpc_thread.c: Likewise.
25275         * sunrpc/rtime.c: Likewise.
25276         * sunrpc/svc.c: Likewise.
25277         * sunrpc/svc_auth.c: Likewise.
25278         * sunrpc/svc_raw.c: Likewise.
25279         * sunrpc/svc_run.c: Likewise.
25280         * sunrpc/svc_tcp.c: Likewise.
25281         * sunrpc/svc_udp.c: Likewise.
25282         * sunrpc/svc_unix.c: Likewise.
25283         * sunrpc/svcauth_des.c: Likewise.
25284         * sunrpc/xcrypt.c: Likewise.
25285         * sunrpc/xdr.c: Likewise.
25286         * sunrpc/xdr_array.c: Likewise.
25287         * sunrpc/xdr_float.c: Likewise.
25288         * sunrpc/xdr_intXX_t.c: Likewise.
25289         * sunrpc/xdr_mem.c: Likewise.
25290         * sunrpc/xdr_rec.c: Likewise.
25291         * sunrpc/xdr_ref.c: Likewise.
25292         * sunrpc/xdr_sizeof.c: Likewise.
25293         * sunrpc/xdr_stdio.c: Likewise.
25294
25295 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25296
25297         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
25298         change.  Update copyright years.
25299
25300 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25301
25302         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
25303
25304 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
25305             Joseph Myers  <joseph@codesourcery.com>
25306             Paul Pluzhnikov  <ppluzhnikov@google.com>
25307
25308         [BZ #14012]
25309         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
25310         requiring rpcgen.
25311         [cross-compiling] (extra-libs): Likewise.
25312         [cross-compiling] (extra-libs-others): Likewise.
25313         [cross-compiling] (librpcsvc-routines): Likewise.
25314         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
25315         [cross-compiling] (omit-deps): Likewise.
25316         (sunrpc-CPPFLAGS): New variable.
25317         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
25318         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
25319         (cross-rpcgen-objs): New variable.
25320         (extra-objs): Append $(cross-rpcgen-objs).
25321         ($(cross-rpcgen-objs)): New rule.
25322         ($(objpfx)cross-rpcgen): Likewise.
25323         (rpcgen-cmd): Define to use $(built-program-file).  Expand
25324         comment.
25325         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
25326         ($(objpfx)x%.stmp): Likewise.
25327         * sunrpc/proto.h [IS_IN_build] (_): Define.
25328         [IS_IN_build] (_libc_intl_domainname): Likewise.
25329
25330 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25331
25332         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
25333         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
25334         and R_X86_64_TPOFF64.
25335
25336 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25337
25338         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
25339         sysdeps/unix/sysv/syscalls.list.
25340         (stime): Likewise.
25341         (utime): Likewise.
25342         * sysdeps/unix/sysv/syscalls.list: Remove file.
25343
25344 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25345
25346         [BZ #3440]
25347         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
25348         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
25349         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
25350         (__LC_IDENTIFICATION): Make these macros useful in #if
25351         expressions, as required by C99.
25352
25353 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
25354
25355         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
25356         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
25357         after this.
25358
25359 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25360
25361         * stdlib/longlong.h: Updated from GCC.
25362
25363 2012-05-09  Andreas Jaeger  <aj@suse.de>
25364
25365         * nscd/nscd.c (run_modes): Make named enum, reorder so that
25366         default is first entry.
25367         (run_mode): Set type.
25368         (main): Remove informal message about syslog.
25369         (options): Fix typo.
25370
25371         [BZ #14053]
25372         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
25373         to asm.
25374         (lrint): Likewise.
25375         (llrintf): Likewise.
25376         (llrint): Likewise.
25377         (rint): Likewise.
25378         (rintf): Likewise.
25379         (nearbyint): Likewise.
25380         (nearbyintf): Likewise.
25381
25382 2012-05-09  Andreas Jaeger  <aj@suse.de>
25383             Pedro Alves  <palves@redhat.com>
25384
25385         * nscd/nscd.c (run_mode): Use enum.
25386         (main): Cleanup coding style issue.
25387
25388 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
25389             Andreas Jaeger  <aj@suse.de>
25390
25391         * nscd/nscd.c (go_background): Replaced with...
25392         (run_mode): ... this.
25393         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
25394         (options): Add -F --foreground.
25395         (main): Implement it.
25396         (parse_opt): Parse it.
25397
25398 2012-05-09  Andreas Jaeger  <aj@suse.de>
25399
25400         [BZ #14083]
25401         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
25402         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
25403         -Wconversion warning.
25404         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
25405         Likewise.
25406
25407 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
25408
25409         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
25410         == 0.
25411         (LC_ALL): Use macro-int-constant.
25412         (LC_COLLATE): Likewise.
25413         (LC_CTYPE): Likewise.
25414         (LC_MESSAGES): Likewise.
25415         (LC_MONETARY): Likewise.
25416         (LC_NUMERIC): Likewise.
25417         (LC_TIME): Likewise.
25418         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
25419         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25420         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25421         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
25422         Specify type.
25423         [C99-based standards] (float_t): Expect type.
25424         [C99-based standards] (double_t): Expect type.
25425         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
25426         type.
25427         [C99-based standards] (HUGE_VALL): Likewise.
25428         [C99-based standards] (INFINITY): Likewise.
25429         [C99-based standards] (NAN): Likewise.
25430         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
25431         [C99-based standards] (FP_NAN): Likewise.
25432         [C99-based standards] (FP_NORMAL): Likewise.
25433         [C99-based standards] (FP_SUBNORMAL): Likewise.
25434         [C99-based standards] (FP_ZERO): Likewise.
25435         [C99-based standards] (FP_FAST_FMA): Use
25436         optional-macro-int-constant.  Specify type.  Require == 1.
25437         [C99-based standards] (FP_FAST_FMAF): Likewise.
25438         [C99-based standards] (FP_FAST_FMAL): Likewise.
25439         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
25440         [C99-based standards] (FP_ILOGBNAN): Likewise.
25441         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
25442         Specify type.
25443         [C99-based standards] (MATH_ERREXCEPT): Likewise.
25444         [C99-based standards] (math_errhandling): Specify type.
25445         [ISO99 || ISO11] (signgam): Do not allow.
25446         [non-C99-based standards] (copysignf): Do not allow.
25447         [non-C99-based standards] (exp2f): Likewise.
25448         [non-C99-based standards] (log2f): Likewise.
25449         [non-C99-based standards] (modff): Allow.
25450         [non-C99-based standards] (erff): Do not allow.
25451         [non-C99-based standards] (erfcf): Likewise.
25452         [non-C99-based standards] (gammaf): Likewise.
25453         [non-C99-based standards] (hypotf): Likewise.
25454         [non-C99-based standards] (j0f): Likewise.
25455         [non-C99-based standards] (j1f): Likewise.
25456         [non-C99-based standards] (jnf): Likewise.
25457         [non-C99-based standards] (lgammaf): Likewise.
25458         [non-C99-based standards] (tgammaf): Likewise.
25459         [non-C99-based standards] (y0f): Likewise.
25460         [non-C99-based standards] (y1f): Likewise.
25461         [non-C99-based standards] (ynf): Likewise.
25462         [non-C99-based standards] (isnanf): Likewise.
25463         [non-C99-based standards] (acoshf): Likewise.
25464         [non-C99-based standards] (asinhf): Likewise.
25465         [non-C99-based standards] (atanhf): Likewise.
25466         [non-C99-based standards] (cbrtf): Likewise.
25467         [non-C99-based standards] (expm1f): Likewise.
25468         [non-C99-based standards] (ilogbf): Likewise.
25469         [non-C99-based standards] (log1pf): Likewise.
25470         [non-C99-based standards] (logbf): Likewise.
25471         [non-C99-based standards] (nextafterf): Likewise.
25472         [non-C99-based standards] (remainderf): Likewise.
25473         [non-C99-based standards] (rintf): Likewise.
25474         [non-C99-based standards] (scalbf): Likewise.
25475         [non-C99-based standards] (copysignl): Likewise.
25476         [non-C99-based standards] (exp2l): Likewise.
25477         [non-C99-based standards] (log2l): Likewise.
25478         [non-C99-based standards] (modfl): Allow.
25479         [non-C99-based standards] (erfl): Do not allow.
25480         [non-C99-based standards] (erfcl): Likewise.
25481         [non-C99-based standards] (gammal): Likewise.
25482         [non-C99-based standards] (hypotl): Likewise.
25483         [non-C99-based standards] (j0l): Likewise.
25484         [non-C99-based standards] (j1l): Likewise.
25485         [non-C99-based standards] (jnl): Likewise.
25486         [non-C99-based standards] (lgammal): Likewise.
25487         [non-C99-based standards] (tgammal): Likewise.
25488         [non-C99-based standards] (y0l): Likewise.
25489         [non-C99-based standards] (y1l): Likewise.
25490         [non-C99-based standards] (ynl): Likewise.
25491         [non-C99-based standards] (isnanl): Likewise.
25492         [non-C99-based standards] (acoshl): Likewise.
25493         [non-C99-based standards] (asinhl): Likewise.
25494         [non-C99-based standards] (atanhl): Likewise.
25495         [non-C99-based standards] (cbrtl): Likewise.
25496         [non-C99-based standards] (expm1l): Likewise.
25497         [non-C99-based standards] (ilogbl): Likewise.
25498         [non-C99-based standards] (log1pl): Likewise.
25499         [non-C99-based standards] (logbl): Likewise.
25500         [non-C99-based standards] (nextafterl): Likewise.
25501         [non-C99-based standards] (remainderl): Likewise.
25502         [non-C99-based standards] (rintl): Likewise.
25503         [non-C99-based standards] (scalbl): Likewise.
25504         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25505         [non-C99-based standards] (FP_*): Do not allow.
25506         [C99-based standards] (FP_*): Change to
25507         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25508         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25509         allow.
25510         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
25511         (SIG_ERR): Likewise.
25512         [X/Open-based standards] (SIG_HOLD): Likewise.
25513         (SIG_IGN): Likewise.
25514         (SIGABRT): Use macro-int-constant.  Specify type.  Require
25515         positive value.
25516         (SIGFPE): Likewise.
25517         (SIGILL): Likewise.
25518         (SIGINT): Likewise.
25519         (SIGSEGV): Likewise.
25520         (SIGTER): Likewise.
25521         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
25522         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
25523         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
25524         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
25525         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
25526         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
25527         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
25528         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
25529         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
25530         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
25531         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
25532         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
25533         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
25534         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
25535         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
25536         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
25537         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
25538         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
25539         [X/Open-based standards] (SIGTRAP): Likewise.
25540         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
25541         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
25542         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
25543         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
25544         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25545         allow.
25546
25547 2012-05-08  Ian Wienand  <ianw@vmware.com>
25548
25549         [BZ #14080]
25550         * time/tzset.c (__tzset_parse_tz): Update default rules for
25551         daylight time changes in the Energy Policy Act of 2005.
25552
25553 2012-05-09  Andreas Jaeger  <aj@suse.de>
25554
25555         [BZ #13983]
25556         * elf/ldconfig.c (parse_conf): Change string to make clear that
25557         ldconfig only issued a warning if ld.so.conf does not exist.
25558
25559 2012-05-08  David S. Miller  <davem@davemloft.net>
25560
25561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
25562         movxtod instead of popping the value on the stack.
25563
25564         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25565
25566 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
25567
25568         * config.h.in: Add HAVE_ARM_PCS_VFP.
25569
25570 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
25571
25572         [BZ #13979]
25573         * include/features.h: Warn if user requests __FORTIFY_SOURCE
25574         checking but the checks are disabled for any reason.
25575
25576 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
25577
25578         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
25579         and ELF64_R_TYPE with ELFW(R_TYPE).
25580
25581 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
25582
25583         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
25584         (ulimit): Likewise.
25585
25586         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
25587         (settimeofday): Likewise.
25588
25589 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
25590
25591         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
25592         a struct th_u2 inside the union, and move tu_block/tu_code into
25593         a new th_u3 union of tu_block/tu_code inside of that.  Move
25594         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
25595         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
25596         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
25597         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
25598         (th_stuff): Change to th_u1.tu_stuff.
25599         (th_data): Define.
25600         (th_msg): Change to th_u1.th_u2.tu_data.
25601
25602 2012-05-07  David S. Miller  <davem@davemloft.net>
25603
25604         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25605
25606         [BZ #14074]
25607         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
25608         (SETUP_PIC_REG): Use it.
25609         (SETUP_PIC_REG_LEAF): Use it.
25610
25611 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
25612
25613         [BZ #13885]
25614         [BZ #13923]
25615         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25616         USE_AS_EXPM1L.
25617         (EXPL_FINITE): Likewise.
25618         (FLDLOG): Likewise.
25619         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25620         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25621         e_expl.S.
25622         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25623         USE_AS_EXPM1L.
25624         (EXPL_FINITE): Likewise.
25625         (FLDLOG): Likewise.
25626         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25627         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25628         e_expl.S.
25629         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
25630         test of -max_value argument for long double.
25631         * sysdeps/i386/fpu/libm-test-ulps: Update.
25632         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25633
25634 2012-05-06  David S. Miller  <davem@davemloft.net>
25635
25636         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
25637         quad soft-float symbols whose references which are compiler
25638         generated.
25639         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25640
25641 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
25642
25643         [BZ #13884]
25644         [BZ #13914]
25645         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25646         USE_AS_EXP10L.
25647         (EXPL_FINITE): Likewise.
25648         (FLDLOG): Likewise.
25649         (c0): Likewise.
25650         (c1): Likewise.
25651         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25652         Adjust comments for base varying.
25653         (__expl_finite): Change alias to EXPL_FINITE.
25654         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
25655         e_expl.S.
25656         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
25657         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
25658         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
25659         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
25660         * sysdeps/x86_64/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         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
25670         tests for bugs.
25671         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25672
25673         [BZ #14064]
25674         * math/libm-test.inc (check_float_internal): Correct ulp
25675         calculation for subnormal expected results.
25676
25677 2012-05-06  Andreas Jaeger  <aj@suse.de>
25678
25679         * Makeconfig (+math-flags): New, set to -frounding-math.
25680         (+cflags): Add +math-flags so that all of glibc gets compiled with
25681         it.
25682
25683         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
25684
25685 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
25686
25687         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
25688         Disable one test.
25689
25690         [BZ #13787]
25691         [BZ #13922]
25692         [BZ #14036]
25693         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
25694         (__ieee754_expl): Allow for and saturate large arguments.
25695         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
25696         (u_threshold): Likewise.
25697         (__exp): Call __ieee754_exp before checking for overflow and
25698         underflow.
25699         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
25700         (u_threshold): Likewise.
25701         (__expf): Call __ieee754_expf before checking for overflow and
25702         underflow.
25703         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
25704         (u_threshold): Likewise.
25705         (__expl): Call __ieee754_expl before checking for overflow and
25706         underflow.
25707         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
25708         (__ieee754_expl): Allow for and saturate large arguments.
25709         * math/libm-test.inc (exp_test): Add another test.  Do not allow
25710         missing overflow exception on overflow.
25711         (expm1_test): Do not allow missing overflow exception on overflow.
25712
25713         * sysdeps/i386/fpu/e_expl.c: Move to ...
25714         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
25715         rather than using inline asm.
25716         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
25717         * sysdeps/x86_64/fpu/e_expl.S: Copy from
25718         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
25719
25720         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
25721         (nice): Likewise.
25722         (poll): Likewise.
25723         (signal): Likewise.
25724         (time): Likewise.
25725         (times): Likewise.
25726
25727 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25728
25729         * sysdeps/unix/syscalls.list (adjtime): Add entry from
25730         sysdeps/unix/common/syscalls.list.
25731         (fchmod): Likewise.
25732         (fchown): Likewise.
25733         (ftruncate): Likewise.
25734         (getrusage): Likewise.
25735         (gettimeofday): Likewise.
25736         (setpgid): Likewise.
25737         (setregid): Likewise.
25738         (setreuid): Likewise.
25739         (sigaction): Likewise.
25740         (truncate): Likewise.
25741         (vhangup): Likewise.
25742         * sysdeps/unix/common/syscalls.list: Remove file.
25743         * sysdeps/unix/bsd/Implies: Don't include unix/common.
25744         * sysdeps/unix/sysv/linux/Implies: Likewise.
25745
25746 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
25747
25748         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
25749         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
25750         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
25751         Moved to ...
25752         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
25753         Here.
25754         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
25755         to ...
25756         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
25757         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
25758         to ...
25759         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
25760         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
25761         to ...
25762         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
25763         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
25764         to ...
25765         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
25766         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
25767         to ...
25768         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
25769         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
25770         to ...
25771         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
25772         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
25773         to ...
25774         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
25775         Here.
25776         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
25777         to ...
25778         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
25779         Here.
25780         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
25781         to ...
25782         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
25783         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
25784         Moved to ...
25785         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
25786         Here.
25787         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
25788         to ...
25789         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
25790
25791 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25792
25793         * sysdeps/unix/common/bits/dirent.h: Remove file.
25794         * sysdeps/unix/common/bits/fcntl.h: Likewise.
25795
25796         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
25797         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
25798         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
25799         * sysdeps/unix/bsd/isatty.c: Likewise.
25800         * sysdeps/unix/bsd/tcdrain.c: Likewise.
25801         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
25802         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
25803
25804 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25805
25806         [BZ #13563]
25807         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
25808         long double comparison inaccuracies.
25809         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
25810         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25811
25812 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
25813
25814         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
25815         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
25816
25817 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25818
25819         [BZ #14049]
25820         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
25821         nonzero digits before rounding a hex value.
25822         * stdlib/tst-strtod.c (tests): Add another test.
25823
25824 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25825
25826         * sysdeps/s390/fpu/libm-test-ulps: Update.
25827
25828 2012-05-03  Andreas Jaeger  <aj@suse.de>
25829
25830         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
25831         does not get optimized out.
25832         (malloc_opt_barrier): New.
25833
25834 2012-05-03  Andreas Jaeger  <aj@suse.de>
25835             Roland McGrath  <roland@hack.frob.com>
25836
25837         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
25838         intermediate file deletion.
25839         (generated): Add .symlist files.
25840
25841 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
25842
25843         [BZ #13775]
25844         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
25845         Redirect under this condition.
25846         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25847         [__USE_GNU] (__dprintf_chk): Not under this condition.
25848         [__USE_GNU] (__vdprintf_chk): Likewise.
25849         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
25850         under this condition.
25851         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25852         [__USE_XOPEN2K8] (dprintf): Define under this condition.
25853         [__USE_XOPEN2K8] (vdprintf): Likewise.
25854         [__USE_GNU] (__dprintf_chk): Not under this condition.
25855         [__USE_GNU] (__vdprintf_chk): Likewise.
25856         [__USE_GNU] (dprintf): Likewise.
25857         [__USE_GNU] (vdprintf): Likewise.
25858
25859 2012-05-03  Roland McGrath  <roland@hack.frob.com>
25860
25861         * elf/Makefile (common-generated): Set this instead of generated for
25862         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
25863         $(all-built-dso)-derived lists.
25864
25865 2012-05-03  Andreas Jaeger  <aj@suse.de>
25866
25867         * sysdeps/i386/fpu/libm-test-ulps: Update.
25868
25869         * FAQ: Removed.
25870         * FAQ.in: Likewise.
25871         * scripts/gen-FAQ.pl: Likewise.
25872         * manual/install.texi (Installation): Point to online location of
25873         FAQ.
25874         * Makefile (files-for-dist): Remove FAQ.
25875         (FAQ): Remove.
25876
25877 2012-05-02  Allan McRae  <allan@archlinux.org>
25878
25879         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
25880         (LDFLAGS-reldepmod5.so): Likewise.
25881         (LDFLAGS-reldep6mod1.so): Likewise.
25882         (LDFLAGS-reldep6mod4.so): Likewise.
25883         (LDFLAGS-reldep8mod3.so): Likewise.
25884         (LDFLAGS-unload4mod1.so): Likewise.
25885         (LDFLAGS-unload4mod2.so): Likewise.
25886         (LDFLAGS-tst-initorder): Likewise.
25887         (LDFLAGS-tst-initordera2.so): Likewise.
25888         (LDFLAGS-tst-initordera3.so): Likewise.
25889         (LDFLAGS-tst-initordera4.so): Likewise.
25890         (LDFLAGS-tst-initorderb2.so): Likewise.
25891         (LDFLAGS-noload): Likewise.
25892         (LDFLAGS-next): Likewise.
25893         (LDFLAGS-order2mod1.so): Likewise.
25894         (LDFLAGS-order2mod2.so): Likewise.
25895         (LDFLAGS-tst-initorder2): Likewise.
25896         (LDFLAGS-tst-initorder2a.so): Likewise.
25897         (LDFLAGS-tst-initorder2b.so): Likewise.
25898         (LDFLAGS-tst-initorder2c.so): Likewise.
25899         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
25900
25901 2012-05-02  David S. Miller  <davem@davemloft.net>
25902
25903         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25904
25905 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
25906
25907         [BZ #14055]
25908         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
25909
25910 2012-05-02  Andreas Jaeger  <aj@suse.de>
25911
25912         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
25913         since we manipulate rounding mode.
25914         (CPPFLAGS-test-idouble.c): Likewise.
25915         (CPPFLAGS-test-ifloat.c): Likewise.
25916         (CFLAGS-test-ldouble.c): Likewise.
25917         (CFLAGS-test-double.c): Likewise.
25918         (CFLAGS-test-float.c): Likewise.
25919         (CFLAGS-test-misc.c): Likewise.
25920         (CFLAGS-test-test-fenv.c): Likewise.
25921
25922 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25923
25924         [BZ #2550]
25925         [BZ #2570]
25926         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
25927         comparisons to determine direction to adjust input.
25928
25929 2012-05-01  Roland McGrath  <roland@hack.frob.com>
25930
25931         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
25932         output to the target.
25933
25934         * scripts/localplt.awk: New file.
25935         * elf/Makefile ($(objpfx)check-localplt): Target removed.
25936         (check-localplt-CFLAGS): Variable removed.
25937         ($(all-built-dso:=.jmprel)): New static pattern rule.
25938         (generated): Add those targets.
25939         (localplt-built-dso): New variable.
25940         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
25941
25942         * elf/check-localplt.c: File removed.
25943
25944         * scripts/check-execstack.awk: New file.
25945         * elf/Makefile ($(objpfx)check-execstack): Target removed.
25946         (check-execstack-CFLAGS): Variable removed.
25947         ($(objpfx)check-execstack.h): Target removed.
25948         ($(objpfx)execstack-default): New target.
25949         (generated): Add that instead of check-execstack.h.
25950         ($(all-built-dso:=.phdr)): New static pattern rule.
25951         (generated): Add those targets.
25952         * elf/check-execstack.c: File removed.
25953
25954         * scripts/check-textrel.awk: New file.
25955         * elf/Makefile ($(objpfx)check-textrel): Target removed.
25956         (check-textrel-CFLAGS): Variable removed.
25957         (all-built-dso): Use := to define.o
25958         ($(all-built-dso:=.dyn)): New static pattern rule.
25959         (generated): Add those targets.
25960         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
25961         * config.make.in (READELF): New substituted variable.
25962         * elf/check-textrel.c: File removed.
25963
25964 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25965
25966         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25967         allow.
25968         * conform/data/ctype.h-data [C99-based standards] (isblank):
25969         Expect function.
25970         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
25971         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
25972         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25973         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
25974         Specify type.  Require positive value.
25975         (EILSEQ): Likewise.
25976         (ERANGE): Likewise.
25977         [ISO || POSIX] (EILSEQ): Do not expect.
25978         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
25979         Specify type.  Require positive value.
25980         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
25981         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
25982         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
25983         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
25984         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
25985         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
25986         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
25987         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
25988         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
25989         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
25990         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
25991         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
25992         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
25993         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
25994         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
25995         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
25996         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
25997         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
25998         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
25999         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
26000         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
26001         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
26002         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
26003         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
26004         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
26005         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
26006         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
26007         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
26008         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
26009         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
26010         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
26011         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
26012         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
26013         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
26014         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
26015         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
26016         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
26017         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
26018         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
26019         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
26020         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
26021         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
26022         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
26023         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
26024         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
26025         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
26026         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
26027         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
26028         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
26029         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
26030         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
26031         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
26032         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
26033         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
26034         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
26035         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
26036         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
26037         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
26038         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
26039         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
26040         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
26041         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
26042         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
26043         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
26044         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
26045         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
26046         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
26047         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
26048         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
26049         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
26050         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
26051         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
26052         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
26053         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
26054         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
26055         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
26056         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
26057         Require >= 2.
26058         (FLT_ROUNDS): Expect as macro, not constant.
26059         (FLT_MANT_DIG): Use macro-int-constant.
26060         (DBL_MANT_DIG): Likewise.
26061         (LDBL_MANT_DIG): Likewise.
26062         (FLT_DIG): Likewise.
26063         (DBL_DIG): Likewise.
26064         (LDBL_DIG): Likewise.
26065         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
26066         (DBL_MIN_EXP): Likewise.
26067         (LDBL_MIN_EXP): Likewise.
26068         (FLT_MAX_EXP): Use macro-int-constant.
26069         (DBL_MAX_EXP): Likewise.
26070         (LDBL_MAX_EXP): Likewise.
26071         (FLT_MAX_10_EXP): Likewise.
26072         (DBL_MAX_10_EXP): Likewise.
26073         (LDBL_MAX_10_EXP): Likewise.
26074         (FLT_MAX): Use macro-constant.
26075         (DBL_MAX): Likewise.
26076         (LDBL_MAX): Likewise.
26077         (FLT_EPSILON): Use macro-constant.  Give upper bound.
26078         (DBL_EPSILON): Likewise.
26079         (LDBL_EPSILON): Likewise.
26080         (FLT_MIN): Likewise.
26081         (DBL_MIN): Likewise.
26082         (LDBL_MIN): Likewise.
26083         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
26084         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
26085         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
26086         [ISO11] (FLT_HAS_SUBNORM): Likewise.
26087         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
26088         [ISO11] (DBL_DECIMAL_DIG): Likewise.
26089         [ISO11] (FLT_DECIMAL_DIG): Likewise.
26090         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
26091         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
26092         [ISO11] (FLT_TRUE_MIN): Likewise.
26093         [ISO11] (LDBL_TRUE_MIN): Likewise.
26094         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26095         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
26096         (SCHAR_MIN): Use macro-int-constant.  Specify type.
26097         (SCHAR_MAX): Likewise.
26098         (UCHAR_MAX): Likewise.
26099         (CHAR_MIN): Likewise.
26100         (CHAR_MAX): Likewise.
26101         (MB_LEN_MAX): Use macro-int-constant.
26102         (SHRT_MIN): Use macro-int-constant.  Specify type.
26103         (SHRT_MAX): Likewise.
26104         (USHRT_MAX): Likewise.
26105         (INT_MAX): Likewise.
26106         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
26107         bound negative.
26108         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26109         bound with "U".
26110         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26111         bound with "L".
26112         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
26113         bound negative.  Suffix upper bound with "L".
26114         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26115         bound with "UL".
26116         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
26117         Specify type.
26118         [C99-based standards] (LLONG_MAX): Likewise.
26119         [C99-based standards] (ULLONG_MAX): Likewise.
26120         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
26121         == 0.
26122         [ISO11] (max_align_t): Require type.
26123         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26124
26125         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
26126         from $CFLAGS, without defining away __attribute__ calls.
26127         (checknamespace): Use $CFLAGS_namespace.
26128
26129         * conform/conformtest.pl (@keywords): Only include C99 keywords
26130         for standards based on C99 or C11.
26131
26132         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
26133         Disable tests.
26134         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
26135         UNIX98]: Likewise.
26136
26137         * conform/conformtest.pl: Handle "macro-int-constant" and test for
26138         usability of symbols in #if.
26139
26140         * conform/conformtest.pl: If macro or constant types start
26141         "promoted:", expect the symbol to be of the following type
26142         promoted by the integer promotions.
26143
26144         * conform/conformtest.pl: Parse all "constant" and "macro" lines
26145         in one place.  Also handle "macro-constant".
26146
26147         * conform/conformtest.pl: Only accept expected macro values with
26148         "==".  Parse all "macro" lines in one place.
26149         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
26150
26151         * conform/conformtest.pl: Handle braced types on "constant" lines
26152         instead of handling "typed-constant".
26153         * conform/data/signal.h-data: Use "constant" instead of
26154         "typed-constant".
26155
26156         * conform/conformtest.pl: Handle "optional-" at start of lines in
26157         one place rather than duplicating several cases.  Handle each
26158         format of "macro" line with initial "optional-".
26159
26160         * conform/conformtest.pl: Only accept expected constant or
26161         optional-constant values with "==".  Parse all "constant" lines in
26162         one place.  Parse all "optional-constant" lines in one place.
26163         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
26164         * conform/data/fmtmsg.h-data: Likewise.
26165         * conform/data/netinet/in.h-data: Likewise.
26166         * conform/data/tar.h-data: Likewise.
26167         * conform/data/limits.h-data: Use "==" form on "constant" and
26168         "optional-constant" lines.
26169
26170         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
26171         Use -std=c99 for XOPEN2K.
26172         (@knownproblems): Remove.
26173         (newtoken): Don't check %isknown.
26174
26175         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
26176         Do not expect macro.
26177         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
26178         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
26179         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
26180         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
26181         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
26182         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
26183         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
26184         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
26185         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
26186         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
26187         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
26188         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
26189         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
26190         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
26191         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
26192         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
26193         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
26194         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
26195         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
26196         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
26197         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
26198         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
26199         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
26200         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
26201         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
26202         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
26203         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
26204         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
26205         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
26206         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
26207         [XPG3] (acosh): Likewise.
26208         [XPG3] (asinh): Likewise.
26209         [XPG3] (atanh): Likewise.
26210         [XPG3] (cbrt): Likewise.
26211         [XPG3] (expm1): Likewise.
26212         [XPG3] (ilogb): Likewise.
26213         [XPG3] (log1p): Likewise.
26214         [XPG3] (logb): Likewise.
26215         [XPG3] (nextafter): Likewise.
26216         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
26217         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
26218         [XPG3] (remainder): Likewise.
26219         [XPG3] (rint): Likewise.
26220         [XPG3 || XPG4 || UNIX98] (round): Likewise.
26221         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
26222         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
26223         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
26224         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
26225         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
26226         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
26227         [UNIX98 || XOPEN2K] (scalb): Expect.
26228         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
26229         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
26230         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
26231         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
26232         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
26233         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
26234         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
26235         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
26236         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
26237         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
26238         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
26239         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
26240         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
26241         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
26242         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
26243         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
26244         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
26245         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
26246         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
26247         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
26248         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
26249         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
26250         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
26251         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
26252         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
26253         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
26254         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
26255         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
26256         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
26257         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
26258         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
26259         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
26260         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
26261         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
26262         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
26263         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
26264         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
26265         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
26266         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
26267         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
26268         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
26269         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
26270         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
26271         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
26272         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
26273         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
26274         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
26275         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
26276         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
26277         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
26278         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
26279         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
26280         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
26281         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
26282         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
26283         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
26284         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
26285         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
26286         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
26287         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
26288         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
26289         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
26290         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
26291         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
26292         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
26293         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
26294         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
26295         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
26296         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
26297         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
26298         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
26299         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
26300         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
26301         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
26302         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
26303         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
26304         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
26305         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
26306         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
26307         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
26308         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
26309         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
26310         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
26311         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
26312         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
26313         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
26314         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
26315         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
26316         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
26317         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
26318         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
26319         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
26320         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
26321         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
26322         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
26323         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
26324         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
26325         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
26326         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
26327         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
26328         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
26329         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
26330         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
26331         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
26332         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
26333         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
26334         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
26335         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
26336         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
26337         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
26338         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
26339         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
26340         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
26341         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
26342         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
26343         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
26344         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
26345         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
26346         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
26347         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
26348         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
26349         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
26350         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
26351         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
26352         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
26353         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
26354         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
26355         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
26356         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
26357         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
26358         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
26359         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
26360         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
26361         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
26362         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
26363         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
26364         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
26365
26366         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
26367         _XOPEN_SOURCE_EXTENDED for XPG4.
26368
26369         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
26370
26371         * Makeconfig (localtime): Remove variable.
26372         (inst_localtime-file): Likewise.
26373
26374 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26375
26376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
26377         Update.
26378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26379         Update.
26380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
26381         Update.
26382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
26383         Update.
26384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
26385         Update.
26386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
26387         Update.
26388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26389         Update.
26390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
26391         Update.
26392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26393         Update.
26394
26395 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
26396
26397         [BZ #2550]
26398         [BZ #2570]
26399         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
26400         comparisons to determine direction to adjust input.
26401         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
26402         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
26403         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
26404         Likewise.
26405         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
26406         Likewise.
26407         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
26408         Likewise.
26409         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
26410         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
26411         Likewise.
26412         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
26413         Likewise.
26414         * math/libm-test.inc (nexttoward_test): Add more tests.
26415
26416 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26417
26418         [BZ #14040]
26419         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
26420         in version GLIBC_2.1, not GLIBC_2.0.
26421         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
26422         Likewise.
26423
26424 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
26425
26426         [BZ #13942]
26427         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
26428         (1 - x) * (1 + x).
26429         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26430         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
26431         * math/libm-test.inc (acos_test): Add more tests.
26432         (asin_test): Likewise.
26433         * sysdeps/i386/fpu/libm-test-ulps: Update.
26434         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26435
26436         [BZ #14034]
26437         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
26438         of square root.
26439         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
26440         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26441         * math/libm-test.inc (acos_test_tonearest): New function.
26442         (acos_test_towardzero): Likewise.
26443         (acos_test_downward): Likewise.
26444         (acos_test_upward): Likewise.
26445         (asin_test_tonearest): Likewise.
26446         (asin_test_towardzero): Likewise.
26447         (asin_test_downward): Likewise.
26448         (asin_test_upward): Likewise.
26449         (main): Call the new functions.
26450         * sysdeps/i386/fpu/libm-test-ulps: Update.
26451         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26452
26453         [BZ #13884]
26454         [BZ #13924]
26455         * math/e_exp10.c: Include <float.h>.
26456         (__ieee754_exp10): Handle underflow here rather than multiplying
26457         large negative argument by M_LN10.
26458         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
26459         of __ieee754_expf.
26460         * math/e_exp10l.c: Include <float.h>.
26461         (__ieee754_exp10l): Handle underflow here rather than multiplying
26462         large negative argument by M_LN10l.
26463         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
26464         spurious overflow exception on underflow.
26465
26466 2012-04-29  Marek Polacek  <polacek@redhat.com>
26467
26468         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
26469         (__fortify_function): New macro.
26470         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
26471         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
26472         __extern_always_inline.
26473         * libio/bits/stdio2.h: Likewise.
26474         * libio/bits/stdio.h: Likewise.
26475         * string/string.h: Likewise.
26476         * string/bits/string3.h: Likewise.
26477         * include/stdio.h: Likewise.
26478         * stdlib/bits/stdlib.h: Likewise.
26479         * stdlib/stdlib.h: Likewise.
26480         * rt/bits/mqueue2.h: Likewise.
26481         * rt/mqueue.h: Likewise.
26482         * posix/bits/unistd.h: Likewise.
26483         * posix/unistd.h: Likewise.
26484         * io/bits/poll2.h: Likewise.
26485         * io/bits/fcntl2.h: Likewise.
26486         * io/fcntl.h: Likewise.
26487         * io/sys/poll.h: Likewise.
26488         * misc/bits/syslog.h: Likewise.
26489         * misc/bits/syslog-ldbl.h: Likewise.
26490         * misc/sys/syslog.h: Likewise.
26491         * socket/bits/socket2.h: Likewise.
26492         * socket/sys/socket.h: Likewise.
26493         * debug/tst-chk1.c: Likewise.
26494         * wcsmbs/bits/wchar2.h: Likewise.
26495         * wcsmbs/bits/wchar-ldbl.h: Likewise.
26496         * wcsmbs/wchar.h: Likewise.
26497
26498 2012-04-29  Andreas Jaeger  <aj@suse.de>
26499
26500         * Makerules (tests): Remove enable-check-abi protection.
26501         (check-abi-warn): Remove.
26502         (check-abi-%): Remove check-abi-warn usage.
26503
26504         * configure.in: Remove check-abi configure option.
26505         * configure: Regenerated.
26506         * config.make.in (enable-check-abi): Remove.
26507
26508 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
26509
26510         [BZ #14033]
26511         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
26512         double functions to double *_finite functions.
26513
26514         [BZ #13941]
26515         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
26516         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
26517         LDBL_MIN_EXP.
26518         * stdio-common/Makefile (tests): Add tst-sprintf3.
26519         * stdio-common/tst-sprintf3.c: New file.
26520
26521         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
26522         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
26523
26524 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26525
26526         * conform/conformtest.pl: Remove duplicate typed-constant
26527         handling.
26528
26529 2012-04-28  David S. Miller  <davem@davemloft.net>
26530
26531         * Makerules (%.abilist): Add vpath on sysdep_dirs.
26532         (check-abi-%): Remove AWK script prerequisite and explicit
26533         abilist directory.
26534         (check-abi): Rewrite to just diff the symlist with the abilist.
26535         (config-tls, config-abi-config): Delete, no longer used.
26536         (update-abi-%): Remove AWK script and explicit abilist directory.
26537         (update-abi): Rewrite to simply compare and conditionally copy the
26538         symlist and the sysdep abilist file.  Remove update-abi-config
26539         checks.
26540         * abilist/ld.abilist: Remove.
26541         * abilist/libBrokenLocale.abilist: Remove.
26542         * abilist/libanl.abilist: Remove.
26543         * abilist/libcrypt.abilist: Remove.
26544         * abilist/libdl.abilist: Remove.
26545         * abilist/librt.abilist: Remove.
26546         * abilist/libthread_db.abilist: Remove.
26547         * abilist/libutil.abilist: Remove.
26548         * scripts/extract-abilist.awk: Remove.
26549         * scripts/merge-abilist.awk: Remove.
26550         * sysdeps/generic/libcidn.abilist: New file.
26551         * sysdeps/generic/libnss_compat.abilist: New file.
26552         * sysdeps/generic/libnss_db.abilist: New file.
26553         * sysdeps/generic/libnss_dns.abilist: New file.
26554         * sysdeps/generic/libnss_files.abilist: New file.
26555         * sysdeps/generic/libnss_hesiod.abilist: New file.
26556         * sysdeps/generic/libnss_nis.abilist: New file.
26557         * sysdeps/generic/libnss_nisplus.abilist: New file.
26558         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
26559         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
26560         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
26561         file.
26562         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
26563         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
26564         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
26565         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
26566         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
26567         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
26568         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
26569         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
26570         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
26571         file.
26572         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
26573         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
26574         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
26575         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
26576         file.
26577         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
26578         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
26579         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
26580         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
26581         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
26582         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
26583         file.
26584         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
26585         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
26586         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
26587         file.
26588         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
26589         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
26590         New file.
26591         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
26592         New file.
26593         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
26594         New file.
26595         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
26596         New file.
26597         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
26598         New file.
26599         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
26600         New file.
26601         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
26602         New file.
26603         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
26604         New file.
26605         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
26606         New file.
26607         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
26608         New file.
26609         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
26610         New file.
26611         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
26612         New file.
26613         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
26614         New file.
26615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
26616         file.
26617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
26618         New file.
26619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
26620         New file.
26621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
26622         file.
26623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
26624         New file.
26625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
26626         New file.
26627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
26628         file.
26629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
26630         New file.
26631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26632         New file.
26633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
26634         New file.
26635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
26636         New file.
26637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
26638         New file.
26639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
26640         New file.
26641         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
26642         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
26643         file.
26644         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
26645         New file.
26646         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
26647         file.
26648         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
26649         file.
26650         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
26651         file.
26652         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
26653         file.
26654         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
26655         file.
26656         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
26657         New file.
26658         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
26659         file.
26660         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
26661         file.
26662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
26663         New file.
26664         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
26665         file.
26666         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
26667         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
26668         file.
26669         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
26670         New file.
26671         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
26672         file.
26673         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
26674         file.
26675         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
26676         file.
26677         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
26678         file.
26679         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
26680         file.
26681         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
26682         New file.
26683         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
26684         file.
26685         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
26686         file.
26687         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
26688         New file.
26689         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
26690         file.
26691         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
26692         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
26693         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
26694         file.
26695         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
26696         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
26697         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
26698         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
26699         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
26700         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
26701         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
26702         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
26703         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
26704         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
26705         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
26706         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
26707         file.
26708         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
26709         New file.
26710         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
26711         file.
26712         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
26713         file.
26714         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
26715         file.
26716         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
26717         file.
26718         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
26719         file.
26720         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
26721         New file.
26722         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
26723         New file.
26724         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
26725         file.
26726         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
26727         New file.
26728         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
26729         file.
26730         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
26731         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
26732         file.
26733         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
26734         New file.
26735         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
26736         file.
26737         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
26738         file.
26739         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
26740         file.
26741         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
26742         file.
26743         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
26744         file.
26745         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
26746         New file.
26747         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
26748         New file.
26749         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
26750         file.
26751         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
26752         New file.
26753         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
26754         file.
26755
26756 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26757
26758         * conform/conformtest.pl: Fix typo in handling typed-constant from
26759         allow-header.
26760
26761 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26762
26763         * README: Cut down references to pre-2.6 Linux kernels and
26764         Linuxthreads.  Update lists of configurations in libc and ports
26765         and sort alphabetically.  Say "or newer" with Linux kernel version
26766         requirements.
26767
26768         * config.h.in [IS_IN_build]: Allow compiling without optimization.
26769
26770 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
26771
26772         [BZ #887]
26773         * math/libm-test.inc (logb_test_downward): New test to expose
26774         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
26775         rounding mode.
26776
26777 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26778
26779         [BZ #14027]
26780         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
26781         to be done.
26782         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
26783         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
26784
26785 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
26786
26787         * sysdeps/unix/i386/brk.S: Remove file.
26788         * sysdeps/unix/i386/dl-brk.S: Likewise.
26789         * sysdeps/unix/i386/pipe.S: Likewise.
26790         * sysdeps/unix/i386/sigreturn.S: Likewise.
26791         * sysdeps/unix/i386/syscall.S: Likewise.
26792         * sysdeps/unix/i386/vfork.S: Likewise.
26793         * sysdeps/unix/i386/wait.S: Likewise.
26794
26795         * sysdeps/unix/common/tcsendbrk.c: Move to ...
26796         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
26797
26798         * configure.in (arm*-none*): Do not allow without
26799         --enable-hacker-mode.
26800         (netbsd*): Remove case setting base_os.
26801         (386bsd*): Likewise.
26802         (freebsd*): Likewise.
26803         (bsdi*): Likewise.
26804         (osf*): Likewise.
26805         (sunos*): Likewise.
26806         (ultrix*): Likewise.
26807         (newsos*): Likewise.
26808         (dynix*): Likewise.
26809         (*bsd*): Likewise.
26810         (sysv*): Likewise.
26811         (isc*): Likewise.
26812         (esix*): Likewise.
26813         (sco*): Likewise.
26814         (minix*): Likewise.
26815         (irix4*): Likewise.
26816         (irix6*): Likewise.
26817         (solaris[2-9]*): Likewise.
26818         (none): Likewise.
26819         * configure: Regenerated.
26820
26821 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26822
26823         [BZ #11521]
26824         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
26825         overflow or cancellation in calculating denominator.
26826         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
26827         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
26828         down expression to avoid unexpected rounding in newer GCCs.
26829         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
26830
26831 2012-04-26  David S. Miller  <davem@davemloft.net>
26832
26833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
26834         long-double compat symbols.
26835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
26836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
26837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
26838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
26839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
26840         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
26841         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
26842         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
26843         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
26844         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
26845         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
26846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
26847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26848
26849 2012-04-25  David S. Miller  <davem@davemloft.net>
26850
26851         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
26852         HWCAP_* values only after the memory barriers have been defined.
26853         (atomic_full_barrier): Define.
26854         (atomic_read_barrier): Define.
26855         (atomic_write_barrier): Define.
26856
26857 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26858
26859         * shlib-versions: Add libgcc_s version information.
26860         * sysdeps/generic/libgcc_s.h: Remove.
26861         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
26862         libgcc_s.h.
26863         * sysdeps/gnu/unwind-resume.c: Likewise.
26864         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
26865
26866 2012-04-25  David S. Miller  <davem@davemloft.net>
26867
26868         * sysdeps/unix/sparc/brk.S: Delete.
26869         * sysdeps/unix/sparc/dl-brk.S: Delete.
26870         * sysdeps/unix/sparc/pipe.S: Delete.
26871         * sysdeps/unix/sparc/sysdep.S: Delete.
26872         * sysdeps/unix/sparc/sysdep.h: Delete.
26873         * sysdeps/unix/sparc/vfork.S: Delete.
26874         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
26875         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
26876         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
26877         ret_ERRVAL, r0, r1, MOVE): Define.
26878         (JUMPTARGET): Remove.
26879         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
26880         sysdeps/unix/sparc/sysdep.h
26881         (ENTRY, END): Remove.
26882         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26883
26884 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
26885
26886         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
26887         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
26888         -DIS_IN_build.
26889
26890         * timezone/README: Update upstream location and email address for
26891         tzcode and tzdata.
26892         * timezone/zdump.c: Update from tzcode 2012b.
26893         * timezone/zic.c: Likewise.
26894
26895         * configure.in (libc_cv_as_needed): Remove test.
26896         * configure: Regenerated.
26897         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
26898         conditional definition.
26899         [$(have-as-needed) != yes] (no-as-needed): Likewise.
26900         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
26901         * config.make.in (have-as-needed): Remove variable.
26902
26903 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26904             Paul Pluzhnikov  <ppluzhnikov@google.com>
26905
26906         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
26907         strings correctly.
26908
26909 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
26910
26911         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
26912         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
26913         * sysdeps/sh/strlen.S: Likewise.
26914
26915 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26916
26917         * sysdeps/unix/fork.S: Remove file.
26918         * sysdeps/unix/i386/fork.S: Likewise.
26919         * sysdeps/unix/sparc/fork.S: Likewise.
26920
26921         * sysdeps/unix/system.c: Remove file.
26922         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
26923
26924         * sysdeps/unix/getegid.S: Remove file.
26925         * sysdeps/unix/geteuid.S: Likewise.
26926
26927 2012-04-24  Roland McGrath  <roland@hack.frob.com>
26928
26929         * scripts/check-localplt.awk: New file.
26930         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
26931         of diff.
26932         * scripts/data/localplt-generic.data: Add a comment.
26933
26934         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
26935         NODE when __dir_mkfile failed.
26936         * sysdeps/mach/hurd/symlinkat.c: Likewise.
26937         Reported by Ludovic Courtès <ludo@gnu.org>.
26938
26939 2012-04-24  Andreas Jaeger  <aj@suse.de>
26940
26941         * Makerules (common-clean): Also remove gen-as-const-headers
26942         files.
26943
26944 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26945
26946         * Makerules (native-compile): Do not change working directory for
26947         build.  Use $(OUTPUT_OPTION) in command.
26948         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
26949
26950 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26951
26952         [BZ #13886]
26953         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
26954         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
26955         * math/libm-test.inc (floor_test): Add more tests.
26956         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
26957
26958 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
26959
26960         * sysdeps/unix/getdents.c: Remove file.
26961         * sysdeps/unix/sysv/getdents.c: Likewise.
26962         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
26963
26964         * sysdeps/unix/syscalls.list (madvise): Add syscall from
26965         sysdeps/unix/mman/syscalls.list.
26966         (mmap): Likewise.
26967         (mprotect): Likewise.
26968         (msync): Likewise.
26969         (munmap): Likewise.
26970         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
26971         * sysdeps/unix/mman/syscalls.list: Remove.
26972         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
26973
26974         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
26975         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
26976         * configure: Regenerated.
26977         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
26978         $(libgcc_s_suffix).
26979         * config.make.in (libgcc_s_suffix): Remove variable.
26980
26981 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
26982
26983         * sysdeps/unix/sysv/gethostname.c: Move to ...
26984         * sysdeps/posix/gethostname.c: ... here.
26985
26986         * sysdeps/unix/execve.S: Remove file.
26987
26988         * sysdeps/unix/_exit.S: Remove file.
26989
26990 2012-04-23  Andreas Jaeger  <aj@suse.de>
26991
26992         [BZ #13739]
26993         * manual/Makefile: Remove make dist support, there's no
26994         need for a stand-alone documentation tar ball.
26995         (TEXI2DVI): Define always, it's not in Makeconfig.
26996         (dist): Removed.
26997         (tar-it): Removed.
26998         (edition): Removed.
26999         (glibc-doc-$(edition).tar): Removed
27000         (%.Z): Removed.
27001         (%.gz): Removed.
27002         (%.uu): Removed.
27003         (ETAGS): Remove, it's in Makeconfig.
27004         (move-if-change): Remove, it's in Makeconfig.
27005
27006 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
27007
27008         [BZ #13970]
27009         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
27010         (strtod, strtof, strtold, strtol, strtoul, strtoq)
27011         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
27012         (strtod_l, strtof_l, strtold_l): Remove __wur.
27013         It is not necessarily an error to ignore strtol's return value.
27014         One can reliably look at the stored endptr to decide whether
27015         the number had valid syntax.
27016
27017 2012-04-21  Andreas Jaeger  <aj@suse.de>
27018
27019         [BZ #13739]
27020         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
27021
27022 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
27023
27024         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
27025         * sysdeps/unix/sysv/Versions: Remove file.
27026
27027 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
27028
27029         [BZ #13927]
27030         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27031
27032 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
27033
27034         [BZ #7064]
27035         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
27036         version from __vm86.
27037
27038 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
27039
27040         * sysdeps/unix/common/lxstat.c: Remove file.
27041         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
27042
27043         * sysdeps/unix/sysv/Makefile: Remove file.
27044
27045         * sysdeps/unix/sysv/direct.h: Remove file.
27046
27047         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
27048         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
27049         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
27050         * sysdeps/unix/sysv/bits/signum.h: Likewise.
27051         * sysdeps/unix/sysv/bits/stat.h: Likewise.
27052         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
27053         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
27054
27055         * sysdeps/unix/sysv/setrlimit.c: Remove file.
27056
27057         * sysdeps/unix/xmknod.c: Remove file.
27058         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
27059
27060         * sysdeps/unix/sysv/settimeofday.c: Remove file.
27061
27062         * sysdeps/unix/sysv/i386/time.S: Remove file.
27063
27064         * sysdeps/unix/fxstat.c: Remove file.
27065         * sysdeps/unix/xstat.c: Likewise.
27066         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
27067
27068         * sysdeps/unix/sysv/sigaction.c: Remove file.
27069
27070         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
27071         (sysdep_headers): Remove variable.
27072         [termio.h not in sysdep_headers] (generated): Likewise.
27073         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
27074         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
27075         * sysdeps/unix/sysv/tcdrain.c: Likewise.
27076         * sysdeps/unix/sysv/tcflow.c: Likewise.
27077         * sysdeps/unix/sysv/tcflush.c: Likewise.
27078         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
27079         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
27080         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
27081         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
27082         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
27083
27084         * sysdeps/unix/siglist.c: Remove file.
27085
27086         * sysdeps/unix/getppid.S: Remove file.
27087
27088         * sysdeps/unix/mkdir.c: Remove file.
27089         * sysdeps/unix/rmdir.c: Likewise.
27090
27091 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
27092
27093         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
27094         ERR_MAX value.
27095         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
27096         errlist-compat value.
27097
27098 2012-04-18  David S. Miller  <davem@davemloft.net>
27099
27100         * sysdeps/generic/memcopy.h (reg_char): Delete.
27101         * debug/strcat_chk.c: Use char, not reg_char.
27102         * debug/strcpy_chk.c: Likewise.
27103         * debug/strncat_chk.c: Likewise.
27104         * debug/strncpy_chk.c: Likewise.
27105         * string/memchr.c: Likewise.
27106         * string/memrchr.c: Likewise.
27107         * string/rawmemchr.c: Likewise.
27108         * string/strcat.c: Likewise.
27109         * string/strchr.c: Likewise.
27110         * string/strchrnul.c: Likewise.
27111         * string/strcmp.c: Likewise.
27112         * string/strcpy.c: Likewise.
27113         * string/strncat.c: Likewise.
27114         * string/strncmp.c: Likewise.
27115         * string/strncpy.c: Likewise.
27116
27117 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27118
27119         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
27120         __builtin_memcopy is called when src and dest ranges are known to not
27121         overlap.
27122
27123 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27124
27125         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
27126         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
27127         fwd_align_merge macro call.
27128         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
27129         bwd_align_merge macro call.
27130         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27131
27132 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27133
27134         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
27135         bwd_align_merge macros.
27136         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
27137         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
27138         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27139
27140 2012-04-18  David S. Miller  <davem@davemloft.net>
27141
27142         * sysdeps/sparc/sparc64/memcopy.h: Delete.
27143
27144 2012-04-18  Andreas Jaeger  <aj@suse.de>
27145
27146         [BZ# 6794]
27147         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
27148         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
27149         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27150
27151         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
27152         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
27153         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27154
27155         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
27156         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
27157         Adjust for changed ldbl-128 files.
27158
27159         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
27160         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
27161         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27162
27163 2012-04-17  David S. Miller  <davem@davemloft.net>
27164
27165         * sysdeps/sparc/sparc32/memcopy.h: Delete.
27166
27167 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
27168
27169         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
27170         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
27171         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
27172         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
27173         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
27174         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
27175
27176 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27177
27178         [BZ #6794]
27179         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
27180         * math/libm-test.inc: Add ilogb errno and exception tests.
27181         * math/w_ilogb.c: New file: ilogb wrapper.
27182         * math/w_ilogbf.c: New file: ilogbf wrapper.
27183         * math/w_ilogbl.c: New file: ilogbl wrapper.
27184         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
27185         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
27186         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
27187         exception being thrown with 0.0 as argument.
27188         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
27189         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
27190         exception being thrown with 0.0 as argument.
27191         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
27192         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27193         exception being thrown with 0.0 as argument.
27194         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
27195         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27196         exception being thrown with 0.0 as argument.
27197         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
27198         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
27199         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
27200         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
27201         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
27202         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
27203         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
27204         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
27205         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
27206
27207 2012-04-17  Petr Baudis  <pasky@ucw.cz>
27208
27209         * include/sys/uio.h: Change __vector to __iovec to avoid clash
27210         with altivec.
27211
27212 2012-04-16  Marek Polacek  <polacek@redhat.com>
27213
27214         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
27215
27216 2012-04-16  Marek Polacek  <polacek@redhat.com>
27217
27218         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
27219         operands of fdivp instruction.
27220
27221 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27222
27223         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
27224         * elf/tst-auditmod3b.c: Likewise.
27225         * elf/tst-auditmod4b.c: Likewise.
27226         * elf/tst-auditmod5b.c: Likewise.
27227         * elf/tst-auditmod6b.c: Likewise.
27228         * elf/tst-auditmod6c.c: Likewise.
27229         * elf/tst-auditmod7b.c: Likewise.
27230         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
27231         * sysdeps/x86_64/preconfigure.in: Likewise.
27232         * sysdeps/x86_64/preconfigure: Regenerated.
27233
27234 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27235
27236         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
27237         __ILP32__.
27238
27239 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
27240
27241         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27242         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
27243
27244 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
27245
27246         [BZ #13973]
27247         * locale/iso-639.def: Fix gl language name. Spotted by
27248         Yaron Shahrabani.
27249
27250 2012-04-12  Roland McGrath  <roland@hack.frob.com>
27251
27252         [BZ #2074]
27253         * libio/libio.h (__io_write_fn): Update comment.
27254
27255 2012-04-12  Petr Baudis  <pasky@ucw.cz>
27256
27257         [BZ #2074]
27258         * stdio.texi (Hook Functions): The user provided writer function
27259         is not allowed to return -1.
27260
27261 2012-04-11  David S. Miller  <davem@davemloft.net>
27262
27263         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27264
27265 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
27266
27267         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
27268         Add a leading slash to rtkaio.
27269
27270 2012-04-11  Jim Meyering  <meyering@redhat.com>
27271
27272         [BZ #11959]
27273         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
27274         It is not necessarily an error to ignore fwrite's return
27275         value.  One can reliably use ferror to test for errors after
27276         the fact.
27277
27278 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27279
27280         * bits/types.h (__snseconds_t): New type.
27281         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
27282
27283         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
27284         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27285         (__SNSECONDS_T_TYPE): Likewise.
27286         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27287         (__SNSECONDS_T_TYPE): Likewise.
27288         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27289         (__SNSECONDS_T_TYPE): Likewise.
27290
27291 2012-04-10  Andreas Jaeger  <aj@suse.de>
27292
27293         [BZ #2636]
27294         * manual/time.texi (Processor Time): Return type of times is
27295         elapsed real time since an arbitrary point in the past.
27296         (CPU Time): Move CLK_TCK from here...
27297         (Processor Time): ...to here.  Correct description.
27298         * manual/conf.texi (Constants for Sysconf): Correct description of
27299         _SC_CLK_TCK.
27300
27301 2012-04-10  David S. Miller  <davem@davemloft.net>
27302
27303         [BZ #13967]
27304         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
27305         where the is a gap between DT_REL(A) and DT_JMPREL.
27306
27307 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27308
27309         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
27310         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27311         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27312
27313 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27314
27315         * elf/dl-support.c (_dl_inhibit_cache): New variable.
27316         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
27317         (dl_main): Handle --inhibit-cache.
27318         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
27319         _dl_inhibit_cache.
27320         * elf/dl-load.c (_dl_map_object): Use it.
27321         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
27322
27323 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27324
27325         [BZ #13872]
27326         * sysdeps/i386/fpu/e_powl.S (p78): New object.
27327         (__ieee754_powl): Saturate large exponents rather than testing for
27328         overflow of y*log2(x).
27329         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27330         * math/libm-test.inc (pow_test): Do not permit spurious overflow
27331         exceptions.
27332
27333         [BZ #11521]
27334         * math/s_ctan.c: Include <float.h>.
27335         (__ctan): Avoid internal overflow or cancellation in calculating
27336         denominator.
27337         * math/s_ctanf.c: Likewise.
27338         * math/s_ctanl.c: Likewise.
27339         * math/s_ctanh.c: Likewise.
27340         * math/s_ctanhf.c: Likewise.
27341         * math/s_ctanhl.c: Likewise.
27342         * math/libm-test.inc (ctan_test): Add more tests.
27343         (ctanh_test): Likewise.
27344         * sysdeps/i386/fpu/libm-test-ulps: Update.
27345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27346
27347 2012-04-09  Andreas Jaeger  <aj@suse.de>
27348
27349         [BZ #6894]
27350         * manual/filesys.texi (Directory Entries): Mention that d_namlen
27351         is an optional BSD extension.
27352
27353         [BZ #10254]
27354         * manual/stdio.texi (Opening Streams): Document additional fopen
27355         parameters.
27356
27357 2012-04-09  Roland McGrath  <roland@hack.frob.com>
27358
27359         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
27360         %eax without telling the compiler.
27361
27362 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
27363
27364         [BZ # 13963]
27365         * manual/install.texi: Use sourceware.org.
27366
27367 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27368
27369         [BZ #13873]
27370         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
27371         (__ieee754_pow): Generate overflow and underflow using huge*huge
27372         and tiny*tiny rather than just returning constant infinity or zero
27373         for large exponents.
27374         * math/libm-test.inc (pow_test): Require overflow exceptions for
27375         applicable cases of large exponents.
27376
27377         [BZ #706]
27378         * sysdeps/i386/fpu/e_pow.S (p10): New object.
27379         (__ieee754_pow): Use iterative multiplication algorithm only for
27380         integer exponents with absolute value below 1024.  Check for odd
27381         integer exponents when using algorithm for real exponents.
27382         * math/libm-test.inc (pow_test): Add more tests.
27383         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27384
27385 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
27386
27387         [BZ #13705]
27388         * math/libm-test.inc (exp_test): Do not allow overflow exception
27389         on underflow test.
27390
27391 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
27392
27393         [BZ #13705]
27394         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
27395         instead of __kernel_standard_f.
27396
27397 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
27398
27399         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
27400         * sysdeps/x86_64/memset_chk.S: Likewise.
27401
27402 2012-04-08  Andreas Jaeger  <aj@suse.de>
27403
27404         [BZ #10153]
27405         * manual/startup.texi (Environment Access): Describe return value
27406         for putenv and setenv.
27407
27408         [BZ #6895]
27409         * manual/filesys.texi (Directory Entries): Add description for
27410         DT_LNK.
27411
27412         [BZ #6890]
27413         * manual/filesys.texi (Directory Entries): Clarify that it's file
27414         system not operating system in the description of DT_UNKNOWN.
27415
27416         [BZ #6578]
27417         * manual/syslog.texi (closelog): Fix reference, it's openlog.
27418
27419 2012-04-08  Stephen Compall  <s11@member.fsf.org>
27420
27421         [BZ #6649]
27422         * manual/llio.texi (Opening and Closing Files): Add cross
27423         reference to explain mode argument.
27424
27425 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
27426
27427         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
27428         * sysdeps/x86_64/memset_chk.S: Likewise.
27429
27430 2012-04-07  David S. Miller  <davem@davemloft.net>
27431
27432         * elf/elf.h (R_SPARC_WDISP10): Define.
27433         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
27434         R_SPARC_SIZE32.
27435         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
27436         R_SPARC_SIZE64 and R_SPARC_H34.
27437
27438 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
27439
27440         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
27441         conditions and remove no longer applicable assertion.
27442
27443 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27444
27445         * bits/byteswap.h: Include <features.h>.
27446         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27447         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27448
27449 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27450
27451         * bits/byteswap.h (__bswap_16): Removed.
27452         Include <bits/byteswap-16.h> to get __bswap_16.
27453         * sysdeps/i386/bits/byteswap.h: Likewise.
27454         * sysdeps/s390/bits/byteswap.h: Likewise.
27455         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27456         * bits/byteswap-16.h: New file.
27457         * sysdeps/i386/bits/byteswap-16.h: Likewise.
27458         * sysdeps/s390/bits/byteswap-16.h: Likewise.
27459         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
27460         * string/Makefile (headers): Add bits/byteswap-16.h.
27461
27462 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27463
27464         [BZ #13895]
27465         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
27466         extra indirection.
27467         * nss/Makefile (tests-static, tests): Add tst-nss-static.
27468         * nss/tst-nss-static.c: New.
27469
27470 2012-04-06  Robert Millan  <rmh@gnu.org>
27471
27472         [BZ #6486]
27473         * manual/llio.texi (File Position Primitive): lseek
27474         refers to WHENCE when it really means OFFSET.
27475
27476 2012-04-06  Andreas Jaeger  <aj@suse.de>
27477
27478         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
27479         strncmp declarations.
27480
27481         * abilist/libc.abilist: Add __poll and __ppoll.
27482
27483 2012-04-05  David S. Miller  <davem@davemloft.net>
27484
27485         * scripts/check-local-headers.sh: Accept a host triplet in the
27486         path matched by the exclude regexp.
27487
27488         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
27489         definition.
27490         * sysdeps/powerpc/powerpc32/dl-machine.h
27491         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
27492         * sysdeps/s390/s390-32/dl-machine.h
27493         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27494         * sysdeps/sparc/sparc32/dl-machine.h
27495         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27496         * sysdeps/sparc/sparc64/dl-machine.h
27497         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27498
27499         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
27500         lazy binding.
27501         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
27502         undefined symbol errors.
27503
27504         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
27505         DT_NEEDED entries.
27506
27507 2012-04-05  Michael Matz  <matz@suse.de>
27508
27509         [BZ #13592]
27510         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
27511
27512 2012-04-05  Andreas Jaeger  <aj@suse.de>
27513
27514         [BZ #13908]
27515         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
27516         comment.
27517
27518 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27519
27520         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
27521         which ROUND is no valid rounding mode.
27522
27523 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27524
27525         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
27526         read again.
27527         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
27528
27529 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27530
27531         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
27532         an exception using FPU order intentionally.
27533
27534 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27535
27536         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
27537         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
27538         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
27539         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
27540
27541 2012-04-05  Simon Josefsson  <simon@josefsson.org>
27542
27543         [BZ #12340]
27544         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
27545         EINVAL when BUFLEN is too smal.
27546
27547 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
27548
27549         [BZ #13553]
27550         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
27551         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
27552
27553 2012-04-03  Andreas Jaeger  <aj@suse.de>
27554
27555         [BZ #13938]
27556         * manual/setjmp.texi (System V contexts): Fix sentence.
27557
27558         [BZ #13926]
27559         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
27560         New macro for this case.
27561         [!__GNUC__] (__bswap_64): New inline function for this case.
27562         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27563         * bits/byteswap.h: Likewise.
27564         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
27565         ull, guard with __GLIBC_HAVE_LONG_LONG.
27566
27567         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
27568         __GLIBC_HAVE_LONG_LONG.
27569
27570         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
27571         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
27572
27573 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27574
27575         [BZ #13691]
27576         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
27577         inptr and inend, rather than using last_ch.
27578
27579 2012-04-02  David S. Miller  <davem@davemloft.net>
27580
27581         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
27582         * stdio-common/printf-parse.h (read_int): Change return type to
27583         'int', return -1 on INT_MAX overflow.
27584         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
27585         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
27586         overflows INT_MAX.  Check for overflow of in-format-string precision
27587         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
27588         SIZE_MAX not INT_MAX for integer overflow test.
27589         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
27590         skip the construct in the format string but do not record anything.
27591         * stdio-common/bug22.c: Adjust to test both width/prevision
27592         INT_MAX overflow as well as total length INT_MAX overflow.  Check
27593         explicitly for proper errno values.
27594
27595 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
27596
27597         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
27598         CHAR_MAX.
27599         * string/test-strcmp.c [! WIDE]: Likewise.
27600         * time/tst-mktime2.c: Likewise for INT_MAX.
27601         * string/test-string.h: #include <sys/param.h> for MIN.
27602
27603         * csu/init-first.c (__libc_init_first): Call __ctype_init.
27604         * sysdeps/i386/init-first.c (init): Likewise.
27605         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
27606         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
27607         * sysdeps/sh/init-first.c (init): Likewise.
27608
27609 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
27610
27611         * po/ru.po: Update from translation team.
27612         * po/vi.po: Likewise.
27613
27614 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
27615
27616         * resolv/nss_dns/dns-host.c: Merge copyright years.
27617
27618 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27619
27620         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27621         Optimize memcpy with prefetch if
27622         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
27623         src, dst pointers have unequal 16 byte alignments.
27624
27625 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
27626
27627         [BZ #13928]
27628         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
27629         from a CNAME entry and return the minimum ttl for the query.
27630         (gaih_getanswer_slice): Likewise.
27631
27632 2012-03-30  Jeff Law  <law@redhat.com>
27633
27634         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
27635         due to long keys.
27636         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
27637         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
27638
27639         * resolv/nss_dns/dns-host.c: Update copyright year.
27640
27641 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
27642
27643         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
27644         requests to save a system call.  Fix check that all bytes are sent.
27645
27646         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
27647         comments for sendmmsg.
27648
27649 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27650
27651         [BZ #13691]
27652         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
27653         with only 1 character between 0x0041 and 0x01b0.
27654         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
27655         * wcsmbs/tst-mbsnrtowcs.c: New file.
27656
27657 2012-03-29  David S. Miller  <davem@davemloft.net>
27658
27659         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
27660         small copies by hand.
27661
27662 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27663
27664         [BZ #13761]
27665         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
27666         _nss_compat_initgroups_dyn): Fall back to malloc/free
27667         for large group memberships.
27668
27669 2012-03-28  David S. Miller  <davem@davemloft.net>
27670
27671         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
27672         that branches into memcpy.
27673         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
27674         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27675         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27676         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27677         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
27678         bits.
27679         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
27680         implementation too.
27681         * sysdeps/sparc/mempcpy.S: New file.
27682
27683         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
27684         the IFUNC routine in the libc case.
27685         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27686
27687         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
27688         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
27689         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
27690         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
27691         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
27692         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
27693         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
27694         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
27695
27696         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
27697         loop to 256 bytes instead of 64 bytes and fix test signedness.
27698
27699         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
27700         * sysdeps/sparc/sparc32/Makefile: rather than here...
27701         * sysdeps/sparc/sparc64/Makefile: and here.
27702
27703 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
27704
27705         * malloc/mallocbug.c: Avoid warnings about unused variables.
27706
27707 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
27708
27709         [BZ #13760]
27710         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
27711         in the right place. Discard and retry query if response is
27712         larger than input buffer size.
27713
27714 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
27715
27716         [BZ #369]
27717         [BZ #2678]
27718         [BZ #3866]
27719         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
27720         x for large integer exponent.
27721         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
27722         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
27723         sign of result as needed afterwards.
27724         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
27725         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
27726         result for underflowing pow the same as for overflow.
27727         (__kernel_standard_l): Handle powl overflow and underflow here
27728         rather than calling __kernel_standard.
27729         * math/libm-test.inc (pow_test): Add more tests.
27730
27731         [BZ #3868]
27732         [BZ #13879]
27733         [BZ #13910]
27734         [BZ #13911]
27735         [BZ #13912]
27736         [BZ #13913]
27737         [BZ #13915]
27738         [BZ #13916]
27739         [BZ #13917]
27740         [BZ #13918]
27741         [BZ #13919]
27742         [BZ #13920]
27743         [BZ #13921]
27744         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
27745         * sysdeps/ieee754/k_standard.c: Include <float.h>.
27746         (__kernel_standard_l): New function.
27747         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
27748         __kernel_standard.
27749         * math/w_acosl.c (__acosl): Likewise.
27750         * math/w_asinl.c (__asinl): Likewise.
27751         * math/w_atan2l.c (__atan2l): Likewise.
27752         * math/w_atanhl.c (__atanhl): Likewise.
27753         * math/w_coshl.c (__coshl): Likewise.
27754         * math/w_exp10l.c (__exp10l): Likewise.
27755         * math/w_exp2l.c (__exp2l): Likewise.
27756         * math/w_fmodl.c (__fmodl): Likewise.
27757         * math/w_hypotl.c (__hypotl): Likewise.
27758         * math/w_j0l.c (__j0l, __y0l): Likewise.
27759         * math/w_j1l.c (__j1l, __y1l): Likewise.
27760         * math/w_jnl.c (__jnl, __ynl): Likewise.
27761         * math/w_lgammal.c (__lgammal): Likewise.
27762         * math/w_log10l.c (__log10l): Likewise.
27763         * math/w_log2l.c (__log2l): Likewise.
27764         * math/w_logl.c (__logl): Likewise.
27765         * math/w_powl.c (__powl): Likewise.
27766         * math/w_remainderl.c (__remainderl): Likewise.
27767         * math/w_scalbl.c (sysv_scalbl): Likewise.
27768         * math/w_sinhl.c (__sinhl): Likewise.
27769         * math/w_sqrtl.c (__sqrtl): Likewise.
27770         * math/w_tgammal.c (__tgammal): Likewise.
27771         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
27772         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
27773         * math/libm-test.inc (acos_test): Add more tests.
27774         (acosh_test): Likewise.
27775         (asin_test): Likewise.
27776         (atanh_test): Likewise.
27777         (exp_test): Likewise.
27778         (exp10_test): Likewise.
27779         (exp2_test): Likewise.
27780         (expm1_test): Likewise.
27781         (lgamma_test): Likewise.
27782         (log_test): Likewise.
27783         (log10_test): Likewise.
27784         (log1p_test): Likewise.
27785         (log2_test): Likewise.
27786         (pow_test): Do not allow some spurious overflow exceptions.
27787         (sqrt_test): Add more tests.
27788         (tgamma_test): Likewise.
27789         (y0_test): Likewise.
27790         (y1_test): Likewise.
27791         (yn_test): Likewise.
27792
27793 2012-03-27  Anton Blanchard  <anton@samba.org>
27794
27795         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
27796         MAP_HUGETLB.
27797         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27798         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27799         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27800
27801 2012-03-27  David S. Miller  <davem@davemloft.net>
27802
27803         * conform/Makefile: Run run-conformtest.sh using $(BASH).
27804
27805         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
27806         have-as-vis3 check.
27807
27808 2012-03-27  Andreas Jaeger  <aj@suse.de>
27809
27810         * sysdeps/x86_64/elf/configure.in: Moved to ...
27811         * sysdeps/x86_64/configure.in: ... here.
27812         * sysdeps/x86_64/elf/start.S: Moved to ...
27813         * sysdeps/x86_64/start.S: ... here.
27814         * sysdeps/x86_64/elf/configure: Delete.
27815
27816         * sysdeps/x86_64/configure.in: Merge contents from
27817         sysdeps/i386/configure.in (without i686 check).
27818
27819         * sysdeps/i386/elf/Versions: Merge into ...
27820         * sysdeps/i386/Versions: ... this.
27821         * sysdeps/i386/elf/Versions: Delete file.
27822         * sysdeps/i386/elf/start.S: Moved to ...
27823         * sysdeps/i386/start.S: ...here.
27824         * sysdeps/i386/elf/configure.in: Merge into...
27825         * sysdeps/i386/configure.in: ...here.
27826         * sysdeps/i386/elf/configure.in: Delete file.
27827         * sysdeps/i386/elf/configure: Delete file.
27828
27829         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
27830         * debug/backtracesyms.c: ... here.
27831         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
27832         * debug/backtracesymsfd.c: ... here.
27833         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
27834         * sysdeps/generic/ifunc-sel.h: ... here.
27835
27836         * sysdeps/unix/i386/start.c: Delete file.
27837         * sysdeps/unix/sparc/start.c: Delete file.
27838         * sysdeps/unix/start.c: Delete file.
27839
27840         * sysdeps/sh/elf/configure.in: Moved to ...
27841         * sysdeps/sh/configure.in: ... here.
27842         * sysdeps/sh/elf/start.S: Moved to ...
27843         * sysdeps/sh/start.S: ... here.
27844         * sysdeps/sh/elf/configure: Delete file.
27845
27846         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
27847         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
27848         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
27849         * sysdeps/powerpc/powerpc64/entry.h: ... here.
27850         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
27851         * sysdeps/powerpc/powerpc64/start.S: here.
27852         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
27853         * sysdeps/powerpc/powerpc64/Makefile: ... this.
27854         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
27855         * sysdeps/powerpc/powerpc64/configure.in: ... this.
27856         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
27857
27858         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
27859         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
27860         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
27861         * sysdeps/powerpc/powerpc32/start.S: ... here.
27862         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
27863         * sysdeps/powerpc/powerpc32/configure.in: ... this.
27864         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
27865
27866         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
27867         * sysdeps/powerpc/ifunc-sel.h: ... here.
27868         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
27869         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
27870
27871         * sysdeps/sparc/elf/configure.in: Moved to ...
27872         * sysdeps/sparc/configure.in: ... here.
27873         * sysdeps/sparc/elf/configure: Delete file.
27874         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
27875         * sysdeps/sparc/sparc32/start.S: ... here.
27876         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
27877         * sysdeps/sparc/sparc64/start.S: ... here.
27878         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
27879         * sysdeps/sparc/sparc32/Makefile: ... this.
27880         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
27881         * sysdeps/sparc/sparc64/Makefile: ... this.
27882
27883         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
27884         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
27885         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
27886         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
27887         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
27888         * sysdeps/s390/s390-32/setjmp.S: ... here.
27889         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
27890         * sysdeps/s390/s390-32/configure.in: ... here.
27891         * sysdeps/s390/s390-32/elf/configure: Delete file.
27892         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
27893         * sysdeps/s390/s390-32/start.S: ... here.
27894
27895         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
27896         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
27897         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
27898         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
27899         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
27900         * sysdeps/s390/s390-64/setjmp.S: ... here.
27901         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
27902         * sysdeps/s390/s390-64/configure.in: ... here
27903         * sysdeps/s390/s390-64/elf/configure: Delete file.
27904         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
27905         * sysdeps/s390/s390-64/start.S: ... here.
27906         * sysdeps/s390/s390-64/elf/configure: Delete.
27907
27908         * configure.in: Remove support for elf directories in sysdeps.
27909
27910         * configure: Regenerated.
27911         * sysdeps/i386/configure: Regenerated.
27912         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27913         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27914         * sysdeps/s390/s390-32/configure: Regenerated.
27915         * sysdeps/s390/s390-64/configure: Regenerated.
27916         * sysdeps/sh/configure: Regenerated.
27917         * sysdeps/sparc/configure: Regenerated.
27918         * sysdeps/x86_64/configure: Regenerated.
27919
27920 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
27921
27922         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27923
27924         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
27925         denormal result into account.
27926
27927 2012-03-25  Roland McGrath  <roland@hack.frob.com>
27928
27929         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
27930         Reported by Allan McRae <allan@archlinux.org>.
27931
27932 2012-03-23  Jeff Law  <law@redhat.com>
27933
27934         * nss/getnssent.c (__nss_getent): Fix typo.
27935
27936 2012-03-23  David S. Miller  <davem@davemloft.net>
27937
27938         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27939
27940 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
27941
27942         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
27943         to pad to uint64_t for each field.
27944         (dl_tls_index): Replace unsigned long with uint64_t.
27945
27946 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
27947         Paul Pluzhnikov  <ppluzhnikov@google.com>
27948
27949         [BZ #6528]
27950         * grp/Makefile (otherlibs): Don't set it.
27951         * inet/Makefile (otherlibs): Likewise.
27952         * login/Makefile (otherlibs): Likewise.
27953         * nscd/Makefile (otherlibs): Likewise.
27954         * posix/Makefile (otherlibs): Likewise.
27955         * pwd/Makefile (otherlibs): Likewise.
27956         * rt/Makefile (otherlibs): Likewise.
27957         * sunrpc/Makefile (otherlibs): Likewise.
27958         * nss/Makefile (otherlibs): Likewise.
27959         Add libnss_files to routines and static-only-routines.
27960         ($(objpfx)getent): Remove rule.
27961         * resolv/Makefile: Add libnss_dns and libresolv to routines and
27962         static-only-routines.
27963
27964 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27965
27966         [BZ #13892]
27967         * math/s_cexp.c: Include <float.h>.
27968         (__cexp): Handle exp result overflowing not necessarily
27969         overflowing both real and imaginary parts of result.
27970         * math/s_cexpf.c: Likewise.
27971         * math/s_cexpl.c: Likewise.
27972         * math/libm-test.inc (cexp_test): Add more tests.
27973         * sysdeps/i386/fpu/libm-test-ulps: Update.
27974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27975
27976 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27977
27978         * include/link.h (ELFW): New macro.
27979         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
27980         Replace ELF64_R_TYPE with ELFW(R_TYPE).
27981
27982 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27983
27984         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
27985         with uint64_t.
27986
27987 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27988
27989         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
27990         declaration.
27991         (struct La_x32_retval): Likewise.
27992
27993 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27994
27995         * sysdeps/x86_64/preconfigure.in: New file.
27996         * sysdeps/x86_64/preconfigure: New generated file.
27997
27998 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
27999
28000         [BZ #13824]
28001         * math/e_exp2l.c: Include <float.h>.
28002         (__ieee754_exp2l): Handle overflow and underflow cases
28003         separately.  Only pass fractional part of argument to
28004         __ieee754_expl.
28005         * math/libm-test.inc (exp2_test): Add more tests.
28006
28007         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
28008         negating x to take absolute value.
28009         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
28010         Likewise.
28011         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
28012         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
28013         Likewise.
28014         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
28015         computing low part if x was negated.
28016         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
28017
28018 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28019
28020         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
28021         la_x32_gnu_pltexit.
28022         (pltexit): Cast int_retval to ptrdiff_t.
28023         * elf/tst-auditmod3b.c: Likewise.
28024         * elf/tst-auditmod4b.c: Likewise.
28025         * elf/tst-auditmod5b.c: Likewise.
28026         * elf/tst-auditmod6b.c: Likewise.
28027         * elf/tst-auditmod6c.c: Likewise.
28028         * elf/tst-auditmod7b.c: Likewise.
28029
28030         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
28031         and x32_gnu_pltexit.
28032
28033         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
28034         __ELF_NATIVE_CLASS.
28035         (La_x32_regs): New macro.
28036         (La_x32_retval): Likewise.
28037         (la_x32_gnu_pltenter): New function prototype.
28038         (la_x32_gnu_pltexit): Likewise.
28039
28040 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
28041
28042         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
28043         exponent.
28044
28045         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28046
28047         * configure.in (libc_cv_cc_nofma): Check for option to disable
28048         generation of FMA instructions.
28049         * configure: Regenerate.
28050         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
28051         * sysdeps/ieee754/dbl-64/Makefile: New file.
28052         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28053         Remove brandred-fma4.
28054         (CFLAGS-brandred-fma4.c): Remove.
28055         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
28056         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
28057         define.
28058         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
28059         define.
28060
28061 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28062
28063         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
28064         LLONG_MAX != LONG_MAX.
28065         (_itoa_word): Use _ITOA_WORD_TYPE on value.
28066         (_fitoa_word): Likewise.
28067         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
28068         LLONG_MAX != LONG_MAX.
28069         * stdio-common/_itowa.h: Include <_itoa.h>.
28070         (_itowa_word): Use _ITOA_WORD_TYPE on value.
28071         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
28072         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
28073         only if not defined.
28074         (_ITOA_WORD_TYPE): Likewise.
28075         (_itoa_word): Use _ITOA_WORD_TYPE on value.
28076         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
28077
28078 2012-03-21  David S. Miller  <davem@davemloft.net>
28079
28080         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28081
28082 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28083
28084         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
28085         of x86_64 when setting libc_cv_slibdir, libdir and
28086         libc_cv_localedir.
28087         * sysdeps/unix/sysv/linux/configure: Regenerated.
28088
28089 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28090
28091         * manual/lang.texi (Old Varargs): Remove section.
28092         (How Variadic): Update menu.
28093         (va_start): Do not mention varargs.h.
28094
28095 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
28096             Joseph Myers  <joseph@codesourcery.com>
28097
28098         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
28099         link test.
28100         * configure: Regenerated.
28101
28102 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
28103
28104         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
28105         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
28106         conformtest.pl
28107
28108 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28109
28110         * NOTES: Remove.
28111         * Makefile (files-for-dist): Remove NOTES.
28112         (NOTES): Remove rule.
28113         * README: Don't refer to NOTES.
28114         * manual/creature.texi: Don't include macros.texi.
28115         * manual/intro.texi (creature.texi): Remove comment referring to
28116         NOTES.
28117
28118         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
28119         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
28120         * configure: Regenerated.
28121         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
28122         LIBC_TRY_CC_OPTION.
28123         (libc_cv_as_i686): Likewise.
28124         (libc_cv_cc_avx): Likewise.
28125         (libc_cv_cc_sse2avx): Likewise.
28126         (libc_cv_cc_fma4): Likewise.
28127         (libc_cv_cc_novzeroupper): Likewise.
28128         * sysdeps/i386/configure: Regenerated.
28129
28130         [BZ #13883]
28131         * sysdeps/i386/fpu/s_cexp.S: Remove.
28132         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
28133         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
28134         * math/libm-test.inc (cexp_test): Add more tests.
28135         * sysdeps/i386/fpu/libm-test-ulps: Update.
28136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28137
28138 2012-03-21  Allan McRae  <allan@archlinux.org>
28139
28140         * timezone/Makefile: Do not install iso3166.tab and zone.tab
28141
28142 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28143
28144         [BZ #13871]
28145         * math/w_exp2.c: Do not include <float.h>.
28146         (o_threshold, u_threshold): Remove.
28147         (__exp2): Calculate result before checking finiteness and calling
28148         __kernel_standard.
28149         * math/w_exp2f.c: Likewise.
28150         * math/w_exp2l.c: Likewise.
28151         * math/libm-test.inc (exp2_test): Require overflow exception for
28152         1e6 input.
28153
28154         [BZ #3866]
28155         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
28156         range of signed 64-bit integers before using fistpll.  Remove
28157         checks for whether integers fit in mantissa bits.
28158         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
28159         the range of signed 32-bit integers before using fistpl.  Remove
28160         checks for whether integers fit in mantissa bits.
28161         * sysdeps/i386/fpu/e_powl.S (p64): New object.
28162         (__ieee754_powl): Test for y outside the range of signed 64-bit
28163         integers before using fistpll.  Reduce 64-bit values to 63-bit
28164         ones as needed.
28165         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
28166         divide-by-zero is raised for zero to large negative powers.
28167         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
28168         (__ieee754_powl): Test for y outside the range of signed 64-bit
28169         integers before using fistpll.  Reduce 64-bit values to 63-bit
28170         ones as needed.
28171         * math/libm-test.inc (pow_test): Add more tests.
28172
28173 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28174
28175         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
28176         <stdio-common/_itoa.h>.
28177         * debug/segfault.c: Likewise.
28178         * elf/dl-cache.c: Likewise.
28179         * elf/dl-minimal.c: Likewise.
28180         * elf/dl-misc.c: Likewise.
28181         * elf/dl-sysdep.c: Likewise.
28182         * elf/dl-version.c: Likewise.
28183         * elf/rtld.c: Likewise.
28184         * hurd/hurdsock.c: Likewise.
28185         * hurd/lookup-retry.c: Likewise.
28186         * malloc/malloc.c: Likewise.
28187         * malloc/mtrace.c: Likewise.
28188         * nscd/nscd_getgr_r.c: Likewise.
28189         * nscd/nscd_getpw_r.c: Likewise.
28190         * nscd/nscd_getserv_r.c: Likewise.
28191         * posix/getopt_init.c: Likewise.
28192         * posix/wordexp.c: Likewise.
28193         * stdio-common/_itoa.c: Likewise.
28194         * stdio-common/printf_fphex.c: Likewise.
28195         * stdio-common/vfprintf.c: Likewise.
28196         * string/_strerror.c: Likewise.
28197         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
28198         * sysdeps/i386/i686/hp-timing.h: Likewise.
28199         * sysdeps/mach/_strerror.c: Likewise.
28200         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
28201         * sysdeps/mach/hurd/sethostid.c: Likewise.
28202         * sysdeps/mach/hurd/xmknodat.c: Likewise.
28203         * sysdeps/mach/xpg-strerror.c: Likewise.
28204         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
28205         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28206         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
28207         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
28208         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28209         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
28210         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28211         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28212         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
28213         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
28214         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
28215         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
28216         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
28217         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
28218         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
28219         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
28220         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
28221         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
28222         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
28223         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
28224         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
28225
28226         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
28227
28228         * stdio-common/_itoa.h: Moved to ...
28229         * sysdeps/generic/_itoa.h: Here.
28230
28231         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
28232
28233         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
28234         instead of "_itoa.h" and "_itowa.h".
28235         * stdio-common/vfprintf.: Likewise.
28236
28237 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28238
28239         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
28240         <bits/wordsize.h>.
28241         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
28242         (__signbit): Likwise.
28243         (llrintf): Likwise.
28244         (llrint): Likwise.
28245
28246 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28247
28248         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
28249         __WORDSIZE != 64.
28250
28251 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
28252
28253         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
28254         OVERFLOW_EXCEPTION_OK.
28255         * math/libm-test.inc ("Philosophy"): Update comment about
28256         exception testing.
28257         (OVERFLOW_EXCEPTION): Define.
28258         (OVERFLOW_EXCEPTION_OK): Likewise.
28259         (INVALID_EXCEPTION_OK): Renumber.
28260         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
28261         (IGNORE_ZERO_INF_SIGN): Likewise.
28262         (test_exceptions): Handle FE_OVERFLOW.
28263         (exp10_test): Expect overflow exceptions.
28264         (exp2_test): Likewise.
28265         (expm1_test): Likewise.
28266         (nextafter_test): Likewise.
28267         (pow_test): Likewise.
28268         (scalbn_test): Likewise.
28269         (scalbln_test): Likewise.
28270
28271 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28272
28273         * sysdeps/x86_64/bits/atomic.h
28274         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
28275         64bit integer.
28276         (atomic_exchange_acq): Likewise.
28277         (__arch_exchange_and_add_body): Likewise.
28278         (__arch_add_body): Likewise.
28279         (atomic_add_negative): Likewise.
28280         (atomic_add_zero): Likewise.
28281
28282 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28283
28284         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
28285         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
28286
28287 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28288
28289         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
28290         Check __x86_64__ instead of __WORDSIZE.
28291
28292 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28293
28294         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
28295
28296 2012-03-19  David S. Miller  <davem@davemloft.net>
28297
28298         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28299
28300         * sysdeps/sparc/fpu/fenv_private.h: New file.
28301         * sysdeps/sparc/fpu/math_private.h: Use it.
28302         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
28303         Remove.
28304         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
28305         (libc_feholdexcept_setroundl): Remove.
28306         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
28307         Remove.
28308         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
28309         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
28310
28311 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28312
28313         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
28314         int64_t instead of long int.
28315         (INSERT_WORDS64): Likwise.
28316
28317 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28318
28319         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
28320         _Unwind_GetCFA return to _Unwind_Ptr first.
28321
28322 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
28323
28324         [BZ #13629]
28325         * math/s_clog.c: Include <float.h>.
28326         (__clog): Scale large or subnormal inputs.
28327         * math/s_clogf.c: Likewise.
28328         * math/s_clogl.c: Likewise.
28329         * math/s_clog10.c: Include <float.h>.
28330         (M_LOG10_2): Define.
28331         (__clog10): Scale large or subnormal inputs.
28332         * math/s_clog10f.c: Likewise.
28333         * math/s_clog10l.c: Likewise.
28334         * math/libm-test.inc (clog_test): Add more tests.
28335         (clog10_test): Likewise.
28336         * sysdeps/i386/fpu/libm-test-ulps: Update.
28337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28338
28339         [BZ #11451]
28340         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
28341         x and y.
28342         * math/libm-test.inc (atan2_test): Add another test.
28343
28344         * Makerules (common-objdir-compile): Remove.
28345         * sysdeps/unix/Makefile (config-generated): Do not add
28346         $(unix-generated) to variable.
28347         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
28348         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
28349         Remove rule.
28350         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
28351         Likewise.
28352         [generic bits/local_lim.h] (before-compile): Do not append to
28353         variable.
28354         [generic bits/local_lim.h] (common-generated): Likewise.
28355         [generic sys/param.h] (before-compile): Do not append to variable.
28356         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
28357         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
28358         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
28359         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
28360         include.
28361         [generic sys/param.h] (sys/param.h-includes): Remove variable.
28362         [generic sys/param.h] (sys/param.h-includes): Remove rule.
28363         [generic sys/param.h] ($(addprefix
28364         $(common-objpfx),$(sys/param.h-includes))): Likewise.
28365         [generic sys/param.h] (common-generated): Do not append to
28366         variable.
28367         [generic sys/param.h] (sysdep_headers): Likewise.
28368         [generic bits/errno.h] (before-compile): Do not append to
28369         variable.
28370         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
28371         rule.
28372         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
28373         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
28374         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
28375         [generic bits/errno.h] (common-generated): Do not append to
28376         variable.
28377         [generic bits/ioctls.h] (before-compile): Do not append to
28378         variable.
28379         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
28380         rule.
28381         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
28382         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
28383         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
28384         rule.
28385         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
28386         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
28387         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
28388         [generic bits/ioctls.h] (common-generated): Do not append to
28389         variable.
28390         [generic sys/syscall.h] (syscall.h): Remove variable.
28391         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
28392         rule.
28393         [generic sys/syscall.h] (before-compile): Do not append to
28394         variable.
28395         [generic sys/syscall.h] (common-generated): Likewise.
28396         * sysdeps/unix/errnos-tmpl.c: Remove file.
28397         * sysdeps/unix/errnos.awk: Likewise.
28398         * sysdeps/unix/ioctls-tmpl.c: Likewise.
28399         * sysdeps/unix/ioctls.awk: Likewise.
28400         * sysdeps/unix/mk-local_lim.c: Likewise.
28401         * sysdeps/unix/snarf-ioctls: Likewise.
28402
28403 2012-03-19  Richard Henderson  <rth@twiddle.net>
28404
28405         * sysdeps/i386/fpu/fenv_private.h: New file.
28406         * sysdeps/i386/fpu/math_private.h: Use it.
28407         (math_opt_barrier, math_force_eval): Remove.
28408         (libc_feholdexcept_setround_53bit): Remove.
28409         (libc_feupdateenv_53bit): Remove.
28410         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28411         (math_opt_barrier, math_force_eval): Remove.
28412         (libc_feholdexcept): Remove.
28413         (libc_feholdexcept_setround): Remove.
28414         (libc_fetestexcept, libc_fesetenv): Remove.
28415         (libc_feupdateenv_test): Remove.
28416         (libc_feupdateenv, libc_feholdsetround): Remove.
28417         (libc_feresetround): Remove.
28418
28419         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
28420         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28421
28422         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
28423         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
28424         (libc_feupdateenv_testl): New.
28425         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
28426         (libc_feupdateenv_testf): New.
28427         (libc_feupdateenv): Use libc_feupdateenv_test.
28428         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
28429         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
28430
28431         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
28432         (libc_feholdsetroundf, libc_feholdsetroundl): New.
28433         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
28434         (libc_feresetround_noex): New.
28435         (libc_feresetround_noexf): New.
28436         (libc_feresetround_noexl): New.
28437         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
28438         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
28439         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
28440         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
28441         SET_RESTORE_ROUND.
28442         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
28443         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
28444         (__cos): Likewise.
28445         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
28446         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
28447         SET_RESTORE_ROUND_NOEX.
28448         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
28449         SET_RESTORE_ROUND_NOEXF.
28450         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
28451         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
28452         (libc_feholdsetroundf): New.
28453         (libc_feresetround, libc_feresetroundf): New.
28454
28455         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
28456         (libc_feholdexcept_setround_53bit): Convert from macro to function.
28457         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
28458
28459         * sysdeps/generic/math_private.h: Include <fenv.h>.
28460         (default_libc_feholdexcept): New.
28461         (default_libc_feholdexcept_setround): New.
28462         (default_libc_fesetenv, default_libc_feupdateenv): New.
28463         (libc_feholdexcept): Only define if undefined.
28464         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
28465         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
28466         (libc_feholdexcept_setroundl): Likewise.
28467         (libc_feholdexcept_setround_53bit): Likewise.
28468         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
28469         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
28470         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
28471         (libc_feupdateenv_53bit): Likewise.
28472         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
28473         (libc_feholdexcept): Convert from macro to inline function.
28474         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
28475         (libc_fesetenv, libc_feupdateenv): Likewise.
28476
28477         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
28478         not previously defined.
28479         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
28480         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
28481         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
28482         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
28483         * sysdeps/ieee754/flt-32/math_private.h: New file.
28484         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
28485         math_private.h below SET_FLOAT_WORD.
28486         (__isnan, __isinf_ns, __finite): Remove.
28487         (__isnanf, __isinf_nsf, __finitef): Remove.
28488
28489 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
28490
28491         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28492
28493 2012-03-17  David S. Miller  <davem@davemloft.net>
28494
28495         [BZ #6471]
28496         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
28497         for 2.16.
28498
28499 2012-03-16  David S. Miller  <davem@davemloft.net>
28500
28501         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
28502         warnings.
28503
28504         [BZ #6471]
28505         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
28506         properly.
28507         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
28508         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
28509         sysdep_routines when subdir is sysvipc.
28510         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
28511         __getshmlba helper.
28512
28513         * sysdeps/sparc/fpu/libm-test/ulps: Update.
28514
28515 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28516
28517         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
28518         [__LP64__].
28519
28520 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28521
28522         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
28523         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
28524         (__lround): Renamed to ...
28525         (__llround): This.  Replace long int with long long int.
28526         Define lround functions as aliases of llround functions.
28527         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
28528
28529 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28530
28531         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
28532         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
28533         adresses to uintptr_t.  Replace "long int" and "unsigned long
28534         int" with "greg_t" on va_arg.
28535
28536 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28537
28538         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
28539         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
28540
28541         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
28542         Move e_machine check before EI_CLASS check.  Handle x32
28543         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
28544         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
28545         SKIP_EM_IA_64 and include
28546         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
28547
28548         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
28549         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
28550         (add_system_dir): New macro.
28551
28552         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
28553         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
28554
28555 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28556
28557         [BZ #2551]
28558         [BZ #2552]
28559         [BZ #2553]
28560         [BZ #2554]
28561         [BZ #2562]
28562         [BZ #2563]
28563         [BZ #2565]
28564         [BZ #2566]
28565         [BZ #2576]
28566         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
28567         (y0): Likewise.
28568         * math/w_j0f.c (j0f): Likewise.
28569         (y0f): Likewise.
28570         * math/w_j0l.c (__j0l): Likewise.
28571         (__y0l): Likewise.
28572         * math/w_j1.c (j1): Likewise.
28573         (y1): Likewise.
28574         * math/w_j1f.c (j1f): Likewise.
28575         (y1f): Likewise.
28576         * math/w_j1l.c (__j1l): Likewise.
28577         (__y1l): Likewise.
28578         * math/w_jn.c (jn): Likewise.
28579         (yn): Likewise.
28580         * math/w_jnf.c (jnf): Likewise.
28581         (ynf): Likewise.
28582         * math/w_jnl.c (__jnl): Likewise.
28583         (__ynl): Likewise.
28584         * math/libm-test.inc (j0_test): Add more tests.
28585         (j1_test): Likewise.
28586         (jn_test): Likewise.  Add trailing semicolon to existing test.
28587         (y0_test): Likewise.
28588         (y1_test): Likewise.
28589         * sysdeps/i386/fpu/libm-test-ulps: Update.
28590         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28591
28592         [BZ #13851]
28593         [BZ #13854]
28594         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
28595         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
28596         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
28597         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
28598         (__tanl): Set errno for infinite argument.
28599         * sysdeps/i386/fpu/mptan.c: Remove.
28600         * sysdeps/i386/fpu/s_tan.S: Likewise.
28601         * sysdeps/i386/fpu/s_tanl.S: Likewise.
28602         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
28603         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
28604         * math/libm-test.inc (tan_test): Add more tests and enable more
28605         tests for double and long double.
28606         * sysdeps/i386/fpu/libm-test-ulps: Update.
28607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28608
28609 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
28610
28611         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
28612         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
28613
28614 2012-03-16  Roland McGrath  <roland@hack.frob.com>
28615
28616         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
28617         * configure.in: Use it for both main tree and add-ons.
28618         * configure: Regenerated.
28619
28620 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28621
28622         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
28623
28624 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28625
28626         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
28627         in comment.
28628
28629         [BZ #13851]
28630         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
28631         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
28632         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
28633         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
28634         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
28635         infinite argument.
28636         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
28637         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
28638         != 0 for prec == 2.
28639         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
28640         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
28641         * sysdeps/i386/fpu/s_cosl.S: Likewise.
28642         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
28643         * sysdeps/i386/fpu/s_sinl.S: Likewise.
28644         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
28645         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
28646         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
28647         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
28648         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
28649         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
28650         * math/libm-test.inc (cos_test): Add more tests and enable more
28651         tests for long double.
28652         (sin_test): Likewise.
28653         (sincos_test): Likewise.
28654         * sysdeps/i386/fpu/libm-test-ulps: Update.
28655         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28656
28657 2012-03-16  David S. Miller  <davem@davemloft.net>
28658
28659         * sysdeps/sparc/fpu/math_private.h: New file.
28660
28661 2012-03-15  David S. Miller  <davem@davemloft.net>
28662
28663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
28664         file.
28665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
28666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
28667         file.
28668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
28669         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
28670         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
28671         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
28672         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
28673         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
28674         sysdep routines.
28675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28676
28677         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
28678         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
28679
28680         * sysdeps/sparc/sparc-ifunc.h: New file.
28681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
28682         sparc-ifunc.h
28683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
28684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28685         Likewise.
28686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
28687         Likewise.
28688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
28689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
28690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
28691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
28692         Likewise.
28693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
28694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
28695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
28696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
28697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
28698         Likewise.
28699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
28700         Likewise.
28701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
28702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
28703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
28704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
28705         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
28706         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
28707         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
28708         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
28709         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
28710         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
28711         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
28712         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
28713         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
28714         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
28715         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
28716         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
28717         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
28718         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
28719         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
28720         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
28721         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
28722         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
28723         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
28724         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
28725
28726 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28727
28728         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
28729         scaling.
28730         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28731
28732 2012-03-15  Andreas Jaeger  <aj@suse.de>
28733
28734         [BZ #13852]
28735         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
28736         ieee754/flt-32 implementation for sin, cos and sincos.
28737         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
28738         * sysdeps/i386/fpu/s_cosf.S: Likewise.
28739         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
28740         * sysdeps/i386/fpu/s_sinf.S: Likewise.
28741         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
28742         ieee754/flt-32 implementation for tan.
28743
28744         * math/libm-test.inc (cos_test): Enable some large input tests for
28745         float as well
28746         (sin_test): Likewise.
28747         (sincos_test): Likewise.
28748         (tan_test): Add tests for large input.
28749
28750         * sysdeps/i386/fpu/libm-test-ulps: Update.
28751
28752 2012-03-15  Andreas Jaeger  <aj@suse.de>
28753
28754         [BZ #13658]
28755         * math/libm-test.inc (cos_test): Add more test cases.
28756         (sin_test): Likewise.
28757         (sincos_test): Likewise.
28758
28759 2012-03-15  Andreas Jaeger  <aj@suse.de>
28760
28761         [BZ #13837]
28762         * math/libm-test.inc (cos_test): Add a test case for large input
28763         value.
28764         (sin_test): Likewise.
28765         (sincos_test): Likewise.
28766
28767 2012-03-15  Andreas Jaeger  <aj@suse.de>,
28768         Joseph Myers  <joseph@codesourcery.com>
28769
28770         [BZ #13658]
28771         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
28772         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
28773         * sysdeps/i386/fpu/branred.c: Likewise.
28774         * sysdeps/i386/fpu/dosincos.c: Likewise.
28775         * sysdeps/i386/fpu/mpa.c: Likewise.
28776         * sysdeps/i386/fpu/s_cos.S: Likewise.
28777         * sysdeps/i386/fpu/s_sin.S: Likewise.
28778         * sysdeps/i386/fpu/s_sincos.S: Likewise.
28779         * sysdeps/i386/fpu/sincos32.c: Likewise.
28780
28781         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
28782         Define.
28783         (libc_feupdateenv_53bit): Define.
28784         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
28785         Define.
28786         (libc_feupdateenv_53bit): Define.
28787
28788         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
28789         53 bit (without extend i386 double precision).
28790
28791         * math/libm-test.inc (sincos_test): Add tests for large input.
28792         (sin): Likewise.
28793         (cos): Likewise.
28794
28795         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28796
28797 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28798
28799         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28800
28801 2012-03-15  David S. Miller  <davem@davemloft.net>
28802
28803         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
28804         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
28805         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
28806         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
28807         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
28808         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
28809         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
28810         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
28811         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
28812         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
28813         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
28814         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
28815         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
28816         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
28817         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
28818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
28819         file.
28820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
28821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
28822         file.
28823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
28824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
28825         file.
28826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
28827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
28828         file.
28829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
28830         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
28831         fmin/fmax sysdep routines.
28832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28833
28834 2012-03-14  David S. Miller  <davem@davemloft.net>
28835
28836         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
28837         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
28838         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
28839         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
28840         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
28841         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
28842         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
28843         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
28844         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
28845         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
28846         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
28847         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
28848         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
28849         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
28850         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
28851         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
28852         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
28853         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
28854         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
28855         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
28856         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
28857         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
28858         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
28859         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
28860         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
28861         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
28862         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
28863         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
28864         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
28865         routines.
28866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
28867         file.
28868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
28869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
28870         file.
28871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
28872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
28873         file.
28874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
28875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
28876         file.
28877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
28878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
28879         file.
28880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
28881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
28882         file.
28883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
28884         file.
28885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
28886         file.
28887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
28888         file.
28889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
28890         New file.
28891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
28892         file.
28893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
28894         file.
28895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
28896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
28897         file.
28898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
28899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
28900         file.
28901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
28902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
28903         file.
28904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
28905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
28906         VIS3 routines.
28907
28908         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
28909         New file.
28910
28911         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28912
28913         * sysdeps/sparc/configure.in: New file.
28914         * sysdeps/sparc/configure: Generate.
28915         * configure.in (libc_cv_sparc_as_vis3): Substitute.
28916         * configure: Regenerate.
28917         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
28918         * config.make.in (have-as-vis3): New.
28919         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
28920         available use -Av9d instead of -Av9a.
28921         * sysdeps/sparc/sparc64/Makefile: Likewise.
28922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
28923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
28924         New file.
28925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
28926         file.
28927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
28928         New file.
28929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
28930         file.
28931         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
28932         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
28933         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
28934         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
28935         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
28936
28937         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
28938         fzeros/fnegs to load 0x80000000 into a float register instead of
28939         using the stack.
28940         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
28941
28942 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28943
28944         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28945         bits/syscall.h.
28946         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
28947         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
28948         ($(inst_includedir)/bits/syscall.h): Remove rule.
28949         ($(objpfx)bits/syscall.d): Include instead of
28950         $(objpfx)syscall-list.d.
28951         (generated): Change syscall-list.h and syscall-list.d to
28952         bits/syscall.h and bits/syscall.d.
28953
28954 2012-03-14  Roland McGrath  <roland@hack.frob.com>
28955
28956         [BZ #13846]
28957         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
28958
28959 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
28960
28961         [BZ #13841]
28962         * math/s_csqrt.c: Include <float.h>.
28963         (__csqrt): Scale large or subnormal inputs.
28964         * math/s_csqrtf.c: Likewise.
28965         * math/s_csqrtl.c: Likewise.
28966         * math/libm-test.inc (csqrt_test): Add more tests.
28967         * sysdeps/i386/fpu/libm-test-ulps: Update.
28968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28969
28970         [BZ #13840]
28971         * math/libm-test.inc (hypot_test): Add more tests.
28972
28973 2012-03-13  David S. Miller  <davem@davemloft.net>
28974
28975         [BZ #13840]
28976         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
28977         double-precision for the calculation instead of scaling.
28978
28979 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
28980
28981         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
28982         manipulate bits before adding and subtracting TWO52[sx].
28983         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
28984         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28985         Likewise.
28986         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
28987
28988 2012-03-13  David S. Miller  <davem@davemloft.net>
28989
28990         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
28991         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
28992         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
28993         rtld-global-offsets.h
28994         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
28995
28996         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
28997         large parameters.
28998
28999         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
29000
29001         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
29002         'err' in the ifdef scope in which it is actually used.
29003
29004         * nss/nss_db/db-init.c: Include string.h
29005
29006 2012-03-12  David S. Miller  <davem@davemloft.net>
29007
29008         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
29009         masking out of the most significant byte of random value used.
29010         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
29011         Fix coding style in previous change.
29012
29013         * sysdeps/unix/sysv/linux/kernel-features.h
29014         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
29015         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
29016         expression.
29017         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
29018         later.
29019
29020 2012-03-11  David S. Miller  <davem@davemloft.net>
29021
29022         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
29023         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
29024         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
29025         for 'resultvar' otherwise things get truncated on 64-bit.
29026
29027         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
29028         Fix masking out of the most significant byte of random value used.
29029
29030         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29031
29032 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
29033
29034         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29035
29036 2012-03-09  David S. Miller  <davem@davemloft.net>
29037
29038         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
29039         variables with appropriate CPP guards.
29040         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
29041         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
29042         on resulting framesize and the management of the outregs buffer for pltexit.
29043         Preserve floating point return values across _dl_call_pltexit call.
29044         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
29045         framesize and the management of the outregs buffer for pltexit.
29046         Preserve floating point return values across _dl_call_pltexit
29047         call.
29048         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
29049         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
29050         (print_exit): Fix format string for return register value.
29051
29052 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
29053
29054         * sunrpc/Makefile (others): Add rpcgen.
29055         ($(objpfx)rpcgen): Remove special build rule and dependency on
29056         libc.
29057         * sunrpc/rpcgen.c: New file.
29058
29059 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
29060
29061         [BZ #13673]
29062         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
29063         * stdio-common/bug-vfprintf-nargs.c: Likewise.
29064         * sysdeps/i386/crti.S: Likewise.
29065         * sysdeps/i386/crtn.S: Likewise.
29066         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
29067         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
29068         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
29069         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
29070         * sysdeps/sh/crti.S: Likewise.
29071         * sysdeps/sh/crtn.S: Likewise.
29072         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29073
29074         [BZ #13673]
29075         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
29076         with URL.
29077         * locale/programs/locfile-kw.gperf: Likewise.
29078         * locale/programs/charmap-kw.h: Regenerated.
29079         * locale/programs/locfile-kw.h: Likewise.
29080
29081         [BZ #13673]
29082         * intl/plural.y: Replace FSF snail mail address with URL.
29083         * intl/plural.c: Regenerated.
29084
29085 2012-03-09  Richard Henderson  <rth@twiddle.net>
29086
29087         * include/math_private.h: Remove file.
29088         * math/math_private.h: Move file ...
29089         * sysdeps/generic/math_private.h: ... here.
29090
29091         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
29092         * sysdeps/powerpc/fpu/math_private.h: Likewise.
29093         * sysdeps/x86_64/fpu/math_private.h: Likewise.
29094
29095         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
29096         and <math_private.h>.
29097         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
29098         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
29099         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
29100         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
29101         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
29102         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
29103         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
29104         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29105         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
29106         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29107         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29108         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29109         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
29110         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29111         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
29112         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
29113         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29114         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
29115         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
29116         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
29117         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29118         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
29119         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
29120         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29121         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
29122         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
29123         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
29124         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29125         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29126         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
29127         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
29128         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29129         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
29130         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
29131         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
29132         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
29133         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
29134         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
29135         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
29136         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29137         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
29138         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
29139         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
29140         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
29141         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
29142         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
29143         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
29144         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
29145         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
29146         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
29147         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
29148         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
29149         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
29150         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
29151         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
29152         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
29153         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
29154         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
29155         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
29156         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
29157         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
29158         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
29159         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29160         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
29161         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
29162         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
29163         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
29164         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
29165         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
29166         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
29167         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
29168         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
29169         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
29170         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
29171         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
29172         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
29173         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
29174         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
29175         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
29176         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
29177         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
29178         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
29179         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
29180         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
29181         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
29182         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
29183         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
29184         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
29185         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29186         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29187         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29188         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29189         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29190         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29191         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29192         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29193         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29194         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29195         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29196         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29197         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29198         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29199         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29200         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29201         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
29202         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29203         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29204         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29205         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
29206         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
29207         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
29208         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
29209         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29210         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
29211         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
29212         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29213         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
29214         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
29215         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
29216         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
29217         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
29218         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
29219         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29220         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
29221         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
29222         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
29223         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29224         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
29225         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
29226         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
29227         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
29228         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
29229         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
29230         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
29231         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
29232         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
29233         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29234         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
29235         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
29236         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
29237         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
29238         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
29239         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
29240         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
29241         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
29242         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
29243         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
29244         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
29245         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
29246         * sysdeps/ieee754/k_standard.c: Likewise.
29247         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29248         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29249         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29250         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29251         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29252         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29253         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29254         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29255         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29256         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29257         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29258         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29259         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29260         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29261         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29262         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29263         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
29264         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29265         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29266         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
29267         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
29268         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
29269         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
29270         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
29271         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
29272         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
29273         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
29274         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
29275         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
29276         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
29277         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
29278         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
29279         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
29280         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
29281         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
29282         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
29283         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
29284         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
29285         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
29286         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
29287         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
29288         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
29289         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
29290         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
29291         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
29292         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
29293         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
29294         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
29295         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
29296         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
29297         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
29298         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
29299         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
29300         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
29301         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
29302         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
29303         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
29304         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
29305         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
29306         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
29307         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
29308         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
29309         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
29310         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29311         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29312         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29313         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29314         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29315         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29316         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29317         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29318         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29319         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29320         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29321         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29322         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29323         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
29324         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29325         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29326         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
29327         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
29328         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
29329         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
29330         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
29331         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
29332         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
29333         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
29334         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29335         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29336         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
29337         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
29338         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
29339         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
29340         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
29341         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
29342         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
29343         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
29344         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
29345         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
29346         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
29347         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
29348         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
29349         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
29350         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
29351         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
29352         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
29353         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
29354         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
29355         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
29356         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
29357         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
29358         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
29359         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29360         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29361         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29362         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29363         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29364         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29365         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29366         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29367         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29368         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29369         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29370         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29371         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29372         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
29373         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
29374         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
29375         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
29376         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
29377         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
29378         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
29379         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
29380         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
29381         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
29382         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
29383         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
29384         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
29385         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
29386         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
29387         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
29388         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
29389         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
29390         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
29391         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
29392         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
29393         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
29394         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
29395         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
29396         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
29397         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
29398         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
29399         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
29400         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
29401         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
29402         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
29403         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
29404         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
29405         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
29406         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
29407         * sysdeps/ieee754/s_lib_version.c: Likewise.
29408         * sysdeps/ieee754/s_matherr.c: Likewise.
29409         * sysdeps/ieee754/s_signgam.c: Likewise.
29410         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29411         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29412         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
29413         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
29414         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
29415         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
29416         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
29417         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
29418         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
29419         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
29420         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
29421         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
29422         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
29423         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
29424         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
29425         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
29426         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
29427         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
29428         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
29429         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
29430         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
29431
29432 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29433
29434         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
29435         * sunrpc/rpc_main.c: Likewise.
29436         * sunrpc/rpc_svcout.c: Likewise.
29437
29438 2012-03-09  David S. Miller  <davem@davemloft.net>
29439
29440         * include/math_private.h: New file.
29441
29442 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29443
29444         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
29445         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
29446         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
29447         from <bits/socket_type.h>.
29448         (enum __socket_type): Don't define here.
29449         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
29450         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29451         bits/socket_type.h.
29452
29453         [BZ #13566]
29454         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
29455         checking __USE_GNU.
29456
29457         * Makerules ($(inst_includedir)/%.h): New rule.
29458         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
29459         (install-others): Remove variable setting.
29460         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
29461
29462 2012-03-08  Richard Henderson  <rth@twiddle.net>
29463
29464         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
29465         from macro to inline function; merge with the
29466         !__LIBC_INTERNAL_MATH_INLINES version.
29467         (__ieee754_sqrtf): Likewise.
29468
29469         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
29470         to inline function.
29471         (__rintf, __floor, __floorf): Likewise.
29472
29473         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
29474         macro to inline function.
29475         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
29476
29477         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
29478         not <math/math_private.h>.
29479
29480 2012-03-08  David S. Miller  <davem@davemloft.net>
29481
29482         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
29483         copyright year.
29484         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
29485
29486 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
29487
29488         * resolv/gai_misc.c (handle_requests): Fix struct timespec
29489         normalization.
29490         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
29491         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29492
29493 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
29494
29495         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
29496         be defined individually, they must be defined as a block.  Define
29497         S for printing a string instead of hidint the different by using a
29498         macro for adding the 'l'.
29499         * stdio-common/tst-fphex-wide.c: Adjust.
29500
29501 2012-03-07  Marek Polacek  <polacek@redhat.com>
29502
29503         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
29504
29505 2012-03-08  Marek Polacek  <polacek@redhat.com>
29506
29507         [BZ #13806]
29508         * stdio-common/Makefile (tests): Add tst-fphex-wide.
29509         * stdio-common/tst-fphex.c: Define a few macros to make the
29510         test reusable.  Use them.
29511         * stdio-common/tst-fphex-wide.c: New file.
29512
29513 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
29514
29515         [BZ #6911]
29516         * manual/macros.texi (gnusystems): New macro.
29517         (nongnusystems): Likewise.
29518         (gnulinuxhurdsystems): Likewise.
29519         (gnuhurdsystems): Likewise..
29520         (gnulinuxsystems): Likewise.
29521         * manual/charset.texi: Use new macros or @theglibc{} to refer to
29522         variants of the GNU system, not "GNU system".
29523         * manual/conf.texi: Likewise.
29524         * manual/errno.texi: Likewise.  Update example of errno macro
29525         expansion.
29526         * manual/filesys.texi: Likewise.
29527         (getumask): Document as specific to GNU/Hurd.
29528         * manual/install.texi: Likewise.  Reword some references to
29529         GNU/Linux.
29530         * manual/intro.texi: Likewise.
29531         * manual/io.texi: Likewise.
29532         (File Name Portability): Detail which constraints are inapplicable
29533         to all GNU systems and which are only inapplicable to GNU/Hurd.
29534         * manual/job.texi: Likewise.
29535         * manual/llio.texi: Likewise.
29536         (O_NOCTTY): Document as present on GNU/Linux.
29537         * manual/maint.texi: Likewise.
29538         * manual/memory.texi: Likewise.
29539         * manual/pattern.texi: Likewise.
29540         * manual/pipe.texi: Likewise.
29541         * manual/process.texi: Likewise.
29542         * manual/resource.texi: Likewise.
29543         (RUSAGE_CHILDREN): Remove statement about specifying a particular
29544         child on GNU/Hurd.
29545         * manual/setjmp.texi: Likewise.
29546         * manual/signal.texi: Likewise.
29547         * manual/startup.texi: Likewise.
29548         * manual/stdio.texi: Likewise.
29549         * manual/terminal.texi: Likewise.
29550         (ONLCR): Document as POSIX.
29551         (OXTABS): Document availability on GNU/Linux as XTABS.
29552         (ONOEOT): Document availability separately from other bits.
29553         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
29554         * manual/time.texi: Likewise.
29555         * manual/users.texi: Likewise.
29556         * INSTALL: Regenerated.
29557         * sysdeps/gnu/errlist.c: Regenerated.
29558
29559         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
29560         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
29561         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
29562         puts.
29563         * configure: Regenerated.
29564
29565 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
29566
29567         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
29568         default includes instead of AC_HEADER_CHECK.
29569         * sysdeps/i386/configure: Regenerated.
29570
29571         [BZ #10716]
29572         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
29573         * math/s_cacoshf.c (__cacoshf): Likewise.
29574         * math/s_cacoshl.c (__cacoshl): Likewise.
29575         * math/s_casinh.c (__casinh): Set signs of result from argument.
29576         * math/s_casinhf.c (__casinhf): Likewise.
29577         * math/s_casinhl.c (__casinhl): Likewise.
29578         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
29579         (casinh_test): Add more tests.
29580         * sysdeps/i386/fpu/libm-test-ulps: Update.
29581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29582
29583 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
29584
29585         * po/zh_TW.po: Update from translation team.
29586
29587         * login/Makefile (distribute): Remove variable.
29588         * catgets/Makefile: Likewise.
29589         * mach/Makefile: Likewise.
29590         * malloc/Makefile: Likewise.
29591         * misc/Makefile: Likewise.
29592         * iconv/Makefile: Likewise.
29593         * nscd/Makefile: Likewise.
29594         * hurd/Makefile: Likewise.
29595         * manual/Makefile: Likewise.
29596         * locale/Makefile: Likewise.
29597         * intl/Makefile: Likewise.
29598         * conform/Makefile: Likewise.
29599         * nss/Makefile: Likewise.
29600         * time/Makefile: Likewise.
29601         * soft-fp/Makefile: Likewise.
29602         * dirent/Makefile: Likewise.
29603         * gmon/Makefile: Likewise.
29604         * po/Makefile: Likewise.
29605         * rt/Makefile: Likewise.
29606         * socket/Makefile: Likewise.
29607         * math/Makefile: Likewise.
29608         * signal/Makefile: Likewise.
29609         * debug/Makefile: Likewise.
29610         * elf/Makefile: Likewise.
29611         * timezone/Makefile: Likewise.
29612         * stdlib/Makefile: Likewise.
29613         * iconvdata/Makefile: Likewise.
29614         * sunrpc/Makefile: Likewise.
29615         * io/Makefile: Likewise.
29616         * argp/Makefile: Likewise.
29617         * inet/Makefile: Likewise.
29618         * hesiod/Makefile: Likewise.
29619         * grp/Makefile: Likewise.
29620         * csu/Makefile: Likewise.
29621         * wctype/Makefile: Likewise.
29622         * crypt/Makefile: Likewise.
29623         * libio/Makefile: Likewise.
29624         * string/Makefile: Likewise.
29625         * nis/Makefile: Likewise.
29626         * resolv/Makefile: Likewise.
29627         * stdio-common/Makefile: Likewise.
29628         * wcsmbs/Makefile: Likewise.
29629         * dlfcn/Makefile: Likewise.
29630         * posix/Makefile: Likewise.
29631
29632         [BZ #6959]
29633         * timezone/Makefile: Don't install timezone files, just the programs
29634         and scripts.
29635
29636 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
29637
29638         * nss/databases.def: Add missing gshadow entry.
29639
29640         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
29641
29642 2012-03-06  Marek Polacek  <polacek@redhat.com>
29643
29644         [BZ #13726]
29645         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
29646         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
29647         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
29648         * stdio-common/tst-long-dbl-fphex.c: New file.
29649
29650 2012-03-06  David S. Miller  <davem@davemloft.net>
29651
29652         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
29653         (set_obp_int): New function.
29654         (get_obp_int): New function.
29655         (__get_clockfreq_via_dev_openprom): Likewise.
29656         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
29657         Avoid unused variable warnings on 'val' and use builtin_expect.
29658         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
29659         __builtin_expect.
29660         (INLINE_CLONE_SYSCALL): Likewise.
29661
29662 2012-03-05  David S. Miller  <davem@davemloft.net>
29663
29664         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29665
29666 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
29667
29668         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29669
29670         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
29671         only for |x| >= 40.
29672         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29673
29674 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
29675
29676         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
29677         Replace gettimeofday with __vdso_gettimeofday.
29678
29679         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29680         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
29681         __vdso_clock_gettime and __vdso_getcpu.
29682
29683         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
29684         time with __vdso_time.
29685
29686 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29687
29688         * manual/lang.texi (size_t): Note types to which size_t may be
29689         equivalent with the GNU C Library, but do not describe when
29690         differences between them are significant.
29691
29692 2012-03-05  Andreas Jaeger  <aj@suse.de>
29693
29694         * sysdeps/i386/fpu/libm-test-ulps: Update.
29695
29696 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29697
29698         [BZ #3976]
29699         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
29700         (__ieee754_pow): Save and restore rounding mode and use
29701         round-to-nearest for main computations.
29702         * math/libm-test.inc (pow_test_tonearest): New function.
29703         (pow_test_towardzero): Likewise.
29704         (pow_test_downward): Likewise.
29705         (pow_test_upward): Likewise.
29706         (main): Call the new functions.
29707         * sysdeps/i386/fpu/libm-test-ulps: Update.
29708         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29709
29710         [BZ #3976]
29711         * math/libm-test.inc (cosh_test_tonearest): New function.
29712         (cosh_test_towardzero): Likewise.
29713         (cosh_test_downward): Likewise.
29714         (cosh_test_upward): Likewise.
29715         (sinh_test_tonearest): Likewise.
29716         (sinh_test_towardzero): Likewise.
29717         (sinh_test_downward): Likewise.
29718         (sinh_test_upward): Likewise.
29719         (main): Call the new functions.
29720         * sysdeps/i386/fpu/libm-test-ulps: Update.
29721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29722
29723 2012-03-05  Tom de Vries  <tom@codesourcery.com>
29724
29725         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
29726         default stack guard is set in last bytes.
29727         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
29728
29729 2012-03-05  Kees Cook  <keescook@chromium.org>
29730
29731         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
29732
29733         [BZ #13656]
29734         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
29735         possibly allocate from heap instead of stack.
29736         * stdio-common/bug-vfprintf-nargs.c: New file.
29737         * stdio-common/Makefile (tests): Add nargs overflow test.
29738
29739 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
29740
29741         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29742
29743 2012-03-03  Marek Polacek  <polacek@redhat.com>
29744
29745         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
29746         * math/math_private.h: Likewise.
29747         * stdlib/tst-strtod.c: Likewise.
29748         * sysdeps/i386/i486/bits/atomic.h: Likewise.
29749         * sysdeps/x86_64/bits/atomic.h: Likewise.
29750
29751 2012-03-02  David S. Miller  <davem@davemloft.net>
29752
29753         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
29754         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
29755         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
29756         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
29757         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
29758         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
29759         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
29760         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
29761
29762 2012-03-02  Roland McGrath  <roland@hack.frob.com>
29763
29764         [BZ #13792]
29765         * manual/examples/README: New file, says the example source files
29766         can be used under GPL>=2.
29767         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
29768         line containing just "*/".
29769         * manual/examples/add.c: Add copyright header (GPL>=2).
29770         * manual/examples/argp-ex1.c: Likewise.
29771         * manual/examples/argp-ex2.c: Likewise.
29772         * manual/examples/argp-ex3.c: Likewise.
29773         * manual/examples/argp-ex4.c: Likewise.
29774         * manual/examples/atexit.c: Likewise.
29775         * manual/examples/db.c: Likewise.
29776         * manual/examples/dir.c: Likewise.
29777         * manual/examples/dir2.c: Likewise.
29778         * manual/examples/execinfo.c: Likewise.
29779         * manual/examples/filecli.c: Likewise.
29780         * manual/examples/filesrv.c: Likewise.
29781         * manual/examples/fmtmsgexpl.c: Likewise.
29782         * manual/examples/genpass.c: Likewise.
29783         * manual/examples/inetcli.c: Likewise.
29784         * manual/examples/inetsrv.c: Likewise.
29785         * manual/examples/isockad.c: Likewise.
29786         * manual/examples/longopt.c: Likewise.
29787         * manual/examples/memopen.c: Likewise.
29788         * manual/examples/memstrm.c: Likewise.
29789         * manual/examples/mkfsock.c: Likewise.
29790         * manual/examples/mkisock.c: Likewise.
29791         * manual/examples/mygetpass.c: Likewise.
29792         * manual/examples/pipe.c: Likewise.
29793         * manual/examples/popen.c: Likewise.
29794         * manual/examples/rprintf.c: Likewise.
29795         * manual/examples/search.c: Likewise.
29796         * manual/examples/select.c: Likewise.
29797         * manual/examples/setjmp.c: Likewise.
29798         * manual/examples/sigh1.c: Likewise.
29799         * manual/examples/sigusr.c: Likewise.
29800         * manual/examples/stpcpy.c: Likewise.
29801         * manual/examples/strdupa.c: Likewise.
29802         * manual/examples/strftim.c: Likewise.
29803         * manual/examples/strncat.c: Likewise.
29804         * manual/examples/subopt.c: Likewise.
29805         * manual/examples/swapcontext.c: Likewise.
29806         * manual/examples/termios.c: Likewise.
29807         * manual/examples/testopt.c: Likewise.
29808         * manual/examples/testpass.c: Likewise.
29809         * manual/examples/timeval_subtract.c: Likewise.
29810
29811         [BZ #13792]
29812         * manual/time.texi (Elapsed Time): Move timeval_subtract example
29813         function to ...
29814         * manual/timeval_subtract.c.texi: ... here, new file.
29815
29816 2012-03-02  David S. Miller  <davem@davemloft.net>
29817
29818         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
29819
29820 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
29821
29822         [BZ #3976]
29823         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
29824         (__sin): Save and restore rounding mode and use round-to-nearest
29825         for all computations.
29826         (__cos): Save and restore rounding mode and use round-to-nearest
29827         for all computations.
29828         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
29829         <fenv.h>.
29830         (tan): Save and restore rounding mode and use round-to-nearest for
29831         all computations.
29832         * math/libm-test.inc (cos_test_tonearest): New function.
29833         (cos_test_towardzero): Likewise.
29834         (cos_test_downward): Likewise.
29835         (cos_test_upward): Likewise.
29836         (sin_test_tonearest): Likewise.
29837         (sin_test_towardzero): Likewise.
29838         (sin_test_downward): Likewise.
29839         (sin_test_upward): Likewise.
29840         (tan_test_tonearest): Likewise.
29841         (tan_test_towardzero): Likewise.
29842         (tan_test_downward): Likewise.
29843         (tan_test_upward): Likewise.
29844         (main): Call the new functions.
29845         * sysdeps/i386/fpu/libm-test-ulps: Update.
29846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29847
29848         [BZ #10135]
29849         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
29850         small n, then large n, before computing and testing k+n.
29851         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
29852         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
29853         Likewise.
29854         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
29855         Likewise.
29856         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
29857         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
29858         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
29859         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
29860         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
29861         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
29862         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
29863         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
29864         * math/libm-test.inc (scalbn_test): Add more tests.
29865         (scalbln_test): Likewise.
29866
29867         * manual/filesys.texi (mode_t): Describe constraints on size and
29868         signedness, not exact equivalence to a particular type.
29869         (ino_t): Likewise.
29870         (ino64_t): Likewise.
29871         (dev_t): Likewise.
29872         (nlink_t): Likewise.
29873         (blkcnt_t): Likewise.
29874         (blkcnt64_t): Likewise.
29875         * manual/llio.texi (off_t): Likewise.
29876
29877         [BZ #3976]
29878         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
29879         (__ieee754_exp): Save and restore rounding mode and use
29880         round-to-nearest for all computations.
29881         * math/libm-test.inc (exp_test_tonearest): New function.
29882         (exp_test_towardzero): Likewise.
29883         (exp_test_downward): Likewise.
29884         (exp_test_upward): Likewise.
29885         (main): Call the new functions.
29886         * sysdeps/i386/fpu/libm-test-ulps: Update.
29887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29888
29889 2012-03-01  Chris Demetriou  <cgd@google.com>
29890
29891         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
29892         have predictable order.
29893
29894 2012-03-01  David S. Miller  <davem@davemloft.net>
29895
29896         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
29897
29898         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
29899         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
29900         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
29901         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
29902
29903         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
29904         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
29905         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
29906         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
29907         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
29908         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
29909         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
29910         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
29911         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
29912
29913         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29914
29915         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
29916         * sysdeps/sparc/fpu/libm-test-ulps: to here.
29917         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
29918
29919         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
29920         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29921         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29922         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
29923         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
29924         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
29925         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
29926         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29927         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29928         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
29929         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
29930         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29931         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29932         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29933         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29934         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29935         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
29936         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
29937         * sysdeps/sparc/elf/configure: Regenerated.
29938
29939 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
29940
29941         * configure.in (AS, LD): Require binutils 2.20 or later.
29942         * configure: Regenerated.
29943         * manual/install.texi (Tools for Compilation): Give binutils 2.20
29944         as required minimum version.
29945         * INSTALL: Regenerated.
29946
29947         [BZ #2541]
29948         [BZ #4108]
29949         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
29950         before squaring exponent.
29951         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
29952         bottom long double and 27 bits of top long double before squaring
29953         exponent.
29954         * math/libm-test.inc (erfc_test): Add more tests.
29955         * sysdeps/i386/fpu/libm-test-ulps: Update.
29956         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29957         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29958
29959 2012-03-01  Kai Tietz  <ktietz@redhat.com>
29960
29961         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
29962         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
29963         containing bit-fields.
29964         * soft-fp/extended.h (_FP_UNION_E): Likewise.
29965         * soft-fp/single.h (_FP_UNION_S): Likewise.
29966         * soft-fp/double.h (_FP_UNION_D): Likewise.
29967
29968 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
29969
29970         [BZ #13786]
29971         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
29972         not include ../strcmp.S.
29973         [USE_AS_STRNCASECMP_L]: Likewise.
29974         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
29975         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
29976         * sysdeps/i386/i686/multiarch/strncase_l-c.c
29977         (__strncasecmp_l_ia32): Define as alias to
29978         __strncasecmp_l_nonascii.
29979
29980         [BZ #5794]
29981         * math/libm-test.inc (expm1_test): Add test for bug 5794.
29982         * sysdeps/i386/fpu/libm-test-ulps: Update.
29983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29984
29985         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
29986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29987
29988 2012-02-29  Jeff Law  <law@redhat.com>
29989
29990         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
29991         out of bounds read.
29992
29993 2012-02-29  Marek Polacek  <polacek@redhat.com>
29994
29995         [BZ #13706]
29996         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
29997         * elf/Makefile: Add rules to run tst-unused-dep.out.
29998
29999 2012-02-28  David S. Miller  <davem@davemloft.net>
30000
30001         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
30002         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
30003         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
30004         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
30005         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
30006         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
30007
30008 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
30009
30010         * math/libm-test.inc (llround_test): Move one test from
30011         lround_test.  Use TEST_f_L in moved test.
30012         (lround_test): Move misplaced test to llround_test.  Add testcase
30013         from bug 2561.
30014
30015 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
30016
30017         * sysdeps/x86_64/fpu/e_expf.S: New file.
30018         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
30019
30020 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
30021
30022         [BZ #13637]
30023         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
30024         of remain_len that may cause incomplete multi-byte character and
30025         false match.
30026         * posix/bug-regex33.c: New file.
30027         * posix/Makefile (tests): Add bug-regex33.
30028
30029 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
30030
30031         * manual/macros.texi: New file.
30032         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
30033         * manual/libc.texinfo: Include macros.texi.
30034         * manual/creatute.texi: Likewise.
30035         * manual/install.texi: Likewise.
30036         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
30037         @glibcadj{} in references to the GNU C Library.
30038         * manual/charset.texi: Likewise.
30039         * manual/conf.texi: Likewise.
30040         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
30041         when not using those macros.
30042         * manual/creature.texi: Likewise.
30043         * manual/crypt.texi: Likewise.
30044         * manual/errno.texi: Likewise.
30045         * manual/filesys.texi: Likewise.
30046         * manual/header.texi: Likewise.
30047         * manual/install.texi: Likewise.
30048         * manual/intro.texi: Likewise.
30049         * manual/io.texi: Likewise.
30050         * manual/job.texi: Likewise.
30051         * manual/lang.texi: Likewise.
30052         * manual/libc.texiinfo: Likewise.
30053         * manual/llio.texi: Likewise.
30054         * manual/locale.texi: Likewise.
30055         * manual/maint.texi: Likewise.
30056         * manual/math.texi: Likewise.
30057         * manual/memory.texi: Likewise.
30058         * manual/message.texi: Likewise.
30059         * manual/nss.texi: Likewise.
30060         * manual/pattern.texi: Likewise.
30061         * manual/process.texi: Likewise.
30062         * manual/resource.texi: Likewise.
30063         * manual/search.texi: Likewise.
30064         * manual/setjmp.texi: Likewise.
30065         * manual/signal.texi: Likewise.
30066         * manual/socket.texi: Likewise.
30067         * manual/startup.texi: Likewise.
30068         * manual/stdio.texi: Likewise.
30069         * manual/string.texi: Likewise.
30070         * manual/sysinfo.texi: Likewise.
30071         * manual/syslog.texi: Likewise.
30072         * manual/terminal.texi: Likewise.
30073         * manual/time.texi: Likewise.
30074         * manual/users.texi: Likewise.
30075         * INSTALL: Regenerated.
30076         * NOTES: Regenerated.
30077         * sysdeps/gnu/errlist.c: Regenerated.
30078
30079 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
30080
30081         * include/dirent.h: Include <dirstream.h> before
30082         <dirent/dirent.h>.
30083
30084 2012-02-28  David S. Miller  <davem@davemloft.net>
30085
30086         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
30087         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
30088         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
30089         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
30090
30091 2012-02-27  David S. Miller  <davem@davemloft.net>
30092
30093         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
30094         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
30095         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
30096         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
30097
30098         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
30099         frame pointer instead of stack pointer relative arg slot.
30100         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
30101         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
30102         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
30103
30104 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
30105
30106         [BZ #3992]
30107         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
30108
30109 2012-02-27  David S. Miller  <davem@davemloft.net>
30110
30111         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
30112         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
30113         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
30114         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
30115         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
30116         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
30117         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
30118         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
30119
30120 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30121
30122         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
30123         later.  Allow versions 5-9.
30124         * configure: Regenerated.
30125         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
30126         required minimum version and 4.6 as recommended version.  Do not
30127         mention bugs in GCC 2.7 and 2.8.
30128         * INSTALL: Regenerated.
30129
30130 2012-02-27  David S. Miller  <davem@davemloft.net>
30131
30132         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
30133         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
30134         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
30135         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
30136         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
30137         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
30138         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
30139         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
30140
30141         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
30142         manipulate bits before adding and subtracting TWO112[sx].
30143         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
30144
30145 2012-02-27  Roland McGrath  <roland@hack.frob.com>
30146
30147         [BZ #13775]
30148         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
30149         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
30150         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
30151         being in POSIX, because they are in 1003.1-2008.
30152
30153         * rt/tst-aio.c: Include <fcntl.h>.
30154         * rt/tst-aio7.c: Likewise.
30155         * rt/tst-aio64.c: Likewise.
30156
30157         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
30158
30159 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30160
30161         * manual/install.texi (--with-headers): Describe headers as
30162         interface headers, not private headers.
30163         (Specific advice for GNU/Linux systems): Describe use of headers
30164         from "make headers_install", not private headers from older
30165         kernels.
30166         * INSTALL: Regenerated.
30167         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
30168         Change to 2.6.19.
30169         * sysdeps/unix/sysv/linux/configure: Regenerated.
30170
30171         * manual/llio.texi (fclean): Remove documentation.
30172
30173         * manual/Makefile (libc-texi-generated): New variable.  Include
30174         version.texi.
30175         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
30176         $(libc-texi-generated), not duplicated list of files.
30177         (version.texi, stamp-version): New rules.
30178         (realclean): Remove $(libc-texi-generated), not individual files
30179         from that list.  Do not remove dir-add.texinfo.
30180         * manual/libc.texinfo: Comment out uses of edition numbers and
30181         references to printed manual.  Remove last-updated dates.
30182         (EDITION): Comment out.
30183         (ISBN): Likewise.
30184         (VERSION, UPDATED): Remove.
30185         (version.texi): Include.
30186
30187 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
30188
30189         * sysdeps/posix/spawni.c: Include <signal.h>.
30190         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
30191         * sysdeps/pthread/aio_fsync.c: Likewise.
30192
30193 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
30194
30195         * conform/Makefile (tests): Run only when not cross-compiling and
30196         when fast-check is not defined.
30197
30198         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
30199         * conform/data/limits.h-data: Fixes for POSIX2008.
30200         * conform/run-conformtest.sh: Run all tests.
30201         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
30202         headers.
30203         * include/bits/dlfcn.h: Likewise.
30204         * include/langinfo.h: Likewise.
30205         * include/monetary.h: Likewise.
30206         * include/sys/poll.h: Likewise.
30207
30208         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
30209         for __USE_GNU.
30210         * posix/spawn.h: Define __need_sigset_t.
30211         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
30212         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
30213         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
30214         to get sigevent_t only.
30215         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
30216         only for __USE_GNU.
30217         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30218         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
30219         process_vm_writev only for __USE_GNU.
30220         * termios/termios.h: Declare tcgetsid also for POSIX2008.
30221
30222         * conform/Makefile: For now ignore errors from run-conformtest.
30223         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
30224         POSIX to avoid namespace pollution.  Don't prepend headers.
30225         * conform/data/aio.h-data: Fixes for POSIX testing.
30226         * conform/data/fcntl.h-data: Likewise.
30227         * conform/data/glob.h-data: Likewise.
30228         * conform/data/grp.h-data: Likewise.
30229         * conform/data/pthread.h-data: Likewise.
30230         * conform/data/pwd.h-data: Likewise.
30231         * conform/data/signal.h-data: Likewise.
30232         * conform/data/spawn.h-data: Likewise.
30233         * conform/data/stdio.h-data: Likewise.
30234         * conform/data/stdlib.h-data: Likewise.
30235         * conform/data/stropts.h-data: Likewise.
30236         * conform/data/sys/mman.h-data: Likewise.
30237         * conform/data/sys/stat.h-data: Likewise.
30238         * conform/data/sys/types.h-data: Likewise.
30239         * conform/data/sys/wait.h-data: Likewise.
30240         * conform/data/time.h-data: Likewise.
30241         * conform/data/unistd.h-data: Likewise.
30242         * conform/data/utime.h-data: Likewise.
30243
30244         * io/sys/stat.h: fchmod was always in POSIX.
30245         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
30246         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
30247         * rt/aio.h: Define __need_timespec before including <time.h>.
30248         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
30249         struct.  Add forward declaration of pthread_attr_t and use it in
30250         sigevent.
30251         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
30252         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
30253         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
30254         always remove CLK_TCK definition.
30255
30256 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
30257
30258         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
30259
30260 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
30261
30262         * conform/run-conformtest.sh: New file.
30263         * conform/Makefile: Run run-conformtest for tests.
30264         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
30265         support.
30266
30267         * conform/data/uchar.h-data: New file.
30268         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
30269         * conform/data/arpa/inet.h-data: Likewise.
30270         * conform/data/assert.h-data: Likewise.
30271         * conform/data/complex.h-data: Likewise.
30272         * conform/data/cpio.h-data: Likewise.
30273         * conform/data/ctype.h-data: Likewise.
30274         * conform/data/dirent.h-data: Likewise.
30275         * conform/data/dlfcn.h-data: Likewise.
30276         * conform/data/errno.h-data: Likewise.
30277         * conform/data/fcntl.h-data: Likewise.
30278         * conform/data/float.h-data: Likewise.
30279         * conform/data/fmtmsg.h-data: Likewise.
30280         * conform/data/fnmatch.h-data: Likewise.
30281         * conform/data/ftw.h-data: Likewise.
30282         * conform/data/glob.h-data: Likewise.
30283         * conform/data/grp.h-data: Likewise.
30284         * conform/data/iconv.h-data: Likewise.
30285         * conform/data/inttypes.h-data: Likewise.
30286         * conform/data/langinfo.h-data: Likewise.
30287         * conform/data/libgen.h-data: Likewise.
30288         * conform/data/limits.h-data: Likewise.
30289         * conform/data/locale.h-data: Likewise.
30290         * conform/data/math.h-data: Likewise.
30291         * conform/data/monetary.h-data: Likewise.
30292         * conform/data/mqueue.h-data: Likewise.
30293         * conform/data/ndbm.h-data: Likewise.
30294         * conform/data/net/if.h-data: Likewise.
30295         * conform/data/netdb.h-data: Likewise.
30296         * conform/data/netinet/in.h-data: Likewise.
30297         * conform/data/nl_types.h-data: Likewise.
30298         * conform/data/poll.h-data: Likewise.
30299         * conform/data/pthread.h-data: Likewise.
30300         * conform/data/pwd.h-data: Likewise.
30301         * conform/data/regex.h-data: Likewise.
30302         * conform/data/sched.h-data: Likewise.
30303         * conform/data/search.h-data: Likewise.
30304         * conform/data/semaphore.h-data: Likewise.
30305         * conform/data/setjmp.h-data: Likewise.
30306         * conform/data/signal.h-data: Likewise.
30307         * conform/data/spawn.h-data: Likewise.
30308         * conform/data/stdarg.h-data: Likewise.
30309         * conform/data/stdio.h-data: Likewise.
30310         * conform/data/stdlib.h-data: Likewise.
30311         * conform/data/string.h-data: Likewise.
30312         * conform/data/strings.h-data: Likewise.
30313         * conform/data/stropts.h-data: Likewise.
30314         * conform/data/sys/ipc.h-data: Likewise.
30315         * conform/data/sys/mman.h-data: Likewise.
30316         * conform/data/sys/msg.h-data: Likewise.
30317         * conform/data/sys/resource.h-data: Likewise.
30318         * conform/data/sys/select.h-data: Likewise.
30319         * conform/data/sys/sem.h-data: Likewise.
30320         * conform/data/sys/shm.h-data: Likewise.
30321         * conform/data/sys/socket.h-data: Likewise.
30322         * conform/data/sys/stat.h-data: Likewise.
30323         * conform/data/sys/statvfs.h-data: Likewise.
30324         * conform/data/sys/time.h-data: Likewise.
30325         * conform/data/sys/timeb.h-data: Likewise.
30326         * conform/data/sys/times.h-data: Likewise.
30327         * conform/data/sys/types.h-data: Likewise.
30328         * conform/data/sys/uio.h-data: Likewise.
30329         * conform/data/sys/un.h-data: Likewise.
30330         * conform/data/sys/utsname.h-data: Likewise.
30331         * conform/data/sys/wait.h-data: Likewise.
30332         * conform/data/syslog.h-data: Likewise.
30333         * conform/data/tar.h-data: Likewise.
30334         * conform/data/termios.h-data: Likewise.
30335         * conform/data/utime.h-data: Likewise.
30336         * conform/data/utmpx.h-data: Likewise.
30337         * conform/data/varargs.h-data: Likewise.
30338         * conform/data/wchar.h-data: Likewise.
30339         * conform/data/wctype.h-data: Likewise.
30340         * conform/data/wordexp.h-data: Likewise.
30341
30342         * include/stropts.h: New file.
30343         * include/uchar.h: New file.
30344         * include/aio.h: Changes to allow conformtest.pl to use the headers.
30345         * include/assert.h: Likewise.
30346         * include/ctype.h: Likewise.
30347         * include/dirent.h: Likewise.
30348         * include/dlfcn.h: Likewise.
30349         * include/fcntl.h: Likewise.
30350         * include/fnmatch.h: Likewise.
30351         * include/glob.h: Likewise.
30352         * include/grp.h: Likewise.
30353         * include/libio.h: Likewise.
30354         * include/locale.h: Likewise.
30355         * include/math.h: Likewise.
30356         * include/net/if.h: Likewise.
30357         * include/netdb.h: Likewise.
30358         * include/netinet/in.h: Likewise.
30359         * include/pthread.h: Likewise.
30360         * include/pwd.h: Likewise.
30361         * include/regex.h: Likewise.
30362         * include/sched.h: Likewise.
30363         * include/search.h: Likewise.
30364         * include/setjmp.h: Likewise.
30365         * include/signal.h: Likewise.
30366         * include/stdio.h: Likewise.
30367         * include/stdlib.h: Likewise.
30368         * include/string.h: Likewise.
30369         * include/sys/cdefs.h: Likewise.
30370         * include/sys/mman.h: Likewise.
30371         * include/sys/msg.h: Likewise.
30372         * include/sys/resource.h: Likewise.
30373         * include/sys/select.h: Likewise.
30374         * include/sys/socket.h: Likewise.
30375         * include/sys/stat.h: Likewise.
30376         * include/sys/statvfs.h: Likewise.
30377         * include/sys/time.h: Likewise.
30378         * include/sys/times.h: Likewise.
30379         * include/sys/uio.h: Likewise.
30380         * include/sys/utsname.h: Likewise.
30381         * include/sys/wait.h: Likewise.
30382         * include/termios.h: Likewise.
30383         * include/time.h: Likewise.
30384         * include/ulimit.h: Likewise.
30385         * include/unistd.h: Likewise.
30386         * include/utime.h: Likewise.
30387         * include/wchar.h: Likewise.
30388         * include/wctype.h: Likewise.
30389         * include/wordexp.h: Likewise.
30390
30391         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
30392
30393         * time/time.h: TIME_UTC must be a macro.
30394         Make timespec_get available for ISO C11 only as well.
30395
30396 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
30397
30398         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
30399         Reported by Peng Haitao <penght@cn.fujitsu.com>.
30400
30401 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30402
30403         * configure.in: Use -o not -a in test for unsupported multi-arch.
30404
30405 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30406
30407         * manual/texinfo.tex: Update to version 2012-01-19.16.
30408
30409 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30410
30411         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
30412
30413 2012-02-24  Roland McGrath  <roland@hack.frob.com>
30414
30415         [BZ #13738]
30416         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
30417         * manual/fdl-1.3.texi: New file.
30418         * manual/fdl-1.1.texi: File removed.
30419
30420         [BZ #13738]
30421         * manual/libc.texinfo (FDL_VERSION): New @set.
30422         Use it for mention of FDL in cover text.
30423         (Documentation License): Use it in @include file name.
30424
30425 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30426             Roland McGrath  <roland@hack.frob.com>
30427
30428         [BZ #5461]
30429         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
30430         not LONG_LONG_MAX and LONG_LONG_MIN.
30431         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
30432         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
30433         name.
30434         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
30435
30436 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30437
30438         [BZ #2547]
30439         [BZ #11365]
30440         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
30441         manipulate bits before adding and subtracting TWO23[sx].
30442         * math/libm-test.inc (nearbyint_test): Add more tests.
30443
30444 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30445
30446         [BZ #2548]
30447         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
30448         bits before adding and subtracting TWO23[sx].
30449         * math/libm-test.inc (rint_test): Add more tests.
30450         (rint_test_tonearest): Likewise.
30451         (rint_test_towardzero): Likewise.
30452         (rint_test_downward): Likewise.
30453         (rint_test_upward: Likewise.
30454
30455 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30456
30457         [BZ #10110]
30458         * include/stdc-predef.h: New file.  Extracted from features.h.
30459         * include/features.h: Include stdc-predef.h.
30460         * Makefile (headers): Add stdc-predef.h.
30461         * CONFORMANCE (Compiler limitations): Update.
30462
30463 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30464
30465         * manual/libc.texinfo (VERSION, UPDATED): Revert.
30466
30467 2012-02-21  David S. Miller  <davem@davemloft.net>
30468
30469         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
30470         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30471
30472 2012-02-20  David S. Miller  <davem@davemloft.net>
30473
30474         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
30475         using a normal save/restore sequence, rather than allocating a
30476         dummy stack frame just to store a frame pointer and restore.
30477         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30478
30479 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30480
30481         * manual/install.texi: Fix stray word in line-wrapped comment.
30482
30483 2012-02-20  David S. Miller  <davem@davemloft.net>
30484
30485         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
30486         both binutils and gcc support GOTDATA.
30487
30488         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
30489         "rd %pc" in the PIC register setup sequences.
30490
30491         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
30492         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
30493         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
30494         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
30495         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
30496         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30497         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30498         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30499         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
30500         (SYSCALL_ERROR_HANDLER): Likewise.
30501         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
30502         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30503         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
30504         (SYSCALL_ERROR_HANDLER): Likewise.
30505
30506         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
30507         (HAVE_GCC_GOTDATA): New.
30508         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
30509         relocation support in both binutils and gcc.
30510         * sysdeps/sparc/elf/configure: Regenerate.
30511
30512         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
30513         * sysdeps/sparc/sparc32/elf/configure: Delete.
30514         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
30515         * sysdeps/sparc/sparc64/elf/configure: Delete.
30516         * sysdeps/sparc/elf/configure.in: New file.
30517         * sysdeps/sparc/elf/configure: Generate.
30518
30519         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
30520         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
30521         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30522         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
30523         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
30524
30525 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30526
30527         * manual/install.texi: Do not mention specific glibc version
30528         numbers.
30529         * manual/libc.texinfo (VERSION, UPDATED): Update.
30530         (@copying): Use @copyright{} and range of years.
30531
30532 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30533
30534         [BZ #13695]
30535         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
30536         [crti.S not in sysdirs] (generated): Do not append.
30537         [crti.S not in sysdirs] (omit-deps): Likewise.
30538         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
30539         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
30540         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
30541         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
30542         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
30543         Likewise.
30544         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
30545         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
30546         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
30547         * csu/defs.awk: Remove file.
30548         * sysdeps/generic/initfini.c: Likewise.
30549         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
30550         variable.
30551         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
30552         Likewise.
30553
30554 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30555
30556         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
30557         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
30558         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
30559         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
30560         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30561         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
30562         <bits/epoll.h>.
30563         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
30564         (__EPOLL_PACKED): Define to empty if not defined by
30565         <bits/epoll.h>.
30566         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
30567         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30568         bits/epoll.h.
30569
30570 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30571
30572         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
30573         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
30574         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
30575         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
30576         <bits/timerfd.h>.
30577         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
30578         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30579         bits/timerfd.h.
30580
30581 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30582
30583         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
30584         in C locale.
30585         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30586         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
30587         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
30588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30589
30590 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
30591
30592         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30593         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30594
30595 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
30596
30597         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
30598         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
30599         defined.
30600         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
30601         Likewise.
30602         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
30603         entry for 2.16.
30604
30605 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
30606
30607         * math/w_acos.c: Use non-signaling floating-point comparisons.
30608         * math/w_acosf.c: Likewise.
30609         * math/w_acosh.c: Likewise.
30610         * math/w_acoshf.c: Likewise.
30611         * math/w_acoshl.c: Likewise.
30612         * math/w_acosl.c: Likewise.
30613         * math/w_asin.c: Likewise.
30614         * math/w_asinf.c: Likewise.
30615         * math/w_asinl.c: Likewise.
30616         * math/w_atanh.c: Likewise.
30617         * math/w_atanhf.c: Likewise.
30618         * math/w_atanhl.c: Likewise.
30619         * math/w_exp2.c: Likewise.
30620         * math/w_exp2f.c: Likewise.
30621         * math/w_exp2l.c: Likewise.
30622         * math/w_j0.c: Likewise.
30623         * math/w_j0f.c: Likewise.
30624         * math/w_j0l.c: Likewise.
30625         * math/w_j1.c: Likewise.
30626         * math/w_j1f.c: Likewise.
30627         * math/w_j1l.c: Likewise.
30628         * math/w_jn.c: Likewise.
30629         * math/w_jnf.c: Likewise.
30630         * math/w_log.c: Likewise.
30631         * math/w_log10.c: Likewise.
30632         * math/w_log10f.c: Likewise.
30633         * math/w_log10l.c: Likewise.
30634         * math/w_log2.c: Likewise.
30635         * math/w_log2f.c: Likewise.
30636         * math/w_log2l.c: Likewise.
30637         * math/w_logf.c: Likewise.
30638         * math/w_logl.c: Likewise.
30639         * math/w_sqrt.c: Likewise.
30640         * math/w_sqrtf.c: Likewise.
30641         * math/w_sqrtl.c: Likewise.
30642         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
30643         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30644         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30645         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30646         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30647
30648 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30649
30650         [BZ #9739]
30651         * manual/string.texi (strnlen): Use correct parameter name in
30652         equivalent expression.
30653
30654 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30655
30656         [BZ #11174]
30657         * manual/users.texi (seteuid): Consistently use neweuid for
30658         argument name.
30659
30660 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30661
30662         [BZ #13704]
30663         * manual/nss.texi (Services in the NSS configuration): Correct
30664         list of services in example configuration file.
30665
30666 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
30667
30668         [BZ #11322]
30669         * manual/arith.texi: Remove statements about negative zero
30670         behaving identically to zero.
30671
30672 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30673
30674         [BZ #5993]
30675         * manual/install.texi: Do not document upgrading from libc5.
30676
30677 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30678
30679         [BZ #4596]
30680         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
30681
30682 2012-02-18  David S. Miller  <davem@davemloft.net>
30683
30684         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
30685         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
30686         %o7 across the call.
30687         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
30688         instead.
30689         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
30690         SETUP_PIC_REG_LEAF.
30691         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30692         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
30693         * sysdeps/sparc/crtn.S: Likewise.
30694
30695 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
30696
30697         * aout/Makefile: Remove.
30698
30699 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
30700
30701         [BZ #13058]
30702         * manual/examples/argp-ex1.c (main): Format definition in GNU
30703         style.
30704         * manual/examples/argp-ex2.c (main): Likewise.
30705         * manual/examples/argp-ex3.c (main): Likewise.
30706         * manual/examples/argp-ex4.c (main): Likewise.
30707         * manual/examples/longopt.c (main): Use new-style prototype
30708         definition.
30709         * manual/examples/strncat.c (main): Specify return type and use
30710         (void) for arguments.
30711         * manual/examples/subopt.c (main): Use char **argv argument.
30712
30713 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30714
30715         [BZ #5077]
30716         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
30717         rounding modes.
30718
30719 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
30720
30721         [BZ #6907]
30722         * manual/string.texi (strchr): Change when strchrnul is
30723         recommended.
30724
30725 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
30726
30727         [BZ #174]
30728         * manual/locale.texi (setlocale): Document LOCPATH.
30729
30730 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30731
30732         [BZ #10210]
30733         * manual/process.texi (execle): Move @dots{} before last argument.
30734
30735 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
30736
30737         [BZ #12047]
30738         * manual/charset.texi (Generic Charset Conversion): Fix typo
30739         (LC_TYPE -> LC_CTYPE).
30740
30741 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
30742
30743         [BZ #5805]
30744         * manual/arith.texi (scalbn): Use @var{} on parameter names.
30745         (scalbnf): Likewise.
30746         (scalbnl): Likewise.
30747         (scalbln): Likewise.
30748         (scalblnf): Likewise.
30749         (scalblnl): Likewise.
30750         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
30751         (vwarnx): Likewise.
30752         (verr): Likewise.
30753         (verrx): Likewise.
30754         * manual/filesys.texi (telldir): Use braces around return type.
30755         * manual/llio.texi (mmap): Add space after comma.
30756         (mmap64): Likewise.
30757         * manual/math.texi (jn): Use @var{} on parameter names.
30758         (jnf): Likewise.
30759         (jnl): Likewise.
30760         (yn): Likewise.
30761         (ynf): Likewise.
30762         (ynl): Likewise.
30763         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
30764         line.
30765         * manual/resource.texi (ulimit): Use @dots{} instead of literal
30766         "...".
30767         (sched_get_priority_min): Remove semicolon on @deftypefun line.
30768         (sched_get_priority_max): Likewise.
30769         * manual/signal.texi (sigvec): Add space after comma.
30770         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
30771         names.
30772         (if_indextoname): Likewise.
30773         (if_freenameindex): Likewise.
30774         (sendto): Use ',' instead of '.' in prototype.
30775         * manual/startup.texi (syscall): Use @dots{} instead of literal
30776         "...".
30777         * manual/stdio.texi (__fpending): Separate initial words of
30778         paragraph from @deftypefun line.
30779         * manual/syslog.texi (syslog): Use @dots{} instead of literal
30780         "...".
30781         (vsyslog): Use @var{} on parameter names.
30782         * manual/terminal.texi (stty): Use @var{} on parameter names.
30783         * manual/users.texi (getutmp): Use @var{} on parameter names.
30784         (getutmpx): Likewise.
30785
30786 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30787
30788         [BZ #6884]
30789         * manual/stdio.texi (fopen): Fix typos in description of
30790         ",ccs=STRING".
30791
30792 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
30793
30794         [BZ #4026]
30795         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
30796         get clock_id definition.
30797
30798 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
30799
30800         [BZ #4822]
30801         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
30802         (madvise): Cast every argument to void on its own.
30803
30804 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30805
30806         [BZ #9902]
30807         * manual/startup.texi (Exit Status): Fix typo.
30808
30809 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30810
30811         [BZ #10140]
30812         * manual/examples/argp-ex1.c: Include <stdlib.h>.
30813         * manual/examples/argp-ex2.c: Likewise.
30814         * manual/examples/argp-ex3.c: Likewise.
30815
30816 2012-02-16  Richard Henderson  <rth@redhat.com>
30817
30818         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
30819         * sysdeps/s390/s390-32/initfini.c: Remove.
30820         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
30821         * sysdeps/s390/s390-64/initfini.c: Remove.
30822
30823 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30824
30825         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
30826         compiler output for sysdeps/generic/initfini.c.
30827         * sysdeps/sh/elf/initfini.c: Remove file.
30828
30829 2012-02-16  David S. Miller  <davem@davemloft.net>
30830
30831         [BZ #11494]
30832         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
30833
30834         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
30835         * sysdeps/sparc/crti.S: New file.
30836         * sysdeps/sparc/crtn.S: New file.
30837         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
30838         * sysdeps/sparc/sparc64/Makefile: Likewise.
30839
30840 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
30841
30842         [BZ #3335]
30843         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
30844
30845 2012-02-15  Roland McGrath  <roland@hack.frob.com>
30846
30847         [BZ #4822]
30848         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
30849
30850         * mach/devstream.c (cookie_io_functions_t): Macro removed.
30851         (write, read, close): Likewise.
30852         Patch by Aurelien Jarno <aurelien@aurel32.net>.
30853
30854 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
30855
30856         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
30857         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
30858         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
30859         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
30860         <bits/signalfd.h>.
30861         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
30862         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30863         bits/signalfd.h.
30864
30865 2012-02-14  Marek Polacek  <polacek@redhat.com>
30866
30867         * sysdeps/x86_64/crti.S: New file.
30868         * sysdeps/x86_64/crtn.S: New file.
30869         * sysdeps/x86_64/elf/initfini.c: Remove file.
30870
30871 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30872
30873         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
30874         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
30875         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
30876         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
30877         <bits/inotify.h>.
30878         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
30879         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30880         bits/inotify.h.
30881
30882 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30883
30884         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
30885         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
30886         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
30887         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
30888         <bits/eventfd.h>.
30889         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
30890         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30891         bits/eventfd.h.
30892
30893 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
30894
30895         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
30896         __feraiseexcept instead of feraiseexcept.
30897
30898         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
30899         nanosleep invocations.
30900         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
30901         strings, and add error checking for a nanosleep invocations.
30902
30903 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
30904
30905         Replace FSF snail mail address with URLs, as per GNU coding standards.
30906         Most of the snail mail addresses were wrong anyway, and omitting
30907         them makes the source code easier to maintain.  Almost all of the
30908         changes are to license notices and to locale LC_IDENTIFICATION
30909         addresses, except for this one:
30910         * manual/libc.texinfo: In "Published by", give the FSF's URL,
30911         not its snail mail address.
30912
30913 2012-02-09  Richard Henderson  <rth@twiddle.net>
30914
30915         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
30916         of kernel-features.h.
30917
30918         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
30919
30920 2012-02-08  Marek Polacek  <polacek@redhat.com>
30921
30922         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
30923         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
30924         * sysdeps/gnu/_G_config.h: Likewise.
30925         * sysdeps/generic/_G_config.h: Likewise.
30926
30927 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
30928
30929         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
30930         tests.
30931         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30932
30933         * sysdeps/powerpc/powerpc32/crti.S: New file.
30934         * sysdeps/powerpc/powerpc32/crtn.S: New file.
30935         * sysdeps/powerpc/powerpc64/crti.S: New file.
30936         * sysdeps/powerpc/powerpc64/crtn.S: New file.
30937
30938         * Makeconfig (have-initfini): Don't set.
30939         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
30940         * configure.in (nopic_initfini): Don't substitute.
30941         * config.h.in (HAVE_INITFINI): Don't #undef.
30942         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
30943         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
30944
30945 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
30946
30947         Support crti.S and crtn.S provided directly by architectures.
30948         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
30949         [crti.S in sysdirs] (omit-deps): Likewise.
30950         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
30951         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
30952         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
30953         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
30954         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
30955         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
30956         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
30957         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
30958         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
30959         compiler output for sysdeps/generic/initfini.c.
30960         * sysdeps/i386/elf/Makefile: Remove file.
30961         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
30962
30963 2012-02-07  Marek Polacek  <polacek@redhat.com>
30964
30965         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
30966         * sysdeps/gnu/_G_config.h: Likewise.
30967         * sysdeps/mach/hurd/_G_config.h: Likewise.
30968
30969 2012-02-07  Marek Polacek  <polacek@redhat.com>
30970
30971         * math/Makefile (tests): Add tst-CMPLX2.
30972         * math/tst-CMPLX2.c: New file.
30973
30974 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
30975
30976         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30977
30978         * math/libm-test.inc (jn_test): Add missing L suffix.
30979
30980 2012-02-06  Marek Polacek  <polacek@redhat.com>
30981
30982         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
30983         * sysdeps/i386/fpu/e_powf.S: Likewise.
30984         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30985         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
30986         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30987         * sysdeps/i386/fpu/e_pow.S: Likewise.
30988         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
30989         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30990         * sysdeps/i386/fpu/s_expm1.S: Likewise.
30991         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
30992         * sysdeps/i386/fpu/e_log2.S: Likewise.
30993         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30994         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30995         * sysdeps/i386/fpu/e_powl.S: Likewise.
30996         * sysdeps/i386/fpu/s_log1p.S: Likewise.
30997         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30998         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
30999         * sysdeps/i386/fpu/e_logl.S: Likewise.
31000         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
31001         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
31002         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
31003         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
31004         * sysdeps/i386/fpu/e_log2f.S: Likewise.
31005         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
31006         * sysdeps/i386/fpu/e_log.S: Likewise.
31007         * sysdeps/i386/fpu/s_cexp.S: Likewise.
31008         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
31009         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
31010         * sysdeps/i386/fpu/e_logf.S: Likewise.
31011         * sysdeps/i386/fpu/e_log10l.S: Likewise.
31012         * sysdeps/i386/fpu/e_atanh.S: Likewise.
31013         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
31014         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
31015         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
31016         * sysdeps/i386/fpu/e_log10.S: Likewise.
31017         * sysdeps/i386/fpu/s_frexp.S: Likewise.
31018         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
31019         * sysdeps/i386/fpu/s_asinh.S: Likewise.
31020         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
31021         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
31022         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
31023         * sysdeps/i386/asm-syntax.h: Likewise.
31024         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
31025         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
31026         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
31027         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
31028         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
31029         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
31030         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
31031         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
31032         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
31033         * sysdeps/powerpc/sysdep.h: Likewise.
31034         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
31035         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
31036
31037 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
31038
31039         [BZ #411]
31040         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
31041
31042 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
31043
31044         * sysdeps/i386/sysdep.h: Include <features.h>.
31045         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
31046         version.
31047
31048 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
31049
31050         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
31051         Define.
31052         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
31053         LOAD_PIC_REG_STR.
31054
31055 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31056
31057         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
31058         (SETUP_PIC_REG): Use GET_PC_THUNK.
31059         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
31060         macro.
31061
31062 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31063
31064         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
31065         for non-PIC compilation.
31066         (SETUP_PIC_REG): Add .p2align directive.
31067         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
31068         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
31069         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31070         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31071         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
31072         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31073         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
31074         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
31075         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31076         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31077         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31078         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31079         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31080         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31081         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31082         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
31083         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
31084         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31085         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31086         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31087         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31088         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
31089         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31090         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
31091         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
31092         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
31093         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31094         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
31095         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31096         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31097         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31098         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31099         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31100         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31101         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31102         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31103         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31104         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31105         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31106         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31107         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31108
31109 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31110
31111         * math/tst-CMPLX.c: Include <stdio.h>.
31112
31113 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
31114
31115         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
31116         float.
31117         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31118         * sysdeps/sparc/bits/mathdef.h: Likewise.
31119
31120 2012-01-31  Marek Polacek  <polacek@redhat.com>
31121
31122         * libio/libio.h: Don't define _PARAMS.
31123         * locale/programs/config.h: Don't define PARAMS.
31124         * stdlib/strtol_l.c: Likewise.
31125         (__strtol_l): Remove PARAMS from the prototype.
31126
31127 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
31128
31129         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
31130         names.  Just use the correct names.  Remove unnecessary wrapper
31131         functions.
31132         * malloc/arena.c: Likewise.
31133         * malloc/hooks.c: Likewise.
31134
31135         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
31136         ARENA_TEST says not to.  Simplify test for creation of a new arena.
31137         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
31138
31139 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
31140
31141         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
31142         into tail calls.
31143         (update_get_addr): New function.
31144         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
31145         GET_ADDR_MODULE parameter.
31146
31147 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31148
31149         * crypt/cert.c: Remove __STDC__ conditionals.
31150         * crypt/crypt-entry.c: Likewise.
31151         * crypt/crypt_util.c: Likewise.
31152         * libio/filedoalloc.c: Likewise.
31153         * libio/fileops.c: Likewise.
31154         * libio/genops.c: Likewise.
31155         * libio/iofclose.c: Likewise.
31156         * libio/iofdopen.c: Likewise.
31157         * libio/iofopen.c: Likewise.
31158         * libio/iofopen64.c: Likewise.
31159         * libio/iogetdelim.c: Likewise.
31160         * libio/iopopen.c: Likewise.
31161         * libio/obprintf.c: Likewise.
31162         * libio/oldfileops.c: Likewise.
31163         * libio/oldiofclose.c: Likewise.
31164         * libio/oldiofdopen.c: Likewise.
31165         * libio/oldiofopen.c: Likewise.
31166         * libio/oldiopopen.c: Likewise.
31167         * libio/wfiledoalloc.c: Likewise.
31168         * libio/wgenops.c: Likewise.
31169         * locale/programs/xmalloc.c: Likewise.
31170         * misc/syslog.c: Likewise.
31171         * stdio-common/xbug.c: Likewise.
31172         * string/memchr.c: Likewise.
31173         * string/memcmp.c: Likewise.
31174         * string/memrchr.c: Likewise.
31175         * string/rawmemchr.c: Likewise.
31176         * sysdeps/posix/getcwd.c: Likewise.
31177         * time/strftime_l.c: Likewise.
31178
31179 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31180
31181         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
31182         * config.make.in (config-cflags-sse2avx): Define.
31183         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
31184         Fix typo.
31185
31186 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
31187
31188         * scripts/config.guess: Update from upstream config git repository.
31189         * scripts/config.sub: Likewise.
31190
31191 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
31192
31193         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
31194         (EM_NUM): Update.
31195         (R_TILEPRO_*, R_TILEGX_*): New macros.
31196
31197         * scripts/firstversions.awk: Fix bug in version range handling.
31198
31199         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
31200
31201         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
31202
31203         * include/sys/epoll.h: New file.
31204         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
31205         libc_hidden_def.
31206
31207 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
31208
31209         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
31210         Avoid unnecessary __WORDSIZE == 64 test.
31211         (fmaxf): Use VEX format if possible.
31212         (fmax): Likewise.
31213         (fminf): Likewise.
31214         (fmin): Likewise.
31215
31216         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
31217         * math/math_private.h: Remove libc_fegetround* and
31218         libc_fesetround*.
31219         * sysdeps/i386/configure.in: Check for -msse2avx.
31220         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
31221         also if SSE2AVX is defined.
31222         Remove libc_fegetround* and libc_fesetround*.
31223         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
31224         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
31225         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
31226         of HAS_YMM_USABLE.
31227         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31228         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31229         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31230         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31231         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31232
31233         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
31234
31235 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31236
31237         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
31238         size is not set.
31239         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
31240
31241 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
31242
31243         [BZ #13618]
31244         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
31245         relocation.
31246         * Makeconfig (libm): Define.
31247         * elf/Makefile: Add rules to build and run tst-relsort1.
31248         * elf/tst-relsort1.c: New file.
31249         * elf/tst-relsort1mod1.c: New file.
31250         * elf/tst-relsort1mod2.c: New file.
31251
31252 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
31253
31254         * math/s_ldexp.c: Remove __STDC__ conditionals.
31255         * math/s_ldexpf.c: Likewise.
31256         * math/s_ldexpl.c: Likewise.
31257         * math/s_nextafter.c: Likewise.
31258         * math/s_nexttowardf.c: Likewise.
31259         * math/s_significand.c: Likewise.
31260         * math/s_significandf.c: Likewise.
31261         * math/s_significandl.c: Likewise.
31262         * math/w_jnl.c: Likewise.
31263         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
31264         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
31265         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
31266         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
31267         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
31268         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
31269         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
31270         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
31271         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
31272         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
31273         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
31274         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31275         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
31276         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
31277         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
31278         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
31279         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
31280         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
31281         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
31282         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
31283         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
31284         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
31285         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
31286         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
31287         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
31288         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
31289         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
31290         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
31291         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
31292         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
31293         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
31294         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
31295         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
31296         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
31297         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
31298         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
31299         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
31300         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
31301         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
31302         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
31303         * sysdeps/ieee754/k_standard.c: Likewise.
31304         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
31305         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
31306         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
31307         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
31308         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
31309         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
31310         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
31311         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
31312         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
31313         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
31314         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
31315         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
31316         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
31317         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
31318         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
31319         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
31320         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
31321         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
31322         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
31323         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
31324         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31325         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
31326         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
31327         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
31328         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
31329         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31330         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31331         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31332         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31333         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
31334         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
31335         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
31336         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
31337         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
31338         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
31339         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
31340         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
31341         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
31342         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
31343         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
31344         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
31345         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
31346         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
31347         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
31348         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
31349         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
31350         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
31351         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
31352         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
31353         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
31354         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
31355         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
31356         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
31357         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
31358         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
31359         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
31360         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
31361         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
31362         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
31363         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
31364         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
31365         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
31366         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
31367         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
31368         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
31369         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
31370         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
31371         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
31372         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
31373         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
31374         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
31375         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
31376         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
31377         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
31378         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
31379         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
31380         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
31381         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
31382         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
31383         * sysdeps/ieee754/s_matherr.c: Likewise.
31384         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
31385         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
31386         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
31387         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
31388
31389 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31390
31391         * crypt/md5.h: Remove __STDC__ conditionals.
31392         * libio/libioP.h: Likewise.
31393         * locale/programs/config.h: Likewise.
31394         * sysdeps/generic/sysdep.h: Likewise.
31395         * sysdeps/i386/asm-syntax.h: Likewise.
31396         * sysdeps/s390/asm-syntax.h: Likewise.
31397         * sysdeps/unix/sysdep.h: Likewise.
31398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
31399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
31400
31401 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31402
31403         * libio/libio.h: Remove __STDC__ conditionals.
31404         * malloc/obstack.h: Likewise.
31405         * math/complex.h: Likewise.
31406         * math/math.h: Likewise.
31407         * sysdeps/generic/_G_config.h: Likewise.
31408         * sysdeps/gnu/_G_config.h: Likewise.
31409         * sysdeps/mach/hurd/_G_config.h: Likewise.
31410         * sysdeps/powerpc/bits/mathdef.h: Likewise.
31411         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31412         * sysdeps/sparc/bits/mathdef.h: Likewise.
31413
31414 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
31415
31416         [BZ #13583]
31417         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
31418         Clean up HAS_* macros.
31419         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
31420         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
31421         possible.
31422         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
31423         HAS_AVX.
31424         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31425         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31426         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31427         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31428         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31429
31430 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
31431
31432         * elf/tst-unique3.cc (gets): Remove declaration.
31433         * elf/tst-unique3lib.cc (gets): Likewise.
31434         * elf/tst-unique3lib2.cc (gets): Likewise.
31435         * elf/tst-unique4.cc (gets): Likewise.
31436
31437 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
31438
31439         * include/stdio.h: Add C++ protection.  Add gets declarations and
31440         definitions.
31441         * debug/tst-chk1.c: Don't declare gets here.
31442         * stdio-common/tst-gets.c: Likewise.
31443
31444 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31445
31446         * posix/glob: Remove directory.
31447
31448 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31449
31450         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
31451
31452 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
31453
31454         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
31455         of the non-standard EPFNOSUPPORT.
31456
31457 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31458
31459         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
31460         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
31461         ANYWHERE set to 1 only on KERN_NO_SPACE error.
31462
31463 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
31464
31465         * wcsmbs/uchar.h: Test __STDC_VERSION__.
31466
31467 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
31468
31469         * nscd/aicache.c (addhstaiX): Do not cache negative results of
31470         transient errors.
31471         * nscd/grpcache.c (cache_addgr): Likewise.
31472         * nscd/hstcache.c (cache_addhst): Likewise.
31473         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31474         * nscd/pwdcache.c (cache_addpw): Likewise.
31475         * nscd/servicescache.c (cache_addserv): Likewise.
31476
31477 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
31478
31479         * malloc/malloc.c: Various cleanups.
31480         * malloc/hooks.c: Likewise.
31481
31482         * stdlib/Makefile (tests): Add bug-fmtmsg1.
31483         * stdlib/bug-fmtmsg1.c: New file.
31484
31485         * stdlib/fmtmsg.c (init): Add missing unlock.
31486         Patch by Peng Haitao <penght@cn.fujitsu.com>.
31487
31488 2012-01-12  Marek Polacek  <polacek@redhat.com>
31489
31490         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
31491         and _GNU_SOURCE.
31492
31493 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
31494
31495         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
31496         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
31497         macro to ensure uniqueness of label name.
31498         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31499         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31500
31501 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
31502
31503         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
31504
31505         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
31506         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
31507         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31508         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
31509
31510 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
31511
31512         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
31513
31514         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
31515         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
31516         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
31517
31518         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
31519
31520         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
31521         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
31522         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
31523         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
31524
31525         * math/bits/math-finite.h: Add ldexp support.
31526
31527 2012-01-10  Marek Polacek  <polacek@redhat.com>
31528
31529         * locale/programs/localedef.h (show_archive_content): Add noreturn
31530         attribute.
31531
31532 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
31533
31534         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
31535
31536 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31537
31538         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
31539
31540         * io/Makefile (headers): Add bits/poll2.h.
31541
31542 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
31543
31544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
31545         typo #include statement.
31546
31547 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31548
31549         * include/sys/cdefs.h: Define __attribute_alloc_size.
31550         * catgets/gencat.c: Add alloc_size attribute and apply consistently
31551         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
31552         * elf/pldd.c: Likewise.
31553         * iconv/iconv_charmap.c: Likewise.
31554         * iconv/iconvconfig.c: Likewise.
31555         * iconv/strtab.c: Likewise.
31556         * locale/programs/locale.c: Likewise.
31557         * locale/programs/localedef.h: Likewise.
31558         * locale/programs/simple-hash.c: Likewise.
31559         * nscd/nscd.h: Likewise.
31560         * nss/makedb.c: Likewise.
31561         * sysdeps/generic/ldconfig.h: Likewise.
31562         * locale/programs/localedef.c: Remove xmalloc prototype.
31563         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
31564
31565 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31566
31567         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
31568         appropriate.
31569
31570 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31571
31572         * math/Makefile (tests): Add tst-CMPLX.
31573         * math/tst-CMPLX.c: New file.
31574
31575         * math/complex.h (CMPLXL): Fix typo.
31576
31577         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
31578         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
31579         GLIBC_2.16.
31580         * debug/tst-chk1.c: Add poll and ppoll tests.
31581         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
31582         * include/sys/poll.h: Add hidden proto for ppoll.
31583         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
31584         * sysdeps/mach/hurd/ppoll.c: Likewise.
31585         * io/ppoll.c: Likewise.
31586         * debug/poll_chk.c: New file.
31587         * debug/ppoll_chk.c: New file.
31588         * include/bits/poll2.h: New file.
31589         * io/bits/poll2.h: New file.
31590
31591         [BZ #1350]
31592         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
31593
31594         * configure.in: static is always set to yes.  Remove.
31595         * config.make.in: Don't set build-static.
31596         * Makeconfig: Remove use of build-static.
31597         * dlfcn/Makefile: Likewise.
31598         * elf/Makefile: Likewise.
31599         * math/Makefile: Likewise.
31600         * misc/Makefile: Likewise.
31601         * nptl/Makefile: Likewise.
31602         * sysdeps/mach/hurd/Makefile: Likewise.
31603
31604         * configure.in: PWD_P is not used anymore.
31605         * config.make.in: Remove PWD_P entry.
31606
31607         * configure.in: Remove last remnants of RANLIB.
31608         No need to check for signed size_t anymore.
31609         Don't set libc_commonpagesize and libc_relro_required here for Alpha
31610         and IA-64.
31611         Remove __builtin_expect test because we require at least gcc 3.4.
31612         * aclocal.m4: Likewise.
31613
31614         * wcsmbs/mbrtoc16.c: Implement using towc function.
31615         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
31616         * wcsmbs/wcsmbsload.c: Likewise.
31617         * iconv/gconv_simple.c: Likewise.
31618         * iconv/gconv_int.h: Likewise.
31619         * iconv/gconv_builtin.h: Likewise.
31620         * iconv/iconv_prog.c: Remove CHAR16 handling.
31621
31622         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
31623
31624         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
31625
31626         * configure.in: Remove --with-elf and --enable-bounded options.
31627         Dont set base_machine for ia64.  More non-ELF conditions removed.
31628         Remove testing and setting of leading underscore information.
31629         * config.make.in (build-bounded): Set to no.
31630         * config.h.in: Remove NO_UNDERSCORES entry.
31631         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
31632         them.
31633         * csu/start.c: Remove !NO_UNDERSCORE code.
31634         * locale/localeinfo.h: Likewise.
31635         * sysdeps/generic/machine-gmon.h: Likewise.
31636         * sysdeps/generic/sysdep.h: Likewise.
31637         * sysdeps/i386/sysdep.h: Likewise.
31638         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31639         * sysdeps/mach/sysdep.h: Likewise.
31640         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31641         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31642         * sysdeps/sh/sysdep.h: Likewise.
31643         * sysdeps/sparc/sparc32/alloca.S: Likewise.
31644         * sysdeps/unix/i386/sysdep.S: Likewise.
31645         * sysdeps/unix/sparc/start.c: Likewise.
31646         * sysdeps/unix/sparc/sysdep.S: Likewise.
31647         * sysdeps/unix/sparc/sysdep.h: Likewise.
31648         * sysdeps/unix/start.c: Likewise.
31649         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31650         * sysdeps/x86_64/sysdep.h: Likewise.
31651
31652 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
31653
31654         [BZ #13553]
31655         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
31656         for non-gcc.
31657         * argp/argp-fmtstream.h: Use const instead __const.
31658         * argp/argp.h: Likewise.
31659         * assert/assert.h: Likewise.
31660         * bits/fenv.h: Likewise.
31661         * bits/sched.h: Likewise.
31662         * bits/sigset.h: Likewise.
31663         * bits/sigthread.h: Likewise.
31664         * catgets/nl_types.h: Likewise.
31665         * conform/data/pthread.h-data: Likewise.
31666         * crypt/crypt-private.h: Likewise.
31667         * crypt/crypt.h: Likewise.
31668         * crypt/crypt_util.c: Likewise.
31669         * ctype/ctype.h: Likewise.
31670         * debug/execinfo.h: Likewise.
31671         * debug/mbsnrtowcs_chk.c: Likewise.
31672         * debug/mbsrtowcs_chk.c: Likewise.
31673         * debug/wcsnrtombs_chk.c: Likewise.
31674         * debug/wcsrtombs_chk.c: Likewise.
31675         * debug/wcstombs_chk.c: Likewise.
31676         * dirent/dirent.h: Likewise.
31677         * dlfcn/dlfcn.h: Likewise.
31678         * elf/neededtest4.c: Likewise.
31679         * grp/grp.h: Likewise.
31680         * gshadow/gshadow.h: Likewise.
31681         * iconv/gconv.h: Likewise.
31682         * iconv/gconv_int.h: Likewise.
31683         * iconv/gconv_simple.c: Likewise.
31684         * iconv/iconv.h: Likewise.
31685         * iconv/loop.c: Likewise.
31686         * iconv/skeleton.c: Likewise.
31687         * include/aio.h: Likewise.
31688         * include/aliases.h: Likewise.
31689         * include/argz.h: Likewise.
31690         * include/arpa/inet.h: Likewise.
31691         * include/assert.h: Likewise.
31692         * include/dirent.h: Likewise.
31693         * include/dlfcn.h: Likewise.
31694         * include/execinfo.h: Likewise.
31695         * include/fcntl.h: Likewise.
31696         * include/fenv.h: Likewise.
31697         * include/glob.h: Likewise.
31698         * include/grp.h: Likewise.
31699         * include/libintl.h: Likewise.
31700         * include/mntent.h: Likewise.
31701         * include/netdb.h: Likewise.
31702         * include/pwd.h: Likewise.
31703         * include/rpc/netdb.h: Likewise.
31704         * include/sched.h: Likewise.
31705         * include/search.h: Likewise.
31706         * include/shadow.h: Likewise.
31707         * include/signal.h: Likewise.
31708         * include/stdio.h: Likewise.
31709         * include/stdlib.h: Likewise.
31710         * include/string.h: Likewise.
31711         * include/sys/socket.h: Likewise.
31712         * include/sys/stat.h: Likewise.
31713         * include/sys/statfs.h: Likewise.
31714         * include/sys/statvfs.h: Likewise.
31715         * include/sys/syslog.h: Likewise.
31716         * include/sys/time.h: Likewise.
31717         * include/sys/uio.h: Likewise.
31718         * include/time.h: Likewise.
31719         * include/unistd.h: Likewise.
31720         * include/utmp.h: Likewise.
31721         * include/wchar.h: Likewise.
31722         * include/wctype.h: Likewise.
31723         * inet/aliases.h: Likewise.
31724         * inet/arpa/inet.h: Likewise.
31725         * inet/netinet/ether.h: Likewise.
31726         * inet/netinet/in.h: Likewise.
31727         * intl/libintl.h: Likewise.
31728         * io/bits/fcntl2.h: Likewise.
31729         * io/fcntl.h: Likewise.
31730         * io/ftw.h: Likewise.
31731         * io/sys/poll.h: Likewise.
31732         * io/sys/stat.h: Likewise.
31733         * io/sys/statfs.h: Likewise.
31734         * io/sys/statvfs.h: Likewise.
31735         * io/utime.h: Likewise.
31736         * libio/bits/stdio.h: Likewise.
31737         * libio/bits/stdio2.h: Likewise.
31738         * libio/libio.h: Likewise.
31739         * libio/libioP.h: Likewise.
31740         * libio/stdio.h: Likewise.
31741         * locale/lc-ctype.c: Likewise.
31742         * locale/locale.h: Likewise.
31743         * login/utmp.h: Likewise.
31744         * malloc/arena.c: Likewise.
31745         * malloc/malloc.c: Likewise.
31746         * malloc/malloc.h: Likewise.
31747         * malloc/mcheck.c: Likewise.
31748         * malloc/mtrace.c: Likewise.
31749         * math/bits/mathcalls.h: Likewise.
31750         * math/fenv.h: Likewise.
31751         * math/math_private.h: Likewise.
31752         * misc/bits/error.h: Likewise.
31753         * misc/bits/syslog.h: Likewise.
31754         * misc/err.h: Likewise.
31755         * misc/error.h: Likewise.
31756         * misc/fstab.h: Likewise.
31757         * misc/mntent.h: Likewise.
31758         * misc/regexp.h: Likewise.
31759         * misc/search.h: Likewise.
31760         * misc/sgtty.h: Likewise.
31761         * misc/sys/mman.h: Likewise.
31762         * misc/sys/syslog.h: Likewise.
31763         * misc/sys/uio.h: Likewise.
31764         * misc/sys/xattr.h: Likewise.
31765         * misc/ttyent.h: Likewise.
31766         * nis/rpcsvc/ypclnt.h: Likewise.
31767         * nss/nss.h: Likewise.
31768         * posix/bits/unistd.h: Likewise.
31769         * posix/fnmatch.h: Likewise.
31770         * posix/glob.h: Likewise.
31771         * posix/sched.h: Likewise.
31772         * posix/spawn.h: Likewise.
31773         * posix/sys/wait.h: Likewise.
31774         * posix/unistd.h: Likewise.
31775         * posix/wordexp.h: Likewise.
31776         * pwd/pwd.h: Likewise.
31777         * resolv/netdb.h: Likewise.
31778         * resource/sys/resource.h: Likewise.
31779         * rt/aio.h: Likewise.
31780         * rt/bits/mqueue2.h: Likewise.
31781         * rt/mqueue.h: Likewise.
31782         * shadow/shadow.h: Likewise.
31783         * signal/signal.h: Likewise.
31784         * socket/send.c: Likewise.
31785         * socket/sendto.c: Likewise.
31786         * socket/sys/socket.h: Likewise.
31787         * stdio-common/printf.h: Likewise.
31788         * stdlib/bits/stdlib.h: Likewise.
31789         * stdlib/fmtmsg.h: Likewise.
31790         * stdlib/monetary.h: Likewise.
31791         * stdlib/stdlib.h: Likewise.
31792         * stdlib/ucontext.h: Likewise.
31793         * streams/stropts.h: Likewise.
31794         * string/argz.h: Likewise.
31795         * string/bits/string2.h: Likewise.
31796         * string/string.h: Likewise.
31797         * string/strings.h: Likewise.
31798         * sunrpc/rpc/auth.h: Likewise.
31799         * sunrpc/rpc/auth_des.h: Likewise.
31800         * sunrpc/rpc/clnt.h: Likewise.
31801         * sunrpc/rpc/netdb.h: Likewise.
31802         * sunrpc/rpc/pmap_clnt.h: Likewise.
31803         * sunrpc/rpc/xdr.h: Likewise.
31804         * sysdeps/generic/inttypes.h: Likewise.
31805         * sysdeps/generic/net/if.h: Likewise.
31806         * sysdeps/generic/sys/swap.h: Likewise.
31807         * sysdeps/gnu/net/if.h: Likewise.
31808         * sysdeps/gnu/utmpx.h: Likewise.
31809         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
31810         * sysdeps/i386/i486/bits/string.h: Likewise.
31811         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
31812         * sysdeps/s390/bits/string.h: Likewise.
31813         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
31814         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
31815         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31816         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
31817         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
31818         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
31819         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
31820         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
31821         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
31822         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31823         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
31824         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
31825         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
31826         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
31827         * sysdeps/unix/sysv/linux/readv.c: Likewise.
31828         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
31829         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
31830         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31831         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31832         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31833         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31834         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
31835         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
31836         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
31837         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
31838         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
31839         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
31840         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31841         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
31842         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
31843         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
31844         * sysvipc/sys/ipc.h: Likewise.
31845         * sysvipc/sys/msg.h: Likewise.
31846         * sysvipc/sys/sem.h: Likewise.
31847         * sysvipc/sys/shm.h: Likewise.
31848         * termios/termios.h: Likewise.
31849         * time/sys/time.h: Likewise.
31850         * time/time.h: Likewise.
31851         * wcsmbs/bits/wchar2.h: Likewise.
31852         * wcsmbs/uchar.h: Likewise.
31853         * wcsmbs/wchar.h: Likewise.
31854         * wctype/wctype.h: Likewise.
31855
31856         [BZ #13551]
31857         * Makeconfig: Remove all but ELF support including AIX support.
31858         * Makerules: Likewise.
31859         * config.h.in: Likewise.
31860         * config.make.in: Likewise.
31861         * configure: Likewise.
31862         * configure.in: Likewise.
31863         * csu/Makefile: Likewise.
31864         * csu/version.c: Likewise.
31865         * debug/Makefile: Likewise.
31866         * dlfcn/Makefile: Likewise.
31867         * elf/Makefile: Likewise.
31868         * extra-lib.mk: Likewise.
31869         * iconv/Makefile: Likewise.
31870         * include/libc-symbols.h: Likewise.
31871         * include/shlib-compat.h: Likewise.
31872         * resolv/Makefile: Likewise.
31873         * resolv/res_libc.c: Likewise.
31874         * rt/Makefile: Likewise.
31875         * sysdeps/i386/asm-syntax.h: Likewise.
31876         * sysdeps/i386/sysdep.h: Likewise.
31877         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31878         * sysdeps/mach/sysdep.h: Likewise.
31879         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
31880         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
31881         * sysdeps/s390/asm-syntax.h: Likewise.
31882         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31883         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31884         * sysdeps/sh/sysdep.h: Likewise.
31885         * sysdeps/unix/sparc/sysdep.h: Likewise.
31886         * sysdeps/wordsize-32/divdi3.c: Likewise.
31887         * sysdeps/x86_64/sysdep.h: Likewise.
31888
31889         * argp/Versions: Remove _argp_unlock_xxx.
31890
31891         [BZ #13559]
31892         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
31893         * abilist/libBrokenLocale.abilist: Likewise.
31894         * abilist/libanl.abilist: Likewise.
31895         * abilist/libc.abilist: Likewise.
31896         * abilist/libcrypt.abilist: Likewise.
31897         * abilist/libdl.abilist: Likewise.
31898         * abilist/libm.abilist: Likewise.
31899         * abilist/libnsl.abilist: Likewise.
31900         * abilist/libpthread.abilist: Likewise.
31901         * abilist/libresolv.abilist: Likewise.
31902         * abilist/librt.abilist: Likewise.
31903         * abilist/libthread_db.abilist: Likewise.
31904         * abilist/libutil.abilist: Likewise.
31905         * abilist/libnss_db.abilist: New file.
31906
31907         * scripts/abilist.awk: Add support for indirect functions.
31908
31909         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
31910
31911         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
31912
31913         * shlib-versions: Remove entries for ports architectures.
31914
31915         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
31916         files in ports.
31917         * elf/stackguard-macros.h: Remove support for IA-64.
31918         * elf/tst-auditmod1.c: Likewise.
31919         * sysdeps/generic/ldsodefs.h: Likewise.
31920
31921         * sysdeps/unix/sysv/linux/configure.in: Ports should define
31922         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
31923         configure files.
31924
31925         [BZ #13552]
31926         * configure.in: Remove --enable-omitfp support.
31927         * FAQ.in: Adjust.
31928         * config.make.in: Likewise.
31929         * Makeconfig: Likewise.
31930         * manual/install.texi: Likewise.
31931
31932         In case anyone cares, the IA-64 architecture could move to ports.
31933         * sysdeps/ia64/*: Removed.
31934         * sysdeps/unix/sysv/linux/ia64/*: Removed.
31935         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
31936
31937         [BZ #13555]
31938         * configure.in: Remove entries for unsupported architectures.
31939
31940         [BZ #13533]
31941         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
31942         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
31943         routines.
31944         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
31945         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
31946         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
31947         fall back to using wcrtomb.
31948         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
31949         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
31950         renaming.
31951         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
31952         * wcsmbs/tst-c16c32-1.c: New file.
31953
31954         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
31955         local variable.
31956
31957         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
31958
31959         * elf/tst-unique3.cc: Add explicit declaration of gets.
31960         * elf/tst-unique3lib.cc: Likewise.
31961         * elf/tst-unique3lib2.cc: Likewise.
31962         * elf/tst-unique4.cc: Likewise.
31963
31964         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
31965
31966 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
31967
31968         [BZ #13566]
31969         * assert/assert.h (static_assert): Don't define for C++.
31970         * libio/stdio.h (gets): Do declare for C++ <= C++11.
31971         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
31972
31973 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
31974
31975         * iconv/loop.c (single loop): Fix assertion in storing of
31976         remaining bytes.
31977
31978         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
31979
31980 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
31981
31982         * posix/getconf.c: Update copyright year.
31983         * nss/getent.c: Likewise.
31984         * nss/makedb.c: Likewise.
31985         * iconv/iconvconfig.c: Likewise.
31986         * iconv/iconv_prog.c: Likewise.
31987         * elf/ldconfig.c: Likewise.
31988         * elf/pldd.c: Likewise.
31989         * elf/sotruss.ksh: Likewise.
31990         * catgets/gencat.c: Likewise.
31991         * csu/version.c: Likewise.
31992         * elf/ldd.bash.in: Likewise.
31993         * elf/sprof.c (print_version): Likewise.
31994         * locale/programs/locale.c: Likewise.
31995         * locale/programs/localedef.c: Likewise.
31996         * login/programs/pt_chown.c: Likewise.
31997         * nscd/nscd.c (print_version): Likewise.
31998         * debug/xtrace.sh: Likewise.
31999         * malloc/memusage.sh: Likewise.
32000         * malloc/mtrace.pl: Likewise.
32001         * debug/catchsegv.sh: Likewise.
32002
32003 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
32004
32005         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
32006         pure attribute.
32007
32008 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
32009
32010         [BZ #13533]
32011         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
32012         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
32013         transformations.
32014         * iconv/gconv_int.h: Likewise.
32015         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
32016         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
32017         from libc for GLIBC_2.16.
32018         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
32019         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
32020         * wcsmbs/uchar.h: Really define mbstate_t.
32021         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
32022         * wcsmbs/c16rtomb.c: New file.
32023         * wcsmbs/mbrtoc16.c: New file.
32024         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
32025         for C/POSIX locale.
32026         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
32027         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
32028
32029         * wcsmbs/wchar.h: Add missing __restrict.
32030
32031 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
32032
32033         [BZ #13532]
32034         * time/Makefile (routines): Add timespec_get.
32035         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
32036         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
32037         timespec for ISO C11.
32038         * time/timespec_get.c: New file.
32039         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
32040         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
32041
32042         [BZ #13531]
32043         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
32044         * stdlib/stdlib.h: Declare aligned_alloc.
32045         * Versions.def: Add GLIBC_2.16 for libc.
32046         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
32047
32048         [BZ 13527]
32049         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
32050         ISO C11.
32051
32052         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
32053         code.
32054
32055         [BZ #13528]
32056         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
32057
32058         [BZ #13529]
32059         * assert/assert.h (static_assert): Define.
32060
32061         * version.h: Update for 2.16 development version.
32062
32063         [BZ #13526]
32064         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
32065         _ISOC11_SOURCE.
32066
32067         * version.h (RELEASE): Bump for 2.15 release.
32068         * include/features.h (__GLIBC_MINOR__): Bump to 15.
32069
32070         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
32071         Patch by Marek Polacek <mpolacek@redhat.com>.
32072
32073         * bits/byteswap.h: Protect long long constants with __extension__.
32074         * sysdeps/i386/bits/byteswap.h: Likewise.
32075         * sysdeps/ia64/bits/byteswap.h: Likewise.
32076         * sysdeps/s390/bits/byteswap.h: Likewise.
32077         * sysdeps/x86_64/bits/byteswap.h: Likewise.
32078
32079 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32080
32081         [BZ #13540]
32082         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
32083         destination buffer.
32084         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
32085
32086 2011-12-23  Marek Polacek  <polacek@redhat.com>
32087
32088         * elf/dl-addr.c (determine_info): Add inline keyword.
32089         * elf/tst-auditmod4b.c (check_avx): Likewise.
32090         * elf/tst-auditmod6b.c (check_avx): Likewise.
32091         * elf/tst-auditmod6c.c (check_avx): Likewise.
32092         * elf/tst-auditmod7b.c (check_avx): Likewise.
32093
32094 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
32095
32096         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
32097         !__SSE_MATH__.
32098
32099 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32100
32101         [BZ #13540]
32102         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
32103         processing for last bytes.
32104
32105 2011-08-06  Bruno Haible  <bruno@clisp.org>
32106
32107         [BZ #13061]
32108         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
32109         U+0385, not to U+1FEE.
32110
32111         [BZ #13062]
32112         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
32113         entry for U+00A5 U+0301.
32114
32115 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32116
32117         [BZ #13166]
32118         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
32119         buffer for the output is too small.
32120
32121         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
32122         optimization.
32123
32124         [BZ #13185]
32125         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
32126         SSE flags if possible.
32127
32128 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32129
32130         [BZ #13540]
32131         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
32132         processing for last bytes.
32133
32134 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
32135
32136         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
32137         (syscall-list-default-options, syscall-list-default-condition)
32138         (syscall-list-includes): Define.
32139         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
32140         list of ABIs and options and #if conditions for each ABI.  Do not
32141         handle common syscalls between ABIs specially.
32142         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
32143         Remove.
32144         (syscall-list-variants, syscall-list-32bit-options)
32145         (syscall-list-32bit-condition, syscall-list-64bit-options)
32146         (syscall-list-64bit-condition): Define.
32147         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
32148         (syscall-list-variants, syscall-list-32bit-options)
32149         (syscall-list-32bit-condition, syscall-list-64bit-options)
32150         (syscall-list-64bit-condition): Define.
32151         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
32152         Remove.
32153         (syscall-list-variants, syscall-list-32bit-options)
32154         (syscall-list-32bit-condition, syscall-list-64bit-options)
32155         (syscall-list-64bit-condition): Define.
32156         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
32157         Remove.
32158         (syscall-list-variants, syscall-list-32bit-options)
32159         (syscall-list-32bit-condition, syscall-list-64bit-options)
32160         (syscall-list-64bit-condition): Define.
32161
32162 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32163
32164         * locale/iso-639.def: Add brx entry.
32165
32166         [BZ #13328]
32167         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
32168         Proposed by Mariusz_Cukr <marcukr@op.pl>.
32169
32170         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
32171         __feraiseexcept_renamed.
32172
32173 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32174
32175         [BZ #13538]
32176         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
32177         EPOLLET with unsigned values.
32178         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
32179         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
32180
32181         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
32182         to large cancellation.
32183         * math/s_cacoshf.c: Likewise.
32184         * math/s_cacoshl.c: Likewise.
32185
32186 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
32187
32188         [BZ #13305]
32189         [BZ #12786]
32190         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
32191         * math/s_cacoshf.c: Likewise.
32192         * math/s_cacoshl.c: Likewise.
32193
32194 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32195
32196         [BZ #13439]
32197         * iconv/gconv.h: Define __GCONV_SWAP.
32198         * iconvdata/unicode.c: The swap bit must be stored in __flags.
32199         * iconvdata/utf-16.c: Likewise.
32200         * iconvdata/utf-32.c: Likewise.
32201
32202 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
32203
32204         [BZ #13524]
32205         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
32206         numerator after shifting it by one limb.
32207
32208 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
32209
32210         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
32211         under [__USE_EXTERN_INLINES].
32212
32213 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32214
32215         [BZ #13446]
32216         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
32217
32218 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32219
32220         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
32221         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
32222         optimized code.
32223         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
32224         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
32225         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
32226         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
32227         for strncasecmp/strncasecmp_l compilation.
32228         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
32229         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
32230
32231 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
32232
32233         [BZ #13484]
32234         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
32235         of __asm__.
32236
32237 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32238
32239         [BZ #13506]
32240         * time/tzfile.c (__tzfile_read): Check values from file header.
32241
32242 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
32243
32244         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
32245         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
32246         * powerpc/powerpc32/dl-start.S: Likewise.
32247         * powerpc/powerpc32/elf/start.S: Likewise.
32248         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
32249         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
32250         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
32251         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
32252         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
32253         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
32254         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
32255         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
32256         * powerpc/powerpc32/fpu/s_round.S: Likewise.
32257         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
32258         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
32259         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
32260         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
32261         * powerpc/powerpc32/memset.S: Likewise.
32262         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
32263         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
32264         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
32265         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
32266         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
32267         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
32268         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
32269         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
32270         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
32271         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
32272         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
32273         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
32274         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
32275
32276 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32277
32278         * math/libm-test.inc: Added more nearbyint tests.
32279         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
32280         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
32281         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
32282         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
32283
32284 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
32285
32286         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
32287         FD_CLOEXEC.
32288
32289 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32290
32291         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
32292         Add wcscpy-ssse3 wcscpy-c.
32293         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
32294         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
32295         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
32296         * sysdeps/x86_64/wcschr.S: New file.
32297         * sysdeps/x86_64/wcsrchr.S: New file.
32298         * string/test-strcmp.c: Remove checking of wcscmp function for
32299         wrong alignments.
32300         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
32301         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
32302         wcsrchr-sse2 wcsrchr-c.
32303         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
32304         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
32305         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
32306         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
32307         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
32308         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
32309         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
32310         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
32311         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
32312         * wcsmbc/wcschr.c (WCSCHR): New macro.
32313
32314 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32315
32316         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
32317         * wcsmbs/test-wcsrchr.c: New file.
32318         * string/test-strrchr.c: Add wcsrchr support.
32319         (WIDE): New macro.
32320         * wcsmbs/test-wcscpy.c: New file.
32321         * string/test-strcpy.c: Add wcscpy support.
32322         (WIDE): New macro.
32323
32324 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
32325
32326         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
32327         the inner loop.
32328
32329 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
32330
32331         [BZ #13472]
32332         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
32333
32334 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
32335
32336         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
32337         Minor optimizations.
32338
32339         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
32340         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
32341         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32342
32343 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
32344
32345         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
32346         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
32347         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
32348         for gcc to avoid warnings.
32349         * inet/Makefile (tests): Add tst-checks.
32350         * inet/tst-checks.c: New file.
32351
32352         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
32353         warning.
32354
32355         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
32356         __wmemcmp_sse2.
32357
32358         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
32359         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
32360
32361         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
32362
32363 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
32364
32365         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
32366         problem.
32367
32368         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
32369
32370 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
32371
32372         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
32373         conditional on GCC version.
32374         (__arch_compare_and_exchange_val_8_acq)
32375         (__arch_compare_and_exchange_val_16_acq)
32376         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
32377         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
32378         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
32379
32380 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
32381
32382         * sysdeps/sh/backtrace.c: New file.
32383
32384 2011-12-02  Andreas Schwab  <schwab@redhat.com>
32385
32386         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
32387         parenthesis.
32388
32389 2011-12-01  Andreas Schwab  <schwab@redhat.com>
32390
32391         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
32392         falling back to utime.
32393
32394 2011-11-30  Andreas Schwab  <schwab@redhat.com>
32395
32396         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
32397         expectations for float.
32398
32399 2011-11-29  Andreas Schwab  <schwab@redhat.com>
32400
32401         * locale/weight.h (findidx): Add parameter len.
32402         * locale/weightwc.h (findidx): Likewise.
32403         * posix/fnmatch_loop.c (FCT): Adjust caller.
32404         * posix/regcomp.c (build_equiv_class): Likewise.
32405         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
32406         * posix/regexec.c (check_node_accept_bytes): Likewise.
32407         * string/strcoll_l.c (STRCOLL): Likewise.
32408         * string/strxfrm_l.c (STRXFRM): Likewise.
32409
32410 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
32411
32412         * Makefile.in: Remove CVSOPT handling.
32413         * configure.in: Remove use of AC_REVISION.
32414         * iconvdata/Makefile (distribute): No need to filter out CVS.
32415         * scripts/list-sources.sh: Remove CVS, subversion and monotone
32416         handling.
32417
32418 2011-11-16  Andreas Schwab  <schwab@redhat.com>
32419
32420         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
32421         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
32422         [USE_AS_STRNCASECMP_L]: Likewise.
32423         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
32424         NO_TLS_DIRECT_SEG_REFS.
32425         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
32426         Fix argument offsets for non-PIC.
32427         [USE_AS_STRNCASECMP_L]: Likewise.
32428         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
32429         NO_TLS_DIRECT_SEG_REFS.
32430
32431 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32432
32433         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
32434         O_CLOEXEC.
32435         * locale/loadlocale.c (_nl_load_locale): Likewise.
32436
32437 2011-11-15  Andreas Schwab  <schwab@redhat.com>
32438
32439         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
32440         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
32441         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
32442         (SYSCALL_GETTIME): Set errno on error.
32443
32444         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
32445         count references to noai6ai_cached.
32446
32447 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32448
32449         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
32450
32451         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
32452         FD_CLOEXEC for /proc/self/maps.
32453
32454         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
32455         FD_CLOEXEC for /proc/meminfo.
32456
32457         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
32458         gai.conf.
32459
32460         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
32461         FD_CLOEXEC for given file.
32462
32463         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
32464
32465         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
32466         FD_CLOEXEC for /etc/hosts.
32467         (_gethtent): Likewise.
32468
32469         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
32470
32471         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
32472         cancellation and set FD_CLOEXEC for /etc/netgroup.
32473
32474         * nss/nss_files/files-key.c (search): Don't allow cancellation when
32475         reading /etc/publickey.
32476
32477         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
32478         allow cancellation when reading /etc/group.
32479
32480         * nss/nss_files/files-alias.c (internal_setent): Don't allow
32481         cancellation.
32482         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
32483
32484         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
32485         when using data file.
32486
32487         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
32488
32489         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
32490         (write_nis_obj): Use "c" and "e" in fopen.
32491
32492         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
32493
32494         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
32495
32496         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
32497
32498         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
32499
32500         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
32501         locale.alias.
32502
32503         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
32504
32505         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
32506
32507         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
32508
32509         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
32510         file parsing and set FD_CLOEXEC.
32511
32512 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32513
32514         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
32515
32516 2011-11-14  Andreas Schwab  <schwab@redhat.com>
32517
32518         * malloc/arena.c (arena_get2): Don't call reused_arena when
32519         _int_new_arena failed.
32520
32521 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32522
32523         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
32524         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
32525         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
32526         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32527         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32528         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
32529         to compile strcasecmp and strncasecmp.
32530         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
32531         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
32532
32533         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
32534
32535 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
32536
32537         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
32538         locale-defines.sym to gen-as-const-headers.
32539         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
32540         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
32541         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
32542         to compile strcasecmp and strncasecmp.
32543         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
32544         strcasecmp_l and strncasecmp_l.
32545         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
32546         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
32547         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
32548         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
32549         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
32550         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
32551         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
32552         * sysdeps/i386/i686/multiarch/strncase.S: New file.
32553         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
32554         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
32555         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
32556
32557 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
32558
32559         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
32560         result of SYSDEP_GETTIME_CPU to retval.
32561         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
32562         parameter list to macro.  Remove trailing semicolon.  Adjust users.
32563
32564         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
32565         variable.
32566
32567         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
32568         mantissa words.
32569         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32570
32571         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
32572         from unused variable.
32573
32574         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
32575         DWARF definitions.
32576         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
32577         for assembling.
32578
32579         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
32580         over namespaces.
32581
32582         * sunrpc/rpc_prot.c (rejected): Fix case value.
32583
32584         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
32585         unsigned long long int to avoid warnings in shift.
32586
32587         * posix/regex_internal.c (re_string_reconstruct): Actually use result
32588         of use of trans.
32589         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
32590         variable tmp.
32591
32592         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
32593         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
32594         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
32595
32596         * nis/nis_table.c (nis_list): Use variable of correct type for
32597         result of __follow_path call.
32598
32599 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32600
32601         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
32602         of math functions ceil, trunc, floor, round, and sqrt, when
32603         avaliable on the platform.
32604         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
32605         name clash.
32606         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32607         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32608         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32609
32610 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
32611
32612         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
32613         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
32614
32615 2011-11-11  Roland McGrath  <roland@hack.frob.com>
32616
32617         * include/unistd.h: Fix __readlink return type.
32618         Reported by Chris Metcalf <cmetcalf@tilera.com>.
32619
32620 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
32621
32622         * stdlib/ucontext.h: Undo last change for makecontext.
32623
32624 2011-11-11  Andreas Schwab  <schwab@redhat.com>
32625
32626         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
32627
32628         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
32629         * setjmp/setjmp.h: Mark functions as non-leaf.
32630         * setjmp/bits/setjmp2.h: Likewise.
32631         * stdlib/ucontext.h: Likewise.
32632
32633 2011-11-10  Andreas Schwab  <schwab@redhat.com>
32634
32635         * malloc/arena.c (_int_new_arena): Don't increment narenas.
32636         (reused_arena): Don't check arena limit.
32637         (arena_get2): Atomically check arena limit.
32638
32639 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
32640
32641         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
32642         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
32643
32644         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
32645         instructions.
32646
32647 2011-11-07  Andreas Schwab  <schwab@redhat.com>
32648
32649         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
32650         handler when locking.
32651
32652         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
32653         Fix size of allocated buffer.
32654
32655 2011-11-04  Andreas Schwab  <schwab@redhat.com>
32656
32657         [BZ #10103]
32658         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
32659         declarations for long double functions.
32660         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
32661
32662         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
32663
32664 2011-11-03  Andreas Schwab  <schwab@redhat.com>
32665
32666         * nscd/nscd.c (main): Don't start AVC thread until credentials are
32667         installed.
32668
32669         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
32670         is disabled.
32671
32672 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32673
32674         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
32675
32676 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
32677
32678         * include/alloca.h (stackinfo_alloca_round): Define.
32679         (extend_alloca): Use it.
32680         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
32681         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
32682         here.
32683
32684         * scripts/check-local-headers.sh: Ignore libaudit.h.
32685
32686         * nscd/Makefile (extra-objs): Make recursively expanded.
32687
32688 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
32689
32690         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
32691         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
32692
32693         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
32694         * posix/tst-rfc3484-2.c: Likewise.
32695         * posix/tst-rfc3484-3.c: Likewise.
32696
32697         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
32698         process_vm_writev.
32699         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
32700         process_vm_writev.
32701         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
32702         process_vm_writev from libc using GLIBC_2.15 version.
32703
32704         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
32705
32706 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
32707
32708         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
32709         stack usage.
32710
32711 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
32712
32713         [BZ #13367]
32714         * nss/getent.c (initgroups_keys): Show error message in case no group
32715         names are given.
32716
32717         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
32718         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
32719         __bump_nl_timestamp.
32720         * nscd/connections (nscd_init): When host database is served open
32721         netlink socket and request notification about configuration changes.
32722         (main_loop_poll): Track netlink file descriptor and bump timestamp
32723         in case data becomes available.
32724         (main_loop_epoll): Likewise.
32725         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
32726         (database_pers_head): Add extra_data fileds.
32727         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
32728         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
32729         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
32730         Adjust caller.
32731         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
32732         in6ai data, call __free_in6ai.
32733         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
32734         Add -DHAVE_NETLINK.
32735         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
32736         interface information.  Reuse previous data if netlink timestamp
32737         is not changed.
32738         (__bump_nl_timestamp): New function.
32739         (__free_in6ai): New function.
32740
32741 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
32742
32743         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
32744         close_not_cancel_no_status here.
32745         (__check_pf): Reorganize code a bit to not call close twice if OOM.
32746
32747 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32748
32749         [BZ #13276]
32750         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
32751         return value.
32752
32753         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
32754         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
32755         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
32756
32757 2011-07-03  Andreas Jaeger  <aj@suse.de>
32758
32759         [BZ #10709]
32760         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
32761         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
32762         * math/libm-test.inc (sin_test): Add test case.
32763
32764 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32765
32766         [BZ #13337]
32767         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
32768         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32769
32770         * elf/chroot_canon.c (chroot_canon): Cleanups.
32771
32772         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
32773
32774         [BZ #13335]
32775         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
32776         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32777
32778         * string/test-strchr.c: Make usable for strchrnul testing.
32779         * string/test-strchrnul.c: New file.
32780         * string/Makefile (strop-tests): Add strchrnul.
32781
32782         * po/it.po: Update from translation team.
32783         * po/es.po: Likewise.
32784
32785 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
32786
32787         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
32788         the three constants needed as parameters.  Drop the others.
32789         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
32790         __m128i_strloadu_tolower.
32791         Create and initialize variable zero and use it in all the places
32792         where _mm_setzero_si128 was used.
32793
32794         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
32795         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
32796         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
32797         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
32798         anymore.
32799         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
32800         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
32801         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
32802         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
32803         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
32804         __mpranred, __mptan.
32805         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
32806         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
32807         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
32808         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
32809         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
32810         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
32811         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
32812         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
32813         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
32814
32815 2011-10-28  Andreas Schwab  <schwab@redhat.com>
32816
32817         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
32818         redefine if SHARED.
32819         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
32820
32821         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
32822         wide char related routines to wcsmbs subdir.
32823
32824 2011-10-27  Andreas Schwab  <schwab@redhat.com>
32825
32826         [BZ #13344]
32827         * misc/sys/cdefs.h (__THROWNL): Define.
32828         * posix/unistd.h: Use __THREADNL instead of __THREAD
32829         for memory synchronization functions.
32830
32831 2011-10-26  Roland McGrath  <roland@hack.frob.com>
32832
32833         [BZ #13349]
32834         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
32835         doesn't exist.
32836         * manual/stdio.texi (Obstack Streams): Node removed.
32837
32838 2011-10-26  Andreas Schwab  <schwab@redhat.com>
32839
32840         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
32841         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32842         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32843
32844         * math/math_private.h (math_force_eval): Allow non-addressable
32845         arguments.
32846         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
32847
32848 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32849
32850         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
32851         file is not needed.
32852
32853         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
32854         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32855         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32856         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32857         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32858         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32859         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32860         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
32861         Add AVX variants.
32862         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
32863         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
32864         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
32865         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
32866         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
32867         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
32868         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
32869         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
32870         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
32871         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
32872         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
32873         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
32874         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
32875         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
32876         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
32877         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
32878         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
32879         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
32880         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
32881
32882         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
32883         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
32884
32885         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
32886         place.  Use VEX encoding when compiling for AVX.
32887
32888 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32889
32890         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
32891         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
32892
32893         * string/test-strchr.c (do_test): Don't generate NUL bytes.
32894
32895 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32896
32897         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
32898         useless if() expression.
32899         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32900         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
32901         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
32902         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32903         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
32904         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32905         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32906         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32907         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
32908         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
32909         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
32910         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32911         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
32912         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32913         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
32914         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32915         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
32916         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
32917         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
32918
32919         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
32920
32921 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32922
32923         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
32924         condition.
32925         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32926
32927 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32928
32929         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
32930         .text section.  Avoid duplicate constants.
32931         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
32932         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
32933         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
32934         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32935         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32936         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32937         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32938         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32939         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
32940         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
32941         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
32942         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
32943         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
32944         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
32945         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
32946         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
32947         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
32948         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
32949         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
32950         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
32951         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
32952         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
32953         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
32954         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
32955         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
32956         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
32957         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
32958         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
32959         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
32960         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
32961         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
32962         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
32963         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
32964         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
32965         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
32966         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
32967         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
32968         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
32969         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
32970         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
32971         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
32972         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
32973         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
32974         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
32975         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
32976
32977 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
32978
32979         * sysdeps/x86_64/dla.h: Move to ...
32980         * sysdeps/x86_64/fpu/dla.h: ...here.
32981         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
32982         situations.  Use __builtin_fma only for gcc 4.6 and up.
32983
32984         * config.make.in: Add have-mfma4 entry.
32985         * configure.in: Substitute libc_cv_cc_fma4.
32986         * math/Makefile (dbl-only-routines): Add sincostab.
32987         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
32988         Use __sincostab not sincos.
32989         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
32990         name is a macro.
32991         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32992         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32993         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32994         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
32995         using __copysign.
32996         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
32997         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
32998         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
32999         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
33000         and __inv.
33001         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
33002         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
33003         __copysign.
33004         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
33005         define aliases when function name is a macro.
33006         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
33007         sysdeps/ieee754/dbl-64/sincos.tbl.
33008         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
33009         fma4-enabled routines.
33010         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
33011         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
33012         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
33013         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
33014         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
33015         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
33016         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
33017         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
33018         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
33019         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
33020         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
33021         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
33022         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
33023         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
33024         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
33025         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
33026         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
33027         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
33028         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
33029         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
33030         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
33031         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
33032         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
33033         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
33034         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
33035         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
33036         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
33037         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
33038         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
33039         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
33040
33041         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
33042         rename.
33043         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33044         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33045         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33046         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33047         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33048         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33049         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33050         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33051
33052 2011-10-24  Andreas Schwab  <schwab@redhat.com>
33053
33054         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
33055
33056 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33057
33058         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
33059
33060         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
33061         prediction.
33062         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
33063
33064         * string/strnlen.c: Don't define STRNLEN, reverse logic.
33065         Remove unused variable magic_bits.
33066         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
33067
33068         * string/strnlen.c: Define and use STRNLEN macro.
33069         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
33070         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
33071         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
33072         * wcsmbs/wcslen.c: Define and use WCSLEN.
33073         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
33074         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
33075         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
33076         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
33077         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
33078         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
33079         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33080
33081 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33082
33083         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33084         strnlen-sse2-no-bsf.
33085         Rename strlen-no-bsf to strlen-sse2-no-bsf.
33086         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
33087         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
33088         Add strnlen support.
33089         (USE_AS_STRNLEN): New macro.
33090         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
33091         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
33092         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
33093         * sysdeps/x86_64/wcslen.S: New file.
33094
33095 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
33096
33097         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
33098         XMM-moves are used for copying on small sizes.
33099
33100 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33101
33102         * wcsmbs/Makefile (strop-tests): Add wcschr.
33103         * wcsmbs/test-wcschr.c: New file.
33104         * string/test-strchr.c: Update.
33105         Add wcschr support.
33106         (WIDE): New macro.
33107
33108 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33109
33110         * wcsmbs/Makefile (strop-tests): Add wcslen.
33111         * wcsmbs/test-wcslen.c: New file.
33112         * string/test-strlen.c: Update.
33113         Add wcslen support.
33114         (WIDE): New macro.
33115
33116 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33117
33118         * po/it.po: Update from translation team.
33119
33120 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33121
33122         * sysdeps/x86_64/wcscmp.S: Update.
33123         Fix wrong comparison semantics.
33124         wcscmp shall use signed comparison not unsigned.
33125         Don't use substraction to avoid overflow bug.
33126         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
33127         * wcsmbc/wcscmp.c: Likewise.
33128         * string/test-strcmp.c: Likewise.
33129         Add new tests to check cases with negative values.
33130
33131 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33132
33133         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
33134         * sysdeps/x86_64/dla.h: ...here.  New file.
33135         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
33136         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33137         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33138         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33139         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33140         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33141         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33142         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33143         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33144
33145 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
33146
33147         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
33148         __ynl_finite aliases.
33149
33150 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33151
33152         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33153
33154         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
33155         define DLA_FMA.
33156         [DLA_FMA] (EMULV): Use DLA_FMA.
33157         [DLA_FMA] (MUL12): Use EMULV.
33158         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
33159         that are not needed.
33160         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33161         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33162         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33163         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33164         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33165         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33166         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33167
33168 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
33169
33170         * math/s_nan.c: Undef __nan.
33171         * math/s_nanf.c: Undef __nanf.
33172         * math/s_nanl.c: Undef __nanl.
33173         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
33174         "math_private.h".
33175
33176 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33177
33178         * math/s_catan.c: Add branch predictions.
33179         * math/s_catanf.c: Likewise.
33180         * math/s_catanh.c: Likewise.
33181         * math/s_catanhf.c: Likewise.
33182         * math/s_catanhl.c: Likewise.
33183         * math/s_catanl.c: Likewise.
33184         * math/s_cexp.c: Likewise.
33185         * math/s_cexpf.c: Likewise.
33186         * math/s_cexpl.c: Likewise.
33187         * math/s_clog.c: Likewise.
33188         * math/s_clog10.c: Likewise.
33189         * math/s_clog10f.c: Likewise.
33190         * math/s_clog10l.c: Likewise.
33191         * math/s_clogf.c: Likewise.
33192         * math/s_clogl.c: Likewise.
33193         * math/s_csqrt.c: Likewise.
33194         * math/s_csqrtf.c: Likewise.
33195         * math/s_csqrtl.c: Likewise.
33196         * math/s_ctanf.c: Likewise.
33197         * math/s_ctanh.c: Likewise.
33198         * math/s_ctanhf.c: Likewise.
33199         * math/s_ctanhl.c: Likewise.
33200         * math/s_ctanl.c: Likewise.
33201
33202         * math/math_private.h: Define __nan, __nanf, __nanl.
33203         * math/s_cacosh.c: Include <math_private.h>.
33204         * math/s_cacoshl.c: Likewise.
33205         * math/s_casinh.c: Likewise.
33206         * math/s_casinhf.c: Likewise.
33207         * math/s_casinhl.c: Likewise.
33208         * math/s_ccos.c: Rely entire on ccosh.
33209         * math/s_ccosf.c: Rely entire on ccoshf.
33210         * math/s_ccosl.c: Rely entirely on ccoshl.
33211         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
33212         Remove tests for FE_INVALID.
33213         * math/s_ccoshf.c: Likewise.
33214         * math/s_ccoshl.c: Likewise.
33215         * math/s_csin.c: Likewise.
33216         * math/s_csinf.c: Likewise.
33217         * math/s_csinh.c Likewise.
33218         * math/s_csinhf.c: Likewise.
33219         * math/s_csinhl.c: Likewise.
33220         * math/s_csinl.c: Likewise.
33221         * math/s_ctan.c: Likewise.
33222         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
33223         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
33224         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
33225
33226 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
33227
33228         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
33229         compilation problems.
33230
33231         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
33232         __builtin_expect.
33233
33234 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
33235
33236         * sysdeps/i386/configure.in: Test for -mfma4 option.
33237         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
33238         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
33239         COMMON_CPUID_INDEX_80000001.
33240         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
33241         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
33242         use it if FMA3 is not supported.
33243         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
33244
33245         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
33246         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33247
33248 2011-10-20  Andreas Schwab  <schwab@redhat.com>
33249
33250         [BZ #12892]
33251         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
33252         it would create a cycle with a link time dependency.
33253
33254 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
33255
33256         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
33257         instruction.
33258         * string/Makefile (strop-tests): Add rawmemchr.
33259         * string/test-rawmemchr.c: New file.
33260
33261         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
33262         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
33263         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
33264         when compiling str{,n}casecmp and when AVX is available.  Hook up
33265         new optimized code in initializers.
33266
33267 2011-10-19  Andreas Schwab  <schwab@redhat.com>
33268
33269         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
33270         __feraiseexcept instead of feraiseexcept.
33271
33272 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
33273
33274         * math/math_private.h: Define defaults for libc_fetestexcept and
33275         libc_feupdateenv.
33276         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
33277         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
33278         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33279         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33280         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
33281         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33282         libc_fetestexcept and libc_feupdateenv.
33283
33284         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
33285         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
33286         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
33287         * sysdeps/x86_64/fpu/math_private.h: Define special version of
33288         libc_feholdexcept_setround.
33289
33290         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
33291         Add s_nearbyint-c and s_nearbyintf-c.
33292         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
33293         nearbyintf inlines.
33294         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
33295         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
33296         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
33297         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
33298
33299         * math/math_private.h: Define defaults for libc_fegetround,
33300         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
33301         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
33302         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
33303         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
33304         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
33305         standard functions.
33306         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33307         Remove comments and hacks for old compiler versions.
33308         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33309         libc_fegetround, libc_fesetround, libc_feholdexcept, and
33310         libc_feholdexceptl.
33311
33312 2011-10-18  Andreas Schwab  <schwab@redhat.com>
33313
33314         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
33315         (__feraiseexcept_renamed): Add __NTH.
33316         (feraiseexcept): Add __NTH.  Rename local variables to fix
33317         namespace violations.
33318
33319 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
33320
33321         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
33322
33323         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
33324
33325         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
33326         recently added interfaces.
33327         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
33328
33329         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
33330         about macro parameter expansion.
33331
33332         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
33333         __NO_MATH_INLINES is defined.  Cleanups.
33334
33335         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
33336         and __floorf is target has SSE4.1.
33337         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
33338         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
33339         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
33340         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
33341
33342         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
33343         name.
33344         (floorf): Likewise.
33345
33346         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
33347
33348 2011-10-17  Andreas Schwab  <schwab@redhat.com>
33349
33350         * misc/sys/cdefs.h: Fix last change.
33351
33352         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
33353         database lookup.
33354
33355 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
33356
33357         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
33358
33359         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
33360         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
33361         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
33362         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
33363         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
33364         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
33365         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
33366         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
33367         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
33368         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
33369         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
33370         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
33371         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
33372         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
33373         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
33374         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
33375         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
33376         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
33377         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
33378         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
33379         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
33380         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
33381
33382         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
33383         ceil, ceilf, floor, floorf.
33384
33385         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
33386         Perform IRELATIVE relocations last.
33387
33388         * elf/do-rel.h: Add another parameter nrelative, replacing the
33389         local variable with the same name.  Change name of the function
33390         to end in Rel or Rela (uppercase).
33391         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
33392         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
33393         elf_dynamic_do_##reloc function.
33394
33395 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33396
33397         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
33398         is sufficient, at least on modern CPUs.
33399
33400         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
33401
33402         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
33403         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
33404
33405         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
33406         __expl_finite.
33407         * math/bits/math-finite.h: Add entries for exp.
33408         * math/e_expl.c: Add __*_finite alias.
33409         * sysdeps/i386/fpu/e_exp.S: Likewise.
33410         * sysdeps/i386/fpu/e_expf.S: Likewise.
33411         * sysdeps/i386/fpu/e_expl.c: Likewise.
33412         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33413         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33414         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
33415         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
33416         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
33417         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
33418         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
33419
33420         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
33421         is sufficient, at least on modern CPUs.
33422
33423         * ctype/ctype-info.c (__ctype_init): Define.
33424         * include/ctype.h (__ctype_init): Declare.
33425         (__ctype_b_loc): The variable is always initialized.
33426         (__ctype_toupper_loc): Likewise.
33427         (__ctype_tolower_loc): Likewise.
33428         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
33429         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
33430
33431 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
33432
33433         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
33434
33435         * configure.in: Also look in $cxxmachine/include for C++ system
33436         headers.
33437
33438 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33439
33440         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
33441         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
33442         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
33443         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
33444         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
33445         (USE_AS_WMEMCMP): New macro.
33446         Fixing indents.
33447         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
33448         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
33449         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
33450         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
33451         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33452         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
33453         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
33454         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
33455         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
33456         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
33457         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
33458         (USE_AS_WMEMCMP): New macro.
33459         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
33460         * sysdeps/string/test-memcmp.c: Update.
33461         Fix simple_wmemcmp.
33462         Add new tests.
33463         * wcsmbs/wmemcmp.c: Update.
33464         (WMEMCMP): New macro.
33465         Fix overflow bug.
33466
33467 2011-10-12  Andreas Jaeger  <aj@suse.de>
33468
33469         [BZ #13268]
33470         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
33471
33472 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33473
33474         * libio/iofwide.c (do_length): Avoid warning.
33475
33476         * ctype/ctype.h (__isctype_f): Add missing __THROW.
33477
33478 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
33479
33480         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
33481
33482         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
33483         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
33484         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
33485         * sysdeps/i386/i686/fpu/e_log.S: New file.
33486         * sysdeps/i386/i686/fpu/e_logf.S: New file.
33487         * sysdeps/i386/i686/fpu/e_logl.S: New file.
33488
33489         * ctype/ctype.h: Add support for inlined isXXX functions when
33490         compiling C++ code.
33491
33492 2011-10-14  Andreas Schwab  <schwab@redhat.com>
33493
33494         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33495
33496         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
33497
33498 2011-10-13  Roland McGrath  <roland@hack.frob.com>
33499
33500         [BZ #13291]
33501         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
33502
33503 2011-10-13  Andreas Schwab  <schwab@redhat.com>
33504
33505         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
33506         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
33507         feraiseexcept.
33508
33509         * sysdeps/x86_64/memrchr.S: Check for zero size.
33510
33511         * string/stratcliff.c: Add memrchr tests.
33512
33513 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33514
33515         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33516         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
33517         rawmemchr-sse2 rawmemchr-sse2-bsf.
33518         * sysdeps/i386/i686/multiarch/memchr.S: New file.
33519         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
33520         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
33521         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
33522         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
33523         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
33524         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
33525         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
33526         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
33527         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
33528         * string/memrchr.c (MEMRCHR): New macro.
33529
33530 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
33531
33532         Add integration with gcc's -ffinite-math-only and optimize wrapper
33533         functions in libm.
33534         * Versions.def: Define GLIBC_2.15 version for libm.
33535         * math/Makefile (headers): Add bits/math-finite.h.
33536         * math/bits/math-finite.h: New file.
33537         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
33538         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
33539         * math/e_acoshl.c: Add __*_finite alias.
33540         * math/e_acosl.c: Likewise.
33541         * math/e_asinl.c: Likewise.
33542         * math/e_atan2l.c: Likewise.
33543         * math/e_atanhl.c: Likewise.
33544         * math/e_coshl.c: Likewise.
33545         * math/e_exp10.c: Likewise.
33546         * math/e_exp10f.c: Likewise.
33547         * math/e_exp10l.c: Likewise.
33548         * math/e_exp2l.c: Likewise.
33549         * math/e_fmodl.c: Likewise.
33550         * math/e_gammal_r.c: Likewise.
33551         * math/e_hypotl.c: Likewise.
33552         * math/e_j0l.c: Likewise.
33553         * math/e_j1l.c: Likewise.
33554         * math/e_jnl.c: Likewise.
33555         * math/e_lgammal_r.c: Likewise.
33556         * math/e_log10l.c: Likewise.
33557         * math/e_log2l.c: Likewise.
33558         * math/e_logl.c: Likewise.
33559         * math/e_powl.c: Likewise.
33560         * math/e_sinhl.c: Likewise.
33561         * math/e_sqrtl.c: Likewise.
33562         * math/e_scalb.c: Completely rewritten and optimized.
33563         * math/e_scalbf.c: Likewise.
33564         * math/e_scalbl.c: Likewise.
33565         * math/w_acos.c: Likewise.
33566         * math/w_acosf.c: Likewise.
33567         * math/w_acosl.c: Likewise.
33568         * math/w_acosh.c: Likewise.
33569         * math/w_acoshf.c: Likewise.
33570         * math/w_acoshl.c: Likewise.
33571         * math/w_asin.c: Likewise.
33572         * math/w_asinf.c: Likewise.
33573         * math/w_asinl.c: Likewise.
33574         * math/w_atan2.c: Likewise.
33575         * math/w_atan2f.c: Likewise.
33576         * math/w_atan2l.c: Likewise.
33577         * math/w_atanh.c: Likewise.
33578         * math/w_atanhf.c: Likewise.
33579         * math/w_atanhl.c: Likewise.
33580         * math/w_exp10.c: Likewise.
33581         * math/w_exp10f.c: Likewise.
33582         * math/w_exp10l.c: Likewise.
33583         * math/w_fmod.c: Likewise.
33584         * math/w_fmodf.c: Likewise.
33585         * math/w_fmodl.c: Likewise.
33586         * math/w_j0.c: Likewise.
33587         * math/w_j0f.c: Likewise.
33588         * math/w_j0l.c: Likewise.
33589         * math/w_j1.c: Likewise.
33590         * math/w_j1f.c: Likewise.
33591         * math/w_j1l.c: Likewise.
33592         * math/w_jn.c: Likewise.
33593         * math/w_jnf.c: Likewise.
33594         * math/w_log.c: Likewise.
33595         * math/w_logf.c: Likewise.
33596         * math/w_logl.c: Likewise.
33597         * math/w_log10.c: Likewise.
33598         * math/w_log10f.c: Likewise.
33599         * math/w_log10l.c: Likewise.
33600         * math/w_log2.c: Likewise.
33601         * math/w_log2f.c: Likewise.
33602         * math/w_log2l.c: Likewise.
33603         * math/w_pow.c: Likewise.
33604         * math/w_powf.c: Likewise.
33605         * math/w_powl.c: Likewise.
33606         * math/w_remainder.c: Likewise.
33607         * math/w_remainderf.c: Likewise.
33608         * math/w_remainderl.c: Likewise.
33609         * math/w_scalb.c: Likewise.
33610         * math/w_scalbf.c: Likewise.
33611         * math/w_scalbl.c: Likewise.
33612         * math/w_sqrt.c: Likewise.
33613         * math/w_sqrtf.c: Likewise.
33614         * math/w_sqrtl.c: Likewise.
33615         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
33616         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
33617         used.
33618         * math/math_private.h: Declare __kernel_standard_f.
33619         * math/w_cosh.c: Remove cruft and optimize a bit.
33620         * math/w_coshf.c: Likewise.
33621         * math/w_coshl.c: Likewise.
33622         * math/w_exp2.c: Likewise.
33623         * math/w_exp2f.c: Likewise.
33624         * math/w_exp2l.c: Likewise.
33625         * math/w_hypot.c: Likewise.
33626         * math/w_hypotf.c: Likewise.
33627         * math/w_hypotl.c: Likewise.
33628         * math/w_lgamma.c: Likewise.
33629         * math/w_lgamma_r.c: Likewise.
33630         * math/w_lgammaf.c: Likewise.
33631         * math/w_lgammaf_r.c: Likewise.
33632         * math/w_lgammal.c: Likewise.
33633         * math/w_lgammal_r.c: Likewise.
33634         * math/w_sinh.c: Likewise.
33635         * math/w_sinhf.c: Likewise.
33636         * math/w_sinhl.c: Likewise.
33637         * math/w_tgamma.c: Likewise.
33638         * math/w_tgammaf.c: Likewise.
33639         * math/w_tgammal.c: Likewise.
33640         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
33641         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33642         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
33643         Minor optimizations.  Pretty printing.  Remove cruft.
33644         * sysdeps/i386/fpu/e_acosf.S: Likewise.
33645         * sysdeps/i386/fpu/e_acosh.S: Likewise.
33646         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
33647         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
33648         * sysdeps/i386/fpu/e_acosl.c: Likewise.
33649         * sysdeps/i386/fpu/e_asin.S: Likewise.
33650         * sysdeps/i386/fpu/e_asinf.S: Likewise.
33651         * sysdeps/i386/fpu/e_atan2.S: Likewise.
33652         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
33653         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
33654         * sysdeps/i386/fpu/e_atanh.S: Likewise.
33655         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
33656         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
33657         * sysdeps/i386/fpu/e_exp10.S: Likewise.
33658         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
33659         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
33660         * sysdeps/i386/fpu/e_exp2.S: Likewise.
33661         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
33662         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
33663         * sysdeps/i386/fpu/e_fmod.S: Likewise.
33664         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
33665         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
33666         * sysdeps/i386/fpu/e_hypot.S: Likewise.
33667         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
33668         * sysdeps/i386/fpu/e_log.S: Likewise.
33669         * sysdeps/i386/fpu/e_log10.S: Likewise.
33670         * sysdeps/i386/fpu/e_log10f.S: Likewise.
33671         * sysdeps/i386/fpu/e_log10l.S: Likewise.
33672         * sysdeps/i386/fpu/e_log2.S: Likewise.
33673         * sysdeps/i386/fpu/e_log2f.S: Likewise.
33674         * sysdeps/i386/fpu/e_log2l.S: Likewise.
33675         * sysdeps/i386/fpu/e_logf.S: Likewise.
33676         * sysdeps/i386/fpu/e_logl.S: Likewise.
33677         * sysdeps/i386/fpu/e_pow.S: Likewise.
33678         * sysdeps/i386/fpu/e_powf.S: Likewise.
33679         * sysdeps/i386/fpu/e_powl.S: Likewise.
33680         * sysdeps/i386/fpu/e_remainder.S: Likewise.
33681         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
33682         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
33683         * sysdeps/i386/fpu/e_scalb.S: Likewise.
33684         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
33685         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
33686         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
33687         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
33688         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
33689         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
33690         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33691         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33692         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
33693         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33694         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
33695         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
33696         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
33697         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
33698         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
33699         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
33700         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
33701         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33702         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
33703         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
33704         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33705         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
33706         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
33707         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33708         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33709         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
33710         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
33711         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
33712         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
33713         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
33714         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
33715         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33716         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
33717         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
33718         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
33719         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33720         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
33721         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33722         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
33723         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
33724         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
33725         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
33726         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
33727         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
33728         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
33729         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
33730         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
33731         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
33732         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
33733         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
33734         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
33735         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
33736         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
33737         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
33738         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
33739         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
33740         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
33741         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
33742         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33743         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
33744         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
33745         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
33746         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
33747         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
33748         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
33749         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
33750         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
33751         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
33752         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
33753         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
33754         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
33755         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
33756         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
33757         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
33758         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
33759         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
33760         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
33761         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
33762         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
33763         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
33764         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
33765         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
33766         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
33767         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
33768         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
33769         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33770         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
33771         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
33772         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
33773         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33774         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
33775         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33776         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
33777         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
33778         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
33779         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
33780         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
33781         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
33782         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
33783         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
33784         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
33785         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
33786         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
33787         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
33788         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
33789         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
33790         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
33791         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
33792         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
33793         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
33794         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
33795         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
33796         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33797         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
33798         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
33799         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
33800         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
33801         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
33802         (__isnanf): Likewise.
33803         (__isinf_ns): Likewise.
33804         (__isinf_nsf): Likewise.
33805         (__finite): Likewise.
33806         (__finitef): Likewise.
33807         (__ieee754_sqrt): Define as macro.
33808         (__ieee754_sqrtf): Define as macro.
33809         (__ieee754_sqrtl): Define as macro.
33810         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
33811         inlined copy.
33812         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
33813         __FINITE_MATH_ONLY__ consistent.
33814         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
33815
33816 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
33817
33818         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
33819         of rawmemchr.
33820
33821         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
33822
33823 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
33824
33825         * po/ja.po: Update from translation team.
33826
33827 2011-10-08  Roland McGrath  <roland@hack.frob.com>
33828
33829         * locale/programs/locarchive.c (prepare_address_space): New function.
33830         (create_archive, enlarge_archive, open_archive): Use it.
33831
33832         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
33833         inside [SHARED], where it is used.
33834
33835         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
33836
33837         * nss/getent.c (netgroup_keys): Remove unused variable.
33838         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
33839
33840 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
33841
33842         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
33843         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
33844         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
33845         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
33846         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
33847         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
33848         * math/Makefile (libm-calls): Add s_isinf_ns.
33849         * math/divtc3.c: Use __isinf_nsl instead of isinf.
33850         * math/multc3.c: Likewise.
33851         * math/s_casin.c: Likewise.
33852         * math/s_casinf.c: Likewise.
33853         * math/s_casinl.c: Likewise.
33854         * math/s_ccos.c: Likewise.
33855         * math/s_ccosf.c: Likewise.
33856         * math/s_ccosl.c: Likewise.
33857         * math/s_ctan.c: Likewise.
33858         * math/s_ctanf.c: Likewise.
33859         * math/s_ctanh.c: Likewise.
33860         * math/s_ctanhf.c: Likewise.
33861         * math/s_ctanhl.c: Likewise.
33862         * math/s_ctanl.c: Likewise.
33863         * math/w_fmod.c: Likewise.
33864         * math/w_fmodf.c: Likewise.
33865         * math/w_fmodl.c: Likewise.
33866         * math/w_remainder.c: Likewise.
33867         * math/w_remainderf.c: Likewise.
33868         * math/w_remainderl.c: Likewise.
33869         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
33870         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
33871         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
33872         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
33873         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
33874         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
33875         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
33876         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
33877
33878         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
33879         of the number.
33880         * stdio-common/printf_fphex.c: Likewise.
33881         * stdio-common/printf_size.c: Likewise.
33882
33883         * math/e_exp10.c: Include math_private.h using <...> not "...".
33884         * math/e_exp10f.c: Likewise.
33885         * math/e_exp10l.c: Likewise.
33886         * math/e_exp2l.c: Likewise.
33887         * math/e_j0l.c: Likewise.
33888         * math/e_j1l.c: Likewise.
33889         * math/e_jnl.c: Likewise.
33890         * math/e_lgammal_r.c: Likewise.
33891         * math/e_rem_pio2l.c: Likewise.
33892         * math/e_scalb.c: Likewise.
33893         * math/e_scalbf.c: Likewise.
33894         * math/e_scalbl.c: Likewise.
33895         * math/k_cosl.c: Likewise.
33896         * math/k_sinl.c: Likewise.
33897         * math/k_tanl.c: Likewise.
33898         * math/s_cacoshf.c: Likewise.
33899         * math/s_catan.c: Likewise.
33900         * math/s_catanf.c: Likewise.
33901         * math/s_catanh.c: Likewise.
33902         * math/s_catanhf.c: Likewise.
33903         * math/s_catanhl.c: Likewise.
33904         * math/s_catanl.c: Likewise.
33905         * math/s_ccosh.c: Likewise.
33906         * math/s_ccoshf.c: Likewise.
33907         * math/s_ccoshl.c: Likewise.
33908         * math/s_cexp.c: Likewise.
33909         * math/s_cexpf.c: Likewise.
33910         * math/s_cexpl.c: Likewise.
33911         * math/s_clog.c: Likewise.
33912         * math/s_clog10.c: Likewise.
33913         * math/s_clog10f.c: Likewise.
33914         * math/s_clog10l.c: Likewise.
33915         * math/s_clogf.c: Likewise.
33916         * math/s_clogl.c: Likewise.
33917         * math/s_csin.c: Likewise.
33918         * math/s_csinf.c: Likewise.
33919         * math/s_csinh.c: Likewise.
33920         * math/s_csinhf.c: Likewise.
33921         * math/s_csinhl.c: Likewise.
33922         * math/s_csinl.c: Likewise.
33923         * math/s_csqrt.c: Likewise.
33924         * math/s_csqrtf.c: Likewise.
33925         * math/s_csqrtl.c: Likewise.
33926         * math/s_ctan.c: Likewise.
33927         * math/s_ctanf.c: Likewise.
33928         * math/s_ctanh.c: Likewise.
33929         * math/s_ctanhf.c: Likewise.
33930         * math/s_ctanhl.c: Likewise.
33931         * math/s_ctanl.c: Likewise.
33932         * math/s_ldexp.c: Likewise.
33933         * math/s_ldexpf.c: Likewise.
33934         * math/s_ldexpl.c: Likewise.
33935         * math/s_significand.c: Likewise.
33936         * math/s_significandf.c: Likewise.
33937         * math/s_significandl.c: Likewise.
33938         * math/w_acos.c: Likewise.
33939         * math/w_acosf.c: Likewise.
33940         * math/w_acosh.c: Likewise.
33941         * math/w_acoshf.c: Likewise.
33942         * math/w_acoshl.c: Likewise.
33943         * math/w_acosl.c: Likewise.
33944         * math/w_asin.c: Likewise.
33945         * math/w_asinf.c: Likewise.
33946         * math/w_asinl.c: Likewise.
33947         * math/w_atan2.c: Likewise.
33948         * math/w_atan2f.c: Likewise.
33949         * math/w_atan2l.c: Likewise.
33950         * math/w_atanh.c: Likewise.
33951         * math/w_atanhf.c: Likewise.
33952         * math/w_atanhl.c: Likewise.
33953         * math/w_cosh.c: Likewise.
33954         * math/w_coshf.c: Likewise.
33955         * math/w_coshl.c: Likewise.
33956         * math/w_dremf.c: Likewise.
33957         * math/w_exp10.c: Likewise.
33958         * math/w_exp10f.c: Likewise.
33959         * math/w_exp10l.c: Likewise.
33960         * math/w_exp2.c: Likewise.
33961         * math/w_exp2f.c: Likewise.
33962         * math/w_fmod.c: Likewise.
33963         * math/w_fmodf.c: Likewise.
33964         * math/w_fmodl.c: Likewise.
33965         * math/w_hypot.c: Likewise.
33966         * math/w_hypotf.c: Likewise.
33967         * math/w_hypotl.c: Likewise.
33968         * math/w_j0.c: Likewise.
33969         * math/w_j0f.c: Likewise.
33970         * math/w_j0l.c: Likewise.
33971         * math/w_j1.c: Likewise.
33972         * math/w_j1f.c: Likewise.
33973         * math/w_j1l.c: Likewise.
33974         * math/w_jn.c: Likewise.
33975         * math/w_jnf.c: Likewise.
33976         * math/w_jnl.c: Likewise.
33977         * math/w_lgamma.c: Likewise.
33978         * math/w_lgamma_r.c: Likewise.
33979         * math/w_lgammaf.c: Likewise.
33980         * math/w_lgammaf_r.c: Likewise.
33981         * math/w_lgammal.c: Likewise.
33982         * math/w_lgammal_r.c: Likewise.
33983         * math/w_log.c: Likewise.
33984         * math/w_log10.c: Likewise.
33985         * math/w_log10f.c: Likewise.
33986         * math/w_log10l.c: Likewise.
33987         * math/w_log2.c: Likewise.
33988         * math/w_log2f.c: Likewise.
33989         * math/w_log2l.c: Likewise.
33990         * math/w_logf.c: Likewise.
33991         * math/w_logl.c: Likewise.
33992         * math/w_pow.c: Likewise.
33993         * math/w_powf.c: Likewise.
33994         * math/w_powl.c: Likewise.
33995         * math/w_remainder.c: Likewise.
33996         * math/w_remainderf.c: Likewise.
33997         * math/w_remainderl.c: Likewise.
33998         * math/w_scalb.c: Likewise.
33999         * math/w_scalbf.c: Likewise.
34000         * math/w_scalbl.c: Likewise.
34001         * math/w_sinh.c: Likewise.
34002         * math/w_sinhf.c: Likewise.
34003         * math/w_sinhl.c: Likewise.
34004         * math/w_sqrt.c: Likewise.
34005         * math/w_sqrtf.c: Likewise.
34006         * math/w_sqrtl.c: Likewise.
34007         * math/w_tgamma.c: Likewise.
34008         * math/w_tgammaf.c: Likewise.
34009         * math/w_tgammal.c: Likewise.
34010
34011         * po/ja.po: Update from translation team.
34012
34013 2011-09-29  Andreas Jaeger  <aj@suse.de>
34014
34015         [BZ #13179]
34016         * sunrpc/netname.c (netname2host): Fix logic.
34017
34018         [BZ #6779]
34019         [BZ #6783]
34020         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
34021         correctly.
34022         * math/w_remainder.c (__remainder): Likewise.
34023         * math/w_remainderf.c (__remainderf): Likewise.
34024         * math/libm-test.inc (remainder_test): Add test cases.
34025
34026 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34027
34028         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
34029         sdiv_qrnnd.
34030
34031 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
34032
34033         * string/test-memcmp.c: Avoid unncessary #defines.
34034         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
34035
34036 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34037
34038         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
34039         Use new sse2 version for core i3 - i7 as it's faster
34040         than sse42 version.
34041         (bit_Prefer_PMINUB_for_stringop): New.
34042         * sysdeps/x86_64/rawmemchr.S: Update.
34043         Replace with faster SSE2 version.
34044         * sysdeps/x86_64/memrchr.S: New file.
34045         * sysdeps/x86_64/memchr.S: Update.
34046         Replace with faster SSE2 version.
34047
34048 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
34049
34050         * elf/dl-load.c (lose): Add cast to avoid warning.
34051
34052 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
34053
34054         * po/ca.po: Update from translation team.
34055
34056         * inet/getnetgrent_r.c: Hook up nscd.
34057         * nscd/Makefile (routines): Add nscd_netgroup.
34058         (nscd-modules): Add netgroupcache.
34059         (CFLAGS-netgroupcache.c): Define.
34060         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
34061         (cache_search): Add const to second parameter.
34062         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
34063         INNETGR.
34064         (dbs): Add netgrdb entry.
34065         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
34066         (verify_persistent_db): Handle netgrdb.
34067         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
34068         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
34069         GETFDNETGR.
34070         (netgroup_response_header): Define.
34071         (innetgroup_response_header): Define.
34072         (datahead): Add netgroup_response_header and innetgroup_response_header
34073         elements.
34074         * nscd/nscd.conf: Add entries for netgroup cache.
34075         * nscd/nscd.h (dbtype): Add netgrdb.
34076         (_PATH_NSCD_NETGROUP_DB): Define.
34077         (netgroup_iov_disabled): Declare.
34078         (xmalloc, xcalloc, xrealloc): Move declarations here.
34079         (cache_search): Adjust prototype.
34080         Add netgroup-related prototypes.
34081         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
34082         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
34083         (__nscd_innetgr): Declare.
34084         * nscd/selinux.c (perms): Use access_vector_t as element type and
34085         add netgroup-related initializers.
34086         * nscd/netgroupcache.c: New file.
34087         * nscd/nscd_netgroup.c: New file.
34088         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
34089         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
34090         For four parameters use innetgr.
34091         * nss/nss_files/files-init.c: Add definition and callback for netgr.
34092         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
34093         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
34094         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
34095
34096         * nscd/connections.c (register_traced_file): Don't register file
34097         for disabled databases.
34098
34099 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
34100
34101         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
34102
34103         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
34104         from tree and freeing node.
34105
34106 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
34107
34108         * nss/nsswitch.c (__nss_database_lookup): Handle
34109         nss_parse_service_list out of memory case.
34110
34111 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
34112
34113         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
34114         out of memory case.
34115
34116 2011-10-04  Andreas Schwab  <schwab@redhat.com>
34117
34118         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
34119         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
34120         pass it down.
34121         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
34122         elf_machine_rela, elf_machine_lazy_rel.
34123         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
34124         (ELF_DYNAMIC_DO_REL): Likewise.
34125         (ELF_DYNAMIC_DO_RELA): Likewise.
34126         (ELF_DYNAMIC_RELOCATE): Likewise.
34127         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
34128         to ELF_DYNAMIC_DO_REL.
34129         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
34130         (dl_main): In trace mode always set __RTLD_NOIFUNC.
34131         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
34132         elf_machine_rela.
34133         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
34134         skip_ifunc, don't call ifunc function if non-zero.
34135         (elf_machine_rela): Likewise.
34136         (elf_machine_lazy_rel): Likewise.
34137         (elf_machine_lazy_rela): Likewise.
34138         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
34139         (elf_machine_lazy_rel): Likewise.
34140         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
34141         Likewise.
34142         (elf_machine_lazy_rel): Likewise.
34143         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34144         Likewise.
34145         (elf_machine_lazy_rel): Likewise.
34146         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
34147         (elf_machine_lazy_rel): Likewise.
34148         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
34149         (elf_machine_lazy_rel): Likewise.
34150         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
34151         (elf_machine_lazy_rel): Likewise.
34152         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
34153         (elf_machine_lazy_rel): Likewise.
34154         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
34155         (elf_machine_lazy_rel): Likewise.
34156         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
34157         (elf_machine_lazy_rel): Likewise.
34158
34159 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
34160
34161         * nss/nss_files/files-init.c (_nss_files_init): Use static
34162         initialization for all the *_traced_file variables.
34163
34164 2011-09-28  Andreas Schwab  <schwab@redhat.com>
34165
34166         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34167
34168 2011-09-27  Roland McGrath  <roland@hack.frob.com>
34169
34170         [BZ #13226]
34171         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
34172
34173 2011-09-27  Andreas Schwab  <schwab@redhat.com>
34174
34175         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
34176         Reread the line before reparsing it.
34177
34178 2011-09-26  Andreas Schwab  <schwab@redhat.com>
34179
34180         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
34181
34182 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
34183             Maxim Kuvyrkov  <maxim@codesourcery.com>
34184             Joseph Myers  <joseph@codesourcery.com>
34185
34186         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
34187         if needed for __stack_chk_guard.
34188
34189 2011-09-19  Roland McGrath  <roland@hack.frob.com>
34190
34191         * sysdeps/posix/spawni.c (script_execute): Always define it.
34192         It will be optimized away if unused.
34193         (maybe_script_execute): New function.
34194         (__spawni): Call it.
34195
34196         * Makerules: Don't include tls.make.
34197         (config-tls): Always set to thread.
34198         * tls.make.c: File removed.
34199
34200 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
34201
34202         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
34203         * config.make.in (CPPFLAGS-config): New substituted variable.
34204
34205 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34206
34207         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
34208
34209         [BZ #13192]
34210         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
34211         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
34212
34213 2011-09-15  Roland McGrath  <roland@hack.frob.com>
34214
34215         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
34216         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
34217         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
34218         (CALL_FAIL): Likewise.
34219         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
34220         (CALL_FAIL): Macro removed.
34221         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
34222
34223 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34224
34225         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
34226         for __FINITE_MATH_ONLY__ == 1.
34227
34228 2011-09-15  Andreas Schwab  <schwab@redhat.com>
34229
34230         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
34231         __ieee754_sqrt instead of sqrt.
34232         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
34233         __ieee754_sqrtf instead of sqrtf.
34234         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
34235         __floorf instead of floorf.
34236         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
34237         __floorf, __truncf instead of floorf, truncf.
34238
34239 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
34240
34241         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
34242
34243         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
34244         __extern_always_inline.
34245         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
34246         32-bit.
34247
34248 2011-09-14  Andreas Schwab  <schwab@redhat.com>
34249
34250         * elf/rtld.c (dl_main): Also relocate in dependency order when
34251         doing symbol dependency testing.
34252
34253 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
34254
34255         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34256         Always define `refsym'.
34257
34258 2011-09-13  Andreas Schwab  <schwab@redhat.com>
34259
34260         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
34261         (__FD_ELT): Renamed from __FDELT.
34262         * misc/bits/select2.h (__FD_ELT): Likewise.
34263         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
34264         __FD_MASK instead of __FDELT, __FDMASK.
34265         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34266         Likewise.
34267         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34268         Likewise.
34269
34270         * elf/Makefile (gen-ldd): Fix pattern.
34271
34272         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
34273         (init_tls): Likewise.
34274
34275 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
34276
34277         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
34278
34279 2011-09-12  Andreas Schwab  <schwab@redhat.com>
34280
34281         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
34282         `struct cmsghdr *' instead of `void *'.
34283         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
34284         Likewise.
34285
34286 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
34287
34288         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
34289         if non-absolute.
34290         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
34291         ldd_rewrite_script.
34292
34293 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
34294
34295         * configure.in: Remove --with-tls option.
34296         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
34297         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
34298         out in case it is missing.
34299         * sysdeps/ia64/elf/configure.in: Likewise.
34300         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
34301         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
34302         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
34303         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
34304         * sysdeps/sh/elf/configure.in: Likewise.
34305         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
34306         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
34307         * sysdeps/x86_64/elf/configure.in: Likewise.
34308         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
34309         * sysdeps/mach/hurd/tls.h: Likewise.
34310
34311         [BZ #13067]
34312         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
34313
34314         [BZ #13090]
34315         * configure.in: Fix use of AC_INIT.
34316
34317         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
34318
34319 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
34320
34321         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
34322         __set_errno.
34323         * malloc/hooks.c: Likewise.
34324
34325         [BZ #11929]
34326         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
34327         variables statically.
34328         (narenas): Initialize.
34329         (list_lock): Initialize.
34330         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
34331         initializtion of main_arena and list_lock.  Small cleanups.
34332         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
34333         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
34334         Add initializers to main_arena and mp_.
34335         (malloc_state): Remove pagesize member.  Change all users to use
34336         GLRO(dl_pagesize).
34337
34338         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
34339         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
34340         is always initialized.
34341
34342         * malloc/malloc.c: Removed unused configurations and dead code.
34343         * malloc/arena.c: Likewise.
34344         * malloc/hooks.c: Likewise.
34345         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
34346
34347         * include/tls.h: Removed.  USE___THREAD must always be defined.
34348         * bits/libc-tsd.h: Don't handle !USE___THREAD.
34349         * elf/dl-libc.c: Likewise.
34350         * elf/dl-tsd.c: Likewise.
34351         * include/errno.h: Likewise.
34352         * include/netdb.h: Likewise.
34353         * include/resolv.h: Likewise.
34354         * inet/herrno-loc.c: Likewise.
34355         * inet/herrno.c: Likewise.
34356         * malloc/arena.c: Likewise.
34357         * malloc/hooks.c: Likewise.
34358         * malloc/malloc.c: Likewise.
34359         * resolv/res-state.c: Likewise.
34360         * resolv/res_libc.c: Likewise.
34361         * sysdeps/i386/dl-machine.h: Likewise.
34362         * sysdeps/ia64/dl-machine.h: Likewise.
34363         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
34364         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
34365         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
34366         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
34367         * sysdeps/sh/dl-machine.h: Likewise.
34368         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
34369         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
34370         * sysdeps/unix/i386/sysdep.S: Likewise.
34371         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
34372         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
34373         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
34374         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
34375         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
34376         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
34377         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
34378         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
34379         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34380         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
34381         * sysdeps/unix/x86_64/sysdep.S: Likewise.
34382         * sysdeps/x86_64/dl-machine.h: Likewise.
34383         * tls.make.c: Likewise.
34384
34385         * configure.in: Remove --with-__thread option.  Make tests for
34386         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
34387         tls_model attribute fail if no support is available.  Remove
34388         USE_IN_LIBIO.
34389         * Makeconfig: Adjust for dropped configure option.  All features are
34390         now mandatory.
34391         * Makerules: Likewise.
34392         * Versions.def: Likewise.
34393         * argp/argp-fmtstream.c: Likewise.
34394         * argp/argp-fmtstream.h: Likewise.
34395         * argp/argp-help.c: Likewise.
34396         * assert/assert.c: Likewise.
34397         * config.h.in: Likewise.
34398         * config.make.in: Likewise.
34399         * configure: Likewise.
34400         * configure.in: Likewise.
34401         * csu/Versions: Likewise.
34402         * csu/init.c: Likewise.
34403         * elf/tst-audit2.c: Likewise.
34404         * elf/tst-tls10.c: Likewise.
34405         * elf/tst-tls10.h: Likewise.
34406         * elf/tst-tls11.c: Likewise.
34407         * elf/tst-tls12.c: Likewise.
34408         * elf/tst-tls14.c: Likewise.
34409         * elf/tst-tlsmod11.c: Likewise.
34410         * elf/tst-tlsmod12.c: Likewise.
34411         * elf/tst-tlsmod13.c: Likewise.
34412         * elf/tst-tlsmod13a.c: Likewise.
34413         * elf/tst-tlsmod14a.c: Likewise.
34414         * elf/tst-tlsmod15b.c: Likewise.
34415         * elf/tst-tlsmod16a.c: Likewise.
34416         * elf/tst-tlsmod16b.c: Likewise.
34417         * elf/tst-tlsmod7.c: Likewise.
34418         * elf/tst-tlsmod8.c: Likewise.
34419         * elf/tst-tlsmod9.c: Likewise.
34420         * gmon/gmon.c: Likewise.
34421         * grp/fgetgrent_r.c: Likewise.
34422         * grp/putgrent.c: Likewise.
34423         * hurd/fopenport.c: Likewise.
34424         * include/libc-symbols.h: Likewise.
34425         * include/tls.h: Likewise.
34426         * intl/gettextP.h: Likewise.
34427         * intl/loadinfo.h: Likewise.
34428         * locale/global-locale.c: Likewise.
34429         * locale/localeinfo.h: Likewise.
34430         * mach/devstream.c: Likewise.
34431         * malloc/arena.c: Likewise.
34432         * malloc/set-freeres.c: Likewise.
34433         * misc/err.c: Likewise.
34434         * misc/getttyent.c: Likewise.
34435         * misc/mntent_r.c: Likewise.
34436         * posix/getopt.c: Likewise.
34437         * posix/wordexp.c: Likewise.
34438         * pwd/fgetpwent_r.c: Likewise.
34439         * resolv/Versions: Likewise.
34440         * resolv/res_hconf.c: Likewise.
34441         * shadow/fgetspent_r.c: Likewise.
34442         * shadow/putspent.c: Likewise.
34443         * stdio-common/printf_fphex.c: Likewise.
34444         * stdio-common/tmpfile.c: Likewise.
34445         * stdlib/abort.c: Likewise.
34446         * stdlib/fmtmsg.c: Likewise.
34447         * sunrpc/auth_unix.c: Likewise.
34448         * sunrpc/clnt_perr.c: Likewise.
34449         * sunrpc/clnt_tcp.c: Likewise.
34450         * sunrpc/clnt_udp.c: Likewise.
34451         * sunrpc/clnt_unix.c: Likewise.
34452         * sunrpc/openchild.c: Likewise.
34453         * sunrpc/svc_simple.c: Likewise.
34454         * sunrpc/svc_tcp.c: Likewise.
34455         * sunrpc/svc_udp.c: Likewise.
34456         * sunrpc/svc_unix.c: Likewise.
34457         * sunrpc/xdr.c: Likewise.
34458         * sunrpc/xdr_array.c: Likewise.
34459         * sunrpc/xdr_rec.c: Likewise.
34460         * sunrpc/xdr_ref.c: Likewise.
34461         * sunrpc/xdr_stdio.c: Likewise.
34462
34463 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34464
34465         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34466
34467 2011-07-03  Andreas Jaeger  <aj@suse.de>
34468
34469         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
34470         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
34471         regenerate with gen-libm-tests.pl.
34472
34473 2010-05-12  Petr Baudis  <pasky@suse.cz>
34474
34475         [BZ #11589]
34476         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
34477         around j0() zero points by switching to j1().
34478         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
34479         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
34480         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
34481         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
34482
34483 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34484
34485         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
34486         instead of 0.
34487         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
34488         instead of 0.
34489         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
34490         Patch in part by Pavel Roskin <proski@gnu.org>.
34491
34492         [BZ #13138]
34493         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
34494         realloc.
34495         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
34496         Free memory block if necessary.
34497
34498         [BZ #12847]
34499         * libio/genops.c (INTDEF): For string streams the _lock pointer can
34500         be NULL.  Don't lock in this case.
34501
34502 2011-09-09  Roland McGrath  <roland@hack.frob.com>
34503
34504         * elf/elf.h (ELFOSABI_GNU): New macro.
34505         (ELFOSABI_LINUX): Define to that.
34506
34507 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
34508
34509         * string/strncat.c (strncat): Undef the symbol in case it has been
34510         defined in bits/string.h.
34511
34512 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34513
34514         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
34515
34516         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
34517         link map.
34518
34519 2011-08-17  Andreas Jaeger  <aj@suse.de>
34520
34521         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
34522
34523 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
34524             Ian Lance Taylor  <iant@google.com>
34525
34526         * math/libm-test.inc (lround_test): New testcase.
34527         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
34528
34529 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
34530
34531         * Makefile: Remove support for automatic cvs check-ins.
34532         * Makerules: Likewise.
34533         * config.make.in: Likewise.
34534         * configure.in: Likewise.
34535         * intl/Makefile: Likewise.
34536         * locale/Makefile: Likewise.
34537         * po/Makefile: Likewise.
34538         * posix/Makefile: Likewise.
34539         * sysdeps/gnu/Makefile: Likewise.
34540         * sysdeps/mach/hurd/Makefile: Likewise.
34541         * sysdeps/sparc/sparc32/Makefile: Likewise.
34542
34543         [BZ #13118]
34544         * posix/Makefile (bug-regex32-ENV): Define.
34545         Patch by John Stanley <jpsinthemix@verizon.net>.
34546
34547         * misc/Makefile (headers): Add bits/select2.h.
34548         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
34549         * misc/bits/select2.h: New file.
34550         * include/bits/select2.h: New file.
34551         * debug/Makefile (routines): Add fdelt_chk.
34552         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
34553         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
34554         FD_ISSET.
34555         * debug/fdelt_chk.c: New file.
34556
34557         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
34558         * wcsmbs/test-wmemcmp.c: Likewise.
34559         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
34560         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
34561
34562 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34563
34564         * string/Makefile (strop-tests): Add memcmp.
34565         * string/test-wmemcmp.c: New file.
34566         * string/test-memcmp.c: Add wmemcmp support.
34567
34568 2011-09-08  Roland McGrath  <roland@hack.frob.com>
34569
34570         [BZ #13153]
34571         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
34572         2011-07-19 change.
34573
34574         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
34575         garbage value in a __mach_port_mod_refs call in the cases of the
34576         task-self and thread-self ports.
34577
34578 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34579
34580         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
34581
34582 2011-09-08  Andreas Schwab  <schwab@redhat.com>
34583
34584         * elf/dl-load.c (lose): Check for non-null L.
34585
34586 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34587
34588         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
34589
34590         * elf/dl-libc.c (dlerror_run): Pass back error code from
34591         dl_catch_error.
34592
34593         [BZ #13123]
34594         * elf/dl-load.c (lose): Free l_origin if it is valid.
34595
34596         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
34597         names.
34598         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
34599         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34600         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34601         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34602         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
34603         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
34604
34605 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34606
34607         * sysdeps/powerpc/fpu/e_hypot.c: New file.
34608         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
34609         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
34610         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
34611         * sysdeps/powerpc/fpu/k_cosf.c: New file.
34612         * sysdeps/powerpc/fpu/k_sinf.c: New file.
34613         * sysdeps/powerpc/fpu/s_cosf.c: New file.
34614         * sysdeps/powerpc/fpu/s_sinf.c: New file.
34615         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
34616         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
34617
34618 2011-08-15  Alan Modra  <amodra@gmail.com>
34619
34620         [BZ #13092]
34621         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
34622         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
34623         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
34624         ppc_mcount to static-only-routines.
34625         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
34626         __mcount_internal.
34627         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
34628         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
34629
34630 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
34631
34632         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
34633         for finite and infinity parameters.
34634
34635 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
34636
34637         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
34638         and add nop instructions for throughput optimization.
34639         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
34640
34641 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
34642
34643         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
34644         aligned copy for power7 with vector-scalar instructions.
34645         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
34646
34647 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
34648
34649         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
34650         AVX check.
34651
34652 2011-09-07  Andreas Schwab  <schwab@redhat.com>
34653
34654         [BZ #13144]
34655         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
34656         last change.
34657
34658 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34659
34660         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34661         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
34662         syscall wrapper around clock_gettime in __vdso_clock_gettime.
34663         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
34664         clock_gettime.
34665
34666 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34667
34668         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
34669         Forgot to demangle the pointer.
34670
34671         * sysdeps/i386/sysdep.h: Define atom_text_section.
34672         * sysdeps/x86_64/sysdep.h: Likewise.
34673         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
34674         section with atom_text_section.
34675         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34676         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34677         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
34678         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34679         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
34680
34681         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
34682         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
34683         already be defined.  Change to take two parameters and don't assign
34684         result to variable.  Adjust all users.
34685         Define INTERNAL_GETTIME if not already defined.
34686         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
34687         call.
34688         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
34689         HAVE_CLOCK_GETTIME_VSYSCALL.
34690         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
34691
34692         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
34693         gettimeofday vsyscall, just use time.
34694
34695 2011-09-06  Andreas Schwab  <schwab@redhat.com>
34696
34697         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
34698         <errno.h>.
34699
34700 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34701
34702         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
34703         syscall on x86-64.
34704         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
34705         syscall.
34706         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
34707         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
34708         syscall if possible.
34709
34710 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34711
34712         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
34713         e_ident.  Don't pass to find_mapsXX.
34714         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
34715
34716 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34717
34718         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34719         strchr-sse2-no-bsf strrchr-sse2-no-bsf
34720         * sysdeps/x86_64/multiarch/strchr.S: Update.
34721         Check bit_slow_BSF bit.
34722         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
34723         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
34724         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
34725
34726 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34727
34728         [BZ #13134]
34729         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
34730         before glibc 2.15.
34731         (tryshell): Define.
34732         (__spawni): Change last parameter to be flag.  Test
34733         SPAWN_XFLAGS_USE_PATH flag to use path or not.
34734         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
34735         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
34736         * posix/spawni.c: Likewise.
34737         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
34738         * posix/spawnp.c: Likewise.  Change normal version to use
34739         SPAWN_XFLAGS_USE_PATH.
34740         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
34741         SPAWN_XFLAGS_TRY_SHELL.
34742
34743         [BZ #13150]
34744         * posix/glob.h: Remove gcc 1.x support.
34745
34746         [BZ #13068]
34747         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
34748
34749 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34750
34751         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34752         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
34753         strrchr-sse2-bsf
34754         * sysdeps/i386/i686/multiarch/strchr.S: New file.
34755         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
34756         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
34757         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
34758         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
34759         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
34760
34761 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34762
34763         * sysdeps/x86_64/wcscmp.S: New file.
34764
34765         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
34766         wcscmp-c wcscmp-sse2
34767         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
34768         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
34769         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
34770         * wcsmbs/wcscmp.c: Allow renaming.
34771
34772 2011-09-05  David S. Miller  <davem@davemloft.net>
34773
34774         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
34775         stack slot, rather than the struct return pointer slot.
34776         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
34777         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
34778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
34779         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
34780
34781 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34782
34783         * po/ja.po: Update from translation team.
34784
34785         [BZ #13144]
34786         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
34787         kernel in 64-bit binaries.
34788
34789 2011-09-01  David S. Miller  <davem@davemloft.net>
34790
34791         * elf/elf.h (HWCAP_SPARC_*): Move to..
34792         * sysdeps/sparc/sysdep.h: this new file and add new values.
34793         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
34794         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
34795         _DL_HWCAP_COUNT to 24.
34796         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
34797         entries.
34798         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
34799         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
34800         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
34801         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
34802         instead of magic constants.
34803         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
34804
34805 2011-08-31  David S. Miller  <davem@davemloft.net>
34806
34807         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
34808         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
34809         Reimplement to do errno handling inline.
34810         (SYSCALL_ERROR_HANDLER): New macro.
34811         (__SYSCALL_STRING): Do not do errno handling in asm.
34812         (__CLONE_SYSCALL_STRING): Delete.
34813         (__INTERNAL_SYSCALL_STRING): Delete.
34814         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
34815         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
34816         (PSEUDO): Reimplement to do errno handling inline.
34817         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
34818         (SYSCALL_ERROR_HANDLER): New macro.
34819         (__SYSCALL_STRING): Do not do errno handling in asm.
34820         (__CLONE_SYSCALL_STRING): Delete.
34821         (__INTERNAL_SYSCALL_STRING): Delete.
34822         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
34823         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
34824         i386.
34825         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
34826         (inline_syscall*): Add 'err' argument.
34827         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
34828         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
34829         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
34830         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
34831
34832         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
34833         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34834
34835 2011-08-30  Andreas Schwab  <schwab@redhat.com>
34836
34837         * elf/rtld.c (dl_main): Relocate objects in dependency order.
34838
34839 2011-08-29  Jiri Olsa <jolsa@redhat.com>
34840
34841         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
34842         directive.
34843
34844 2011-08-24  David S. Miller  <davem@davemloft.net>
34845
34846         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
34847
34848 2011-08-24  Andreas Schwab  <schwab@redhat.com>
34849
34850         * elf/Makefile: Add rules to build and run unload8 test.
34851         * elf/unload8.c: New file.
34852         * elf/unload8mod1.c: New file.
34853         * elf/unload8mod1x.c: New file.
34854         * elf/unload8mod2.c: New file.
34855         * elf/unload8mod3.c: New file.
34856
34857         * elf/dl-close.c (_dl_close_worker): Reset private search list if
34858         it wasn't used.
34859
34860 2011-08-23  David S. Miller  <davem@davemloft.net>
34861
34862         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
34863         subtract stack bias.
34864         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
34865         %sp not %fp in calculations.
34866         (_JMPBUF_UNWINDS_ADJ): Likewise.
34867
34868         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
34869         (aio_suspend): Call it to force an exception region around the
34870         AIO_MISC_WAIT() invocation.
34871
34872 2011-08-23  Andreas Schwab  <schwab@redhat.com>
34873
34874         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
34875         backslash.
34876
34877 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
34878
34879         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
34880         protection macro.
34881         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
34882         and <dl-machine.h>.
34883         (Elf64_FuncDesc): Remove.
34884
34885 2011-08-22  David S. Miller  <davem@davemloft.net>
34886
34887         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
34888         sigaltstack check, add missing cfi directives.
34889         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
34890         missing cfi directives, and sigaltstack handling.
34891
34892 2011-08-16  Andreas Schwab  <schwab@redhat.com>
34893
34894         [BZ #11724]
34895         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
34896         object is seen twice.
34897         * elf/dl-fini.c (_dl_sort_fini): Likewise.
34898
34899         * elf/Makefile (distribute): Add tst-initorder2.c.
34900         (tests): Add tst-initorder2.
34901         (modules-names): Add tst-initorder2a tst-initorder2b
34902         tst-initorder2c tst-initorder2d.  Add rules to build them.
34903         ($(objpfx)tst-initorder2.out): New rule.
34904         * elf/tst-initorder2.c: New file.
34905         * elf/tst-initorder2.exp: New file.
34906
34907 2011-08-22  Andreas Schwab  <schwab@redhat.com>
34908
34909         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
34910
34911         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
34912         dependencies back to end of function.
34913
34914         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34915         $(elfobjdir)/ld.so.
34916
34917 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
34918
34919         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
34920         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
34921         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
34922         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
34923         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
34924         of __vdso_gettimeofday.
34925         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
34926         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
34927         attribute_hidden.
34928         (_libc_vdso_platform_setup): Remove initialization of
34929         __vdso_gettimeofday and __vdso_time.
34930
34931 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34932
34933         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
34934         and fgetc_unlocked.
34935         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
34936         getc_unlocked.
34937
34938         * elf/dl-open.c (add_to_global): Report additions to the global scope
34939         for LD_DEBUG=scopes.
34940         (dl_open_worker): Also print scope of newly loaded dependencies.
34941         (_dl_show_scope): Indicate if there is no scope.
34942
34943         [BZ #13114]
34944         * stdio-common/Makefile (tests): Add bug24.
34945         * stdio-common/bug24.c: New file.
34946
34947 2011-08-19  Andreas Jaeger  <aj@suse.de>
34948
34949         [BZ #13114]
34950         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
34951         non-existant file when using close-on-exec mode.
34952
34953 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
34954
34955         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
34956         the very first instruction.
34957
34958         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
34959         the CFI state in the end.
34960         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
34961         inclusion of dl-trampoline.h.
34962         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
34963
34964 2011-08-19  Andreas Schwab  <schwab@redhat.com>
34965
34966         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
34967         expectations for long double.
34968
34969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
34970         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
34971
34972 2011-08-14  David S. Miller  <davem@davemloft.net>
34973
34974         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
34975         artificual limit depends upon the system page size.
34976
34977 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34978
34979         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
34980         * resolv/Makefile: Define CFLAGS-libresolv.
34981
34982 2011-08-17  Andreas Schwab  <schwab@redhat.com>
34983
34984         * nss/makedb.c (compute_tables): Make variables used in nested
34985         function static.
34986
34987 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
34988
34989         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
34990         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
34991         if buffer was too small.
34992
34993         * elf/pldd.c (main): Attach to all threads in the process.
34994         Rewrite /proc handling to use *at functions.
34995
34996 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
34997
34998         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
34999         specifies first scope to show.
35000         (dl_open_worker): Update callers.  Move printing scope of new
35001         object to before the relocation.
35002         * elf/rtld.c (dl_main): Update _dl_show_scope call.
35003         * sysdeps/generic/ldsodefs.h: Update declaration.
35004
35005         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
35006         string for the scope number.
35007
35008 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
35009
35010         * nscd/servicescache.c (cache_addserv): Make sure written is always
35011         initialized.
35012
35013 2011-08-14  Roland McGrath  <roland@hack.frob.com>
35014
35015         * sysdeps/i386/i486/bits/atomic.h
35016         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
35017         statement expression, so as to suppress "set but not used" warning.
35018         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
35019
35020         * string/strncat.c (STRNCAT): Use prototype definition.
35021
35022         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
35023         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
35024         -Iprograms here.
35025         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
35026         (localedef-modules): Add localedef.
35027         (locale-modules): Add locale.
35028
35029         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
35030         * elf/rtld.c (dl_main): Invert order of assignment in last change,
35031         to avoid a warning.
35032
35033 2011-08-14  David S. Miller  <davem@davemloft.net>
35034
35035         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
35036         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
35037
35038 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
35039
35040         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
35041         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
35042         * elf/rtld.c (dl_main): Set l_name of vDSO.
35043         Call _dl_show_scope when DL_DEBUG_SCOPES.
35044         (process_dl_debug): Recognize scopes flag and also set it for all.
35045         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
35046         Declare _dl_show_scope.
35047
35048         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
35049         (do_dlopen): Pass caller_dlopen to dl_open.
35050         (__libc_dlopen_mode): Initialize caller_dlopen.
35051
35052         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
35053         of libc.  Make tolower call locale-independent.  Optimize a bit by
35054         using isdigit instead of isalnum.
35055         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
35056
35057 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
35058
35059         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
35060         was a dependency or dynamically loaded.
35061
35062 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
35063
35064         * intl/l10nflist.c: Allow architecture-specific pop function.
35065         * sysdeps/x86_64/l10nflist.c: New file.
35066
35067         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
35068         classification.
35069
35070 2011-08-10  Andreas Schwab  <schwab@redhat.com>
35071
35072         * include/dirent.h: Add libc_hidden_proto for scandirat and
35073         scandirat64.  Don't declare __scandirat64.
35074         * dirent/scandirat.c: Add libc_hidden_def.
35075         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
35076         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
35077
35078 2011-08-10  David S. Miller  <davem@davemloft.net>
35079
35080         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
35081         enum.
35082         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35083         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35084         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35085
35086 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
35087
35088         * Versions.def [libc]: Add GLIBC_2.15.
35089         * dirent/Makefile (routines): Add scandirat and scandirat64.
35090         * dirent/Versions [libc]: Export scandirat and scandirat64 for
35091         GLIBC_2.15.
35092         * dirent/dirent.h: Declare scandirat and scandirat64.
35093         * dirent/scandirat.c: New file.
35094         * dirent/scandirat64.c: New file.
35095         * sysdeps/wordsize-64/scandirat.c: New file.
35096         * sysdeps/wordsize-64/scandirat64.c: New file.
35097         * dirent/opendir.c: Define opendirat.
35098         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
35099         using scandirat.
35100         * dirent/scandir64.c: Adjust for scandir.c change.
35101         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
35102         __scandirat64, and __scandir_cancel_handler.
35103         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
35104         additional parameter and use openat instead of open (outside of ld.so).
35105         Add new __opendir as wrapper around __opendirat.
35106         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
35107         here without requiring old scandirat implementation.
35108
35109 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
35110
35111         * dirent/scandir.c (cancel_handler): Renamed to
35112         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
35113         defined.  Adjust users.
35114         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
35115         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
35116
35117 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
35118
35119         * string/test-string.h (IMPL): Use __STRING to expand name and then
35120         stringify it.
35121
35122         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
35123         of cleanups.
35124
35125 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35126
35127         * string/Makefile: Update.
35128         (strop-tests): Append strncat.
35129         * string/test-wcscmp.c: New file.
35130         New comprehensive test for wcscmp.
35131         * string/test-strcmp.c: Update.
35132         (WIDE): New define.
35133
35134 2011-07-22  Andreas Schwab  <schwab@redhat.com>
35135
35136         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
35137         line.
35138
35139 2011-07-26  Andreas Schwab  <schwab@redhat.com>
35140
35141         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
35142         encoding to ACE if AI_IDN.
35143
35144 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
35145
35146         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
35147         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
35148
35149 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35150
35151         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
35152         Fix overflow bug in strncat.
35153         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
35154
35155         * string/test-strncat.c: Update.
35156         Add new tests for checking overflow bugs.
35157
35158 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35159
35160         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35161         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
35162         * sysdeps/i386/i686/multiarch/strcat.S: New file.
35163         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
35164         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
35165         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
35166         * sysdeps/i386/i686/multiarch/strncat.S: New file.
35167         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
35168         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
35169
35170         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
35171         (USE_AS_STRCAT): Define.
35172         Add strcat and strncat support.
35173         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
35174
35175 2011-07-25  Andreas Schwab  <schwab@redhat.com>
35176
35177         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
35178         __n bigger than INT_MAX+1.
35179         (__strncmp_g): Likewise.
35180
35181 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
35182
35183         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
35184         * libio/stido.h: Likewise.
35185
35186         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
35187         (AF_NFC): Define.
35188         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
35189         (AF_NFC): Define.
35190
35191         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
35192         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35193         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35194         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35195         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35196
35197         [BZ #13021]
35198         * scripts/test-installation.pl: Don't expect libnss_test1 to be
35199         installed.
35200
35201         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
35202         typo.
35203         (_dl_x86_64_save_sse): Likewise.
35204
35205 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
35206
35207         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
35208         OSXSAVE.
35209         (_dl_x86_64_save_sse): Likewise.
35210
35211         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
35212
35213         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
35214
35215 2011-07-21  Andreas Schwab  <schwab@redhat.com>
35216
35217         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
35218         change.
35219         (_dl_x86_64_save_sse): Use correct AVX check.
35220
35221 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35222
35223         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
35224         bug in strncpy/strncat.
35225         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
35226
35227 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
35228
35229         * string/tester.c (test_strcat): Add tests for different alignments
35230         of source and destination.
35231         (test_strncat): Likewise.
35232
35233 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35234
35235         [BZ #12852]
35236         * posix/glob.c (glob): Check passed in values before using them in
35237         expressions to avoid some overflows.
35238         (glob_in_dir): Likewise.
35239
35240         [BZ #13007]
35241         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
35242         check for AVX enablement so that we don't crash with old kernels and
35243         new hardware.
35244         * elf/tst-audit4.c: Add same checks here.
35245         * elf/tst-audit6.c: Likewise.
35246
35247         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
35248
35249 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
35250
35251         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
35252
35253 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35254
35255         * po/cs.po: Update from translation team.
35256         * po/bg.po: Likewise.
35257
35258 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
35259
35260         * misc/sys/cdefs.h: Add support for const attribute.
35261         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
35262         to gnu_dev_{major,minor,makedev} functions.
35263
35264 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
35265
35266         * intl/dcigettext.c (get_output_charset): Add missing bracket.
35267
35268 2011-07-20  Andreas Schwab  <schwab@redhat.com>
35269
35270         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
35271         strlen results.
35272
35273 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35274
35275         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
35276         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
35277         register in order to avoid conflicts with the soft frame pointer
35278         being held in r11 when necessary.
35279         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
35280         (INTERNAL_VSYSCALL_NCS): Likewise.
35281
35282 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
35283
35284         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
35285         * elf/dl-fini.c (_dl_fini): Adjust caller.
35286         * elf/dl-close.c (_dl_close_worker): Likewise.
35287         * sysdeps/generic/ldsodefs.h: Adjust declaration.
35288
35289 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35290
35291         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
35292         "aux_cache->nlibs < 0".
35293
35294         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
35295         in the reload-count case.
35296
35297 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35298
35299         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35300         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
35301         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
35302         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
35303         * sysdeps/x86_64/multiarch/strcat.S: New file.
35304         * sysdeps/x86_64/multiarch/strncat.S: New file.
35305         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
35306         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
35307         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
35308         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
35309         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
35310         (USE_AS_STRCAT): Define.
35311         Add strcat and strncat support.
35312         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
35313         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
35314         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
35315         * string/strncat.c: Update.
35316         (USE_AS_STRNCAT): Define.
35317         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35318         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
35319         and i7.
35320         * sysdeps/x86_64/multiarch/init-arch.h
35321         (bit_Prefer_PMINUB_for_stringop): New.
35322         (index_Prefer_PMINUB_for_stringop): Likewise.
35323         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
35324         bit_Prefer_PMINUB_for_stringop.
35325
35326 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35327
35328         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
35329         buffer64.
35330         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
35331         of casting of buffer.
35332         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
35333         buffer32 and buffer64.
35334         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
35335         writes instead of casting of buffer.
35336         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
35337         buffer32.
35338         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
35339         casting of buffer.
35340
35341 2011-07-19  Andreas Schwab  <schwab@redhat.com>
35342
35343         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
35344
35345 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35346
35347         * nscd/nscd.c (termination_handler): Don't do anything for a database
35348         if it has not yet been initialized.
35349
35350 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35351
35352         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35353
35354 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35355
35356         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35357
35358 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35359
35360         * po/nl.po: Update from translation team.
35361         * po/sv.po: Likewise.
35362
35363 2011-07-16  Roland McGrath  <roland@hack.frob.com>
35364
35365         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
35366         now disallowed by GCC.
35367
35368         * configure.in (use-default-link): Default to yes if a test -shared
35369         link meets our qualifications.
35370         * configure: Regenerated.
35371
35372         * config.make.in (output-format): New variable.
35373         * configure.in: Check for ld --print-output-format support.
35374         * configure: Regenerated.
35375         * Makerules ($(common-objpfx)format.lds)
35376         [$(output-format) != unknown]: Just use $(output-format),
35377         instead of the linker-script munging.
35378
35379 2011-07-14  Roland McGrath  <roland@hack.frob.com>
35380
35381         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
35382         of $(common-objpfx)shlib.lds.
35383         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
35384
35385         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
35386         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
35387
35388         * configure.in (-z relro check): Adjust test code to add a large
35389         writable data section after it.
35390         * configure: Regenerated.
35391
35392 2011-07-11  Roland McGrath  <roland@hack.frob.com>
35393
35394         * configure.in (-z relro check): Fix test code to make the variable
35395         truly const.
35396         * configure: Regenerated.
35397
35398 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
35399
35400         * nscd/nscd.h (struct traced_file): Define.
35401         (struct database_dyn): Remove inotify_descr, reset_res, and filename
35402         elements.  Add traced_files.
35403         (inotify_fd): Declare.
35404         (register_traced_file): Declare.
35405         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
35406         (inotify_fd): Export.
35407         (resolv_conf_descr): Remove.
35408         (nscd_init): Move inotify descriptor creation to main.
35409         Don't register files for notification here.
35410         (register_traced_file): New function.
35411         (invalidate_cache): Don't use reset_res to determine whether to call
35412         res_init, go through the list of registered files.
35413         (main_loop_poll): The inotify descriptors are now stored in the
35414         structures for the traced files.
35415         (main_loop_epoll): Likewise
35416         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
35417         to __nss_disable_nscd.
35418         * nscd/cache.c (prune_cache): There is no single inotify descriptor
35419         for a database anymore.  Check the records for all the registered
35420         files instead.
35421         * nss/Makefile (libnss_files-routines): Add files-init.
35422         (libnss_db-routines): Add db-init.
35423         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
35424         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
35425         * nss/nss_db/db-init.c: New file.
35426         * nss/nss_files/files-init.c: New file.
35427         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
35428         __nss_lookup_function.
35429         (__nss_lookup_function): Call nss_load_library.
35430         (nss_load_all_libraries): New function.
35431         (__nss_disable_nscd): Take parameter with callback function for files
35432         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
35433         used for the cached services.
35434         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
35435         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
35436         options for features to all the files in nscd.
35437
35438         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
35439
35440 2011-07-10  Roland McGrath  <roland@hack.frob.com>
35441
35442         * csu/elf-init.c (__libc_csu_init): Comment typo.
35443
35444 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
35445
35446         * po/pl.po: Update from translation team.
35447         * po/ja.po: Likewise.
35448         * po/ru.po: Likewise.
35449         * po/ko.po: Likewise.
35450         * po/fr.po: Likewise.
35451
35452 2011-07-09  Roland McGrath  <roland@hack.frob.com>
35453
35454         * configure.in (.ctors/.dtors header and trailer check):
35455         Use an empirical test on a built program.
35456         * configure: Regenerated.
35457
35458         * configure.in (-z relro check): Use an empirical test on a built DSO.
35459         Detect, but do not require, on ia64.
35460         * configure: Regenerated.
35461
35462         * configure.in (READELF): Find it with AC_CHECK_TOOL.
35463         Update tests that use readelf to use $READELF instead.
35464         * configure: Regenerated.
35465
35466 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
35467
35468         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
35469         if the result is not used.
35470
35471 2011-07-05  Andreas Jaeger  <aj@suse.de>
35472
35473         [BZ#9696]
35474         * stdlib/tst-strtod.c: Add testcase.
35475
35476 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35477
35478         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
35479         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
35480         The latter has a higher limit.  Take additional parameter to pass to
35481         the new function.
35482         (__pathconf): Pass file to __statfs_link_max.
35483         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
35484         __statfs_link_max.
35485         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
35486         __statfs_link_max.
35487
35488         [BZ #12868]
35489         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
35490         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35491         Handle Lustre.
35492         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
35493         (__statfs_filesize_max): Likewise.
35494         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
35495
35496 2011-07-05  Andreas Jaeger  <aj@suse.de>
35497
35498         * resolv/res_comp.c (dn_skipname): Remove unused variable.
35499
35500 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
35501
35502         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
35503         `status' variable.
35504         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
35505         Likewise.
35506
35507 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35508
35509         * Makefile (strop-tests): Add strncat.
35510         * string/test-strncat.c: New file.
35511
35512 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
35513
35514         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
35515
35516 2011-06-21  Andreas Jaeger  <aj@suse.de>
35517
35518         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
35519         Copy rule from iconvdata/Makefile.
35520
35521 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35522
35523         [BZ #12922]
35524         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
35525         but no long options are defined, just return 'W'.
35526
35527 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
35528
35529         [BZ #9696]
35530         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
35531
35532 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35533
35534         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
35535         netgroups to read.
35536         (innetgr): Likewise.
35537
35538 2011-07-05  Roland McGrath  <roland@hack.frob.com>
35539
35540         * config.make.in (install_root): Default to $(DESTDIR).
35541
35542 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
35543
35544         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
35545
35546 2011-07-02  Roland McGrath  <roland@hack.frob.com>
35547
35548         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
35549
35550         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
35551         containing directory rather than embedding absolute directory names.
35552
35553         * scripts/check-local-headers.sh: Rewritten using awk.
35554         Match by word, not by line.  Print error messages for matches.
35555         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
35556
35557         * Makerules [shlib-lds-flags empty]:
35558         ($(common-objpfx)libc_pic.opts): New target.
35559         ($(common-objpfx)libc_pic.os.clean): New target.
35560         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
35561
35562         * config.make.in (OBJCOPY): New variable.
35563         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
35564         * configure: Regenerated.
35565
35566         * config.make.in (use-default-link): New variable.
35567         * configure.in (use_default_link): Grok --with-default-link to set it.
35568         * configure: Regenerated.
35569         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
35570         (shlib-lds, shlib-lds-flags): Define to empty.
35571
35572         * Makerules (shlib-lds): New variable.
35573         (shlib-lds-flags): New variable.
35574         (build-shlib, build-moduile, build-module-asneeded): Use it.
35575         ($(common-objpfx)libc.so): Use $(shlib-lds).
35576         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
35577         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
35578
35579         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
35580         DT_FLAGS/DT_FLAGS_1 with zero flags.
35581
35582         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
35583         linker script munging.
35584
35585 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
35586
35587         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
35588         as 128-bit value.
35589         * crypt/sha512.c (sha512_process_block): Perform total addition using
35590         128-bit if possible.
35591         (__sha512_finish_ctx): Likewise.
35592         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
35593         as 64-bit value.
35594         * crypt/sha256.c (SWAP64): Define.
35595         (sha256_process_block): Perform total addition using 64-bit if
35596         possible.
35597         (__sha256_finish_ctx): Likewise.
35598
35599 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
35600
35601         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
35602         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35603         * nscd/hstcache.c (cache_addhst): Likewise.
35604         * nscd/grpcache.c (cache_addgr): Likewise.
35605         * nscd/aicache.c (addhstaiX): Likewise
35606         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
35607
35608 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
35609
35610         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
35611         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35612         * nscd/hstcache.c (cache_addhst): Likewise.
35613         * nscd/grpcache.c (cache_addgr): Likewise.
35614         * nscd/aicache.c (addhstaiX): Likewise
35615
35616 2011-07-01  Andreas Schwab  <schwab@redhat.com>
35617
35618         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
35619         domain only when needed.
35620
35621 2011-06-30  Andreas Schwab  <schwab@redhat.com>
35622
35623         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
35624         is always restored.
35625
35626 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
35627
35628         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
35629         are re-adding the entry.
35630         * nscd/servicescache.c (cache_addserv): Likewise.
35631
35632 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
35633
35634         * sysdeps/generic/dl-irel.h: fix protection against multiple
35635         inclusions.
35636         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
35637
35638 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
35639
35640         [BZ #12935]
35641         * malloc/memusage.sh: Fix quoting in message.
35642         * debug/xtrace.sh: Likewise.
35643
35644         * configure.in: Remove support for --experimental-malloc option, make
35645         it the default.
35646         * config.make.in: Likewise.
35647         * malloc/Makefile: Likewise.
35648
35649 2011-06-27  Andreas Schwab  <schwab@redhat.com>
35650
35651         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
35652         two-byte characters.
35653
35654 2011-06-27  Roland McGrath  <roland@hack.frob.com>
35655
35656         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
35657         AC_CACHE_CHECK invocation.
35658         * configure: Regenerated.
35659
35660         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
35661
35662 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
35663
35664         [BZ #12350]
35665         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
35666         bit from old_res_options.
35667
35668         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
35669
35670         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
35671         value type for setfct.
35672
35673 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
35674
35675         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35676         __gettimeofday instead of gettimeofday.
35677
35678 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
35679
35680         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
35681
35682 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
35683
35684         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
35685
35686         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
35687         info.
35688
35689 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35690
35691         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35692         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35693         strcpy-sse2-unaligned strncpy-sse2-unaligned
35694         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
35695         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
35696         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
35697         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
35698         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
35699         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
35700         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
35701         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
35702         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
35703         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
35704         (STRCPY): Support SSE2 and SSSE3 versions.
35705
35706 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
35707
35708         [BZ #12874]
35709         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
35710         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
35711         kernels which artificially limit size of requests.
35712
35713 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35714
35715         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35716         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35717         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
35718         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
35719         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
35720         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
35721         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
35722         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
35723         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
35724         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
35725         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
35726         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
35727         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
35728         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
35729         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
35730         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35731         Enable unaligned load optimization for Intel Core i3, i5 and i7
35732         processors.
35733         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
35734         Define.
35735         (index_Fast_Unaligned_Load): Define.
35736         (HAS_FAST_UNALIGNED_LOAD): Define.
35737
35738 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
35739
35740         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
35741
35742 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35743
35744         [BZ #12907]
35745         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
35746         until it is clear that the information is realy needed.
35747         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
35748
35749 2011-06-22  Andreas Schwab  <schwab@redhat.com>
35750
35751         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
35752
35753 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35754
35755         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35756         /sys/devices/system/cpu/online if it is usable.
35757
35758         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
35759         reading the information from the /proc filesystem to once a second.
35760
35761 2011-06-21  Andreas Jaeger  <aj@suse.de>
35762
35763         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
35764         NULL after inclusion of kernel headers.
35765
35766 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
35767
35768         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
35769         calls to internal_setent.
35770
35771         [BZ #12885]
35772         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
35773         addresses using gethostbyname4_r ignore IPv4 addresses.
35774
35775         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
35776         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
35777
35778         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
35779
35780 2011-06-20  David S. Miller  <davem@davemloft.net>
35781
35782         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
35783         inclusions.
35784         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
35785
35786         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
35787         (elf_irel): Use it.
35788         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
35789         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
35790         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
35791         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
35792         * sysdeps/x86_64/dl-irel.h: Likewise.
35793
35794         * elf/dl-runtime.c: Use elf_ifunc_invoke.
35795         * elf/dl-sym.c: Likewise.
35796
35797 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35798
35799         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
35800         need to dereference resplen2.
35801
35802 2011-06-14  Andreas Schwab  <schwab@redhat.com>
35803
35804         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
35805
35806 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35807
35808         * Makeconfig: Define vardbdir and inst_vardbdir.
35809         * nss/Makefile: Add rules to install db-Makefile.
35810
35811         * nss/nss_db/db-XXX.c: Cleanup.
35812
35813         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
35814         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
35815         GLIBC_PRIVATE.
35816         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
35817         * nss/makedb.c: Implement -g option to specify that value strings
35818         are generated and should not be added to table iterated over for
35819         get*ent calls.
35820         * nss/nss_db/db-initgroups.c: New file.
35821
35822         * nss/getent.c: Add support for initgroups lookups through getgrouplist
35823         interface.
35824
35825         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
35826         (internal_getgrouplist): Adjust to name change.
35827         Update use_initgroups_entry if this is not the first call.
35828         * nss/databases.def: Add initgroups entry.
35829
35830         * nss/makedb.c (compute_tables): Check result of multiple hash table
35831         sizes to minimize maximum chain length.
35832
35833 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
35834
35835         * Versions.def: Add entry for libnss_db.
35836         * shlib-versions: Likewise.
35837         * nss/Makefile: Add rules to build libnss_db.
35838         * nss/Versions: Add libnss_db information.  Organize libnss_files
35839         entries better.
35840         * nss/db-Makefile: Add gshadow support.  Change rules for the new
35841         makedb progra.  Some minor improvements to generate smaller files.
35842         * nss/nss_db/nss_db.h: Move NSS database header data structures to
35843         here from...
35844         * nss/makedb.c: ...here.
35845         Improve database format to be smaller and require less memory at
35846         runtime.
35847         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
35848         db anymore.
35849         * nss/nss_db/db-netgrp.c: Likewise.
35850         * nss/nss_db/db-open.c: Likewise.
35851         * nss/nss_files/flies-XXX.x: Adjust comments.
35852         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
35853         * nss/nss_files/files-grp.c: Likewise.
35854         * nss/nss_files/files-hosts.c: Likewise.
35855         * nss/nss_files/files-network.c: Likewise.
35856         * nss/nss_files/files-proto.c: Likewise.
35857         * nss/nss_files/files-pwd.c: Likewise.
35858         * nss/nss_files/files-rpc.c: Likewise.
35859         * nss/nss_files/files-service.c: Likewise.
35860         * nss/nss_files/files-sgrp.c: Likewise.
35861         * nss/nss_files/files-spwd.c: Likewise.
35862         * nss/nss_db/db-alias.c: Removed.
35863         * nss/nss_db/dummy-db.h: Removed.
35864
35865 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
35866
35867         * nss/makedb.c: Rewritten to not use database library.
35868         * nss/Makefile: Update to build new makedb program.
35869
35870 2011-06-14  Andreas Jaeger  <aj@suse.de>
35871
35872         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
35873         memset declaration.
35874
35875 2011-06-10  Andreas Schwab  <schwab@redhat.com>
35876
35877         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
35878         tmpbuf.
35879
35880 2011-06-10  Roland McGrath  <roland@hack.frob.com>
35881
35882         * Makerules (shlib.lds): Fail if the linker script comes out empty.
35883         * elf/Makefile ($(objpfx)ld.so): Likewise.
35884
35885         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
35886         Don't list ld.so twice in dependencies.
35887
35888         * posix/bug-regex31.c: Include <stdlib.h>.
35889
35890         * nscd/hstcache.c (cache_addhst): Remove unused variable.
35891
35892         * nis/nss_compat/compat-spwd.c
35893         (getspent_next_nss_netgr): Remove unused variable.
35894         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
35895
35896         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
35897         nonmembers" output to use the right array.
35898
35899         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
35900
35901         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
35902
35903         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
35904         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
35905         * catgets/gencat.c (read_input_file): Likewise.
35906         * locale/programs/locarchive.c (enlarge_archive): Likewise.
35907
35908         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
35909         variable definition inside #if's controlling its use.
35910
35911         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
35912
35913         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
35914
35915         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
35916
35917         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
35918         unreachable code.
35919
35920         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
35921
35922         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
35923         * configure: Regenerated.
35924
35925         * Makerules: Revert last change.
35926         * elf/Makefile: Likewise.
35927
35928 2011-06-09  Roland McGrath  <roland@hack.frob.com>
35929
35930         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
35931         * elf/Makefile ($(objpfx)librtld.os): Likewise.
35932         (reloc-link): Likewise.
35933
35934 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
35935
35936         * elf/Makefile: Add rules to build pldd.
35937         * elf/pldd.c: New file.
35938         * elf/pldd-xx.c: New file.
35939
35940 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
35941
35942         * version.h: Update for 2.15 development version.
35943
35944 2011-06-07  David S. Miller  <davem@davemloft.net>
35945
35946         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
35947         ifuncs.
35948         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
35949         elf_machine_lazy_rel): Likewise.
35950         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
35951         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
35952         elf_machine_lazy_rel): Likewise.
35953         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
35954         dl_hwcap via passed in argument.
35955         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
35956         Likewise.
35957
35958 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35959
35960         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
35961
35962 2011-06-06  Roland McGrath  <roland@hack.frob.com>
35963
35964         [BZ #12849]
35965         * manual/fdl-1.1.texi: New file, verbatim from:
35966         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
35967         * manual/lgpl-2.1.texi: New file, verbatim from:
35968         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
35969         * manual/Makefile (licenses): New variable, list those new file names.
35970         (texis): Use it.
35971         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
35972
35973         * manual/fdl.texi: File removed.
35974         * manual/lesser.texi: File removed.
35975         * manual/libc.texinfo (Copying, Documentation License):
35976         Use new @include file names, put @appendix directive before @include.
35977
35978 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
35979
35980         [BZ #12841]
35981         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
35982         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
35983         (mq_open): Add __NTH.
35984
35985 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
35986
35987         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35988         Assume Intel Core i3/i5/i7 processor if AVX is available.
35989
35990 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
35991
35992         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
35993         typo.
35994
35995 2011-05-31  Andreas Schwab  <schwab@redhat.com>
35996
35997         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
35998         memory.  Use alloca_account.  Fix memory leak when retrying.
35999
36000 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
36001
36002         * version.h (RELEASE): Bump for 2.14 release.
36003         * include/features.h (__GLIBC_MINOR__): Bump to 14.
36004
36005         * config.make.in (RANLIB): Remove entry.
36006
36007 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
36008
36009         * po/Makefile (po-sed-cmd): Add ksh to extensions.
36010         (libc.pot): Work around missing support for .ksh extension in xgettext.
36011
36012         [BZ #12684]
36013         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
36014         if both request failed.
36015         (send_dg): In case of server errors clear resplen or *resplen2.
36016
36017         [BZ #12454]
36018         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
36019         when there are multiple maps.
36020         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
36021         (_dl_fini): Remove test here.
36022
36023         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
36024
36025 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
36026
36027         [BZ #12350]
36028         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
36029         bit from old_res_options.
36030         (gaih_inet): Likewise.
36031
36032         [BZ #11099]
36033         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
36034         as signed.
36035
36036         * resolv/res_init.c (res_setoptions): Make the code more compact.
36037
36038         [BZ #11558]
36039         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
36040         set RES_USEVC.
36041
36042         [BZ #11634]
36043         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
36044
36045         * malloc/malloc.h: Mark malloc hook variables as deprecated.
36046
36047         [BZ #11781]
36048         * malloc/malloc.h: Declare malloc hook variables as volatile.
36049
36050         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
36051         in last patch.
36052
36053         [BZ #11799]
36054         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
36055         raise in the comment.
36056         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
36057         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
36058         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
36059
36060 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
36061
36062         [BZ #12811]
36063         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
36064         grow the buffers more if it already has to be sufficient.
36065         (build_wcs_upper_buffer): Likewise.
36066         * posix/regexec.c (check_matching): Likewise.
36067         (clean_state_log_if_needed): Likewise.
36068         (extend_buffers): Don't enlarge buffers beyond size of the input
36069         buffer.
36070         Patches mostly by Emil Wojak <emil@wojak.eu>.
36071         * posix/bug-regex32.c: New file.
36072         * posix/Makefile (tests): Add bug-regex32.
36073
36074         * locale/findlocale.c (_nl_find_locale): Return right away if
36075         _nl_explode_name failed.
36076         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
36077
36078         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
36079
36080         * debug/xtrace.sh: Unify messages.
36081         * malloc/memusage.sh: Likewise.
36082
36083         [BZ #12813]
36084         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
36085         time symbol from vDSO.  Substitute with vsyscall if not available.
36086         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
36087         __vdso_time.
36088
36089         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
36090         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
36091         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
36092         Add sendmmsg and internal_sendmmsg.
36093         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
36094         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
36095         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
36096
36097         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
36098         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
36099         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
36100
36101 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
36102
36103         [BZ #12813]
36104         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
36105         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
36106         available.
36107         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
36108         __vdso_getcpu.
36109
36110         [BZ #12814]
36111         * iconvdata/Makefile (tests): Add bug-iconv9.
36112         * iconvdata/bug-iconv9.c: New file.
36113
36114 2011-05-27  Andreas Schwab  <schwab@redhat.com>
36115
36116         [BZ #12814]
36117         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
36118
36119 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
36120
36121         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36122         (struct user_regs_struct): Change intcs field back to cs.
36123
36124 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
36125
36126         * po/ja.po: Update from translation team.
36127
36128 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
36129
36130         [BZ #12795]
36131         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
36132         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
36133
36134 2011-05-20  Andreas Schwab  <schwab@redhat.com>
36135
36136         * stdlib/longlong.h: Update from GCC.
36137
36138 2011-05-23  Andreas Schwab  <schwab@redhat.com>
36139
36140         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
36141         parameter name.
36142         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
36143         Add parameter name.
36144         (__sysconf): Pass it down.
36145
36146 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
36147
36148         [BZ #12671]
36149         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
36150         some situations.
36151         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36152         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
36153         add in in __libc_use_alloca calls.  Adjust callers.
36154         (glob): Use malloc in some situations.
36155
36156         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
36157         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
36158         pltexit.
36159
36160 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
36161
36162         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
36163         and CLOCK_BOOTTIME_ALARM.
36164
36165         [BZ #12782]
36166         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
36167         is returned.
36168
36169         * string/_strerror.c (__strerror_r): Print negative errors as signed
36170         numbers.
36171
36172         [BZ #12777]
36173         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
36174         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
36175         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
36176
36177         * configure.in: Fix typo in redirection and correct removal of test
36178         files in two cases.
36179
36180         [BZ #12788]
36181         * locale/setlocale.c (new_composite_name): Fix test to check for
36182         identical name of all categories.
36183
36184         [BZ #12792]
36185         * libio/filedoalloc.c (local_isatty): New function.
36186         (_IO_file_doallocate): Use local_isatty.
36187         * stdio-common/perror.c (perror): In case a new stream is used
36188         forward the stream error.
36189         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
36190         error flag.
36191
36192 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
36193
36194         [BZ #11869]
36195         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
36196         alloca.
36197         * include/alloca.h (extend_alloca_account): Define.
36198
36199         [BZ #11857]
36200         * posix/regex.h: Fix comments with documentation of user-accessible
36201         fields after compilation and describe correct free'ing of pattern
36202         after re_compile_pattern.
36203         Patch by Reuben Thomas <rrt@sc3d.org>.
36204
36205 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
36206
36207         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
36208         and -mno-altivec to prevent the compiler from using Altivec and/or
36209         VSX instructions when the corresponding registers are not available.
36210
36211 2011-05-19  Andreas Schwab  <schwab@redhat.com>
36212
36213         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
36214
36215 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
36216
36217         * libio/freopen.c (freopen): Use __dup2, not dup2.
36218         * libio/freopen64.c (freopen64): Likewise.
36219
36220 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
36221
36222         [BZ #12775]
36223         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
36224         * math/Makefile (tests): Add test-powl.
36225         (CFLAGS-test-powl.c): Define.
36226         * math/test-powl.c: New file.
36227
36228 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
36229
36230         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
36231
36232 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
36233
36234         [BZ #11837]
36235         * iconvdata/gb18030.c: Update to GB18020-2005.
36236
36237 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
36238
36239         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
36240         RE_SYNTAX_POSIX_AWK): Update to match recent development.
36241         Patch by Aharon Robbins <arnold@skeeve.com>.
36242
36243         [BZ #11892]
36244         * stdlib/putenv.c (putenv): Don't always create copy of the variable
36245         on the stack.
36246
36247         [BZ #11895]
36248         * misc/pselect.c (__pselect): Handle timeout value errors hidden
36249         through underflows.
36250
36251         [BZ #12766]
36252         * misc/error.c (error_at_line): Ensure file_name and old_file_name
36253         point to strings before performing equality test for error_one_per_line
36254         mode.
36255
36256         [BZ #11697]
36257         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
36258
36259         [BZ #11820]
36260         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36261         (struct user_fpregs_struct): Avoid __uint*_t types.
36262
36263         [BZ #6420]
36264         * malloc/mtrace.c (tr_where): Add additional parameter to point to
36265         symbol info.  Use it instead of calling _dl_addr locally.
36266         (lock_and_info): New function.
36267         (tr_freehook): Call lock_and_info and pass symbol info as additional
36268         parameter to tr_where.
36269         (tr_mallochook): Likewise.
36270         (tr_reallochook): Likewise.
36271         (tr_memalignhook): Likewise.
36272
36273         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
36274         used and couldn't be at all thread-safe.
36275
36276 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
36277
36278         * libio/freopen.c (freopen): Don't close old file descriptor
36279         before the new one is opened.  Instead dup the new file descriptor
36280         to the old one after the new stream is created.
36281         * libio/freopen64.c (freopen64): Likewise.
36282         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
36283         * libio/fileops.c (_IO_new_file_close_it): Handle new
36284         _IO_FLAGS2_NOCLOSE flag.
36285         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
36286         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
36287         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
36288         _IO_FLAGS2_NOCLOSE flag.
36289         * include/unistd.h: Add hidden_proto for dup3.
36290         Define __have_dup3.
36291         * io/dup3.c: Define hidden symbol.
36292         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
36293
36294         [BZ #7101]
36295         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
36296         when an incomplete long option is used.
36297         * posix/tst-getopt_long1.c: New file.
36298         * posix/Makefile (tests): Add tst-getopt_long1.
36299
36300         [BZ #10138]
36301         * scripts/config.guess: Update from autoconf-2.68.
36302         * scripts/config.sub: Likewise.
36303
36304         [BZ #10157]
36305         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
36306         tests into ...
36307         (has_cpuclock): ...this.  New function.
36308         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
36309         macro here based on has_cpuclock code.
36310
36311         [BZ #10149]
36312         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36313         First byte (not low byte) is now always NUL.
36314         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
36315
36316         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36317         Use non-cancelable interfaces.
36318
36319         [BZ #9809]
36320         * locale/iso-639.def: Add entry for Sorani.
36321
36322         [BZ #11901]
36323         * include/stdlib.h: Move include protection to the right place.
36324         Define abort_msg_s.  Declare __abort_msg with it.
36325         * stdlib/abort.c (__abort_msg): Adjust type.
36326         * assert/assert.c (__assert_fail_base): New function.  Majority
36327         of code from __assert_fail.  Allocate memory for __abort_msg with
36328         mmap.
36329         (__assert_fail): Now call __assert_fail_base.
36330         * assert/assert-perr.c: Remove bulk of implementation.  Use
36331         __assert_fail_base.
36332         * include/assert.hL Declare __assert_fail_base.
36333         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
36334         mmap.
36335         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
36336
36337 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
36338
36339         [BZ #11952]
36340         [BZ #12453]
36341         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
36342         until all modules are registered in the DTV.
36343         * elf/Makefile: Add rules to build and run tst-tls19.
36344         * elf/tst-tls19.c: New file.
36345         * elf/tst-tls19mod1.c: New file.
36346         * elf/tst-tls19mod2.c: New file.
36347         * elf/tst-tls19mod3.c: New file.
36348         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
36349
36350         [BZ #12083]
36351         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
36352         correctly.
36353
36354         [BZ #12601]
36355         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
36356         two-byte sequence errors.
36357         * iconvdata/Makefile (tests): Add bug-iconv8.
36358         * iconvdata/bug-iconv8.c: New file.
36359
36360         [BZ #12626]
36361         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
36362         buf2 definition.
36363
36364         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
36365
36366         [BZ #12432]
36367         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
36368         (dummy_getcfa): New function.
36369         (init): Get _Unwind_GetCFA address, use dummy if not found.
36370         (backtrace_helper): In recursion check, also check whether CFA changes.
36371         (__backtrace): Completely initialize arg.
36372
36373         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
36374         storing incomplete byte sequence in state object.  Avoid testing for
36375         guaranteed too small input if we know there is enough data available.
36376
36377 2011-05-11  Andreas Schwab  <schwab@redhat.com>
36378
36379         * Makeconfig (+link-pie): Indent.
36380         * Rules (binaries-pie): Define if $(have-fpie) and
36381         $(build-shared).
36382         (binaries-shared): Also filter out $(binaries-pie).
36383         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
36384         * nscd/Makefile (others-pie): Add nscd.
36385         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
36386         ($(objpfx)nscd): Remove command override.
36387         * login/Makefile (others-pie): Add pt_chown.
36388         ($(objpfx)pt_chown): Remove command override.
36389         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
36390         remove command overrides.
36391
36392 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
36393
36394         * libio/tst_putwc.c: Fix error messages.
36395
36396         [BZ #12724]
36397         * libio/fileops.c (_IO_new_file_close_it): Always flush when
36398         currently writing and seek to current position when not.
36399         * libio/Makefile (tests): Add bug-fclose1.
36400         * libio/bug-fclose1.c: New file.
36401
36402 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
36403
36404         [BZ #12511]
36405         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
36406         don't set DF_1_NODELETE here.
36407         (do_lookup_x): When entering new entry test for copy relocation
36408         and if necessary set DF_1_NODELETE flag.
36409         * elf/tst-unique4.cc: New file.
36410         * elf/tst-unique4.h: New file.
36411         * elf/tst-unique4lib.cc: New file.
36412         * elf/Makefile: Add rules to build and run tst-unique4.
36413         Patch by Piotr Bury <pbury@goahead.com>.
36414
36415 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36416
36417         [BZ #12052]
36418         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
36419
36420         [BZ #12625]
36421         * misc/mntent_r.c (addmntent): Flush the stream after the output
36422
36423         [BZ #12393]
36424         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
36425         (is_trusted_path_normalize): Skip initial colon.  Append slash
36426         to empty buffer.  Duplicate is_trusted_path code but allow
36427         constructed patch to be prefix.
36428         (is_dst): Allow $ORIGIN followed by /.
36429         (_dl_dst_substitute): Correct clearing of check_for_trusted.
36430         Correct testing of result of is_trusted_path_normalize
36431         (decompose_rpath): Fix warning.
36432
36433 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
36434
36435         [BZ #11257]
36436         * grp/initgroups.c (internal_getgrouplist): When we found the service
36437         list through the initgroups entry in nsswitch.conf do not always
36438         continue on a successful lookup.  Don't always use the
36439         __nss_group_database value if it is set.
36440         * nss/nsswitch.conf (initgroups): Change action for successful db
36441         lookup to continue for compatibility.
36442
36443 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
36444
36445         [BZ #11532]
36446         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
36447         and CP774 modules.
36448         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
36449         and CP774 modules.
36450         * iconvdata/tst-tables.sh: Likewise.
36451         * iconvdata/cp770.c: New file.
36452         * iconvdata/cp771.c: New file.
36453         * iconvdata/cp772.c: New file.
36454         * iconvdata/cp773.c: New file.
36455         * iconvdata/cp774.c: New file.
36456         * iconvdata/testdata/CP770: New file.
36457         * iconvdata/testdata/CP770..UTF8: New file.
36458         * iconvdata/testdata/CP771: New file.
36459         * iconvdata/testdata/CP771..UTF8: New file.
36460         * iconvdata/testdata/CP772: New file.
36461         * iconvdata/testdata/CP772..UTF8: New file.
36462         * iconvdata/testdata/CP773: New file.
36463         * iconvdata/testdata/CP773..UTF8: New file.
36464         * iconvdata/testdata/CP774: New file.
36465         * iconvdata/testdata/CP774..UTF8: New file.
36466
36467         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
36468         END CHARMAP line.
36469         * iconvdata/gen-8bit-gap.sh: Likewise.
36470         * iconvdata/gen-8bit.sh: Likewise.
36471
36472         * locale/iso-639.def: Add ary entry.
36473
36474         [BZ #11258]
36475         * locale/C-translit.h.in: Add U20A1 transliteration.
36476
36477         [BZ #12178]
36478         * locale/iso-639.def: Add wae entry.
36479         Patch by Kevin Bortis <bortis@translate-wae.ch>.
36480
36481         [BZ #12545]
36482         * locale/programs/localedef.c (construct_output_path): Use ssize_t
36483         for n.
36484
36485         [BZ #12711]
36486         * locale/C-translit.h.in: Add entry for U20B9.
36487         Patch by pravin.d.s@gmail.com.
36488
36489 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
36490
36491         [BZ #12713]
36492         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
36493         ENAMETOOLONG use generic getcwd.
36494         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
36495         in rtld.  Use *stat64.
36496         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
36497         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
36498         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
36499         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
36500         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
36501         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
36502         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
36503         __fstatat64 macros.
36504         * include/dirent.h: Add libc_hidden_proto for rewinddir.
36505         * dirent/rewinddir.c: Add libc_hidden_def.
36506         * sysdeps/mach/hurd/rewinddir.c: Likewise.
36507         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
36508
36509         * include/dirent.h (__alloc_dir): Add flags parameter.
36510         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
36511         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
36512         __alloc_dir.
36513         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
36514         from fdopendir if O_CLOEXEC is already set.
36515
36516 2011-03-15  Alan Modra  <amodra@gmail.com>
36517
36518         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
36519         l_tls_firstbyte_offset non-zero.  Save padding offset in
36520         l_tls_firstbyte_offset for later use.
36521         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
36522         freeing static tls block.
36523
36524 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
36525
36526         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
36527         where #ifdef was intended.  The intent is to prevent ARG_MAX from
36528         being defined by the kernel headers.
36529
36530 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
36531
36532         [BZ #12734]
36533         * resolv/resolv.h: Define RES_NOTLDQUERY.
36534         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
36535         no-tld-query and set RES_NOTLDQUERY.
36536         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
36537         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
36538         modern BIND to search name as TLD unless forbidden.
36539
36540 2011-05-07  Petr Baudis  <pasky@suse.cz>
36541             Ulrich Drepper  <drepper@gmail.com>
36542
36543         [BZ #12393]
36544         * elf/dl-load.c (fillin_rpath): Move trusted path check...
36545         (is_trusted_path): ...to here.
36546         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
36547         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
36548         using is_trusted_path_normalize() in setuid scripts.
36549
36550 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36551
36552         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
36553         __BEGIN/__END_DECLS.
36554
36555 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
36556
36557         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
36558         NSS_STATUS_NOTFOUND if no record was found.
36559
36560 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36561
36562         * sunrpc/Makefile (headers): Add rpc/netdb.h.
36563         (headers-not-in-tirpc): Remove rpc/netdb.h
36564         * resolv/netdb.h: Revert last change.
36565
36566 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
36567
36568         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
36569         circular dependency between libgcc.a and libc.a.
36570
36571 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36572
36573         * resolv/netdb.h: Don't include <rpc/netdb.h>.
36574         * nis/Makefile: Don't install rpcsvc/*.
36575         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
36576         instead of <rpc/types.h>.
36577         (MAXHOSTNAMELEN): Define.
36578
36579 2011-05-03  Andreas Schwab  <schwab@redhat.com>
36580
36581         * elf/ldconfig.c (add_dir): Don't crash on empty path.
36582
36583 2011-04-28  Maciej Babinski  <mbabinski@google.com>
36584
36585         [BZ #12714]
36586         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
36587         gethostbyname4_r when IPv6 results are possible.
36588
36589 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
36590
36591         [BZ #12723]
36592         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
36593         _PC_PIPE_BUF handling.
36594
36595 2011-04-30  Bruno Haible  <bruno@clisp.org>
36596
36597         [BZ #12717]
36598         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
36599         * resolv/netdb.h (getnameinfo): Change type of flags parameter
36600         to 'int'.
36601         * inet/getnameinfo.c (getnameinfo): Likewise.
36602
36603 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
36604
36605         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
36606         to groups setting in database lookup.
36607         * nss/nsswitch.conf: Add initgroups entry.
36608
36609 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
36610
36611         [BZ #12685]
36612         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
36613         mode string.
36614         Patch by Eric Blake <eblake@redhat.com>.
36615
36616 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
36617
36618         * sunrpc/Makefile (need-export-routines): Add svc_run.
36619         (routines): Remove svc_run.
36620         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
36621         * sunrpc/clnt_perr.c (clnt_perrno): Export.
36622         * sunrpc/svc_run.c (svc_run): Likewise.
36623         * sunrpc/svc_udp.c (svcudp_create): Likewise.
36624
36625 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
36626
36627         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
36628         problem in reallocation in last patch.
36629
36630 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
36631
36632         * sunrpc/Makefile: Move inclusion of Rules.
36633
36634 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36635
36636         * nss/nss_files/files-initgroups.c: New file.
36637         * nss/Makefile (libnss_files-routines): Add files-initgroups.
36638         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
36639         _nss_files_initgroups_dyn.
36640
36641 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
36642
36643         * elf/elf.h (R_ARM_IRELATIVE): Define.
36644
36645 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36646
36647         * po/ru.po: Update from translation team.
36648
36649 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36650
36651         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
36652         dependencies.
36653
36654 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
36655
36656         [BZ #12653]
36657         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
36658         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
36659         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36660         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36661         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
36662
36663 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
36664
36665         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
36666         differing bytes.
36667         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
36668         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
36669         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
36670
36671 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36672
36673         [BZ #12420]
36674         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
36675         storing it.
36676         * stdlib/bug-getcontext.c: New file.
36677         * stdlib/Makefile: Add rules to build and run bug-getcontext.
36678
36679 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36680
36681         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
36682         instructions into .machine "z9-109".
36683         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
36684         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
36685
36686 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36687
36688         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
36689         between environment variables and auxiliary vector.
36690
36691 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
36692
36693         * Makefile: Add rules to build linkobj/libc.so.
36694         * include/libc-symbols.h: Define libc_hidden_nolink.
36695         * include/rpc/auth.h: Mark functions which are to be hidden.
36696         * include/rpc/auth_des.h: Likewise.
36697         * include/rpc/auth_unix.h: Likewise.
36698         * include/rpc/clnt.h: Likewise.
36699         * include/rpc/des_crypt.h: Likewise.
36700         * include/rpc/key_prot.h: Likewise.
36701         * include/rpc/pmap_clnt.h: Likewise.
36702         * include/rpc/pmap_prot.h: Likewise.
36703         * include/rpc/pmap_rmt.h: Likewise.
36704         * include/rpc/rpc_msg.h: Likewise.
36705         * include/rpc/svc.h: Likewise.
36706         * include/rpc/svc_auth.h: Likewise.
36707         * include/rpc/xdr.h: Likewise.
36708         * nis/Makefile: Link all DSOs against linkobj/libc.so.
36709         * nss/Makefile: Likewise.
36710         * sunrpc/Makefile: Don't install headers.  Build library with normal
36711         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
36712         * sunrpc/auth_des.c: Hide exported symbols by default, export some
36713         for the compat linking library.  Remove use of INTDEF/INTUSE.
36714         * sunrpc/auth_none.c: Likewise.
36715         * sunrpc/auth_unix.c: Likewise.
36716         * sunrpc/authdes_prot.c: Likewise.
36717         * sunrpc/authuxprot.c: Likewise.
36718         * sunrpc/clnt_gen.c: Likewise.
36719         * sunrpc/clnt_perr.c: Likewise.
36720         * sunrpc/clnt_raw.c: Likewise.
36721         * sunrpc/clnt_simp.c: Likewise.
36722         * sunrpc/clnt_tcp.c: Likewise.
36723         * sunrpc/clnt_udp.c: Likewise.
36724         * sunrpc/clnt_unix.c: Likewise.
36725         * sunrpc/des_crypt.c: Likewise.
36726         * sunrpc/des_soft.c: Likewise.
36727         * sunrpc/get_myaddr.c: Likewise.
36728         * sunrpc/key_call.c: Likewise.
36729         * sunrpc/key_prot.c: Likewise.
36730         * sunrpc/netname.c: Likewise.
36731         * sunrpc/pm_getmaps.c: Likewise.
36732         * sunrpc/pm_getport.c: Likewise.
36733         * sunrpc/pmap_clnt.c: Likewise.
36734         * sunrpc/pmap_prot.c: Likewise.
36735         * sunrpc/pmap_prot2.c: Likewise.
36736         * sunrpc/pmap_rmt.c: Likewise.
36737         * sunrpc/publickey.c: Likewise.
36738         * sunrpc/rpc_cmsg.c: Likewise.
36739         * sunrpc/rpc_common.c: Likewise.
36740         * sunrpc/rpc_dtable.c: Likewise.
36741         * sunrpc/rpc_prot.c: Likewise.
36742         * sunrpc/rpc_thread.c: Likewise.
36743         * sunrpc/rtime.c: Likewise.
36744         * sunrpc/svc.c: Likewise.
36745         * sunrpc/svc_auth.c: Likewise.
36746         * sunrpc/svc_authux.c: Likewise.
36747         * sunrpc/svc_raw.c: Likewise.
36748         * sunrpc/svc_run.c: Likewise.
36749         * sunrpc/svc_simple.c: Likewise.
36750         * sunrpc/svc_tcp.c: Likewise.
36751         * sunrpc/svc_udp.c: Likewise.
36752         * sunrpc/svc_unix.c: Likewise.
36753         * sunrpc/svcauth_des.c: Likewise.
36754         * sunrpc/xcrypt.c: Likewise.
36755         * sunrpc/xdr.c: Likewise.
36756         * sunrpc/xdr_array.c: Likewise.
36757         * sunrpc/xdr_float.c: Likewise.
36758         * sunrpc/xdr_intXX_t.c: Likewise.
36759         * sunrpc/xdr_mem.c: Likewise.
36760         * sunrpc/xdr_rec.c: Likewise.
36761         * sunrpc/xdr_ref.c: Likewise.
36762         * sunrpc/xdr_sizeof.c: Likewise.
36763         * sunrpc/xdr_stdio.c: Likewise.
36764
36765 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
36766
36767         [BZ #12650]
36768         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
36769         * sysdeps/ia64/dl-tls.h: Likewise.
36770         * sysdeps/powerpc/dl-tls.h: Likewise.
36771         * sysdeps/s390/dl-tls.h: Likewise.
36772         * sysdeps/sh/dl-tls.h: Likewise.
36773         * sysdeps/sparc/dl-tls.h: Likewise.
36774         * sysdeps/x86_64/dl-tls.h: Likewise.
36775         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
36776
36777 2011-03-14  Andreas Schwab  <schwab@redhat.com>
36778
36779         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
36780         rpath element also skip the following colon.
36781         (expand_dynamic_string_token): Add is_path parameter and pass
36782         down to DL_DST_REQUIRED and _dl_dst_substitute.
36783         (decompose_rpath): Call expand_dynamic_string_token with
36784         non-zero is_path.  Ignore empty rpaths.
36785         (_dl_map_object_from_fd): Call expand_dynamic_string_token
36786         with zero is_path.
36787
36788 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
36789
36790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
36791         Make cancelable.
36792
36793 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
36794
36795         [BZ #12655]
36796         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
36797         Patch by Filipe David Manana <fdmanana@apache.org>.
36798
36799 2011-04-07  Andreas Schwab  <schwab@redhat.com>
36800
36801         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
36802         Maintain aligned stack.
36803         (CHECK_RSP): Remove unused macro.
36804
36805 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
36806
36807         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
36808         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
36809
36810 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
36811
36812         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
36813
36814         * include/features.h: Mention __USE_XOPEN2K8 in comment.
36815
36816 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
36817
36818         [BZ #12518]
36819         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
36820         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
36821         * sysdeps/x86_64/memmove.c: New file.
36822         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
36823         (memcpy): Renamed to ...
36824         (__new_memcpy): This.
36825         (memcpy): Provide GLIBC_2_14 memcpy.
36826         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
36827         (memcpy): Provide GLIBC_2_2_5 memcpy.
36828
36829 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36830
36831         [BZ #12631]
36832         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
36833
36834 2011-03-30  Andreas Schwab  <schwab@redhat.com>
36835
36836         * misc/syncfs.c: New file.
36837         * misc/Makefile (routines): Add syncfs.
36838         * posix/unistd.h: Declare syncfs.
36839         * sysdeps/unix/syscalls.list: Add syncfs.
36840
36841 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36842
36843         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
36844         open_by_handle_at.
36845         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
36846         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36847         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36848         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36849         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36850         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
36851         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36852
36853 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36854
36855         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
36856         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36857         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
36858         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36859         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36860         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36861         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36862
36863         * io/Makefile: Compile fallocate.c, fallocate64.c, and
36864         sync_file_range.c with -fexceptions.
36865         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
36866         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
36867         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
36868         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
36869         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
36870         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
36871         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
36872         sync_file_range as cancellation point
36873         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
36874         now a wrapper around __call_sync_file_range with cancellation handling.
36875         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
36876         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
36877         function name to __call_sync_file_range.
36878         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
36879         Add call_sync_file_range.
36880
36881 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36882
36883         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36884         bits/timex.h.
36885
36886 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36887
36888         * iconv/iconv.h: Fix typo in comment.
36889         * io/fcntl.h: Likewise.
36890         * libio/stdio.h: Likewise.
36891         * posix/spawn.h: Likewise.
36892         * posix/unistd.h: Likewise.
36893         * stdlib/stdlib.h: Likewise.
36894         * time/time.h: Likewise.
36895         * wcsmbs/wchar.h: Likewise.
36896
36897         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
36898         open_by_handle): Add.
36899         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
36900         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
36901         Augment a few comments.
36902         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36903         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36904         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36905         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36906         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36907         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
36908         open_by_handle.
36909
36910         * io/fcntl.h (AT_EMPTY_PATH): Define.
36911
36912 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
36913
36914         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
36915         * sysdeps/unix/sysv/linux/bits/time.h: New file.
36916         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
36917         to...
36918         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
36919         * Versions.def: Add GLIBC_2.14.
36920         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
36921         Export.
36922
36923 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
36924
36925         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
36926         round counter.
36927         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36928
36929 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36930
36931         [BZ #12597]
36932         * string/test-strncmp.c (do_page_test): New function.
36933         (check2): Likewise.
36934         (test_main): Call check2.
36935         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
36936
36937 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
36938
36939         [BZ #12587]
36940         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
36941         Handle cache information in CPU leaf 4.
36942         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
36943
36944 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
36945
36946         [BZ #12583]
36947         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
36948         character representation.
36949         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
36950
36951 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
36952
36953         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
36954         END(__isnan) to END(__isnanf) to match function entry point/label
36955         EALIGN(__isnanf,...).
36956
36957 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
36958
36959         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
36960
36961 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
36962
36963         [BZ #12510]
36964         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
36965         copy from the symbol referenced in the relocation to initialize the
36966         used variable.
36967         Patch by Piotr Bury <pbury@goahead.com>.
36968         * elf/Makefile: Add rules to build and tst-unique3.
36969         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
36970         * elf/tst-unique3.cc: New file.
36971         * elf/tst-unique3.h: New file.
36972         * elf/tst-unique3lib.cc: New file.
36973         * elf/tst-unique3lib2.cc: New file.
36974
36975         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
36976
36977 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
36978
36979         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
36980         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
36981         to _start.
36982
36983 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
36984
36985         * elf/dl-load.c (_dl_map_object): If we are looking for the first
36986         to-be-loaded object along a path to loader is ld.so.
36987
36988 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36989             Ulrich Drepper  <drepper@gmail.com>
36990
36991         * sysdeps/x86_64/memset.S: After aligning destination, code
36992         branches to different locations depending on the value of
36993         misalignment, when multiarch is enabled. Fix this.
36994
36995 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
36996
36997         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
36998         Set _x86_64_preferred_memory_instruction for AMD processsors.
36999         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37000         Set bit_Prefer_SSE_for_memop for AMD processors.
37001
37002 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
37003
37004         * libio/fmemopen.c (fmemopen): Optimize a bit.
37005
37006 2011-03-03  Andreas Schwab  <schwab@redhat.com>
37007
37008         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
37009
37010 2011-03-03  Roland McGrath  <roland@redhat.com>
37011
37012         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
37013
37014 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
37015
37016         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
37017         __bzero_ultra1 instead of __memset_ultra1.
37018
37019 2011-02-23  Andreas Schwab  <schwab@redhat.com>
37020             Ulrich Drepper  <drepper@gmail.com>
37021
37022         [BZ #12509]
37023         * include/link.h (struct link_map): Add l_orig_initfini.
37024         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
37025         returning unsuccessfully.
37026         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
37027         close of a file loaded at startup, restore the original l_initfini
37028         list.
37029         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
37030         list, store the pointer.
37031         * elf/Makefile ($(objpfx)noload-mem): New rule.
37032         (noload-ENV): Define.
37033         (tests): Add $(objpfx)noload-mem.
37034         * elf/noload.c: Include <memcheck.h>.
37035         (main): Call mtrace.  Close all opened handles.
37036
37037 2011-02-17  Andreas Schwab  <schwab@redhat.com>
37038
37039         [BZ #12454]
37040         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
37041         dependencies are missing.
37042
37043 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37044
37045         Fix __if_freereq crash: Unlike the generic version which uses free,
37046         Hurd needs munmap.
37047         * sysdeps/mach/hurd/ifreq.h: New file.
37048
37049 2011-01-27  Petr Baudis  <pasky@suse.cz>
37050             Ulrich Drepper  <drepper@gmail.com>
37051
37052         [BZ 12445]#
37053         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
37054         to extend_alloca().
37055         * stdio-common/bug23.c: New file.
37056         * stdio-common/Makefile (tests): Add bug23.
37057
37058 2010-09-28  Andreas Schwab  <schwab@redhat.com>
37059             Ulrich Drepper  <drepper@gmail.com>
37060
37061         [BZ #12489]
37062         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
37063         before performing relro protection.  At old place add assertion
37064         to make sure nothing changed.
37065
37066 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
37067             Glauber de Oliveira Costa  <glommer@gmail.com>
37068
37069         * elf/elf.h: Add new ARM TLS relocs.
37070
37071 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
37072
37073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
37074         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
37075         cast from r3.
37076         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
37077         'tests' variable.
37078         * sysdeps/wordsize-64/tst-writev.c: New file.
37079
37080 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
37081
37082         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
37083         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
37084         insns in _dl_start to prevent a TOC reference before relocs are
37085         resolved.
37086
37087 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
37088
37089         [BZ #12469]
37090         * Makeconfig: Remove RANLIB definition.
37091         * Makerules: Don't use RANLIB.
37092         * aclocal.m4: Remove ranlib test.
37093         * configure.in: No need to check for ranlib.
37094         * elf/rtld-Rules: Don't use RANLIB.
37095
37096 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37097
37098         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
37099         protection macro.
37100         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
37101         inclusion protection macro.
37102
37103         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
37104         SIGRTMIN and SIGRTMAX and print information in that case only when
37105         SIGRTMIN is defined.
37106
37107 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
37108
37109         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
37110         arginfo fn returning -1.
37111
37112         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
37113         and thousands string is zero terminated.
37114
37115 2011-02-03  Andreas Schwab  <schwab@redhat.com>
37116
37117         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
37118         sysdeps/unix/sysv/linux/bits/socket.h.
37119
37120 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37121
37122         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
37123         (__CPU_COUNT): Remove old macros.
37124         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
37125         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
37126         (__CPU_ALLOC, __CPU_FREE): Add macros.
37127         (__sched_cpualloc, __sched_cpufree): Add declarations.
37128
37129 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
37130
37131         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
37132         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
37133         * nscd/aicache.c (addhstaiX): Return timeout of added value.
37134         (readdhstai): Return value of addhstaiX call.
37135         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
37136         (addgrbyX): Return value returned by cache_addgr.
37137         (readdgrbyname): Return value returned by addgrbyX.
37138         (readdgrbygid): Likewise.
37139         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
37140         (addpwbyX): Return value returned by cache_addpw.
37141         (readdpwbyname): Return value returned by addhstbyX.
37142         (readdpwbyuid): Likewise.
37143         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
37144         (addservbyX): Return value returned by cache_addserv.
37145         (readdservbyname): Return value returned by addservbyX:
37146         (readdservbyport): Likewise.
37147         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
37148         (addhstbyX): Return value returned by cache_addhst.
37149         (readdhstbyname): Return value returned by addhstbyX.
37150         (readdhstbyaddr): Likewise.
37151         (readdhstbynamev6): Likewise.
37152         (readdhstbyaddrv6): Likewise.
37153         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
37154         (readdinitgroups): Return value returned by addinitgroupsX.
37155         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
37156         (prune_cache): Keep track of timeout value of re-added entries.
37157         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
37158         * nscd/nscd.h: Adjust prototypes of readd* functions.
37159
37160 2011-02-04  Roland McGrath  <roland@redhat.com>
37161
37162         * nis/nis_server.c (nis_servstate): Use the right name for 0.
37163         (nis_stats): Likewise.
37164         * nis/nis_modify.c (nis_modify): Likewise.
37165         * nis/nis_remove.c (nis_remove): Likewise.
37166         * nis/nis_add.c (nis_add): Likewise.
37167
37168         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
37169
37170         * posix/fnmatch_loop.c: Add some consts.
37171
37172         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
37173
37174 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
37175
37176         [BZ #12460]
37177         * config.make.in (config-cflags-novzeroupper): Define.
37178         * configure.in: Substitute libc_cv_cc_novzeroupper.
37179         * elf/Makefile (AVX-CFLAGS): Define.
37180         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
37181         (CFLAGS-tst-auditmod4a.c): Likewise.
37182         (CFLAGS-tst-auditmod4b.c): Likewise.
37183         (CFLAGS-tst-auditmod6b.c): Likewise.
37184         (CFLAGS-tst-auditmod6c.c): Likewise.
37185         (CFLAGS-tst-auditmod7b.c): Likewise.
37186         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
37187
37188 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
37189
37190         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
37191         function to the callback.
37192         Patch partly by Jiri Olsa <jolsa@redhat.com>.
37193
37194 2011-02-02  Andreas Schwab  <schwab@redhat.com>
37195
37196         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
37197         of errno.
37198
37199 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
37200
37201         [BZ #11724]
37202         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
37203         of constructors.
37204         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
37205         of destructors.
37206         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
37207
37208         [BZ #11724]
37209         * elf/Makefile: Add rules to build and run new test.
37210         * elf/tst-initorder.c: New file.
37211         * elf/tst-initorder.exp: New file.
37212         * elf/tst-initordera1.c: New file.
37213         * elf/tst-initordera2.c: New file.
37214         * elf/tst-initordera3.c: New file.
37215         * elf/tst-initordera4.c: New file.
37216         * elf/tst-initorderb1.c: New file.
37217         * elf/tst-initorderb2.c: New file.
37218         * elf/tst-order-a1.c: New file.
37219         * elf/tst-order-a2.c: New file.
37220         * elf/tst-order-a3.c: New file.
37221         * elf/tst-order-a4.c: New file.
37222         * elf/tst-order-b1.c: New file.
37223         * elf/tst-order-b2.c: New file.
37224         * elf/tst-order-main.c: New file.
37225         New test case by George Gensure <werkt0@gmail.com>.
37226
37227 2010-10-01  Andreas Schwab  <schwab@redhat.com>
37228
37229         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
37230         decoding ACE if AI_CANONIDN.
37231
37232 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
37233
37234         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
37235
37236 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
37237
37238         * version.h (RELEASE): Bump for 2.13 release.
37239         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
37240
37241         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
37242
37243         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
37244         MADV_NOHUGEPAGE.
37245         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
37246         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
37247         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
37248         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
37249         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
37250         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37251
37252         * posix/getconf.c: Update copyright year.
37253         * catgets/gencat.c: Likewise.
37254         * csu/version.c: Likewise.
37255         * debug/catchsegv.sh: Likewise.
37256         * debug/xtrace.sh: Likewise.
37257         * elf/ldconfig.c: Likewise.
37258         * elf/ldd.bash.in: Likewise.
37259         * elf/sprof.c (print_version): Likewise.
37260         * iconv/iconv_prog.c: Likewise.
37261         * iconv/iconvconfig.c: Likewise.
37262         * locale/programs/locale.c: Likewise.
37263         * locale/programs/localedef.c: Likewise.
37264         * malloc/memusage.sh: Likewise.
37265         * malloc/mtrace.pl: Likewise.
37266         * nscd/nscd.c (print_version): Likewise.
37267         * nss/getent.c: Likewise.
37268
37269         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
37270         PF_CAIF, and PF_ALG.
37271         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37272
37273 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
37274
37275         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
37276         (modules-names): Use them.
37277         (ifunc-test-modules, ifunc-pie-tests): Define.
37278         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
37279         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
37280         (test-extras): Likewise.
37281         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
37282         $(compile-command.c).
37283         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
37284         (all-built-dso): Define.
37285         (check-textrel.out, check-execstack.out): Depend on it.
37286
37287         * configure.in: Don't override --enable-multi-arch.
37288
37289 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
37290
37291         [BZ #6812]
37292         * nscd/hstcache.c (tryagain): Define.
37293         (cache_addhst): Return tryagain not notfound for temporary errors.
37294         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
37295         failed.
37296
37297 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
37298
37299         [BZ #10563]
37300         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
37301         to make the syscall.
37302         * sysdeps/unix/sysv/linux/setgroups.c: New file.
37303
37304         [BZ #12378]
37305         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
37306         and fall back to matching as normal character if the string ends before
37307         the matching ']' is found.  This is what POSIX requires.
37308         * posix/testfnm.c: Adjust test result.
37309         * posix/globtest.sh: Adjust test result.  Add new test.
37310         * posix/tst-fnmatch.input: Likewise.
37311         * posix/tst-fnmatch2.c: Add new test.
37312
37313 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
37314
37315         * elf/Makefile (check-execstack): Revert last change.  Depend on
37316         check-execstack.h.
37317         (check-execstack.h): New target.
37318         (generated): Add check-execstack.h.
37319         * elf/check-execstack.c: Include "check-execstack.h".
37320         (main): Revert last change.
37321         (handle_file): Return zero if GNU_STACK is absent and
37322         DEFAULT_STACK_PERMS doesn't include PF_X.
37323
37324 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
37325
37326         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
37327         in child fails because the descriptor is already closed.
37328         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
37329         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
37330         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
37331
37332         [BZ #12397]
37333         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
37334         syscall.
37335
37336         [BZ #10484]
37337         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
37338         temporary buffer used to handle multi lookups locally.
37339         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
37340
37341 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37342
37343         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
37344         loader is ld.so.
37345
37346 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
37347
37348         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
37349         alignment for SSE2.
37350
37351 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37352
37353         [BZ #12394]
37354         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
37355         characters.  When rounding increased number of integer digits recompute
37356         number of groups.
37357         * stdio-common/tst-grouping.c: New file.
37358         * stdio-common/Makefile: Add rules to build and run tst-grouping.
37359
37360 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
37361
37362         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
37363         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
37364
37365         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
37366         void.
37367         * bits/select.h: Likewise.
37368
37369 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
37370
37371         * po/ja.po: Update from translation team.
37372
37373 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
37374
37375         [BZ #11155]
37376         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
37377         implementation just like for lxstat, fxstatat, et al.
37378
37379 2010-12-27  Jim Meyering  <meyering@redhat.com>
37380
37381         [BZ #12348]
37382         * posix/regexec.c (build_trtable): Return failure indication upon
37383         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
37384
37385 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
37386
37387         [BZ #12201]
37388         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
37389         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
37390         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
37391         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
37392
37393         [BZ #12207]
37394         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
37395
37396         [BZ #12204]
37397         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
37398         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
37399
37400 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
37401
37402         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
37403         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
37404         script has SORT_BY_INIT_PRIORITY.
37405         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
37406         NO_CTORS_DTORS_SECTIONS is defined.
37407         * elf/soinit.c: Likewise.
37408         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
37409         NO_CTORS_DTORS_SECTIONS is defined.
37410         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
37411         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
37412         * sysdeps/sh/init-first.c: Likewise.
37413         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
37414
37415 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
37416
37417         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
37418         always use the slow path.
37419
37420 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
37421
37422         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
37423         similar rule which adds the sysdep directories to the header search in
37424         order to pick up the correct platform stackinfo.h.
37425         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
37426         perform test if it is, otherwise return successfully without testing.
37427         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
37428         DEFAULT_STACK_PERMS define in stackinfo.h.
37429         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
37430         defined in stackinfo.h.
37431         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
37432         DEFAULT_STACK_PERMS defined in stackinfo.h.
37433         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
37434         * sysdeps/ia64/stackinfo.h: Likewise.
37435         * sysdeps/s390/stackinfo.h: Likewise.
37436         * sysdeps/sh/stackinfo.h: Likewise.
37437         * sysdeps/sparc/stackinfo.h: Likewise.
37438         * sysdeps/x86_64/stackinfo.h: Likewise.
37439         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
37440         PF_X for powerpc64.  Retain PF_X for powerpc32.
37441
37442 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
37443
37444         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
37445         accurately.
37446         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
37447         GETDENTS_64BIT_ALIGNED.
37448
37449 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
37450
37451         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
37452
37453 2010-12-10  Andreas Schwab  <schwab@redhat.com>
37454
37455         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
37456         _GNU_SOURCE.
37457
37458         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
37459         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
37460         Remove __restrict.
37461         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
37462         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
37463
37464 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
37465
37466         [BZ #11655]
37467         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
37468         are initialized.
37469
37470 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
37471
37472         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
37473
37474 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
37475
37476         * po/it.po: Update from translation team.
37477
37478 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
37479
37480         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
37481         unused codes.
37482
37483 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
37484
37485         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
37486
37487 2010-11-24  Andreas Schwab  <schwab@redhat.com>
37488
37489         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
37490         specially.
37491         (gaih_getanswer_slice): Likewise.
37492
37493 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
37494
37495         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
37496
37497 2010-05-31  Petr Baudis  <pasky@suse.cz>
37498
37499         [BZ #11149]
37500         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
37501         silently even in the chroot mode.
37502
37503 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
37504
37505         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
37506         last patch a bit.  Pretty printing
37507
37508 2010-05-31  Petr Baudis <pasky@suse.cz>
37509
37510         [BZ #10085]
37511         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
37512         initialization of skip_initgroups_dyn.
37513
37514 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
37515
37516         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
37517         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37518
37519 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
37520
37521         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
37522
37523 2010-11-11  Andreas Schwab  <schwab@redhat.com>
37524
37525         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
37526         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
37527         (tst-fnmatch-ENV): Set MALLOC_TRACE.
37528         ($(objpfx)tst-fnmatch-mem): New rule.
37529         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
37530         * posix/tst-fnmatch.c (main): Call mtrace.
37531
37532 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
37533
37534         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37535         Support Intel processor model 6 and model 0x2c.
37536
37537 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
37538
37539         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
37540           signed comparison.
37541
37542 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
37543
37544         [BZ #12205]
37545         * string/test-strncasecmp.c (check_result): New function.
37546         (do_one_test): Use it.
37547         (check1): New function.
37548         (test_main): Use it.
37549         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
37550         Support strcasecmp and strncasecmp.
37551
37552 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
37553
37554         [BZ #12194]
37555         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
37556         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37557
37558 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
37559
37560         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
37561         IFUNC support.
37562         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37563         memset-x86-64.
37564         * sysdeps/x86_64/multiarch/bzero.S: New file.
37565         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
37566         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
37567         * sysdeps/x86_64/multiarch/memset.S: New file.
37568         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
37569         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37570         Set bit_Prefer_SSE_for_memop for Intel processors.
37571         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
37572         Define.
37573         (index_Prefer_SSE_for_memop): Define.
37574         (HAS_PREFER_SSE_FOR_MEMOP): Define.
37575
37576 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
37577
37578         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
37579         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
37580
37581 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
37582
37583         [BZ #12191]
37584         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37585         (__x86_64_raw_data_cache_size_half): Likewise.
37586         (__x86_64_raw_shared_cache_size): Likewise.
37587         (__x86_64_raw_shared_cache_size_half): Likewise.
37588
37589         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37590         (__x86_64_raw_data_cache_size_half): Likewise.
37591         (__x86_64_raw_shared_cache_size): Likewise.
37592         (__x86_64_raw_shared_cache_size_half): Likewise.
37593         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
37594         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
37595         and __x86_64_raw_shared_cache_size_half.  Round
37596         __x86_64_data_cache_size_half, __x86_64_data_cache_size
37597         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
37598         to multiple of 256 bytes.
37599
37600 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
37601
37602         [BZ #12167]
37603         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
37604         of inacessible symlinks.  Verify result of symlink before returning it.
37605         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37606         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
37607
37608 2010-10-28  Erich Ritz  <erichritz@gmail.com>
37609
37610         * math/math.h (isinf): Fix typo in comment.
37611
37612 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
37613
37614         * po/da.po: Update from translation team.
37615
37616 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
37617
37618         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
37619         is added to the list.
37620
37621 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37622             Ulrich Drepper  <drepper@gmail.com>
37623
37624         * elf/dl-object.c (_dl_new_object): Don't append the new object to
37625         the global list here.  Move code to...
37626         (_dl_add_to_namespace_list): ...here.  New function.
37627         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
37628         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
37629         * elf/dl-load.c (lose): Don't remove the element from the list.
37630         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
37631         (_dl_map_object): Likewise.
37632
37633 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
37634
37635         [BZ #12159]
37636         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
37637         into all bytes of SSE register.
37638         Patch by Richard Li <richardpku@gmail.com>.
37639
37640 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
37641
37642         [BZ #12140]
37643         * malloc/malloc.c (_int_free): Fill correct number of bytes when
37644         perturbing.
37645
37646 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
37647
37648         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
37649         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
37650         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
37651         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
37653         submachine.
37654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
37655
37656 2010-10-22  Andreas Schwab  <schwab@redhat.com>
37657
37658         * include/dlfcn.h (__RTLD_SECURE): Define.
37659         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
37660         mode & __RTLD_SECURE instead.
37661         (open_path): Rename preloaded parameter to secure.
37662         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
37663         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
37664         * elf/dl-deps.c (openaux): Likewise.
37665         * elf/rtld.c (struct map_args): Remove is_preloaded.
37666         (map_doit): Don't use it.
37667         (dl_main): Likewise.
37668         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
37669         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
37670
37671 2010-09-09  Andreas Schwab  <schwab@redhat.com>
37672
37673         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
37674         (sysd-rules-targets): Remove duplicates.
37675         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
37676         rtld-%.$o dependency.
37677
37678 2010-10-18  Andreas Schwab  <schwab@redhat.com>
37679
37680         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
37681         _dl_map_object do it.
37682
37683 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
37684
37685         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
37686         fast fma builtins, define the macros in the C99 standard.
37687         (FP_FAST_FMAF): Likewise.
37688         (FP_FAST_FMAL): Likewise.
37689         * sysdeps/x86_64/bits/mathdef.h: Likewise.
37690
37691         * bits/mathdef.h: Update copyright year.
37692         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37693
37694 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
37695
37696         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
37697         builtins, define the macros in the C99 standard.
37698         (FP_FAST_FMAF): Likewise.
37699         (FP_FAST_FMAL): Likewise.
37700         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
37701         multiply/add.
37702         (FP_FAST_FMAF): Likewise.
37703
37704 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
37705
37706         [BZ #3268]
37707         * math/libm-test.inc (fma_test): Some new testcases.
37708         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
37709         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
37710         y and infinite z.  Do multiplication by C already in long double.
37711         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
37712         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
37713         y and infinite z.  Do bitwise or of inexact bit into u.d.
37714         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
37715         * sysdeps/i386/fpu/s_fmaf.S: Removed.
37716         * sysdeps/i386/fpu/s_fma.S: Removed.
37717         * sysdeps/i386/fpu/s_fmal.S: Removed.
37718
37719 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
37720
37721         [BZ #3268]
37722         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
37723         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
37724         computation is not scheduled after fetestexcept.  Fix value
37725         of minimum denormal long double.
37726
37727 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
37728
37729         [BZ #3268]
37730         * math/libm-test.inc (fma_test): Add some more tests.
37731         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
37732         correctly.
37733
37734 2010-10-15  Andreas Schwab  <schwab@redhat.com>
37735
37736         * scripts/data/localplt-s390-linux-gnu.data: New file.
37737         * scripts/data/localplt-s390x-linux-gnu.data: New file.
37738
37739 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
37740
37741         [BZ #3268]
37742         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
37743         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
37744         instead of dbl-64.
37745         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
37746         inlines.
37747         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
37748         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
37749         if one of x and y is very large and the other is subnormal.
37750         * sysdeps/s390/fpu/s_fmaf.c: New file.
37751         * sysdeps/s390/fpu/s_fma.c: New file.
37752         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
37753         * sysdeps/powerpc/fpu/s_fma.S: New file.
37754         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
37755         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
37756         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
37757
37758 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
37759
37760         [BZ #3268]
37761         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
37762         fma tests.
37763         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
37764         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
37765         * sysdeps/i386/i686/multiarch/s_fma.c: Include
37766         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
37767         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
37768         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
37769         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
37770
37771 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
37772
37773         [BZ #12078]
37774         * posix/regcomp.c (parse_branch): One more memory leak plugged.
37775         * posix/bug-regex31.input: Add test case.
37776
37777 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37778
37779         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
37780         * posix/bug-regex31.input: New file.
37781
37782         [BZ #12078]
37783         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
37784         (parse_sub_exp): Fix last change, use postorder.
37785
37786         * posix/bug-regex31.c: New file.
37787         * posix/Makefile: Add rules to build and run bug-regex31.
37788
37789         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
37790
37791         [BZ #12078]
37792         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
37793
37794         [BZ #12108]
37795         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
37796         to have entries in sys_siglist.
37797
37798         [BZ #12093]
37799         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
37800         be NULL.
37801
37802 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
37803
37804         [BZ #3268]
37805         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
37806         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
37807         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
37808         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
37809         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
37810         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
37811         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
37812         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
37813         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
37814         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
37815         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
37816         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
37817         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
37818         * math/ftestexcept.c (fetestexcept): Likewise.
37819         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
37820         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
37821         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
37822         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
37823         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
37824         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
37825         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
37826
37827 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37828
37829         [BZ #12107]
37830         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
37831         newline.
37832
37833 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
37834
37835         * string/bug-strstr1.c: New file.
37836         * string/Makefile: Add rules to build and run bug-strstr1.
37837
37838 2010-10-05  Eric Blake  <eblake@redhat.com>
37839
37840         [BZ #12092]
37841         * string/str-two-way.h (two_way_long_needle): Always clear memory
37842         when skipping input due to the shift table.
37843
37844 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
37845
37846         [BZ #12005]
37847         * malloc/mcheck.c: Handle large requests.
37848
37849         [BZ #12077]
37850         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
37851         for strncmp and strncasecmp.
37852         * string/stratcliff.c: Add tests for strcmp and strncmp.
37853         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
37854
37855 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37856
37857         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
37858         __set_fpscr.
37859
37860 2010-09-30  Andreas Jaeger  <aj@suse.de>
37861
37862         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
37863         (CGROUP_SUPER_MAGIC): Define.
37864         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37865         Handle btrfs and cgroup file systems.
37866         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
37867         Likewise.
37868
37869 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
37870
37871         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
37872         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
37873
37874 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37875
37876         [BZ #12067]
37877         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
37878         trying to locate the ELF header.
37879
37880 2010-09-27  Andreas Schwab  <schwab@redhat.com>
37881
37882         [BZ #11611]
37883         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
37884         Mask out sign-bit copies when constructing f_fsid.
37885
37886 2010-09-24  Petr Baudis <pasky@suse.cz>
37887
37888         * debug/stack_chk_fail_local.c: Add missing licence exception.
37889         * debug/warning-nop.c: Likewise.
37890
37891 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
37892
37893         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
37894         implementing getdents64 using getdents syscall, set d_type if
37895         __ASSUME_GETDENTS32_D_TYPE.
37896
37897 2010-09-16  Andreas Schwab  <schwab@redhat.com>
37898
37899         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
37900         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
37901
37902 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
37903
37904         [BZ #12037]
37905         * posix/unistd.h: Undo change of feature selection for ftruncate from
37906         2010-01-11.
37907
37908 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
37909
37910         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
37911         detection.
37912
37913 2010-09-20  Andreas Schwab  <schwab@redhat.com>
37914
37915         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
37916         fanotify_mark.
37917         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37918
37919 2010-09-14  Andreas Schwab  <schwab@redhat.com>
37920
37921         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
37922         variables after CHECK_SP call.
37923         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
37924
37925 2010-09-13  Andreas Schwab  <schwab@redhat.com>
37926             Ulrich Drepper  <drepper@redhat.com>
37927
37928         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
37929         re-relocationg ld.so.
37930         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
37931         _dl_init_paths call.
37932         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
37933         here anymore.
37934
37935 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
37936
37937         * resolv/res_init.c (__res_vinit): Count the default server we added.
37938
37939 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
37940             Ulrich Drepper  <drepper@redhat.com>
37941
37942         [BZ #11968]
37943         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
37944         (____longjmp_chk): Use %ebx for saving value across system call.
37945         Add unwind info.
37946
37947 2010-09-06  Andreas Schwab  <schwab@redhat.com>
37948
37949         * manual/Makefile: Don't mix pattern rules with normal rules.
37950
37951 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
37952
37953         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
37954         operation.
37955         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
37956         * libio/iofopncook.c (_IO_cookie_init): Likewise.
37957         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
37958         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
37959         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
37960         Likewise.
37961
37962 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
37963
37964         [BZ #11979]
37965         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
37966         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
37967
37968 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
37969
37970         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
37971         * sysdeps/x86_64/addmul_1.S: Likewise.
37972         * sysdeps/x86_64/lshift.S: Likewise.
37973         * sysdeps/x86_64/mul_1.S: Likewise.
37974         * sysdeps/x86_64/rshift.S: Likewise.
37975         * sysdeps/x86_64/sub_n.S: Likewise.
37976         * sysdeps/x86_64/submul_1.S: Likewise.
37977
37978 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37979
37980         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
37981         Define __sched_param instead of SCHED_* and sched_param when
37982         <bits/sched.h> is included with __need_schedparam defined.
37983         * bits/sched.h [__need_schedparam]
37984         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
37985         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
37986         (__defined_schedparam): Define to 1.
37987         (__sched_param): New structure, identical to sched_param.
37988         (__need_schedparam): Undefine.
37989
37990 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
37991
37992         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
37993         (epoll_create1): Declare.
37994
37995         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
37996
37997 2010-08-31  Andreas Schwab  <schwab@redhat.com>
37998
37999         [BZ #7066]
38000         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
38001         shifting retval into place.
38002
38003 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
38004
38005         * nis/rpcsvc/nis.h: Update copyright notice.
38006         * nis/rpcsvc/nis.x: Likewise.
38007         * nis/rpcsvc/nis_callback.h: Likewise.
38008         * nis/rpcsvc/nis_callback.x: Likewise.
38009         * nis/rpcsvc/nis_object.x: Likewise.
38010         * nis/rpcsvc/nis_tags.h: Likewise.
38011         * nis/rpcsvc/yp.h: Likewise.
38012         * nis/rpcsvc/yp.x: Likewise.
38013         * nis/rpcsvc/ypupd.h: Likewise.
38014         * nis/yp_xdr.c: Likewise.
38015         * nis/ypupdate_xdr.c: Likewise.
38016
38017         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
38018         mainly the body of pmap_getport.  Add parameters to specify timeouts.
38019         (pmap_getport): Use __libc_rpc_getport.
38020         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
38021         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
38022         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
38023
38024 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
38025
38026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
38027         fanotify_mark.
38028
38029 2010-08-27  Roland McGrath  <roland@redhat.com>
38030
38031         * sysdeps/i386/i686/multiarch/Makefile
38032         (CFLAGS-varshift.c): New variable.
38033
38034 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
38035
38036         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
38037         * sysdeps/i386/i686/multiarch/varshift.c: New file.
38038
38039         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
38040
38041         * sysdeps/x86_64/strlen.S: Minimal code improvement.
38042
38043 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
38044
38045         * sysdeps/x86_64/strlen.S: Unroll the loop.
38046         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38047         strlen-sse2 strlen-sse2-bsf.
38048         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
38049         __strlen_no_bsf if bit_Slow_BSF is set.
38050         (__strlen_sse42): Removed.
38051         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
38052         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
38053
38054 2010-08-25  Roland McGrath  <roland@redhat.com>
38055
38056         * sysdeps/x86_64/multiarch/varshift.S: File removed.
38057         * sysdeps/x86_64/multiarch/varshift.c: New file.
38058         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
38059         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
38060         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
38061         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
38062
38063 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
38064
38065         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38066         strlen-sse2 strlen-sse2-bsf.
38067         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
38068         __strlen_sse2_bsf if bit_Slow_BSF is unset.
38069         (__strlen_sse2): Removed.
38070         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
38071         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
38072         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
38073         bit_Slow_BSF for Atom.
38074         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
38075         (index_Slow_BSF): Define.
38076         (HAS_SLOW_BSF): Define.
38077
38078 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
38079
38080         [BZ #10851]
38081         * resolv/res_init.c (__res_vinit): When no server address at all
38082         is given default to loopback.
38083
38084 2010-08-24  Roland McGrath  <roland@redhat.com>
38085
38086         * configure.in: Remove config-name.h generation.
38087         * configure: Regenerated.
38088         * config-name.in: File removed.
38089         * scripts/config-uname.sh: New file.
38090         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
38091         ($(objdir)config-name.h): New target.
38092
38093         * sunrpc/rpc_parse.h: Avoid nested comment.
38094
38095 2010-08-24  Richard Henderson  <rth@redhat.com>
38096             Ulrich Drepper  <drepper@redhat.com>
38097             H.J. Lu  <hongjiu.lu@intel.com>
38098
38099         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
38100         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
38101         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
38102         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
38103         _mm_alignr_epi8 with _mm_loadu_si128.
38104         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
38105         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
38106         (__m128i_shift_right): Removed.
38107         * sysdeps/i386/i686/multiarch/varshift.h: New file.
38108         * sysdeps/i386/i686/multiarch/varshift.S: New file.
38109         * sysdeps/x86_64/multiarch/varshift.h: New file.
38110         * sysdeps/x86_64/multiarch/varshift.S: New file.
38111
38112 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
38113
38114         * configure.in: Move assembler checks to before sysdep dir checking.
38115
38116 2010-08-20  Petr Baudis  <pasky@suse.cz>
38117
38118         * LICENSES: Sync the sunrpc license.
38119
38120 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
38121
38122         * sunrpc/auth_des.c: Update copyright notice once again.
38123         * sunrpc/auth_none.c: Likewise.
38124         * sunrpc/auth_unix.c: Likewise.
38125         * sunrpc/authdes_prot.c: Likewise.
38126         * sunrpc/authuxprot.c: Likewise.
38127         * sunrpc/bindrsvprt.c: Likewise.
38128         * sunrpc/clnt_gen.c: Likewise.
38129         * sunrpc/clnt_perr.c: Likewise.
38130         * sunrpc/clnt_raw.c: Likewise.
38131         * sunrpc/clnt_simp.c: Likewise.
38132         * sunrpc/clnt_tcp.c: Likewise.
38133         * sunrpc/clnt_udp.c: Likewise.
38134         * sunrpc/clnt_unix.c: Likewise.
38135         * sunrpc/des_crypt.c: Likewise.
38136         * sunrpc/des_soft.c: Likewise.
38137         * sunrpc/get_myaddr.c: Likewise.
38138         * sunrpc/getrpcport.c: Likewise.
38139         * sunrpc/key_call.c: Likewise.
38140         * sunrpc/key_prot.c: Likewise.
38141         * sunrpc/openchild.c: Likewise.
38142         * sunrpc/pm_getmaps.c: Likewise.
38143         * sunrpc/pm_getport.c: Likewise.
38144         * sunrpc/pmap_clnt.c: Likewise.
38145         * sunrpc/pmap_prot.c: Likewise.
38146         * sunrpc/pmap_prot2.c: Likewise.
38147         * sunrpc/pmap_rmt.c: Likewise.
38148         * sunrpc/rpc/auth.h: Likewise.
38149         * sunrpc/rpc/auth_unix.h: Likewise.
38150         * sunrpc/rpc/clnt.h: Likewise.
38151         * sunrpc/rpc/des_crypt.h: Likewise.
38152         * sunrpc/rpc/key_prot.h: Likewise.
38153         * sunrpc/rpc/netdb.h: Likewise.
38154         * sunrpc/rpc/pmap_clnt.h: Likewise.
38155         * sunrpc/rpc/pmap_prot.h: Likewise.
38156         * sunrpc/rpc/pmap_rmt.h: Likewise.
38157         * sunrpc/rpc/rpc.h: Likewise.
38158         * sunrpc/rpc/rpc_des.h: Likewise.
38159         * sunrpc/rpc/rpc_msg.h: Likewise.
38160         * sunrpc/rpc/svc.h: Likewise.
38161         * sunrpc/rpc/svc_auth.h: Likewise.
38162         * sunrpc/rpc/types.h: Likewise.
38163         * sunrpc/rpc/xdr.h: Likewise.
38164         * sunrpc/rpc_clntout.c: Likewise.
38165         * sunrpc/rpc_cmsg.c: Likewise.
38166         * sunrpc/rpc_common.c: Likewise.
38167         * sunrpc/rpc_cout.c: Likewise.
38168         * sunrpc/rpc_dtable.c: Likewise.
38169         * sunrpc/rpc_hout.c: Likewise.
38170         * sunrpc/rpc_main.c: Likewise.
38171         * sunrpc/rpc_parse.c: Likewise.
38172         * sunrpc/rpc_parse.h: Likewise.
38173         * sunrpc/rpc_prot.c: Likewise.
38174         * sunrpc/rpc_sample.c: Likewise.
38175         * sunrpc/rpc_scan.c: Likewise.
38176         * sunrpc/rpc_scan.h: Likewise.
38177         * sunrpc/rpc_svcout.c: Likewise.
38178         * sunrpc/rpc_tblout.c: Likewise.
38179         * sunrpc/rpc_util.c: Likewise.
38180         * sunrpc/rpc_util.h: Likewise.
38181         * sunrpc/rpcinfo.c: Likewise.
38182         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
38183         * sunrpc/rpcsvc/key_prot.x: Likewise.
38184         * sunrpc/rpcsvc/klm_prot.x: Likewise.
38185         * sunrpc/rpcsvc/mount.x: Likewise.
38186         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
38187         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
38188         * sunrpc/rpcsvc/rex.x: Likewise.
38189         * sunrpc/rpcsvc/rstat.x: Likewise.
38190         * sunrpc/rpcsvc/rusers.x: Likewise.
38191         * sunrpc/rpcsvc/sm_inter.x: Likewise.
38192         * sunrpc/rpcsvc/spray.x: Likewise.
38193         * sunrpc/rpcsvc/yppasswd.x: Likewise.
38194         * sunrpc/rtime.c: Likewise.
38195         * sunrpc/svc.c: Likewise.
38196         * sunrpc/svc_auth.c: Likewise.
38197         * sunrpc/svc_authux.c: Likewise.
38198         * sunrpc/svc_raw.c: Likewise.
38199         * sunrpc/svc_run.c: Likewise.
38200         * sunrpc/svc_simple.c: Likewise.
38201         * sunrpc/svc_tcp.c: Likewise.
38202         * sunrpc/svc_udp.c: Likewise.
38203         * sunrpc/svc_unix.c: Likewise.
38204         * sunrpc/svcauth_des.c: Likewise.
38205         * sunrpc/xcrypt.c: Likewise.
38206         * sunrpc/xdr.c: Likewise.
38207         * sunrpc/xdr_array.c: Likewise.
38208         * sunrpc/xdr_float.c: Likewise.
38209         * sunrpc/xdr_mem.c: Likewise.
38210         * sunrpc/xdr_rec.c: Likewise.
38211         * sunrpc/xdr_ref.c: Likewise.
38212         * sunrpc/xdr_sizeof.c: Likewise.
38213         * sunrpc/xdr_stdio.c: Likewise.
38214
38215         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
38216         handling.
38217
38218 2010-08-19  Andreas Schwab  <schwab@redhat.com>
38219
38220         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
38221
38222 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
38223
38224         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
38225         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
38226         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
38227         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
38228         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
38229         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
38230         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
38231         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
38232         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
38233         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
38234         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
38235         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
38236         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
38237         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
38238
38239 2010-07-26  Anton Blanchard  <anton@samba.org>
38240
38241         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
38242         * malloc/arena.c (heap_trim): Likewise.
38243
38244 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
38245
38246         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
38247         here.  Not...
38248         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
38249         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
38250
38251 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
38252
38253         * sysdeps/i386/elf/Makefile: New file.
38254
38255 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38256
38257         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
38258         from fanotify_init.
38259         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
38260         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38261
38262 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
38263
38264         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
38265         of strncasecmp_l.
38266         * sysdeps/multiarch/strcmp.S: Likewise.
38267
38268 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
38269
38270         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38271         strncase_l-nonascii.
38272         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38273         Add strncase_l-ssse3.
38274         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
38275         * sysdeps/x86_64/strcmp.S: Likewise.
38276         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
38277         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
38278         * sysdeps/x86_64/strncase.S: New file.
38279         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
38280         * sysdeps/x86_64/strncase_l.S: New file.
38281         * string/Makefile (strop-tests): Add strncasecmp.
38282         * string/test-strncasecmp.c: New file.
38283
38284         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
38285         warning.
38286
38287         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
38288         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
38289
38290 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38291
38292         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
38293
38294 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
38295
38296         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
38297         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
38298         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
38299
38300 2010-05-01  Alan Modra  <amodra@gmail.com>
38301
38302         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
38303         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
38304         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
38305         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
38306         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
38307         tidying.  Don't tail-call __sigjmp_save for static lib.
38308         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
38309         save location.
38310         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
38311         (CALL_MCOUNT): Add eh info, and nop after bl.
38312         (TAIL_CALL_SYSCALL_ERROR): New macro.
38313         (PSEUDO_RET): Use it.
38314         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
38315         Correct save location of integer regs and cr.
38316         (_dl_profile_resolve): Correct cr save location.  Delete nops
38317         after bl when SHARED.  Reduce cfi size a little by better
38318         placement of cfi directives.
38319         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
38320         make a stack frame.  Instead use parm save area as a temp.
38321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
38322         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
38323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
38324         Don't make a stack frame for parent, use parm save area.
38325         Increase child stack frame to 112 bytes.  Don't save unused reg,
38326         and adjust reg usage.  Set up cfi on error recovery and
38327         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
38328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
38329         (__makecontext): Add dummy nop after jump to exit.
38330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
38331         Use correct parm save area and cr save, reduce stack frame.
38332         Correct cfi for possible PSEUDO_RET frame setup.
38333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
38334         Branch to local label emitted by PSEUDO_RET rather than
38335         __syscall_error.
38336
38337 2010-08-12  Andreas Schwab  <schwab@redhat.com>
38338
38339         [BZ #11904]
38340         * locale/programs/locale.c (print_assignment): New function.
38341         (show_locale_vars): Use it.
38342
38343 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
38344
38345         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
38346         field.
38347         (struct statfs64): Likewise.
38348         (_STATFS_F_FLAGS): Define.
38349         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
38350         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38351         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
38352         (ST_VALID): Define locally.
38353         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
38354         __statvfs_getflags, use the provided value.
38355         * sysdeps/unix/sysv/linux/kernel-features.h: Define
38356         __ASSUME_STATFS_F_FLAGS.
38357
38358         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
38359
38360         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
38361         Add sys/fanotify.h.
38362         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
38363         fanotify_mask for GLIBC_2.13.
38364         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
38365         fanotify_init and fanotify_mark.
38366         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38367         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
38368
38369         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
38370         Add prlimit.
38371         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
38372         prlimit64 for GLIBC_2.13.
38373         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
38374         prlimit64.
38375         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
38376         syscall.
38377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
38378         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
38379         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
38380         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
38381         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
38382         add prlimit alias.
38383         * sysdeps/unix/sysv/linux/prlimit.c: New file.
38384
38385         [BZ #11903]
38386         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
38387         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
38388
38389         * nss/Makefile: Add rules to build and run tst-nss-test1.
38390         * shlib-versions: Add entry for libnss_test1.
38391         * nss/nss_test1.c: New file.
38392         * nss/tst-nss-test1.c: New file.
38393
38394         * nss/nsswitch.c (__nss_database_custom): Define new variable.
38395         (__nss_configure_lookup): Set appropriate entry in
38396         __nss_configure_lookup to true.
38397         * nss/nsswitch.h: Define enum with indeces of databases in
38398         databases and __nss_database_custom arrays.  Declare
38399         __nss_database_custom.
38400         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
38401         to avoid using nscd when custom rules are installed.
38402         * nss/getXXbyYY_r.c: Likewise.
38403         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
38404
38405         * nss/nss_files/files-parse.c: Whitespace fixes.
38406
38407 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
38408
38409         [BZ #11883]
38410         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
38411         * posix/fnmatch_loop.c: Likewise.
38412
38413 2010-07-17  Andi Kleen  <ak@linux.intel.com>
38414
38415         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
38416         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
38417         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
38418         * Versions.def [GLIBC_2.13]: Add.
38419
38420 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
38421
38422         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38423         Also fail if tpwd after pwuid call is NULL.
38424
38425 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38426
38427         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
38428         when converting to ms.
38429
38430 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38431
38432         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
38433         EOPNOTSUPP errors with ENOTTY.
38434         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
38435         EOPNOTSUPP errors with ENOTTY.
38436
38437 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
38438
38439         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38440         Add strcasecmp_l-ssse3.
38441         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
38442         strcasecmp.
38443         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
38444         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
38445         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
38446
38447 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
38448
38449         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
38450
38451         * string/Makefile (strop-tests): Add strcasecmp.
38452         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38453         strcasecmp_l-nonascii.
38454         (gen-as-const-headers): Add locale-defines.sym.
38455         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
38456         * sysdeps/x86_64/strcasecmp.S: New file.
38457         * sysdeps/x86_64/strcasecmp_l.S: New file.
38458         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
38459         * sysdeps/x86_64/locale-defines.sym: New file.
38460         * string/test-strcasecmp.c: New file.
38461
38462         * string/test-strcasestr.c: Test both ends of the range of characters.
38463         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
38464
38465 2010-07-29  Roland McGrath  <roland@redhat.com>
38466
38467         [BZ #11856]
38468         * manual/locale.texi (Yes-or-No Questions): Fix example code.
38469
38470 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
38471
38472         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
38473         for ld.so.
38474
38475 2010-07-27  Andreas Schwab  <schwab@redhat.com>
38476
38477         * manual/memory.texi (Malloc Tunable Parameters): Document
38478         M_PERTURB.
38479
38480 2010-07-26  Roland McGrath  <roland@redhat.com>
38481
38482         [BZ #11840]
38483         * configure.in (-fgnu89-inline check): Set and substitute
38484         gnu89_inline, not libc_cv_gnu89_inline.
38485         * configure: Regenerated.
38486         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
38487
38488 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
38489
38490         * string/test-strnlen.c: New file.
38491         * string/Makefile (strop-tests): Add strnlen.
38492         * string/tester.c (test_strnlen): Add a few more test cases.
38493         * string/tst-strlen.c: Better error reporting.
38494
38495         * sysdeps/x86_64/strnlen.S: New file.
38496
38497 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
38498
38499         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
38500         lower-latency instructions.
38501
38502 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
38503
38504         * string/test-strcasestr.c: New file.
38505         * string/test-strstr.c: New file.
38506         * string/Makefile (strop-tests): Add strstr and strcasestr.
38507         * string/str-two-way.h: Don't undefine MAX.
38508         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
38509
38510 2010-07-21  Andreas Schwab  <schwab@redhat.com>
38511
38512         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38513         strcasestr-nonascii.
38514         (CFLAGS-strcasestr-nonascii.c): Define.
38515         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
38516         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
38517         Remove unused attribute.
38518
38519 2010-07-20  Roland McGrath  <roland@redhat.com>
38520
38521         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
38522         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
38523         ld.so.cache was broken.  With it, there is no way to disable dsocaps
38524         like LD_HWCAP_MASK can disable hwcaps.
38525
38526 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38527
38528         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
38529
38530 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
38531
38532         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
38533         call in strcasestr.
38534         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
38535         __strcasestr_sse42_nonascii.
38536         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
38537         strcasestr-nonascii.c.
38538         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
38539
38540 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
38541
38542         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
38543         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
38544         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
38545         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
38546
38547 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
38548
38549         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
38550         fcntl.
38551
38552 2010-07-06  Andreas Schwab  <schwab@redhat.com>
38553
38554         [BZ #11577]
38555         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
38556         dl_signal_cerror.
38557
38558 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
38559
38560         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
38561         _PC_PIPE_BUF using F_GETPIPE_SZ.
38562
38563 2010-07-05  Roland McGrath  <roland@redhat.com>
38564
38565         * manual/arith.texi (Rounding Functions): Fix rint description
38566         implicit in round description.
38567
38568 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
38569
38570         * elf/Makefile: Fix linking for a few tests to make recent linker
38571         happy.
38572
38573 2010-06-30  Andreas Schwab  <schwab@redhat.com>
38574
38575         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
38576         $(common-objpfx)libc_nonshared.a.
38577
38578 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
38579
38580         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
38581         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
38582         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38583         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38584         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
38585         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
38586         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38587         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
38589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
38590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
38591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
38593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
38595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
38596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
38597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
38598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
38600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
38602         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
38603         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
38604         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
38605         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
38606         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
38607         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
38608         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
38609         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
38610         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
38611         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
38612         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
38613         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
38614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
38615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
38616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
38617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
38618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
38619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
38620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
38621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
38622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
38623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
38624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
38625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
38626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
38627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
38628
38629 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
38630
38631         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
38632         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
38633         * string/memmove.c (memmove): Renamed to ...
38634         (MEMMOVE): ...this.  Default to memmove.
38635         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
38636         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
38637         (END_CHK): Define.
38638         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38639         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
38640         mempcpy-ssse3-back memmove-ssse3-back.
38641         * sysdeps/x86_64/multiarch/bcopy.S: New file .
38642         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
38643         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
38644         * sysdeps/x86_64/multiarch/memcpy.S: New file.
38645         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
38646         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
38647         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
38648         * sysdeps/x86_64/multiarch/memmove.c: New file.
38649         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
38650         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
38651         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
38652         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
38653         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
38654         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
38655         Define.
38656         (index_Fast_Copy_Backward): Define.
38657         (HAS_ARCH_FEATURE): Define.
38658         (HAS_FAST_REP_STRING): Define.
38659         (HAS_FAST_COPY_BACKWARD): Define.
38660
38661 2010-06-21  Andreas Schwab  <schwab@redhat.com>
38662
38663         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38664         Restore proper fallback handling.
38665
38666 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
38667
38668         [BZ #11701]
38669         * posix/group_member.c (__group_member): Correct checking loop.
38670
38671         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
38672         OOM in getpwuid_r correctly.  Return error number when the caller
38673         should return, otherwise -1.
38674         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
38675         call returning > 0 value.
38676         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
38677
38678 2010-06-07  Andreas Schwab  <schwab@redhat.com>
38679
38680         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
38681         libc_nonshared.a from targets in modules-names.
38682
38683 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
38684
38685         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
38686         requires it.
38687
38688 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
38689
38690         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
38691         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
38692         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
38693         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
38694
38695 2010-06-02  Andreas Schwab  <schwab@redhat.com>
38696
38697         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
38698
38699 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
38700
38701         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
38702         and F_GETPIPE_SZ.
38703         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
38704         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
38705         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
38706         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
38707         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
38708         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
38709
38710 2010-06-14  Roland McGrath  <roland@redhat.com>
38711
38712         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
38713
38714 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
38715
38716         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
38717         __REDIRECT followed by __THROW.
38718         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
38719         * posix/getopt.h (getopt): Likewise.
38720
38721 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38722
38723         * hurd/lookup-at.c (__file_name_lookup_at): Accept
38724         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
38725         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
38726         in AT_FLAGS.
38727         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
38728         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
38729
38730 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
38731
38732         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
38733
38734 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
38735
38736         [BZ #11640]
38737         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38738         Properly check family and model.
38739
38740 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
38741
38742         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
38743
38744 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
38745
38746         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
38747
38748 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
38749
38750         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
38751         symbol reference.
38752
38753 2010-05-19  Andreas Schwab  <schwab@redhat.com>
38754
38755         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
38756         symbol reference.
38757
38758 2010-05-21  Andreas Schwab  <schwab@redhat.com>
38759
38760         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
38761         and internal_recvmmsg.
38762         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
38763         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
38764         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
38765         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
38766
38767         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
38768         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
38769         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
38770
38771 2010-05-20  Andreas Schwab  <schwab@redhat.com>
38772
38773         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
38774
38775 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
38776
38777         POWER7 optimizations.
38778         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
38779         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
38780
38781 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
38782
38783         * version.h: Update for 2.13 development version.
38784
38785 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
38786
38787         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
38788         exceptions.  Return 0.
38789
38790 2010-05-07  Roland McGrath  <roland@redhat.com>
38791
38792         * elf/ldconfig.c (main): Add a const.
38793
38794 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
38795
38796         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
38797         (args_options): Add no-idn option.
38798         (ahosts_keys_int): Add idn_flags to ai_flags.
38799         (parse_option): Handle 'i' option to clear idn_flags.
38800
38801         * malloc/malloc.c (_int_free): Possible race in the most recently
38802         added check.  Only act on the data if no current modification
38803         happened.
38804
38805 See ChangeLog.17 for earlier changes.